Home
last modified time | relevance | path

Searched refs:n (Results 1 – 25 of 3054) sorted by relevance

12345678910>>...123

/linux-2.6.39/include/linux/
Dlog2.h32 int __ilog2_u32(u32 n) in __ilog2_u32() argument
34 return fls(n) - 1; in __ilog2_u32()
40 int __ilog2_u64(u64 n) in __ilog2_u64() argument
42 return fls64(n) - 1; in __ilog2_u64()
52 bool is_power_of_2(unsigned long n) in is_power_of_2() argument
54 return (n != 0 && ((n & (n - 1)) == 0)); in is_power_of_2()
61 unsigned long __roundup_pow_of_two(unsigned long n) in __roundup_pow_of_two() argument
63 return 1UL << fls_long(n - 1); in __roundup_pow_of_two()
70 unsigned long __rounddown_pow_of_two(unsigned long n) in __rounddown_pow_of_two() argument
72 return 1UL << (fls_long(n) - 1); in __rounddown_pow_of_two()
[all …]
/linux-2.6.39/drivers/staging/solo6x10/
Dregisters.h40 #define SOLO_DMA_CTRL_REFRESH_CYCLE(n) ((n)<<8) argument
42 #define SOLO_DMA_CTRL_SDRAM_SIZE(n) ((n)<<6) argument
47 #define SOLO_DMA_CTRL_LATENCY(n) ((n)<<0) argument
53 #define SOLO_VCLK_SELECT(n) ((n)<<20) argument
54 #define SOLO_VCLK_VIN1415_DELAY(n) ((n)<<14) argument
55 #define SOLO_VCLK_VIN1213_DELAY(n) ((n)<<12) argument
56 #define SOLO_VCLK_VIN1011_DELAY(n) ((n)<<10) argument
57 #define SOLO_VCLK_VIN0809_DELAY(n) ((n)<<8) argument
58 #define SOLO_VCLK_VIN0607_DELAY(n) ((n)<<6) argument
59 #define SOLO_VCLK_VIN0405_DELAY(n) ((n)<<4) argument
[all …]
Dtw28.h27 #define TW_CHIP_OFFSET_ADDR(n) (TW_BASE_ADDR + (n)) argument
31 #define TW_HUE_ADDR(n) (0x07 | ((n) << 4)) argument
32 #define TW_SATURATION_ADDR(n) (0x08 | ((n) << 4)) argument
33 #define TW_CONTRAST_ADDR(n) (0x09 | ((n) << 4)) argument
34 #define TW_BRIGHTNESS_ADDR(n) (0x0a | ((n) << 4)) argument
36 #define TW_AUDIO_INPUT_GAIN_ADDR(n) (0x60 + ((n > 1) ? 1 : 0)) argument
40 #define TW286x_HUE_ADDR(n) (0x06 | ((n) << 4)) argument
41 #define TW286x_SATURATIONU_ADDR(n) (0x04 | ((n) << 4)) argument
42 #define TW286x_SATURATIONV_ADDR(n) (0x05 | ((n) << 4)) argument
43 #define TW286x_CONTRAST_ADDR(n) (0x02 | ((n) << 4)) argument
[all …]
/linux-2.6.39/drivers/staging/vt6655/
D80211hdr.h164 #define WLAN_GET_FC_PRVER(n) ((((unsigned short)(n) >> 8) & (BIT0 | BIT1)) argument
165 #define WLAN_GET_FC_FTYPE(n) ((((unsigned short)(n) >> 8) & (BIT2 | BIT3)) >> 2) argument
166 #define WLAN_GET_FC_FSTYPE(n) ((((unsigned short)(n) >> 8) & (BIT4|BIT5|BIT6|BIT7)) >> 4) argument
167 #define WLAN_GET_FC_TODS(n) ((((unsigned short)(n) << 8) & (BIT8)) >> 8) argument
168 #define WLAN_GET_FC_FROMDS(n) ((((unsigned short)(n) << 8) & (BIT9)) >> 9) argument
169 #define WLAN_GET_FC_MOREFRAG(n) ((((unsigned short)(n) << 8) & (BIT10)) >> 10) argument
170 #define WLAN_GET_FC_RETRY(n) ((((unsigned short)(n) << 8) & (BIT11)) >> 11) argument
171 #define WLAN_GET_FC_PWRMGT(n) ((((unsigned short)(n) << 8) & (BIT12)) >> 12) argument
172 #define WLAN_GET_FC_MOREDATA(n) ((((unsigned short)(n) << 8) & (BIT13)) >> 13) argument
173 #define WLAN_GET_FC_ISWEP(n) ((((unsigned short)(n) << 8) & (BIT14)) >> 14) argument
[all …]
/linux-2.6.39/drivers/staging/vt6656/
D80211hdr.h160 #define WLAN_GET_FC_PRVER(n) ((((WORD)(n) >> 8) & (BIT0 | BIT1)) argument
161 #define WLAN_GET_FC_FTYPE(n) ((((WORD)(n) >> 8) & (BIT2 | BIT3)) >> 2) argument
162 #define WLAN_GET_FC_FSTYPE(n) ((((WORD)(n) >> 8) \ argument
164 #define WLAN_GET_FC_TODS(n) ((((WORD)(n) << 8) & (BIT8)) >> 8) argument
165 #define WLAN_GET_FC_FROMDS(n) ((((WORD)(n) << 8) & (BIT9)) >> 9) argument
166 #define WLAN_GET_FC_MOREFRAG(n) ((((WORD)(n) << 8) & (BIT10)) >> 10) argument
167 #define WLAN_GET_FC_RETRY(n) ((((WORD)(n) << 8) & (BIT11)) >> 11) argument
168 #define WLAN_GET_FC_PWRMGT(n) ((((WORD)(n) << 8) & (BIT12)) >> 12) argument
169 #define WLAN_GET_FC_MOREDATA(n) ((((WORD)(n) << 8) & (BIT13)) >> 13) argument
170 #define WLAN_GET_FC_ISWEP(n) ((((WORD)(n) << 8) & (BIT14)) >> 14) argument
[all …]
/linux-2.6.39/arch/tile/include/asm/
Dopcode-tile_64.h427 const unsigned int n = (unsigned int)num; in get_BrOff_SN() local
428 return (((n >> 0)) & 0x3ff); in get_BrOff_SN()
432 get_BrOff_X1(tile_bundle_bits n) in get_BrOff_X1() argument
434 return (((unsigned int)(n >> 43)) & 0x00007fff) | in get_BrOff_X1()
435 (((unsigned int)(n >> 20)) & 0x00018000); in get_BrOff_X1()
439 get_BrType_X1(tile_bundle_bits n) in get_BrType_X1() argument
441 return (((unsigned int)(n >> 31)) & 0xf); in get_BrType_X1()
445 get_Dest_Imm8_X1(tile_bundle_bits n) in get_Dest_Imm8_X1() argument
447 return (((unsigned int)(n >> 31)) & 0x0000003f) | in get_Dest_Imm8_X1()
448 (((unsigned int)(n >> 43)) & 0x000000c0); in get_Dest_Imm8_X1()
[all …]
Dopcode-tile_32.h427 const unsigned int n = (unsigned int)num; in get_BrOff_SN() local
428 return (((n >> 0)) & 0x3ff); in get_BrOff_SN()
432 get_BrOff_X1(tile_bundle_bits n) in get_BrOff_X1() argument
434 return (((unsigned int)(n >> 43)) & 0x00007fff) | in get_BrOff_X1()
435 (((unsigned int)(n >> 20)) & 0x00018000); in get_BrOff_X1()
439 get_BrType_X1(tile_bundle_bits n) in get_BrType_X1() argument
441 return (((unsigned int)(n >> 31)) & 0xf); in get_BrType_X1()
445 get_Dest_Imm8_X1(tile_bundle_bits n) in get_Dest_Imm8_X1() argument
447 return (((unsigned int)(n >> 31)) & 0x0000003f) | in get_Dest_Imm8_X1()
448 (((unsigned int)(n >> 43)) & 0x000000c0); in get_Dest_Imm8_X1()
[all …]
/linux-2.6.39/arch/powerpc/include/asm/
Dppc_asm.h78 #define SAVE_GPR(n, base) std n,GPR0+8*(n)(base) argument
79 #define REST_GPR(n, base) ld n,GPR0+8*(n)(base) argument
83 #define SAVE_GPR(n, base) stw n,GPR0+4*(n)(base) argument
84 #define REST_GPR(n, base) lwz n,GPR0+4*(n)(base) argument
91 #define SAVE_2GPRS(n, base) SAVE_GPR(n, base); SAVE_GPR(n+1, base) argument
92 #define SAVE_4GPRS(n, base) SAVE_2GPRS(n, base); SAVE_2GPRS(n+2, base) argument
93 #define SAVE_8GPRS(n, base) SAVE_4GPRS(n, base); SAVE_4GPRS(n+4, base) argument
94 #define SAVE_10GPRS(n, base) SAVE_8GPRS(n, base); SAVE_2GPRS(n+8, base) argument
95 #define REST_2GPRS(n, base) REST_GPR(n, base); REST_GPR(n+1, base) argument
96 #define REST_4GPRS(n, base) REST_2GPRS(n, base); REST_2GPRS(n+2, base) argument
[all …]
/linux-2.6.39/arch/arm/mach-davinci/include/mach/
Dcp_intc.h34 #define CP_INTC_PACING_PARAM(n) (0x0100 + (n << 4)) argument
35 #define CP_INTC_PACING_DEC(n) (0x0104 + (n << 4)) argument
36 #define CP_INTC_PACING_MAP(n) (0x0108 + (n << 4)) argument
37 #define CP_INTC_SYS_RAW_STAT(n) (0x0200 + (n << 2)) argument
38 #define CP_INTC_SYS_STAT_CLR(n) (0x0280 + (n << 2)) argument
39 #define CP_INTC_SYS_ENABLE_SET(n) (0x0300 + (n << 2)) argument
40 #define CP_INTC_SYS_ENABLE_CLR(n) (0x0380 + (n << 2)) argument
41 #define CP_INTC_CHAN_MAP(n) (0x0400 + (n << 2)) argument
42 #define CP_INTC_HOST_MAP(n) (0x0800 + (n << 2)) argument
43 #define CP_INTC_HOST_PRIO_IDX(n) (0x0900 + (n << 2)) argument
[all …]
/linux-2.6.39/arch/s390/crypto/
Ddes_check_key.c55 u32 n, w; in crypto_des_check_key() local
57 n = parity[key[0]]; n <<= 4; in crypto_des_check_key()
58 n |= parity[key[1]]; n <<= 4; in crypto_des_check_key()
59 n |= parity[key[2]]; n <<= 4; in crypto_des_check_key()
60 n |= parity[key[3]]; n <<= 4; in crypto_des_check_key()
61 n |= parity[key[4]]; n <<= 4; in crypto_des_check_key()
62 n |= parity[key[5]]; n <<= 4; in crypto_des_check_key()
63 n |= parity[key[6]]; n <<= 4; in crypto_des_check_key()
64 n |= parity[key[7]]; in crypto_des_check_key()
68 && !((n - (w >> 3)) & w)) { /* 1 in 10^10 keys passes this test */ in crypto_des_check_key()
[all …]
/linux-2.6.39/arch/alpha/lib/
Dmemcpy.c24 #define ALIGN_DEST_TO8_UP(d,s,n) \ argument
26 if (n <= 0) return; \
27 n--; \
31 #define ALIGN_DEST_TO8_DN(d,s,n) \ argument
33 if (n <= 0) return; \
34 n--; \
43 #define DO_REST_UP(d,s,n) \ argument
44 while (n > 0) { \
45 n--; \
49 #define DO_REST_DN(d,s,n) \ argument
[all …]
/linux-2.6.39/drivers/usb/gadget/
Dfusb300_udc.h34 #define FUSB300_OFFSET_EPSET0(n) (0x20 + (n - 1) * 0x30) argument
35 #define FUSB300_OFFSET_EPSET1(n) (0x24 + (n - 1) * 0x30) argument
36 #define FUSB300_OFFSET_EPSET2(n) (0x28 + (n - 1) * 0x30) argument
37 #define FUSB300_OFFSET_EPFFR(n) (0x2c + (n - 1) * 0x30) argument
38 #define FUSB300_OFFSET_EPSTRID(n) (0x40 + (n - 1) * 0x30) argument
67 #define FUSB300_OFFSET_EPPRD_W0(n) (0x520 + (n - 1) * 0x10) argument
68 #define FUSB300_OFFSET_EPPRD_W1(n) (0x524 + (n - 1) * 0x10) argument
69 #define FUSB300_OFFSET_EPPRD_W2(n) (0x528 + (n - 1) * 0x10) argument
70 #define FUSB300_OFFSET_EPRD_PTR(n) (0x52C + (n - 1) * 0x10) argument
73 #define FUSB300_OFFSET_EPPORT(n) (0x1010 + (n - 1) * 0x10) argument
[all …]
/linux-2.6.39/arch/cris/include/asm/
Duaccess.h175 extern unsigned long __copy_user(void __user *to, const void *from, unsigned long n);
176 extern unsigned long __copy_user_zeroing(void *to, const void __user *from, unsigned long n);
177 extern unsigned long __do_clear_user(void __user *to, unsigned long n);
180 __generic_copy_to_user(void __user *to, const void *from, unsigned long n) in __generic_copy_to_user() argument
182 if (access_ok(VERIFY_WRITE, to, n)) in __generic_copy_to_user()
183 return __copy_user(to,from,n); in __generic_copy_to_user()
184 return n; in __generic_copy_to_user()
188 __generic_copy_from_user(void *to, const void __user *from, unsigned long n) in __generic_copy_from_user() argument
190 if (access_ok(VERIFY_READ, from, n)) in __generic_copy_from_user()
191 return __copy_user_zeroing(to,from,n); in __generic_copy_from_user()
[all …]
/linux-2.6.39/sound/ppc/
Dsnd_ps3_reg.h35 #define PS3_AUDIO_KICK(n) (PS3_AUDIO_DMAC_REGBASE(n) + 0x00) argument
36 #define PS3_AUDIO_SOURCE(n) (PS3_AUDIO_DMAC_REGBASE(n) + 0x04) argument
37 #define PS3_AUDIO_DEST(n) (PS3_AUDIO_DMAC_REGBASE(n) + 0x08) argument
38 #define PS3_AUDIO_DMASIZE(n) (PS3_AUDIO_DMAC_REGBASE(n) + 0x0C) argument
57 #define PS3_AUDIO_AO_3WCTRL(n) (0x00006200 + 0x200 * (n)) argument
65 #define PS3_AUDIO_AO_SPD_REGBASE(n) (0x00007200 + 0x200 * (n)) argument
67 #define PS3_AUDIO_AO_SPDCTRL(n) \ argument
68 (PS3_AUDIO_AO_SPD_REGBASE(n) + 0x00)
69 #define PS3_AUDIO_AO_SPDUB(n, x) \ argument
70 (PS3_AUDIO_AO_SPD_REGBASE(n) + 0x04 + 0x04 * (x))
[all …]
/linux-2.6.39/arch/cris/arch-v32/lib/
Dusercopy.c42 register int n __asm__ ("r12") = pn; in __copy_user()
52 && n >= 3) in __copy_user()
57 n--; in __copy_user()
63 n -= 2; in __copy_user()
69 if (n >= 44) in __copy_user()
122 /* Outputs */ : "=r" (dst), "=r" (src), "=r" (n), "=r" (retn) in __copy_user()
123 /* Inputs */ : "0" (dst), "1" (src), "2" (n), "3" (retn)); in __copy_user()
127 while (n >= 16) in __copy_user()
130 n -= 16; in __copy_user()
135 while (n >= 4) in __copy_user()
[all …]
/linux-2.6.39/arch/cris/arch-v10/lib/
Dusercopy.c46 register int n __asm__ ("r12") = pn; in __copy_user()
56 && n >= 3) in __copy_user()
61 n--; in __copy_user()
67 n -= 2; in __copy_user()
72 if (n >= 44*2) /* Break even between movem and in __copy_user()
149 /* Outputs */ : "=r" (dst), "=r" (src), "=r" (n), "=r" (retn) in __copy_user()
150 /* Inputs */ : "0" (dst), "1" (src), "2" (n), "3" (retn)); in __copy_user()
159 while (n >= 16) in __copy_user()
162 n -= 16; in __copy_user()
167 while (n >= 4) in __copy_user()
[all …]
/linux-2.6.39/arch/x86/lib/
Dusercopy_32.c24 static inline int __movsl_is_ok(unsigned long a1, unsigned long a2, unsigned long n) in __movsl_is_ok() argument
27 if (n >= 64 && ((a1 ^ a2) & movsl_mask.mask)) in __movsl_is_ok()
32 #define movsl_is_ok(a1, a2, n) \ argument
33 __movsl_is_ok((unsigned long)(a1), (unsigned long)(a2), (n))
156 clear_user(void __user *to, unsigned long n) in clear_user() argument
159 if (access_ok(VERIFY_WRITE, to, n)) in clear_user()
160 __do_clear_user(to, n); in clear_user()
161 return n; in clear_user()
177 __clear_user(void __user *to, unsigned long n) in __clear_user() argument
179 __do_clear_user(to, n); in __clear_user()
[all …]
/linux-2.6.39/arch/ia64/include/asm/sn/
Daddrs.h110 #define NASID_SPACE(n) ((u64)(n) << NASID_SHIFT) argument
111 #define REMOTE_ADDR(n,a) (NASID_SPACE(n) | (a)) argument
116 #define GLOBAL_MMR_ADDR(n,a) (GLOBAL_MMR_SPACE | REMOTE_ADDR(n,a)) argument
117 #define GLOBAL_MMR_PHYS_ADDR(n,a) (GLOBAL_PHYS_MMR_SPACE | REMOTE_ADDR(n,a)) argument
118 #define GLOBAL_CAC_ADDR(n,a) (CAC_BASE | REMOTE_ADDR(n,a)) argument
119 #define CHANGE_NASID(n,x) ((void *)(((u64)(x) & ~NASID_MASK) | NASID_SPACE(n))) argument
120 #define IS_TIO_NASID(n) ((n) & 1) argument
192 #define NODE_SWIN_BASE(n, w) ((w == 0) ? NODE_BWIN_BASE((n), SWIN0_BIGWIN) \ argument
193 : RAW_NODE_SWIN_BASE(n, w))
194 #define TIO_SWIN_BASE(n, w) (TIO_IO_BASE(n) + \ argument
[all …]
/linux-2.6.39/drivers/vhost/
Dtest.c39 static void handle_vq(struct vhost_test *n) in handle_vq() argument
41 struct vhost_virtqueue *vq = &n->dev.vqs[VHOST_TEST_VQ]; in handle_vq()
55 head = vhost_get_vq_desc(&n->dev, vq, vq->iov, in handle_vq()
81 vhost_add_used_and_signal(&n->dev, vq, head, 0); in handle_vq()
96 struct vhost_test *n = container_of(vq->dev, struct vhost_test, dev); in handle_vq_kick() local
98 handle_vq(n); in handle_vq_kick()
103 struct vhost_test *n = kmalloc(sizeof *n, GFP_KERNEL); in vhost_test_open() local
107 if (!n) in vhost_test_open()
110 dev = &n->dev; in vhost_test_open()
111 n->vqs[VHOST_TEST_VQ].handle_kick = handle_vq_kick; in vhost_test_open()
[all …]
/linux-2.6.39/arch/x86/include/asm/
Dsyscall.h73 unsigned int i, unsigned int n, in syscall_get_arguments() argument
76 BUG_ON(i + n > 6); in syscall_get_arguments()
77 memcpy(args, &regs->bx + i, n * sizeof(args[0])); in syscall_get_arguments()
82 unsigned int i, unsigned int n, in syscall_set_arguments() argument
85 BUG_ON(i + n > 6); in syscall_set_arguments()
86 memcpy(&regs->bx + i, args, n * sizeof(args[0])); in syscall_set_arguments()
93 unsigned int i, unsigned int n, in syscall_get_arguments() argument
100 if (!n--) break; in syscall_get_arguments()
103 if (!n--) break; in syscall_get_arguments()
106 if (!n--) break; in syscall_get_arguments()
[all …]
/linux-2.6.39/fs/befs/
Dendian.h15 fs64_to_cpu(const struct super_block *sb, fs64 n) in fs64_to_cpu() argument
18 return le64_to_cpu((__force __le64)n); in fs64_to_cpu()
20 return be64_to_cpu((__force __be64)n); in fs64_to_cpu()
24 cpu_to_fs64(const struct super_block *sb, u64 n) in cpu_to_fs64() argument
27 return (__force fs64)cpu_to_le64(n); in cpu_to_fs64()
29 return (__force fs64)cpu_to_be64(n); in cpu_to_fs64()
33 fs32_to_cpu(const struct super_block *sb, fs32 n) in fs32_to_cpu() argument
36 return le32_to_cpu((__force __le32)n); in fs32_to_cpu()
38 return be32_to_cpu((__force __be32)n); in fs32_to_cpu()
42 cpu_to_fs32(const struct super_block *sb, u32 n) in cpu_to_fs32() argument
[all …]
/linux-2.6.39/net/sched/
Dcls_u32.c105 struct tc_u_knode *n; in u32_classify() local
115 n = ht->ht[sel]; in u32_classify()
118 if (n) { in u32_classify()
119 struct tc_u32_key *key = n->sel.keys; in u32_classify()
122 n->pf->rcnt += 1; in u32_classify()
127 if ((skb->mark & n->mark.mask) != n->mark.val) { in u32_classify()
128 n = n->next; in u32_classify()
131 n->mark.success++; in u32_classify()
135 for (i = n->sel.nkeys; i > 0; i--, key++) { in u32_classify()
146 n = n->next; in u32_classify()
[all …]
/linux-2.6.39/sound/isa/galaxy/
Dgalaxy.c207 static int __devinit snd_galaxy_match(struct device *dev, unsigned int n) in snd_galaxy_match() argument
209 if (!enable[n]) in snd_galaxy_match()
212 switch (port[n]) { in snd_galaxy_match()
217 config[n] |= GALAXY_CONFIG_SBA_220; in snd_galaxy_match()
220 config[n] |= GALAXY_CONFIG_SBA_240; in snd_galaxy_match()
223 config[n] |= GALAXY_CONFIG_SBA_260; in snd_galaxy_match()
226 config[n] |= GALAXY_CONFIG_SBA_280; in snd_galaxy_match()
229 dev_err(dev, "invalid port %#lx\n", port[n]); in snd_galaxy_match()
233 switch (wss_port[n]) { in snd_galaxy_match()
238 config[n] |= GALAXY_CONFIG_WSS_ENABLE | GALAXY_CONFIG_WSSA_530; in snd_galaxy_match()
[all …]
/linux-2.6.39/fs/ufs/
Dswab.h26 fs64_to_cpu(struct super_block *sbp, __fs64 n) in fs64_to_cpu() argument
29 return le64_to_cpu((__force __le64)n); in fs64_to_cpu()
31 return be64_to_cpu((__force __be64)n); in fs64_to_cpu()
35 cpu_to_fs64(struct super_block *sbp, u64 n) in cpu_to_fs64() argument
38 return (__force __fs64)cpu_to_le64(n); in cpu_to_fs64()
40 return (__force __fs64)cpu_to_be64(n); in cpu_to_fs64()
44 fs32_to_cpu(struct super_block *sbp, __fs32 n) in fs32_to_cpu() argument
47 return le32_to_cpu((__force __le32)n); in fs32_to_cpu()
49 return be32_to_cpu((__force __be32)n); in fs32_to_cpu()
53 cpu_to_fs32(struct super_block *sbp, u32 n) in cpu_to_fs32() argument
[all …]
/linux-2.6.39/drivers/video/
Dc2p_core.h32 static inline u32 get_mask(unsigned int n) in get_mask() argument
34 switch (n) { in get_mask()
60 static inline void transp8(u32 d[], unsigned int n, unsigned int m) in transp8() argument
62 u32 mask = get_mask(n); in transp8()
67 _transp(d, 0, 1, n, mask); in transp8()
69 _transp(d, 2, 3, n, mask); in transp8()
71 _transp(d, 4, 5, n, mask); in transp8()
73 _transp(d, 6, 7, n, mask); in transp8()
78 _transp(d, 0, 2, n, mask); in transp8()
79 _transp(d, 1, 3, n, mask); in transp8()
[all …]

12345678910>>...123