Home
last modified time | relevance | path

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

12345678910>>...30

/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 …]
/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 …]
/arch/powerpc/include/asm/
Dppc_asm.h64 #define SAVE_GPR(n, base) std n,GPR0+8*(n)(base) argument
65 #define REST_GPR(n, base) ld n,GPR0+8*(n)(base) argument
69 #define SAVE_GPR(n, base) stw n,GPR0+4*(n)(base) argument
70 #define REST_GPR(n, base) lwz n,GPR0+4*(n)(base) argument
87 #define SAVE_2GPRS(n, base) SAVE_GPR(n, base); SAVE_GPR(n+1, base) argument
88 #define SAVE_4GPRS(n, base) SAVE_2GPRS(n, base); SAVE_2GPRS(n+2, base) argument
89 #define SAVE_8GPRS(n, base) SAVE_4GPRS(n, base); SAVE_4GPRS(n+4, base) argument
90 #define SAVE_10GPRS(n, base) SAVE_8GPRS(n, base); SAVE_2GPRS(n+8, base) argument
91 #define REST_2GPRS(n, base) REST_GPR(n, base); REST_GPR(n+1, base) argument
92 #define REST_4GPRS(n, base) REST_2GPRS(n, base); REST_2GPRS(n+2, base) argument
[all …]
/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 …]
/arch/arm/plat-omap/include/mach/
Ddma.h73 #define OMAP1_DMA_CH_BASE(n) (0x40 * (n) + 0x00) argument
74 #define OMAP1_DMA_CSDP(n) (0x40 * (n) + 0x00) argument
75 #define OMAP1_DMA_CCR(n) (0x40 * (n) + 0x02) argument
76 #define OMAP1_DMA_CICR(n) (0x40 * (n) + 0x04) argument
77 #define OMAP1_DMA_CSR(n) (0x40 * (n) + 0x06) argument
78 #define OMAP1_DMA_CEN(n) (0x40 * (n) + 0x10) argument
79 #define OMAP1_DMA_CFN(n) (0x40 * (n) + 0x12) argument
80 #define OMAP1_DMA_CSFI(n) (0x40 * (n) + 0x14) argument
81 #define OMAP1_DMA_CSEI(n) (0x40 * (n) + 0x16) argument
82 #define OMAP1_DMA_CPC(n) (0x40 * (n) + 0x18) /* 15xx only */ argument
[all …]
/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 …]
/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 …]
/arch/x86/include/asm/
Dsyscall.h71 unsigned int i, unsigned int n, in syscall_get_arguments() argument
74 BUG_ON(i + n > 6); in syscall_get_arguments()
75 memcpy(args, &regs->bx + i, n * sizeof(args[0])); in syscall_get_arguments()
80 unsigned int i, unsigned int n, in syscall_set_arguments() argument
83 BUG_ON(i + n > 6); in syscall_set_arguments()
84 memcpy(&regs->bx + i, args, n * sizeof(args[0])); in syscall_set_arguments()
91 unsigned int i, unsigned int n, in syscall_get_arguments() argument
98 if (!n--) break; in syscall_get_arguments()
101 if (!n--) break; in syscall_get_arguments()
104 if (!n--) break; in syscall_get_arguments()
[all …]
Duaccess_32.h15 (void __user *to, const void *from, unsigned long n);
17 (void *to, const void __user *from, unsigned long n);
19 (void *to, const void __user *from, unsigned long n);
21 (void *to, const void __user *from, unsigned long n);
23 (void *to, const void __user *from, unsigned long n);
45 __copy_to_user_inatomic(void __user *to, const void *from, unsigned long n) in __copy_to_user_inatomic() argument
47 if (__builtin_constant_p(n)) { in __copy_to_user_inatomic()
50 switch (n) { in __copy_to_user_inatomic()
65 return __copy_to_user_ll(to, from, n); in __copy_to_user_inatomic()
83 __copy_to_user(void __user *to, const void *from, unsigned long n) in __copy_to_user() argument
[all …]
Ddelay.h20 #define udelay(n) (__builtin_constant_p(n) ? \ argument
21 ((n) > 20000 ? __bad_udelay() : __const_udelay((n) * 0x10c7ul)) : \
22 __udelay(n))
25 #define ndelay(n) (__builtin_constant_p(n) ? \ argument
26 ((n) > 20000 ? __bad_ndelay() : __const_udelay((n) * 5ul)) : \
27 __ndelay(n))
/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 …]
/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 …]
/arch/powerpc/lib/
Dusercopy_64.c12 unsigned long copy_from_user(void *to, const void __user *from, unsigned long n) in copy_from_user() argument
14 if (likely(access_ok(VERIFY_READ, from, n))) in copy_from_user()
15 n = __copy_from_user(to, from, n); in copy_from_user()
17 memset(to, 0, n); in copy_from_user()
18 return n; in copy_from_user()
21 unsigned long copy_to_user(void __user *to, const void *from, unsigned long n) in copy_to_user() argument
23 if (likely(access_ok(VERIFY_WRITE, to, n))) in copy_to_user()
24 n = __copy_to_user(to, from, n); in copy_to_user()
25 return n; in copy_to_user()
29 unsigned long n) in copy_in_user() argument
[all …]
/arch/mn10300/lib/
Dusercopy.c15 __generic_copy_to_user(void *to, const void *from, unsigned long n) in __generic_copy_to_user() argument
17 if (access_ok(VERIFY_WRITE, to, n)) in __generic_copy_to_user()
18 __copy_user(to, from, n); in __generic_copy_to_user()
19 return n; in __generic_copy_to_user()
23 __generic_copy_from_user(void *to, const void *from, unsigned long n) in __generic_copy_from_user() argument
25 if (access_ok(VERIFY_READ, from, n)) in __generic_copy_from_user()
26 __copy_user_zeroing(to, from, n); in __generic_copy_from_user()
27 return n; in __generic_copy_from_user()
116 __clear_user(void *to, unsigned long n) in __clear_user() argument
118 __do_clear_user(to, n); in __clear_user()
[all …]
/arch/ia64/include/asm/
Dsyscall.h83 struct pt_regs *regs, unsigned int i, unsigned int n,
87 unsigned int i, unsigned int n, in syscall_get_arguments() argument
90 BUG_ON(i + n > 6); in syscall_get_arguments()
94 switch (i + n) { in syscall_get_arguments()
96 if (!n--) break; in syscall_get_arguments()
99 if (!n--) break; in syscall_get_arguments()
102 if (!n--) break; in syscall_get_arguments()
105 if (!n--) break; in syscall_get_arguments()
108 if (!n--) break; in syscall_get_arguments()
111 if (!n--) break; in syscall_get_arguments()
[all …]
/arch/s390/include/asm/
Duaccess.h207 __copy_to_user(void __user *to, const void *from, unsigned long n) in __copy_to_user() argument
209 if (__builtin_constant_p(n) && (n <= 256)) in __copy_to_user()
210 return uaccess.copy_to_user_small(n, to, from); in __copy_to_user()
212 return uaccess.copy_to_user(n, to, from); in __copy_to_user()
232 copy_to_user(void __user *to, const void *from, unsigned long n) in copy_to_user() argument
235 if (access_ok(VERIFY_WRITE, to, n)) in copy_to_user()
236 n = __copy_to_user(to, from, n); in copy_to_user()
237 return n; in copy_to_user()
258 __copy_from_user(void *to, const void __user *from, unsigned long n) in __copy_from_user() argument
260 if (__builtin_constant_p(n) && (n <= 256)) in __copy_from_user()
[all …]
Dsyscall.h50 unsigned int i, unsigned int n, in syscall_get_arguments() argument
55 BUG_ON(i + n > 6); in syscall_get_arguments()
60 if (i + n == 6) in syscall_get_arguments()
61 args[--n] = regs->args[0] & mask; in syscall_get_arguments()
62 while (n-- > 0) in syscall_get_arguments()
63 if (i + n > 0) in syscall_get_arguments()
64 args[n] = regs->gprs[2 + i + n] & mask; in syscall_get_arguments()
71 unsigned int i, unsigned int n, in syscall_set_arguments() argument
74 BUG_ON(i + n > 6); in syscall_set_arguments()
75 if (i + n == 6) in syscall_set_arguments()
[all …]
/arch/um/kernel/skas/
Duaccess.c64 int n, faulted; in do_op_one_page() local
78 n = (*op)(addr, len, arg); in do_op_one_page()
80 n = -1; in do_op_one_page()
86 return n; in do_op_one_page()
92 int size, remain, n; in buffer_op() local
97 n = do_op_one_page(addr, size, is_write, op, arg); in buffer_op()
98 if (n != 0) { in buffer_op()
99 remain = (n < 0 ? remain : 0); in buffer_op()
109 n = do_op_one_page(addr, PAGE_SIZE, is_write, op, arg); in buffer_op()
110 if (n != 0) { in buffer_op()
[all …]
/arch/arm/mach-at91/include/mach/
Dat91sam9_smc.h19 #define AT91_SMC_SETUP(n) (AT91_SMC + 0x00 + ((n)*0x10)) /* Setup Register for CS n */ argument
29 #define AT91_SMC_PULSE(n) (AT91_SMC + 0x04 + ((n)*0x10)) /* Pulse Register for CS n */ argument
39 #define AT91_SMC_CYCLE(n) (AT91_SMC + 0x08 + ((n)*0x10)) /* Cycle Register for CS n */ argument
45 #define AT91_SMC_MODE(n) (AT91_SMC + 0x0c + ((n)*0x10)) /* Mode Register for CS n */ argument
70 #define AT91_SMC1_SETUP(n) (AT91_SMC1 + 0x00 + ((n)*0x10)) /* Setup Register for CS n */ argument
71 #define AT91_SMC1_PULSE(n) (AT91_SMC1 + 0x04 + ((n)*0x10)) /* Pulse Register for CS n */ argument
72 #define AT91_SMC1_CYCLE(n) (AT91_SMC1 + 0x08 + ((n)*0x10)) /* Cycle Register for CS n */ argument
73 #define AT91_SMC1_MODE(n) (AT91_SMC1 + 0x0c + ((n)*0x10)) /* Mode Register for CS n */ argument
/arch/m32r/lib/
Dusercopy.c15 __generic_copy_to_user(void __user *to, const void *from, unsigned long n) in __generic_copy_to_user() argument
18 if (access_ok(VERIFY_WRITE, to, n)) in __generic_copy_to_user()
19 __copy_user(to,from,n); in __generic_copy_to_user()
20 return n; in __generic_copy_to_user()
24 __generic_copy_from_user(void *to, const void __user *from, unsigned long n) in __generic_copy_from_user() argument
27 if (access_ok(VERIFY_READ, from, n)) in __generic_copy_from_user()
28 __copy_user_zeroing(to,from,n); in __generic_copy_from_user()
30 memset(to, 0, n); in __generic_copy_from_user()
31 return n; in __generic_copy_from_user()
224 clear_user(void __user *to, unsigned long n) in clear_user() argument
[all …]
/arch/ia64/kernel/
Dmca_drv.h56 #define peidx_cache_check_idx(p, n) (n) argument
57 #define peidx_tlb_check_idx(p, n) (peidx_cache_check_idx(p, peidx_cache_check_num(p)) + n) argument
58 #define peidx_bus_check_idx(p, n) (peidx_tlb_check_idx(p, peidx_tlb_check_num(p)) + n) argument
59 #define peidx_reg_file_check_idx(p, n) (peidx_bus_check_idx(p, peidx_bus_check_num(p)) + n) argument
60 #define peidx_ms_check_idx(p, n) (peidx_reg_file_check_idx(p, peidx_reg_file_check_num(p)) + argument
62 #define peidx_mod_error_info(p, name, n) \ argument
63 ({ int __idx = peidx_##name##_idx(p, n); \
65 if (peidx_##name##_num(p) > n) /*BUG*/ \
69 #define peidx_cache_check(p, n) peidx_mod_error_info(p, cache_check, n) argument
70 #define peidx_tlb_check(p, n) peidx_mod_error_info(p, tlb_check, n) argument
[all …]
/arch/sh/include/asm/
Ddelay.h18 #define udelay(n) (__builtin_constant_p(n) ? \ argument
19 ((n) > 20000 ? __bad_udelay() : __const_udelay((n) * 0x10c6ul)) : \
20 __udelay(n))
22 #define ndelay(n) (__builtin_constant_p(n) ? \ argument
23 ((n) > 20000 ? __bad_ndelay() : __const_udelay((n) * 5ul)) : \
24 __ndelay(n))
/arch/avr32/include/asm/
Ddelay.h18 #define udelay(n) (__builtin_constant_p(n) ? \ argument
19 ((n) > 20000 ? __bad_udelay() : __const_udelay((n) * 0x10c6ul)) : \
20 __udelay(n))
22 #define ndelay(n) (__builtin_constant_p(n) ? \ argument
23 ((n) > 20000 ? __bad_ndelay() : __const_udelay((n) * 5ul)) : \
24 __ndelay(n))
/arch/s390/lib/
Dstring.c28 static inline char *__strnend(const char *s, size_t n) in __strnend() argument
31 const char *p = s + n; in __strnend()
58 size_t strnlen(const char * s, size_t n) in strnlen() argument
60 return __strnend(s, n) - s; in strnlen()
117 char *strncpy(char *dest, const char *src, size_t n) in strncpy() argument
119 size_t len = __strnend(src, n) - src; in strncpy()
120 __builtin_memset(dest + len, 0, n - len); in strncpy()
155 size_t strlcat(char *dest, const char *src, size_t n) in strlcat() argument
161 if (dsize < n) { in strlcat()
163 n -= dsize; in strlcat()
[all …]
/arch/m68k/include/asm/
Dide.h72 #define insw(port, addr, n) raw_insw((u16 *)port, addr, n) argument
74 #define insl(port, addr, n) raw_insl((u32 *)port, addr, n) argument
77 #define outsw(port, addr, n) raw_outsw((u16 *)port, addr, n) argument
79 #define outsl(port, addr, n) raw_outsl((u32 *)port, addr, n) argument
82 #define __ide_mm_insw(port, addr, n) raw_insw((u16 *)port, addr, n) argument
84 #define __ide_mm_insl(port, addr, n) raw_insl((u32 *)port, addr, n) argument
87 #define __ide_mm_outsw(port, addr, n) raw_outsw((u16 *)port, addr, n) argument
89 #define __ide_mm_outsl(port, addr, n) raw_outsl((u32 *)port, addr, n) argument
91 #define insw_swapw(port, addr, n) raw_insw_swapw((u16 *)port, addr, n) argument
92 #define outsw_swapw(port, addr, n) raw_outsw_swapw((u16 *)port, addr, n) argument

12345678910>>...30