/arch/xtensa/kernel/ |
H A D | io.c | 20 void outsb(unsigned long addr, const void *src, unsigned long count) { argument 21 while (count) { 22 count -= 1; 29 void outsw(unsigned long addr, const void *src, unsigned long count) { argument 30 while (count) { 31 count -= 2; 38 void outsl(unsigned long addr, const void *src, unsigned long count) { argument 39 while (count) { 40 count -= 4; 47 void insb(unsigned long addr, void *dst, unsigned long count) { argument 56 insw(unsigned long addr, void *dst, unsigned long count) argument 65 insl(unsigned long addr, void *dst, unsigned long count) argument [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/x86/include/asm/ |
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 47 * Change the count from 1 to a value lower than 1, and call <fail_fn> if it 51 static inline int __mutex_fastpath_lock_retval(atomic_t *count, argument 103 __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *)) argument [all...] |
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_64.h | 37 * __mutex_fastpath_lock_retval - try to take the lock by moving the count 39 * @count: pointer of type atomic_t 42 * Change the count from 1 to a value lower than 1, and call <fail_fn> if 46 static inline int __mutex_fastpath_lock_retval(atomic_t *count, argument 49 if (unlikely(atomic_dec_return(count) < 0)) 50 return fail_fn(count); 84 * @count: pointer of type atomic_t 87 * Change the count from 1 to 0 and return 1 (success), or return 0 (failure) 91 static inline int __mutex_fastpath_trylock(atomic_t *count, argument 94 if (likely(atomic_cmpxchg(count, [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 34 * Change the count from 1 to a value lower than 1, and call <fail_fn> if 39 __mutex_fastpath_lock_retval(atomic_t *count, in argument 60 __mutex_fastpath_unlock(atomic_t *count, void (*fail_fn)(atomic_t *)) argument 85 __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *)) argument [all...] |
/arch/alpha/include/asm/ |
H A D | rwsem.h | 28 oldcount = sem->count; 29 sem->count += RWSEM_ACTIVE_READ_BIAS; 41 :"=&r" (oldcount), "=m" (sem->count), "=&r" (temp) 42 :"Ir" (RWSEM_ACTIVE_READ_BIAS), "m" (sem->count) : "memory"); 55 res = sem->count; 61 res = cmpxchg(&sem->count, old, new); 70 oldcount = sem->count; 71 sem->count += RWSEM_ACTIVE_WRITE_BIAS; 83 :"=&r" (oldcount), "=m" (sem->count), "=&r" (temp) 84 :"Ir" (RWSEM_ACTIVE_WRITE_BIAS), "m" (sem->count) 129 long count; local [all...] |
/arch/mips/include/asm/mach-generic/ |
H A D | ide.h | 60 unsigned int count) 63 insw(port, addr, count); 64 __ide_flush_dcache_range((unsigned long)addr, count * 2); 68 static inline void __ide_insl(unsigned long port, void *addr, unsigned int count) argument 71 insl(port, addr, count); 72 __ide_flush_dcache_range((unsigned long)addr, count * 4); 77 unsigned long count) 80 outsw(port, addr, count); 81 __ide_flush_dcache_range((unsigned long)addr, count * 2); 86 unsigned long count) 59 __ide_insw(unsigned long port, void *addr, unsigned int count) argument 76 __ide_outsw(unsigned long port, const void *addr, unsigned long count) argument 85 __ide_outsl(unsigned long port, const void *addr, unsigned long count) argument 94 __ide_mm_insw(void __iomem *port, void *addr, u32 count) argument 102 __ide_mm_insl(void __iomem *port, void *addr, u32 count) argument 110 __ide_mm_outsw(void __iomem *port, void *addr, u32 count) argument 118 __ide_mm_outsl(void __iomem * port, void *addr, u32 count) argument [all...] |
/arch/powerpc/include/asm/ |
H A D | mutex.h | 65 * __mutex_fastpath_lock - try to take the lock by moving the count 67 * @count: pointer of type atomic_t 70 * Change the count from 1 to a value lower than 1, and call <fail_fn> if 75 __mutex_fastpath_lock(atomic_t *count, void (*fail_fn)(atomic_t *)) argument 77 if (unlikely(__mutex_dec_return_lock(count) < 0)) 78 fail_fn(count); 82 * __mutex_fastpath_lock_retval - try to take the lock by moving the count 84 * @count: pointer of type atomic_t 87 * Change the count from 1 to a value lower than 1, and call <fail_fn> if 92 __mutex_fastpath_lock_retval(atomic_t *count, in argument 109 __mutex_fastpath_unlock(atomic_t *count, void (*fail_fn)(atomic_t *)) argument 127 __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *)) argument [all...] |
H A D | hvconsole.h | 34 * Vio firmware always attempts to fetch MAX_VIO_GET_CHARS chars. The 'count' 37 extern int hvc_get_chars(uint32_t vtermno, char *buf, int count); 38 extern int hvc_put_chars(uint32_t vtermno, const char *buf, int count);
|
/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, int (*fail_fn)(atomic_t *)) argument 50 : "r" (&(count)->counter) 54 __res = fail_fn(count); 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, in argument [all...] |
/arch/sh/kernel/ |
H A D | io.c | 19 void memcpy_fromio(void *to, const volatile void __iomem *from, unsigned long count) argument 26 if ((count >= 0x20) && 46 "cmp/hi %1, %2 ! T if 32 > count \n\t" 53 : "=&r" (to), "=&r" (count), 56 : "7"(from), "0" (to), "1" (count) 62 for (; count > 3; count -= 4) { 69 for (; count > 0; count--) { 82 void memcpy_toio(volatile void __iomem *to, const void *from, unsigned long count) argument 106 memset_io(volatile void __iomem *dst, int c, unsigned long count) argument [all...] |
/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...] |
/arch/blackfin/include/asm/ |
H A D | io.h | 36 extern void outsb(unsigned long port, const void *addr, unsigned long count); 37 extern void outsw(unsigned long port, const void *addr, unsigned long count); 38 extern void outsw_8(unsigned long port, const void *addr, unsigned long count); 39 extern void outsl(unsigned long port, const void *addr, unsigned long count); 44 extern void insb(unsigned long port, void *addr, unsigned long count); 45 extern void insw(unsigned long port, void *addr, unsigned long count); 46 extern void insw_8(unsigned long port, void *addr, unsigned long count); 47 extern void insl(unsigned long port, void *addr, unsigned long count); 48 extern void insl_16(unsigned long port, void *addr, unsigned long count); 53 extern void dma_outsb(unsigned long port, const void *addr, unsigned short count); [all...] |
/arch/arm/kernel/ |
H A D | io.c | 9 void _memcpy_fromio(void *to, const volatile void __iomem *from, size_t count) argument 12 while (count) { 13 count--; 24 void _memcpy_toio(volatile void __iomem *to, const void *from, size_t count) argument 27 while (count) { 28 count--; 39 void _memset_io(volatile void __iomem *dst, int c, size_t count) argument 41 while (count) { 42 count--;
|
/arch/alpha/kernel/ |
H A D | io.c | 213 void ioread8_rep(void __iomem *port, void *dst, unsigned long count) argument 216 if (!count) 218 count--; 223 while (count >= 4) { 225 count -= 4; 234 while (count) { 235 --count; 241 void insb(unsigned long port, void *dst, unsigned long count) argument 243 ioread8_rep(ioport_map(port, 1), dst, count); 256 void ioread16_rep(void __iomem *port, void *dst, unsigned long count) argument 281 insw(unsigned long port, void *dst, unsigned long count) argument 296 ioread32_rep(void __iomem *port, void *dst, unsigned long count) argument 313 insl(unsigned long port, void *dst, unsigned long count) argument 328 iowrite8_rep(void __iomem *port, const void *xsrc, unsigned long count) argument 335 outsb(unsigned long port, const void *src, unsigned long count) argument 350 iowrite16_rep(void __iomem *port, const void *src, unsigned long count) argument 375 outsw(unsigned long port, const void *src, unsigned long count) argument 390 iowrite32_rep(void __iomem *port, const void *src, unsigned long count) argument 407 outsl(unsigned long port, const void *src, unsigned long count) argument 420 memcpy_fromio(void *to, const volatile void __iomem *from, long count) argument 474 memcpy_toio(volatile void __iomem *to, const void *from, long count) argument 528 _memset_c_io(volatile void __iomem *to, unsigned long c, long count) argument 590 scr_memcpyw(u16 *d, const u16 *s, unsigned int count) argument [all...] |
/arch/parisc/lib/ |
H A D | io.c | 18 void memcpy_toio(volatile void __iomem *dst, const void *src, int count) argument 25 count--; 27 while (count > 3) { 31 count -= 4; 34 while (count--) { 53 void memcpy_fromio(void *dst, const volatile void __iomem *src, int count) argument 56 if ( (((unsigned long)dst ^ (unsigned long)src) & 1) || (count < 2) ) 59 if ( (((unsigned long)dst ^ (unsigned long)src) & 2) || (count < 4) ) 67 count--; 68 if (count < 105 memset_io(volatile void __iomem *addr, unsigned char val, int count) argument 126 insb(unsigned long port, void *dst, unsigned long count) argument 166 insw(unsigned long port, void *dst, unsigned long count) argument 238 insl(unsigned long port, void *dst, unsigned long count) argument 318 outsb(unsigned long port, const void * src, unsigned long count) argument 336 outsw(unsigned long port, const void *src, unsigned long count) argument 408 outsl(unsigned long port, const void *src, unsigned long count) argument [all...] |
/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 60 * @count: Send this number of characters. 62 int hvc_put_chars(uint32_t vtermno, const char *buf, int count) argument 68 /* hcall will ret H_PARAMETER if 'count' exceeds firmware max.*/ 69 if (count > MAX_VIO_PUT_CHARS) 70 count = MAX_VIO_PUT_CHARS; 72 ret = plpar_hcall_norets(H_PUT_TERM_CHAR, vtermno, count, lbuf[0], 75 return count;
|
/arch/mn10300/include/asm/ |
H A D | spinlock.h | 122 atomic_t *count = (atomic_t *)rw; local 123 while (atomic_dec_return(count) < 0) 124 atomic_inc(count); 135 atomic_t *count = (atomic_t *)rw; local 136 while (!atomic_sub_and_test(RW_LOCK_BIAS, count)) 137 atomic_add(RW_LOCK_BIAS, count); 148 atomic_t *count = (atomic_t *)rw; local 149 atomic_inc(count); 160 atomic_t *count = (atomic_t *)rw; local 161 atomic_add(RW_LOCK_BIAS, count); 168 atomic_t *count = (atomic_t *)lock; local 178 atomic_t *count = (atomic_t *)lock; local [all...] |
H A D | string.h | 19 extern void *memset(void *dest, int ch, size_t count); 20 extern void *memcpy(void *dest, const void *src, size_t count); 21 extern void *memmove(void *dest, const void *src, size_t count);
|
H A D | io.h | 120 static inline void insb(unsigned long addr, void *buffer, int count) argument 122 if (count) { 127 } while (--count); 131 static inline void insw(unsigned long addr, void *buffer, int count) argument 133 if (count) { 138 } while (--count); 142 static inline void insl(unsigned long addr, void *buffer, int count) argument 144 if (count) { 149 } while (--count); 153 static inline void outsb(unsigned long addr, const void *buffer, int count) argument 163 outsw(unsigned long addr, const void *buffer, int count) argument 174 outsl(unsigned long addr, const void *buffer, int count) argument [all...] |
/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/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/parisc/include/asm/ |
H A D | ide.h | 23 static __inline__ void __ide_mm_insw(void __iomem *port, void *addr, u32 count) argument 25 while (count--) { 31 static __inline__ void __ide_mm_insl(void __iomem *port, void *addr, u32 count) argument 33 while (count--) { 39 static __inline__ void __ide_mm_outsw(void __iomem *port, void *addr, u32 count) argument 41 while (count--) { 47 static __inline__ void __ide_mm_outsl(void __iomem *port, void *addr, u32 count) argument 49 while (count--) {
|
/arch/powerpc/platforms/powernv/ |
H A D | opal-nvram.c | 28 static ssize_t opal_nvram_read(char *buf, size_t count, loff_t *index) argument 36 if ((off + count) > nvram_size) 37 count = nvram_size - off; 38 rc = opal_read_nvram(__pa(buf), count, off); 41 *index += count; 42 return count; 45 static ssize_t opal_nvram_write(char *buf, size_t count, loff_t *index) argument 53 if ((off + count) > nvram_size) 54 count = nvram_size - off; 57 rc = opal_write_nvram(__pa(buf), count, of [all...] |