/arch/arm/plat-samsung/ |
H A D | pm-common.c | 26 * @count: Size of the ptr array. 31 void s3c_pm_do_save(struct sleep_save *ptr, int count) argument 33 for (; count > 0; count--, ptr++) { 42 * @count: Size of the ptr array. 50 void s3c_pm_do_restore(const struct sleep_save *ptr, int count) argument 52 for (; count > 0; count--, ptr++) { 71 void s3c_pm_do_restore_core(const struct sleep_save *ptr, int count) argument 73 for (; count > [all...] |
/arch/hexagon/mm/ |
H A D | uaccess.c | 35 __kernel_size_t __clear_user_hexagon(void __user *dest, unsigned long count) argument 39 while (count > PAGE_SIZE) { 43 return count - (PAGE_SIZE - uncleared); 44 count -= PAGE_SIZE; 47 if (count) 48 count = __copy_to_user_hexagon(dest, &empty_zero_page, count); 50 return count; 53 unsigned long clear_user_hexagon(void __user *dest, unsigned long count) argument 55 if (!access_ok(VERIFY_WRITE, dest, count)) [all...] |
/arch/mips/kernel/ |
H A D | csrc-sb1250.c | 38 unsigned int count; local 40 count = G_SCD_TIMER_CNT(__raw_readq(IOADDR(A_SCD_TIMER_REGISTER(SB1250_HPT_NUM, R_SCD_TIMER_CNT)))); 42 return SB1250_HPT_VALUE - count;
|
/arch/mips/paravirt/ |
H A D | serial.c | 25 static int paravirt_put_chars(u32 vtermno, const char *buf, int count) argument 28 (unsigned long)buf, count); 30 return count;
|
/arch/mn10300/kernel/ |
H A D | io.c | 19 void __outsl(unsigned long addr, const void *buffer, int count) argument 24 while (count--) {
|
/arch/tile/lib/ |
H A D | checksum.c | 21 int odd, count; local 32 count = len >> 1; /* nr of 16-bit words.. */ 33 if (count) { 36 count--; 40 count >>= 1; /* nr of 32-bit words.. */ 41 if (count) { 46 count--; 50 count >>= 1; /* nr of 64-bit words.. */ 57 BUG_ON(count >= 65530); 59 while (count) { [all...] |
H A D | strnlen_32.c | 19 size_t strnlen(const char *s, size_t count) argument 28 /* Avoid page fault risk by not reading any bytes when count is 0. */ 29 if (count == 0) 36 if (bytes_read >= count) { 38 return count; 45 return (len < count ? len : count);
|
H A D | strnlen_64.c | 20 size_t strnlen(const char *s, size_t count) argument 29 /* Avoid page fault risk by not reading any bytes when count is 0. */ 30 if (count == 0) 37 if (bytes_read >= count) { 39 return count; 46 return (len < count ? len : count);
|
/arch/x86/include/asm/ |
H A D | mach_timer.h | 29 * (interrupt on terminal count mode), binary count, 30 * load 5 * LATCH count, (LSB and MSB) to begin countdown. 35 outb_p(CALIBRATE_LATCH & 0xff, 0x42); /* LSB of count */ 36 outb_p(CALIBRATE_LATCH >> 8, 0x42); /* MSB of count */ 41 unsigned long count = 0; local 43 count++; 45 *count_p = count;
|
H A D | mutex_32.h | 15 * __mutex_fastpath_lock - try to take the lock by moving the count 17 * @count: pointer of type atomic_t 20 * Change the count from 1 to a value lower than 1, and call <fn> if it 24 #define __mutex_fastpath_lock(count, fail_fn) \ 28 typecheck(atomic_t *, count); \ 36 : "a" (count) \ 42 * __mutex_fastpath_lock_retval - try to take the lock by moving the count 44 * @count: pointer of type atomic_t 46 * Change the count from 1 to a value lower than 1. This function returns 0 49 static inline int __mutex_fastpath_lock_retval(atomic_t *count) argument 100 __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *)) argument [all...] |
H A D | mutex_64.h | 52 * __mutex_fastpath_lock_retval - try to take the lock by moving the count 54 * @count: pointer of type atomic_t 56 * Change the count from 1 to a value lower than 1. This function returns 0 59 static inline int __mutex_fastpath_lock_retval(atomic_t *count) argument 61 if (unlikely(atomic_dec_return(count) < 0)) 111 * @count: pointer of type atomic_t 114 * Change the count from 1 to 0 and return 1 (success), or return 0 (failure) 118 static inline int __mutex_fastpath_trylock(atomic_t *count, argument 121 if (likely(atomic_cmpxchg(count, 1, 0) == 1))
|
/arch/arm64/kernel/ |
H A D | io.c | 26 void __memcpy_fromio(void *to, const volatile void __iomem *from, size_t count) argument 29 while (count) { 30 count--; 41 void __memcpy_toio(volatile void __iomem *to, const void *from, size_t count) argument 44 while (count) { 45 count--; 56 void __memset_io(volatile void __iomem *dst, int c, size_t count) argument 58 while (count) { 59 count--;
|
/arch/frv/kernel/ |
H A D | uaccess.c | 20 long strncpy_from_user(char *dst, const char __user *src, long count) argument 26 BUG_ON(count < 0); 39 if ((unsigned long) count > max) { 40 memset(dst + max, 0, count - max); 41 count = max; 45 for (; count > 0; count--, p++, src++) { 57 if (count > 0) 58 memset(p, 0, count); /* clear remainder of buffer [security] */ 72 long strnlen_user(const char __user *src, long count) argument [all...] |
/arch/ia64/include/asm/ |
H A D | mutex.h | 12 * __mutex_fastpath_lock - try to take the lock by moving the count 14 * @count: pointer of type atomic_t 17 * Change the count from 1 to a value lower than 1, and call <fail_fn> if 22 __mutex_fastpath_lock(atomic_t *count, void (*fail_fn)(atomic_t *)) argument 24 if (unlikely(ia64_fetchadd4_acq(count, -1) != 1)) 25 fail_fn(count); 29 * __mutex_fastpath_lock_retval - try to take the lock by moving the count 31 * @count: pointer of type atomic_t 33 * Change the count from 1 to a value lower than 1. This function returns 0 37 __mutex_fastpath_lock_retval(atomic_t *count) argument 58 __mutex_fastpath_unlock(atomic_t *count, void (*fail_fn)(atomic_t *)) argument 83 __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *)) argument [all...] |
/arch/m68k/lib/ |
H A D | memset.c | 10 void *memset(void *s, int c, size_t count) argument 15 if (!count) 24 count--; 26 if (count > 2 && (long)s & 2) { 30 count -= 2; 32 temp = count >> 2; 63 if (count & 2) { 68 if (count & 1) {
|
/arch/mips/fw/arc/ |
H A D | arc_con.c | 17 unsigned count) 20 while (count--) { 16 prom_console_write(struct console *co, const char *s, unsigned count) argument
|
/arch/powerpc/platforms/pseries/ |
H A D | hvconsole.c | 39 * @count: not used? 41 int hvc_get_chars(uint32_t vtermno, char *buf, int count) argument 66 * @count: Send this number of characters. 68 int hvc_put_chars(uint32_t vtermno, const char *buf, int count) argument 74 /* hcall will ret H_PARAMETER if 'count' exceeds firmware max.*/ 75 if (count > MAX_VIO_PUT_CHARS) 76 count = MAX_VIO_PUT_CHARS; 78 ret = plpar_hcall_norets(H_PUT_TERM_CHAR, vtermno, count, 82 return count;
|
/arch/s390/crypto/ |
H A D | sha.h | 26 u64 count; /* message length in bytes */ member in struct:s390_sha_ctx
|
/arch/sh/include/asm/ |
H A D | mutex-llsc.h | 22 __mutex_fastpath_lock(atomic_t *count, void (*fail_fn)(atomic_t *)) argument 32 : "r" (&(count)->counter) 36 fail_fn(count); 40 __mutex_fastpath_lock_retval(atomic_t *count) argument 50 : "r" (&(count)->counter) 60 __mutex_fastpath_unlock(atomic_t *count, void (*fail_fn)(atomic_t *)) argument 70 : "r" (&(count)->counter) 74 fail_fn(count); 88 __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *)) argument 104 : "r" (&count [all...] |
/arch/x86/kernel/cpu/ |
H A D | rdrand.c | 46 int i, count, ok; local 51 for (count = i = 0; i < RESEED_LOOP; i++) { 54 count++; 57 if (count != RESEED_LOOP)
|
/arch/x86/oprofile/ |
H A D | op_counter.h | 19 unsigned long count; member in struct:op_counter_config
|
/arch/alpha/oprofile/ |
H A D | op_model_ev4.c | 25 unsigned long ctl = 0, count, hilo; local 46 extent. Take the interrupt count selected by the user, 49 count = ctr[0].count; 50 if (count <= 4096) 51 count = 4096, hilo = 1; 53 count = 65536, hilo = 0; 54 ctr[0].count = count; 57 count [all...] |
H A D | op_model_ev6.c | 48 unsigned long count = ctr[i].count; local 52 if (count > 0x100000) 53 count = 0x100000; 54 ctr[i].count = count; 55 reset |= (0x100000 - count) << (i ? 6 : 28); 56 if (count != 0x100000) 75 /* CTR is a counter for which the user has requested an interrupt count 76 in between one of the widths selectable in hardware. Reset the count [all...] |
/arch/arc/mm/ |
H A D | extable.c | 52 long count) 54 return __arc_strncpy_from_user(dst, src, count); 51 arc_strncpy_from_user_noinline(char *dst, const char __user *src, long count) argument
|
/arch/arm/include/asm/xen/ |
H A D | hypercall.h | 43 int HYPERVISOR_console_io(int cmd, int count, char *str); 44 int HYPERVISOR_grant_table_op(unsigned int cmd, void *uop, unsigned int count); 72 int count, int *success_count, domid_t domid) 71 MULTI_mmu_update(struct multicall_entry *mcl, struct mmu_update *req, int count, int *success_count, domid_t domid) argument
|