/linux-4.4.14/drivers/media/pci/ttpci/ |
H A D | av7110_ipack.c | 19 p->count = 0; av7110_ipack_reset() 55 if (p->count < 10) send_ipack() 58 p->buf[4] = (u8)(((p->count - 6) & 0xff00) >> 8); send_ipack() 59 p->buf[5] = (u8)((p->count - 6) & 0x00ff); send_ipack() 67 if (ac3_off < p->count) send_ipack() 69 p->count - ac3_off, &ai, 0); send_ipack() 71 nframes = (p->count - off - 3 - ac3_off) / send_ipack() 76 ac3_off += nframes * ai.framesize - p->count; send_ipack() 80 p->func(p->buf, p->count, p->data); send_ipack() 85 p->count = 9; send_ipack() 88 p->count += 4; send_ipack() 97 if (p->count < 8) send_ipack() 100 p->buf[4] = (u8)(((p->count - 6) & 0xff00) >> 8); send_ipack() 101 p->buf[5] = (u8)((p->count - 6) & 0x00ff); send_ipack() 102 p->func(p->buf, p->count, p->data); send_ipack() 105 p->count = 7; send_ipack() 122 static void write_ipack(struct ipack *p, const u8 *data, int count) write_ipack() argument 126 if (p->count < 6) { write_ipack() 128 p->count = 6; write_ipack() 131 if (p->count + count < p->size){ write_ipack() 132 memcpy(p->buf+p->count, data, count); write_ipack() 133 p->count += count; write_ipack() 135 int rest = p->size - p->count; write_ipack() 136 memcpy(p->buf+p->count, data, rest); write_ipack() 137 p->count += rest; write_ipack() 139 if (count - rest > 0) write_ipack() 140 write_ipack(p, data + rest, count - rest); write_ipack() 145 int av7110_ipack_instant_repack (const u8 *buf, int count, struct ipack *p) av7110_ipack_instant_repack() argument 150 while (c < count && (p->mpeg == 0 || av7110_ipack_instant_repack() 199 if (count-c > 1) { av7110_ipack_instant_repack() 209 return count; av7110_ipack_instant_repack() 252 if (c == count) av7110_ipack_instant_repack() 253 return count; av7110_ipack_instant_repack() 275 while (c < count && p->found < 14) { av7110_ipack_instant_repack() 281 if (c == count) av7110_ipack_instant_repack() 282 return count; av7110_ipack_instant_repack() 292 while (!p->which && c < count && av7110_ipack_instant_repack() 301 if (c == count) av7110_ipack_instant_repack() 302 return count; av7110_ipack_instant_repack() 312 if (c == count) av7110_ipack_instant_repack() 313 return count; av7110_ipack_instant_repack() 320 if (c == count) av7110_ipack_instant_repack() 321 return count; av7110_ipack_instant_repack() 331 if (c == count) av7110_ipack_instant_repack() 332 return count; av7110_ipack_instant_repack() 341 if (c == count) av7110_ipack_instant_repack() 342 return count; av7110_ipack_instant_repack() 345 while (c < count && p->which < 7) { av7110_ipack_instant_repack() 353 if (c == count) av7110_ipack_instant_repack() 354 return count; av7110_ipack_instant_repack() 356 while (c < count && p->which < 12) { av7110_ipack_instant_repack() 365 if (c == count) av7110_ipack_instant_repack() 366 return count; av7110_ipack_instant_repack() 373 while (c < count && p->found < p->plength + 6) { av7110_ipack_instant_repack() 374 l = count - c; av7110_ipack_instant_repack() 386 if (p->found + count - c < p->plength + 6) { av7110_ipack_instant_repack() 387 p->found += count - c; av7110_ipack_instant_repack() 388 c = count; av7110_ipack_instant_repack() 398 if (c < count) av7110_ipack_instant_repack() 399 av7110_ipack_instant_repack(buf + c, count - c, p); av7110_ipack_instant_repack() 402 return count; av7110_ipack_instant_repack()
|
/linux-4.4.14/arch/nios2/lib/ |
H A D | memmove.c | 13 void *memmove(void *d, const void *s, size_t count) memmove() argument 17 if (!count) memmove() 24 if ((count < 8) || ((dst ^ src) & 3)) memmove() 29 count--; memmove() 35 count -= 2; memmove() 37 while (count > 3) { memmove() 41 count -= 4; memmove() 44 while (count--) memmove() 47 dst = (unsigned long) d + count; memmove() 48 src = (unsigned long) s + count; memmove() 50 if ((count < 8) || ((dst ^ src) & 3)) memmove() 56 count--; memmove() 62 count -= 2; memmove() 65 while (count > 3) { memmove() 68 count -= 4; memmove() 72 while (count--) { memmove()
|
/linux-4.4.14/lib/ |
H A D | lockref.c | 34 * lockref_get - Increments reference count unconditionally 38 * to the object, so you know the count cannot be zero. 43 new.count++; lockref_get() 49 lockref->count++; lockref_get() 55 * lockref_get_not_zero - Increments count unless the count is 0 or dead 57 * Return: 1 if count updated successfully or 0 if count was zero 64 new.count++; lockref_get_not_zero() 65 if (old.count <= 0) lockref_get_not_zero() 73 if (lockref->count > 0) { lockref_get_not_zero() 74 lockref->count++; lockref_get_not_zero() 83 * lockref_get_or_lock - Increments count unless the count is 0 or dead 85 * Return: 1 if count updated successfully or 0 if count was zero 91 new.count++; lockref_get_or_lock() 92 if (old.count <= 0) lockref_get_or_lock() 99 if (lockref->count <= 0) lockref_get_or_lock() 101 lockref->count++; lockref_get_or_lock() 108 * lockref_put_return - Decrement reference count if possible 111 * Decrement the reference count and return the new value. 117 new.count--; lockref_put_return() 118 if (old.count <= 0) lockref_put_return() 121 return new.count; lockref_put_return() 128 * lockref_put_or_lock - decrements count unless count <= 1 before decrement 130 * Return: 1 if count updated successfully or 0 if count <= 1 and lock taken 135 new.count--; lockref_put_or_lock() 136 if (old.count <= 1) lockref_put_or_lock() 143 if (lockref->count <= 1) lockref_put_or_lock() 145 lockref->count--; lockref_put_or_lock() 158 lockref->count = -128; lockref_mark_dead() 163 * lockref_get_not_dead - Increments count unless the ref is dead 165 * Return: 1 if count updated successfully or 0 if lockref was dead 172 new.count++; lockref_get_not_dead() 173 if (old.count < 0) lockref_get_not_dead() 181 if (lockref->count >= 0) { lockref_get_not_dead() 182 lockref->count++; lockref_get_not_dead()
|
H A D | strncpy_from_user.c | 19 * 'count' is the user-supplied count (return 'count' if we 23 static inline long do_strncpy_from_user(char *dst, const char __user *src, long count, unsigned long max) do_strncpy_from_user() argument 32 if (max > count) do_strncpy_from_user() 33 max = count; do_strncpy_from_user() 71 if (res >= count) do_strncpy_from_user() 84 * least @count bytes long. 86 * @count: Maximum number of bytes to copy, including the trailing NUL. 96 * If @count is smaller than the length of the string, copies @count bytes 97 * and returns @count. 99 long strncpy_from_user(char *dst, const char __user *src, long count) strncpy_from_user() argument 103 if (unlikely(count <= 0)) strncpy_from_user() 110 return do_strncpy_from_user(dst, src, count, max); strncpy_from_user()
|
H A D | iomap.c | 40 static int count = 10; bad_io_access() local 41 if (count) { bad_io_access() 42 count--; bad_io_access() 145 static inline void mmio_insb(void __iomem *addr, u8 *dst, int count) mmio_insb() argument 147 while (--count >= 0) { mmio_insb() 153 static inline void mmio_insw(void __iomem *addr, u16 *dst, int count) mmio_insw() argument 155 while (--count >= 0) { mmio_insw() 161 static inline void mmio_insl(void __iomem *addr, u32 *dst, int count) mmio_insl() argument 163 while (--count >= 0) { mmio_insl() 172 static inline void mmio_outsb(void __iomem *addr, const u8 *src, int count) mmio_outsb() argument 174 while (--count >= 0) { mmio_outsb() 179 static inline void mmio_outsw(void __iomem *addr, const u16 *src, int count) mmio_outsw() argument 181 while (--count >= 0) { mmio_outsw() 186 static inline void mmio_outsl(void __iomem *addr, const u32 *src, int count) mmio_outsl() argument 188 while (--count >= 0) { mmio_outsl() 195 void ioread8_rep(void __iomem *addr, void *dst, unsigned long count) ioread8_rep() argument 197 IO_COND(addr, insb(port,dst,count), mmio_insb(addr, dst, count)); ioread8_rep() 199 void ioread16_rep(void __iomem *addr, void *dst, unsigned long count) ioread16_rep() argument 201 IO_COND(addr, insw(port,dst,count), mmio_insw(addr, dst, count)); ioread16_rep() 203 void ioread32_rep(void __iomem *addr, void *dst, unsigned long count) ioread32_rep() argument 205 IO_COND(addr, insl(port,dst,count), mmio_insl(addr, dst, count)); ioread32_rep() 211 void iowrite8_rep(void __iomem *addr, const void *src, unsigned long count) iowrite8_rep() argument 213 IO_COND(addr, outsb(port, src, count), mmio_outsb(addr, src, count)); iowrite8_rep() 215 void iowrite16_rep(void __iomem *addr, const void *src, unsigned long count) iowrite16_rep() argument 217 IO_COND(addr, outsw(port, src, count), mmio_outsw(addr, src, count)); iowrite16_rep() 219 void iowrite32_rep(void __iomem *addr, const void *src, unsigned long count) iowrite32_rep() argument 221 IO_COND(addr, outsl(port, src,count), mmio_outsl(addr, src, count)); iowrite32_rep()
|
H A D | percpu_counter.c | 70 fbc->count = amount; 77 s64 count; __percpu_counter_add() local 80 count = __this_cpu_read(*fbc->counters) + amount; __percpu_counter_add() 81 if (count >= batch || count <= -batch) { __percpu_counter_add() 84 fbc->count += count; __percpu_counter_add() 85 __this_cpu_sub(*fbc->counters, count - amount); __percpu_counter_add() 105 ret = fbc->count; for_each_online_cpu() 122 fbc->count = amount; __percpu_counter_init() 187 fbc->count += *pcount; percpu_counter_hotcpu_callback() 202 s64 count; __percpu_counter_compare() local 204 count = percpu_counter_read(fbc); __percpu_counter_compare() 205 /* Check to see if rough count will be sufficient for comparison */ __percpu_counter_compare() 206 if (abs(count - rhs) > (batch * num_online_cpus())) { __percpu_counter_compare() 207 if (count > rhs) __percpu_counter_compare() 212 /* Need to use precise count */ __percpu_counter_compare() 213 count = percpu_counter_sum(fbc); __percpu_counter_compare() 214 if (count > rhs) __percpu_counter_compare() 216 else if (count < rhs) __percpu_counter_compare()
|
H A D | strnlen_user.c | 16 * 'count' is the user-supplied count, while 'max' is the 20 * space maximum), or 'count+1' if hitting the user-supplied 21 * maximum count. 27 static inline long do_strnlen_user(const char __user *src, unsigned long count, unsigned long max) do_strnlen_user() argument 37 if (max > count) do_strnlen_user() 38 max = count; do_strnlen_user() 73 if (res >= count) do_strnlen_user() 74 return count+1; do_strnlen_user() 86 * @count: Maximum count (including NUL character) 94 * If the string is too long, returns a number larger than @count. User 95 * has to check the return value against "> count". 96 * On exception (or invalid count), returns 0. 104 long strnlen_user(const char __user *str, long count) strnlen_user() argument 108 if (unlikely(count <= 0)) strnlen_user() 115 return do_strnlen_user(str, count, max); strnlen_user()
|
H A D | rbtree_test.c | 111 int count; black_path_count() local 112 for (count = 0; rb; rb = rb_parent(rb)) black_path_count() 113 count += !is_red(rb); black_path_count() 114 return count; black_path_count() 120 int count = 0; check_postorder_foreach() local 122 count++; check_postorder_foreach() 124 WARN_ON_ONCE(count != nr_nodes); check_postorder_foreach() 130 int count = 0; check_postorder() local 132 count++; check_postorder() 134 WARN_ON_ONCE(count != nr_nodes); check_postorder() 140 int count = 0, blacks = 0; check() local 148 if (!count) check() 154 count++; check() 157 WARN_ON_ONCE(count != nr_nodes); check() 158 WARN_ON_ONCE(count < (1 << black_path_count(rb_last(&root))) - 1); check()
|
H A D | iomap_copy.c | 25 * @count: number of 32-bit quantities to copy 33 size_t count) __iowrite32_copy() 37 const u32 *end = src + count; __iowrite32_copy() 48 * @count: number of 64-bit quantities to copy 56 size_t count) __iowrite64_copy() 61 const u64 *end = src + count; __iowrite64_copy() 66 __iowrite32_copy(to, from, count * 2); __iowrite64_copy() 31 __iowrite32_copy(void __iomem *to, const void *from, size_t count) __iowrite32_copy() argument 54 __iowrite64_copy(void __iomem *to, const void *from, size_t count) __iowrite64_copy() argument
|
/linux-4.4.14/include/trace/events/ |
H A D | cma.h | 13 unsigned int count, unsigned int align), 15 TP_ARGS(pfn, page, count, align), 20 __field(unsigned int, count) 27 __entry->count = count; 31 TP_printk("pfn=%lx page=%p count=%u align=%u", 34 __entry->count, 41 unsigned int count), 43 TP_ARGS(pfn, page, count), 48 __field(unsigned int, count) 54 __entry->count = count; 57 TP_printk("pfn=%lx page=%p count=%u", 60 __entry->count)
|
/linux-4.4.14/include/asm-generic/ |
H A D | mutex-null.h | 13 #define __mutex_fastpath_lock(count, fail_fn) fail_fn(count) 14 #define __mutex_fastpath_lock_retval(count) (-1) 15 #define __mutex_fastpath_unlock(count, fail_fn) fail_fn(count) 16 #define __mutex_fastpath_trylock(count, fail_fn) fail_fn(count)
|
H A D | ide_iops.h | 8 static __inline__ void __ide_mm_insw(void __iomem *port, void *addr, u32 count) __ide_mm_insw() argument 10 while (count--) { __ide_mm_insw() 16 static __inline__ void __ide_mm_insl(void __iomem *port, void *addr, u32 count) __ide_mm_insl() argument 18 while (count--) { __ide_mm_insl() 24 static __inline__ void __ide_mm_outsw(void __iomem *port, void *addr, u32 count) __ide_mm_outsw() argument 26 while (count--) { __ide_mm_outsw() 32 static __inline__ void __ide_mm_outsl(void __iomem * port, void *addr, u32 count) __ide_mm_outsl() argument 34 while (count--) { __ide_mm_outsl()
|
H A D | mutex-dec.h | 11 * __mutex_fastpath_lock - try to take the lock by moving the count 13 * @count: pointer of type atomic_t 16 * Change the count from 1 to a value lower than 1, and call <fail_fn> if 21 __mutex_fastpath_lock(atomic_t *count, void (*fail_fn)(atomic_t *)) __mutex_fastpath_lock() argument 23 if (unlikely(atomic_dec_return_acquire(count) < 0)) __mutex_fastpath_lock() 24 fail_fn(count); __mutex_fastpath_lock() 28 * __mutex_fastpath_lock_retval - try to take the lock by moving the count 30 * @count: pointer of type atomic_t 32 * Change the count from 1 to a value lower than 1. This function returns 0 36 __mutex_fastpath_lock_retval(atomic_t *count) __mutex_fastpath_lock_retval() argument 38 if (unlikely(atomic_dec_return_acquire(count) < 0)) __mutex_fastpath_lock_retval() 44 * __mutex_fastpath_unlock - try to promote the count from 0 to 1 45 * @count: pointer of type atomic_t 48 * Try to promote the count from 0 to 1. If it wasn't 0, call <fail_fn>. 57 __mutex_fastpath_unlock(atomic_t *count, void (*fail_fn)(atomic_t *)) __mutex_fastpath_unlock() argument 59 if (unlikely(atomic_inc_return_release(count) <= 0)) __mutex_fastpath_unlock() 60 fail_fn(count); __mutex_fastpath_unlock() 68 * @count: pointer of type atomic_t 71 * Change the count from 1 to a value lower than 1, and return 0 (failure) 81 __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *)) __mutex_fastpath_trylock() argument 83 if (likely(atomic_cmpxchg_acquire(count, 1, 0) == 1)) __mutex_fastpath_trylock()
|
H A D | mutex-xchg.h | 16 * __mutex_fastpath_lock - try to take the lock by moving the count 18 * @count: pointer of type atomic_t 21 * Change the count from 1 to a value lower than 1, and call <fail_fn> if it 26 __mutex_fastpath_lock(atomic_t *count, void (*fail_fn)(atomic_t *)) __mutex_fastpath_lock() argument 28 if (unlikely(atomic_xchg(count, 0) != 1)) __mutex_fastpath_lock() 34 if (likely(atomic_xchg_acquire(count, -1) != 1)) __mutex_fastpath_lock() 35 fail_fn(count); __mutex_fastpath_lock() 39 * __mutex_fastpath_lock_retval - try to take the lock by moving the count 41 * @count: pointer of type atomic_t 43 * Change the count from 1 to a value lower than 1. This function returns 0 47 __mutex_fastpath_lock_retval(atomic_t *count) __mutex_fastpath_lock_retval() argument 49 if (unlikely(atomic_xchg_acquire(count, 0) != 1)) __mutex_fastpath_lock_retval() 50 if (likely(atomic_xchg(count, -1) != 1)) __mutex_fastpath_lock_retval() 57 * @count: pointer of type atomic_t 68 __mutex_fastpath_unlock(atomic_t *count, void (*fail_fn)(atomic_t *)) __mutex_fastpath_unlock() argument 70 if (unlikely(atomic_xchg_release(count, 1) != 0)) __mutex_fastpath_unlock() 71 fail_fn(count); __mutex_fastpath_unlock() 79 * @count: pointer of type atomic_t 82 * Change the count from 1 to a value lower than 1, and return 0 (failure) 92 __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *)) __mutex_fastpath_trylock() argument 94 int prev = atomic_xchg_acquire(count, 0); __mutex_fastpath_trylock() 108 prev = atomic_xchg_acquire(count, prev); __mutex_fastpath_trylock()
|
H A D | rwsem.h | 36 if (unlikely(atomic_long_inc_return_acquire((atomic_long_t *)&sem->count) <= 0)) __down_read() 44 while ((tmp = sem->count) >= 0) { __down_read_trylock() 45 if (tmp == cmpxchg_acquire(&sem->count, tmp, __down_read_trylock() 61 (atomic_long_t *)&sem->count); __down_write_nested() 75 tmp = cmpxchg_acquire(&sem->count, RWSEM_UNLOCKED_VALUE, __down_write_trylock() 87 tmp = atomic_long_dec_return_release((atomic_long_t *)&sem->count); __up_read() 98 (atomic_long_t *)&sem->count) < 0)) __up_write() 107 atomic_long_add(delta, (atomic_long_t *)&sem->count); rwsem_atomic_add() 125 (atomic_long_t *)&sem->count); __downgrade_write() 135 return atomic_long_add_return(delta, (atomic_long_t *)&sem->count); rwsem_atomic_update()
|
H A D | io.h | 216 * native endianness in 8-, 16-, 32- or 64-bit chunks (@count times). 221 unsigned int count) readsb() 223 if (count) { readsb() 229 } while (--count); readsb() 237 unsigned int count) readsw() 239 if (count) { readsw() 245 } while (--count); readsw() 253 unsigned int count) readsl() 255 if (count) { readsl() 261 } while (--count); readsl() 270 unsigned int count) readsq() 272 if (count) { readsq() 278 } while (--count); readsq() 287 unsigned int count) writesb() 289 if (count) { writesb() 294 } while (--count); writesb() 302 unsigned int count) writesw() 304 if (count) { writesw() 309 } while (--count); writesw() 317 unsigned int count) writesl() 319 if (count) { writesl() 324 } while (--count); writesl() 333 unsigned int count) writesq() 335 if (count) { writesq() 340 } while (--count); writesq() 463 static inline void insb(unsigned long addr, void *buffer, unsigned int count) insb() argument 465 readsb(PCI_IOBASE + addr, buffer, count); insb() 471 static inline void insw(unsigned long addr, void *buffer, unsigned int count) insw() argument 473 readsw(PCI_IOBASE + addr, buffer, count); insw() 479 static inline void insl(unsigned long addr, void *buffer, unsigned int count) insl() argument 481 readsl(PCI_IOBASE + addr, buffer, count); insl() 488 unsigned int count) outsb() 490 writesb(PCI_IOBASE + addr, buffer, count); outsb() 497 unsigned int count) outsw() 499 writesw(PCI_IOBASE + addr, buffer, count); outsw() 506 unsigned int count) outsl() 508 writesl(PCI_IOBASE + addr, buffer, count); outsl() 514 static inline void insb_p(unsigned long addr, void *buffer, unsigned int count) insb_p() argument 516 insb(addr, buffer, count); insb_p() 522 static inline void insw_p(unsigned long addr, void *buffer, unsigned int count) insw_p() argument 524 insw(addr, buffer, count); insw_p() 530 static inline void insl_p(unsigned long addr, void *buffer, unsigned int count) insl_p() argument 532 insl(addr, buffer, count); insl_p() 539 unsigned int count) outsb_p() 541 outsb(addr, buffer, count); outsb_p() 548 unsigned int count) outsw_p() 550 outsw(addr, buffer, count); outsw_p() 557 unsigned int count) outsl_p() 559 outsl(addr, buffer, count); outsl_p() 647 unsigned int count) ioread8_rep() 649 readsb(addr, buffer, count); ioread8_rep() 656 void *buffer, unsigned int count) ioread16_rep() 658 readsw(addr, buffer, count); ioread16_rep() 665 void *buffer, unsigned int count) ioread32_rep() 667 readsl(addr, buffer, count); ioread32_rep() 675 unsigned int count) iowrite8_rep() 677 writesb(addr, buffer, count); iowrite8_rep() 685 unsigned int count) iowrite16_rep() 687 writesw(addr, buffer, count); iowrite16_rep() 695 unsigned int count) iowrite32_rep() 697 writesl(addr, buffer, count); iowrite32_rep() 220 readsb(const volatile void __iomem *addr, void *buffer, unsigned int count) readsb() argument 236 readsw(const volatile void __iomem *addr, void *buffer, unsigned int count) readsw() argument 252 readsl(const volatile void __iomem *addr, void *buffer, unsigned int count) readsl() argument 269 readsq(const volatile void __iomem *addr, void *buffer, unsigned int count) readsq() argument 286 writesb(volatile void __iomem *addr, const void *buffer, unsigned int count) writesb() argument 301 writesw(volatile void __iomem *addr, const void *buffer, unsigned int count) writesw() argument 316 writesl(volatile void __iomem *addr, const void *buffer, unsigned int count) writesl() argument 332 writesq(volatile void __iomem *addr, const void *buffer, unsigned int count) writesq() argument 487 outsb(unsigned long addr, const void *buffer, unsigned int count) outsb() argument 496 outsw(unsigned long addr, const void *buffer, unsigned int count) outsw() argument 505 outsl(unsigned long addr, const void *buffer, unsigned int count) outsl() argument 538 outsb_p(unsigned long addr, const void *buffer, unsigned int count) outsb_p() argument 547 outsw_p(unsigned long addr, const void *buffer, unsigned int count) outsw_p() argument 556 outsl_p(unsigned long addr, const void *buffer, unsigned int count) outsl_p() argument 646 ioread8_rep(const volatile void __iomem *addr, void *buffer, unsigned int count) ioread8_rep() argument 655 ioread16_rep(const volatile void __iomem *addr, void *buffer, unsigned int count) ioread16_rep() argument 664 ioread32_rep(const volatile void __iomem *addr, void *buffer, unsigned int count) ioread32_rep() argument 673 iowrite8_rep(volatile void __iomem *addr, const void *buffer, unsigned int count) iowrite8_rep() argument 683 iowrite16_rep(volatile void __iomem *addr, const void *buffer, unsigned int count) iowrite16_rep() argument 693 iowrite32_rep(volatile void __iomem *addr, const void *buffer, unsigned int count) iowrite32_rep() argument
|
/linux-4.4.14/arch/alpha/include/asm/ |
H A D | rwsem.h | 28 oldcount = sem->count; __down_read() 29 sem->count += RWSEM_ACTIVE_READ_BIAS; __down_read() 41 :"=&r" (oldcount), "=m" (sem->count), "=&r" (temp) __down_read() 42 :"Ir" (RWSEM_ACTIVE_READ_BIAS), "m" (sem->count) : "memory"); __down_read() 55 res = sem->count; __down_read_trylock() 61 res = cmpxchg(&sem->count, old, new); __down_read_trylock() 70 oldcount = sem->count; __down_write() 71 sem->count += RWSEM_ACTIVE_WRITE_BIAS; __down_write() 83 :"=&r" (oldcount), "=m" (sem->count), "=&r" (temp) __down_write() 84 :"Ir" (RWSEM_ACTIVE_WRITE_BIAS), "m" (sem->count) : "memory"); __down_write() 95 long ret = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, __down_write_trylock() 106 oldcount = sem->count; __up_read() 107 sem->count -= RWSEM_ACTIVE_READ_BIAS; __up_read() 119 :"=&r" (oldcount), "=m" (sem->count), "=&r" (temp) __up_read() 120 :"Ir" (RWSEM_ACTIVE_READ_BIAS), "m" (sem->count) : "memory"); __up_read() 129 long count; __up_write() local 131 sem->count -= RWSEM_ACTIVE_WRITE_BIAS; __up_write() 132 count = sem->count; __up_write() 145 :"=&r" (count), "=m" (sem->count), "=&r" (temp) __up_write() 146 :"Ir" (RWSEM_ACTIVE_WRITE_BIAS), "m" (sem->count) : "memory"); __up_write() 148 if (unlikely(count)) __up_write() 149 if ((int)count == 0) __up_write() 160 oldcount = sem->count; __downgrade_write() 161 sem->count -= RWSEM_WAITING_BIAS; __downgrade_write() 173 :"=&r" (oldcount), "=m" (sem->count), "=&r" (temp) __downgrade_write() 174 :"Ir" (-RWSEM_WAITING_BIAS), "m" (sem->count) : "memory"); __downgrade_write() 183 sem->count += val; rwsem_atomic_add() 194 :"=&r" (temp), "=m" (sem->count) rwsem_atomic_add() 195 :"Ir" (val), "m" (sem->count)); rwsem_atomic_add() 202 sem->count += val; rwsem_atomic_update() 203 return sem->count; rwsem_atomic_update() 215 :"=&r" (ret), "=m" (sem->count), "=&r" (temp) rwsem_atomic_update() 216 :"Ir" (val), "m" (sem->count)); rwsem_atomic_update()
|
/linux-4.4.14/include/linux/ |
H A D | vt_buffer.h | 27 static inline void scr_memsetw(u16 *s, u16 c, unsigned int count) scr_memsetw() argument 29 count /= 2; scr_memsetw() 30 while (count--) scr_memsetw() 36 static inline void scr_memcpyw(u16 *d, const u16 *s, unsigned int count) scr_memcpyw() argument 38 count /= 2; scr_memcpyw() 39 while (count--) scr_memcpyw() 45 static inline void scr_memmovew(u16 *d, const u16 *s, unsigned int count) scr_memmovew() argument 48 scr_memcpyw(d, s, count); scr_memmovew() 50 count /= 2; scr_memmovew() 51 d += count; scr_memmovew() 52 s += count; scr_memmovew() 53 while (count--) scr_memmovew()
|
H A D | uio.h | 31 size_t count; member in struct:iov_iter 61 .iov_len = min(iter->count, iov_iter_iovec() 69 (iter).count && \ 91 unsigned long nr_segs, size_t count); 93 unsigned long nr_segs, size_t count); 95 unsigned long nr_segs, size_t count); 106 return i->count; iov_iter_count() 128 static inline void iov_iter_truncate(struct iov_iter *i, u64 count) iov_iter_truncate() argument 131 * count doesn't have to fit in size_t - comparison extends both iov_iter_truncate() 134 * values of size_t, including old i->count. iov_iter_truncate() 136 if (i->count > count) iov_iter_truncate() 137 i->count = count; iov_iter_truncate() 141 * reexpand a previously truncated iterator; count must be no more than how much 144 static inline void iov_iter_reexpand(struct iov_iter *i, size_t count) iov_iter_reexpand() argument 146 i->count = count; iov_iter_reexpand()
|
H A D | percpu_counter.h | 21 s64 count; member in struct:percpu_counter 69 return fbc->count; percpu_counter_read() 79 s64 ret = fbc->count; percpu_counter_read_positive() 81 barrier(); /* Prevent reloads of fbc->count */ percpu_counter_read_positive() 95 s64 count; member in struct:percpu_counter 101 fbc->count = amount; percpu_counter_init() 111 fbc->count = amount; percpu_counter_set() 116 if (fbc->count > rhs) percpu_counter_compare() 118 else if (fbc->count < rhs) percpu_counter_compare() 134 fbc->count += amount; percpu_counter_add() 146 return fbc->count; percpu_counter_read() 155 return fbc->count; percpu_counter_read_positive()
|
/linux-4.4.14/include/uapi/linux/netfilter/ |
H A D | xt_connbytes.h | 20 __aligned_u64 from; /* count to be matched */ 21 __aligned_u64 to; /* count to be matched */ 22 } count; member in struct:xt_connbytes_info
|
H A D | xt_multiport.h | 17 __u8 count; /* Number of ports */ member in struct:xt_multiport 23 __u8 count; /* Number of ports */ member in struct:xt_multiport_v1
|
/linux-4.4.14/arch/mips/include/asm/mach-generic/ |
H A D | ide.h | 60 unsigned int count) __ide_insw() 63 insw(port, addr, count); __ide_insw() 64 __ide_flush_dcache_range((unsigned long)addr, count * 2); __ide_insw() 68 static inline void __ide_insl(unsigned long port, void *addr, unsigned int count) __ide_insl() argument 71 insl(port, addr, count); __ide_insl() 72 __ide_flush_dcache_range((unsigned long)addr, count * 4); __ide_insl() 77 unsigned long count) __ide_outsw() 80 outsw(port, addr, count); __ide_outsw() 81 __ide_flush_dcache_range((unsigned long)addr, count * 2); __ide_outsw() 86 unsigned long count) __ide_outsl() 89 outsl(port, addr, count); __ide_outsl() 90 __ide_flush_dcache_range((unsigned long)addr, count * 4); __ide_outsl() 94 static inline void __ide_mm_insw(void __iomem *port, void *addr, u32 count) __ide_mm_insw() argument 97 readsw(port, addr, count); __ide_mm_insw() 98 __ide_flush_dcache_range((unsigned long)addr, count * 2); __ide_mm_insw() 102 static inline void __ide_mm_insl(void __iomem *port, void *addr, u32 count) __ide_mm_insl() argument 105 readsl(port, addr, count); __ide_mm_insl() 106 __ide_flush_dcache_range((unsigned long)addr, count * 4); __ide_mm_insl() 110 static inline void __ide_mm_outsw(void __iomem *port, void *addr, u32 count) __ide_mm_outsw() argument 113 writesw(port, addr, count); __ide_mm_outsw() 114 __ide_flush_dcache_range((unsigned long)addr, count * 2); __ide_mm_outsw() 118 static inline void __ide_mm_outsl(void __iomem * port, void *addr, u32 count) __ide_mm_outsl() argument 121 writesl(port, addr, count); __ide_mm_outsl() 122 __ide_flush_dcache_range((unsigned long)addr, count * 4); __ide_mm_outsl() 131 #define insw(port, addr, count) __ide_insw(port, addr, count) 132 #define insl(port, addr, count) __ide_insl(port, addr, count) 133 #define outsw(port, addr, count) __ide_outsw(port, addr, count) 134 #define outsl(port, addr, count) __ide_outsl(port, addr, count) 59 __ide_insw(unsigned long port, void *addr, unsigned int count) __ide_insw() argument 76 __ide_outsw(unsigned long port, const void *addr, unsigned long count) __ide_outsw() argument 85 __ide_outsl(unsigned long port, const void *addr, unsigned long count) __ide_outsl() argument
|
/linux-4.4.14/arch/sparc/lib/ |
H A D | PeeCeeI.c | 12 void outsb(unsigned long __addr, const void *src, unsigned long count) outsb() argument 17 while (count--) outsb() 22 void outsw(unsigned long __addr, const void *src, unsigned long count) outsw() argument 26 while (count--) { outsw() 33 void outsl(unsigned long __addr, const void *src, unsigned long count) outsl() argument 38 if (!count) outsl() 44 while (count--) { outsl() 51 while (count--) { outsl() 63 while (count--) { outsl() 75 while (count--) { outsl() 87 void insb(unsigned long __addr, void *dst, unsigned long count) insb() argument 91 if (count) { insb() 95 while ((((unsigned long)pb) & 0x3) && count--) insb() 98 while (count >= 4) { insb() 106 count -= 4; insb() 109 while (count--) insb() 115 void insw(unsigned long __addr, void *dst, unsigned long count) insw() argument 119 if (count) { insw() 125 count--; insw() 128 while (count >= 2) { insw() 134 count -= 2; insw() 137 if (count) insw() 143 void insl(unsigned long __addr, void *dst, unsigned long count) insl() argument 147 if (count) { insl() 150 while (count--) insl() 160 count -= 1; insl() 164 while (count--) { insl() 175 count -= 1; insl() 181 while (count--) { insl() 192 count -= 1; insl() 196 while (count--) { insl()
|
H A D | bitext.c | 29 int offset, count; /* siamese twins */ bit_map_string_get() local 57 count = 0; bit_map_string_get() 61 count += off_new - offset; bit_map_string_get() 65 if (count + len > t->size) { bit_map_string_get() 68 "bitmap out: size %d used %d off %d len %d align %d count %d\n", bit_map_string_get() 69 t->size, t->used, offset, len, align, count); bit_map_string_get() 74 count += t->size - offset; bit_map_string_get() 96 count += i + 1; bit_map_string_get()
|
/linux-4.4.14/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 *)) __mutex_fastpath_lock() argument 77 if (unlikely(__mutex_dec_return_lock(count) < 0)) __mutex_fastpath_lock() 78 fail_fn(count); __mutex_fastpath_lock() 82 * __mutex_fastpath_lock_retval - try to take the lock by moving the count 84 * @count: pointer of type atomic_t 86 * Change the count from 1 to a value lower than 1. This function returns 0 90 __mutex_fastpath_lock_retval(atomic_t *count) __mutex_fastpath_lock_retval() argument 92 if (unlikely(__mutex_dec_return_lock(count) < 0)) __mutex_fastpath_lock_retval() 98 * __mutex_fastpath_unlock - try to promote the count from 0 to 1 99 * @count: pointer of type atomic_t 102 * Try to promote the count from 0 to 1. If it wasn't 0, call <fail_fn>. 107 __mutex_fastpath_unlock(atomic_t *count, void (*fail_fn)(atomic_t *)) __mutex_fastpath_unlock() argument 109 if (unlikely(__mutex_inc_return_unlock(count) <= 0)) __mutex_fastpath_unlock() 110 fail_fn(count); __mutex_fastpath_unlock() 118 * @count: pointer of type atomic_t 121 * Change the count from 1 to 0, and return 1 (success), or if the count 125 __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *)) __mutex_fastpath_trylock() argument 127 if (likely(__mutex_cmpxchg_lock(count, 1, 0) == 1)) __mutex_fastpath_trylock()
|
H A D | parport.h | 21 int count = 0; parport_pc_find_nonpci_ports() local 36 count++; for_each_compatible_node() 38 return count;
|
/linux-4.4.14/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 *)) __mutex_fastpath_lock() argument 24 if (unlikely(ia64_fetchadd4_acq(count, -1) != 1)) __mutex_fastpath_lock() 25 fail_fn(count); __mutex_fastpath_lock() 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) __mutex_fastpath_lock_retval() argument 39 if (unlikely(ia64_fetchadd4_acq(count, -1) != 1)) __mutex_fastpath_lock_retval() 45 * __mutex_fastpath_unlock - try to promote the count from 0 to 1 46 * @count: pointer of type atomic_t 49 * Try to promote the count from 0 to 1. If it wasn't 0, call <fail_fn>. 58 __mutex_fastpath_unlock(atomic_t *count, void (*fail_fn)(atomic_t *)) __mutex_fastpath_unlock() argument 60 int ret = ia64_fetchadd4_rel(count, 1); __mutex_fastpath_unlock() 62 fail_fn(count); __mutex_fastpath_unlock() 70 * @count: pointer of type atomic_t 73 * Change the count from 1 to a value lower than 1, and return 0 (failure) 83 __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *)) __mutex_fastpath_trylock() argument 85 if (cmpxchg_acq(count, 1, 0) == 1) __mutex_fastpath_trylock()
|
H A D | rwsem.h | 10 * The MSW of the count is the negated number of active writers and 13 * The lock count is initialized to 0 (no active and no waiting lockers). 43 long result = ia64_fetchadd8_acq((unsigned long *)&sem->count, 1); __down_read() 58 old = sem->count; __down_write() 60 } while (cmpxchg_acq(&sem->count, old, new) != old); __down_write() 72 long result = ia64_fetchadd8_rel((unsigned long *)&sem->count, -1); __up_read() 87 old = sem->count; __up_write() 89 } while (cmpxchg_rel(&sem->count, old, new) != old); __up_write() 102 while ((tmp = sem->count) >= 0) { __down_read_trylock() 103 if (tmp == cmpxchg_acq(&sem->count, tmp, tmp+1)) { __down_read_trylock() 116 long tmp = cmpxchg_acq(&sem->count, RWSEM_UNLOCKED_VALUE, __down_write_trylock() 130 old = sem->count; __downgrade_write() 132 } while (cmpxchg_rel(&sem->count, old, new) != old); __downgrade_write() 142 #define rwsem_atomic_add(delta, sem) atomic64_add(delta, (atomic64_t *)(&(sem)->count)) 143 #define rwsem_atomic_update(delta, sem) atomic64_add_return(delta, (atomic64_t *)(&(sem)->count))
|
/linux-4.4.14/arch/arm64/kernel/ |
H A D | io.c | 26 void __memcpy_fromio(void *to, const volatile void __iomem *from, size_t count) __memcpy_fromio() argument 28 while (count && (!IS_ALIGNED((unsigned long)from, 8) || __memcpy_fromio() 33 count--; __memcpy_fromio() 36 while (count >= 8) { __memcpy_fromio() 40 count -= 8; __memcpy_fromio() 43 while (count) { __memcpy_fromio() 47 count--; __memcpy_fromio() 55 void __memcpy_toio(volatile void __iomem *to, const void *from, size_t count) __memcpy_toio() argument 57 while (count && (!IS_ALIGNED((unsigned long)to, 8) || __memcpy_toio() 62 count--; __memcpy_toio() 65 while (count >= 8) { __memcpy_toio() 69 count -= 8; __memcpy_toio() 72 while (count) { __memcpy_toio() 76 count--; __memcpy_toio() 84 void __memset_io(volatile void __iomem *dst, int c, size_t count) __memset_io() argument 92 while (count && !IS_ALIGNED((unsigned long)dst, 8)) { __memset_io() 95 count--; __memset_io() 98 while (count >= 8) { __memset_io() 101 count -= 8; __memset_io() 104 while (count) { __memset_io() 107 count--; __memset_io()
|
/linux-4.4.14/drivers/video/fbdev/core/ |
H A D | fb_sys_fops.c | 16 ssize_t fb_sys_read(struct fb_info *info, char __user *buf, size_t count, fb_sys_read() argument 35 if (count >= total_size) fb_sys_read() 36 count = total_size; fb_sys_read() 38 if (count + p > total_size) fb_sys_read() 39 count = total_size - p; fb_sys_read() 46 if (copy_to_user(buf, src, count)) fb_sys_read() 50 *ppos += count; fb_sys_read() 52 return (err) ? err : count; fb_sys_read() 57 size_t count, loff_t *ppos) fb_sys_write() 75 if (count > total_size) { fb_sys_write() 77 count = total_size; fb_sys_write() 80 if (count + p > total_size) { fb_sys_write() 84 count = total_size - p; fb_sys_write() 92 if (copy_from_user(dst, buf, count)) fb_sys_write() 96 *ppos += count; fb_sys_write() 98 return (err) ? err : count; fb_sys_write() 56 fb_sys_write(struct fb_info *info, const char __user *buf, size_t count, loff_t *ppos) fb_sys_write() argument
|
/linux-4.4.14/drivers/platform/chrome/ |
H A D | cros_ec_sysfs.c | 44 int count = 0; show_ec_reboot() local 46 count += scnprintf(buf + count, PAGE_SIZE - count, show_ec_reboot() 48 count += scnprintf(buf + count, PAGE_SIZE - count, show_ec_reboot() 50 return count; show_ec_reboot() 55 const char *buf, size_t count) store_ec_reboot() 111 count = -EINVAL; store_ec_reboot() 121 count = ret; store_ec_reboot() 126 count = -EINVAL; store_ec_reboot() 130 return count; store_ec_reboot() 142 int count = 0; show_ec_version() local 157 count = ret; show_ec_version() 161 count = scnprintf(buf, PAGE_SIZE, show_ec_version() 170 count += scnprintf(buf + count, PAGE_SIZE - count, show_ec_version() 172 count += scnprintf(buf + count, PAGE_SIZE - count, show_ec_version() 174 count += scnprintf(buf + count, PAGE_SIZE - count, show_ec_version() 184 count += scnprintf(buf + count, PAGE_SIZE - count, show_ec_version() 187 count += scnprintf(buf + count, PAGE_SIZE - count, show_ec_version() 191 count += scnprintf(buf + count, PAGE_SIZE - count, show_ec_version() 200 count += scnprintf(buf + count, PAGE_SIZE - count, show_ec_version() 203 count += scnprintf(buf + count, PAGE_SIZE - count, show_ec_version() 211 count += scnprintf(buf + count, PAGE_SIZE - count, show_ec_version() 213 count += scnprintf(buf + count, PAGE_SIZE - count, show_ec_version() 215 count += scnprintf(buf + count, PAGE_SIZE - count, show_ec_version() 224 count += scnprintf(buf + count, PAGE_SIZE - count, show_ec_version() 227 count += scnprintf(buf + count, PAGE_SIZE - count, show_ec_version() 232 count += scnprintf(buf + count, PAGE_SIZE - count, show_ec_version() 239 return count; show_ec_version() 53 store_ec_reboot(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) store_ec_reboot() argument
|
/linux-4.4.14/arch/alpha/kernel/ |
H A D | io.c | 213 void ioread8_rep(void __iomem *port, void *dst, unsigned long count) ioread8_rep() argument 216 if (!count) ioread8_rep() 218 count--; ioread8_rep() 223 while (count >= 4) { ioread8_rep() 225 count -= 4; ioread8_rep() 234 while (count) { ioread8_rep() 235 --count; ioread8_rep() 241 void insb(unsigned long port, void *dst, unsigned long count) insb() argument 243 ioread8_rep(ioport_map(port, 1), dst, count); insb() 256 void ioread16_rep(void __iomem *port, void *dst, unsigned long count) ioread16_rep() argument 259 if (!count) ioread16_rep() 262 count--; ioread16_rep() 267 while (count >= 2) { ioread16_rep() 269 count -= 2; ioread16_rep() 276 if (count) { ioread16_rep() 281 void insw(unsigned long port, void *dst, unsigned long count) insw() argument 283 ioread16_rep(ioport_map(port, 2), dst, count); insw() 296 void ioread32_rep(void __iomem *port, void *dst, unsigned long count) ioread32_rep() argument 299 while (count--) { ioread32_rep() 306 while (count--) { ioread32_rep() 313 void insl(unsigned long port, void *dst, unsigned long count) insl() argument 315 ioread32_rep(ioport_map(port, 4), dst, count); insl() 328 void iowrite8_rep(void __iomem *port, const void *xsrc, unsigned long count) iowrite8_rep() argument 331 while (count--) iowrite8_rep() 335 void outsb(unsigned long port, const void *src, unsigned long count) outsb() argument 337 iowrite8_rep(ioport_map(port, 1), src, count); outsb() 350 void iowrite16_rep(void __iomem *port, const void *src, unsigned long count) iowrite16_rep() argument 353 if (!count) iowrite16_rep() 358 --count; iowrite16_rep() 361 while (count >= 2) { iowrite16_rep() 363 count -= 2; iowrite16_rep() 370 if (count) { iowrite16_rep() 375 void outsw(unsigned long port, const void *src, unsigned long count) outsw() argument 377 iowrite16_rep(ioport_map(port, 2), src, count); outsw() 390 void iowrite32_rep(void __iomem *port, const void *src, unsigned long count) iowrite32_rep() argument 393 while (count--) { iowrite32_rep() 400 while (count--) { iowrite32_rep() 407 void outsl(unsigned long port, const void *src, unsigned long count) outsl() argument 409 iowrite32_rep(ioport_map(port, 4), src, count); outsl() 420 void memcpy_fromio(void *to, const volatile void __iomem *from, long count) memcpy_fromio() argument 425 if (count >= 8 && ((u64)to & 7) == ((u64)from & 7)) { memcpy_fromio() 426 count -= 8; memcpy_fromio() 429 count -= 8; memcpy_fromio() 432 } while (count >= 0); memcpy_fromio() 433 count += 8; memcpy_fromio() 436 if (count >= 4 && ((u64)to & 3) == ((u64)from & 3)) { memcpy_fromio() 437 count -= 4; memcpy_fromio() 440 count -= 4; memcpy_fromio() 443 } while (count >= 0); memcpy_fromio() 444 count += 4; memcpy_fromio() 447 if (count >= 2 && ((u64)to & 1) == ((u64)from & 1)) { memcpy_fromio() 448 count -= 2; memcpy_fromio() 451 count -= 2; memcpy_fromio() 454 } while (count >= 0); memcpy_fromio() 455 count += 2; memcpy_fromio() 458 while (count > 0) { memcpy_fromio() 460 count--; memcpy_fromio() 474 void memcpy_toio(volatile void __iomem *to, const void *from, long count) memcpy_toio() argument 480 if (count >= 8 && ((u64)to & 7) == ((u64)from & 7)) { memcpy_toio() 481 count -= 8; memcpy_toio() 484 count -= 8; memcpy_toio() 487 } while (count >= 0); memcpy_toio() 488 count += 8; memcpy_toio() 491 if (count >= 4 && ((u64)to & 3) == ((u64)from & 3)) { memcpy_toio() 492 count -= 4; memcpy_toio() 495 count -= 4; memcpy_toio() 498 } while (count >= 0); memcpy_toio() 499 count += 4; memcpy_toio() 502 if (count >= 2 && ((u64)to & 1) == ((u64)from & 1)) { memcpy_toio() 503 count -= 2; memcpy_toio() 506 count -= 2; memcpy_toio() 509 } while (count >= 0); memcpy_toio() 510 count += 2; memcpy_toio() 513 while (count > 0) { memcpy_toio() 515 count--; memcpy_toio() 528 void _memset_c_io(volatile void __iomem *to, unsigned long c, long count) _memset_c_io() argument 531 if (count > 0 && ((u64)to & 1)) { _memset_c_io() 534 count--; _memset_c_io() 538 if (count >= 2 && ((u64)to & 2)) { _memset_c_io() 541 count -= 2; _memset_c_io() 545 if (count >= 4 && ((u64)to & 4)) { _memset_c_io() 548 count -= 4; _memset_c_io() 552 (or have a small count) */ _memset_c_io() 553 count -= 8; _memset_c_io() 554 if (count >= 0) { _memset_c_io() 558 count -= 8; _memset_c_io() 559 } while (count >= 0); _memset_c_io() 561 count += 8; _memset_c_io() 563 /* The tail is word-aligned if we still have count >= 4 */ _memset_c_io() 564 if (count >= 4) { _memset_c_io() 567 count -= 4; _memset_c_io() 570 /* The tail is half-word aligned if we have count >= 2 */ _memset_c_io() 571 if (count >= 2) { _memset_c_io() 574 count -= 2; _memset_c_io() 578 if (count) { _memset_c_io() 590 scr_memcpyw(u16 *d, const u16 *s, unsigned int count) scr_memcpyw() argument 602 count /= 2; scr_memcpyw() 603 while (count--) { scr_memcpyw() 609 memcpy_fromio(d, ios, count); scr_memcpyw() 612 memcpy_toio(iod, s, count); scr_memcpyw() 614 memcpy(d, s, count); scr_memcpyw()
|
/linux-4.4.14/arch/parisc/lib/ |
H A D | io.c | 18 void memcpy_toio(volatile void __iomem *dst, const void *src, int count) memcpy_toio() argument 25 count--; memcpy_toio() 27 while (count > 3) { memcpy_toio() 31 count -= 4; memcpy_toio() 34 while (count--) { memcpy_toio() 53 void memcpy_fromio(void *dst, const volatile void __iomem *src, int count) memcpy_fromio() argument 56 if ( (((unsigned long)dst ^ (unsigned long)src) & 1) || (count < 2) ) memcpy_fromio() 59 if ( (((unsigned long)dst ^ (unsigned long)src) & 2) || (count < 4) ) memcpy_fromio() 67 count--; memcpy_fromio() 68 if (count < 2) goto bytecopy; memcpy_fromio() 75 count -= 2; memcpy_fromio() 78 while (count > 3) { memcpy_fromio() 82 count -= 4; memcpy_fromio() 86 while (count > 1) { memcpy_fromio() 90 count -= 2; memcpy_fromio() 94 while (count--) { memcpy_fromio() 105 void memset_io(volatile void __iomem *addr, unsigned char val, int count) memset_io() argument 110 count--; memset_io() 112 while (count > 3) { memset_io() 115 count -= 4; memset_io() 117 while (count--) { memset_io() 126 void insb (unsigned long port, void *dst, unsigned long count) insb() argument 133 if (!count) insb() 135 count--; insb() 140 while (count >= 4) { insb() 142 count -= 4; insb() 151 while (count) { insb() 152 --count; insb() 166 void insw (unsigned long port, void *dst, unsigned long count) insw() argument 173 if (!count) insw() 179 while (count>=2) { insw() 181 count -= 2; insw() 187 if (count) { insw() 195 count--; insw() 196 while (count>=2) { insw() 198 count -= 2; insw() 204 if (count) { insw() 213 --count; insw() 218 while (count--) insw() 238 void insl (unsigned long port, void *dst, unsigned long count) insl() argument 245 if (!count) insl() 251 while (count--) insl() 259 --count; insl() 265 while (count--) insl() 275 --count; insl() 282 while (count--) insl() 292 --count; insl() 297 while (count--) insl() 318 void outsb(unsigned long port, const void * src, unsigned long count) outsb() argument 323 while (count) { outsb() 324 count--; outsb() 336 void outsw (unsigned long port, const void *src, unsigned long count) outsw() argument 343 if (!count) outsw() 349 while (count>=2) { outsw() 350 count -= 2; outsw() 356 if (count) { outsw() 365 count--; outsw() 367 while (count>=2) { outsw() 368 count -= 2; outsw() 374 if (count) { outsw() 385 count--; outsw() 386 while (count) outsw() 388 count--; outsw() 408 void outsl (unsigned long port, const void *src, unsigned long count) outsl() argument 415 if (!count) outsl() 421 while (count--) outsl() 429 --count; outsl() 434 while (count--) outsl() 445 --count; outsl() 452 while (count--) outsl() 463 --count; outsl() 468 while (count--) outsl()
|
H A D | iomap.c | 97 static void ioport_read8r(void __iomem *addr, void *dst, unsigned long count) ioport_read8r() argument 99 insb(ADDR2PORT(addr), dst, count); ioport_read8r() local 102 static void ioport_read16r(void __iomem *addr, void *dst, unsigned long count) ioport_read16r() argument 104 insw(ADDR2PORT(addr), dst, count); ioport_read16r() local 107 static void ioport_read32r(void __iomem *addr, void *dst, unsigned long count) ioport_read32r() argument 109 insl(ADDR2PORT(addr), dst, count); ioport_read32r() local 198 static void iomem_read8r(void __iomem *addr, void *dst, unsigned long count) iomem_read8r() argument 200 while (count--) { iomem_read8r() 206 static void iomem_read16r(void __iomem *addr, void *dst, unsigned long count) iomem_read16r() argument 208 while (count--) { iomem_read16r() 214 static void iomem_read32r(void __iomem *addr, void *dst, unsigned long count) iomem_read32r() argument 216 while (count--) { iomem_read32r() 353 void ioread8_rep(void __iomem *addr, void *dst, unsigned long count) ioread8_rep() argument 356 iomap_ops[ADDR_TO_REGION(addr)]->read8r(addr, dst, count); ioread8_rep() 358 while (count--) { ioread8_rep() 365 void ioread16_rep(void __iomem *addr, void *dst, unsigned long count) ioread16_rep() argument 368 iomap_ops[ADDR_TO_REGION(addr)]->read16r(addr, dst, count); ioread16_rep() 370 while (count--) { ioread16_rep() 377 void ioread32_rep(void __iomem *addr, void *dst, unsigned long count) ioread32_rep() argument 380 iomap_ops[ADDR_TO_REGION(addr)]->read32r(addr, dst, count); ioread32_rep() 382 while (count--) { ioread32_rep() 389 void iowrite8_rep(void __iomem *addr, const void *src, unsigned long count) iowrite8_rep() argument 392 iomap_ops[ADDR_TO_REGION(addr)]->write8r(addr, src, count); iowrite8_rep() 394 while (count--) { iowrite8_rep() 401 void iowrite16_rep(void __iomem *addr, const void *src, unsigned long count) iowrite16_rep() argument 404 iomap_ops[ADDR_TO_REGION(addr)]->write16r(addr, src, count); iowrite16_rep() 406 while (count--) { iowrite16_rep() 413 void iowrite32_rep(void __iomem *addr, const void *src, unsigned long count) iowrite32_rep() argument 416 iomap_ops[ADDR_TO_REGION(addr)]->write32r(addr, src, count); iowrite32_rep() 418 while (count--) { iowrite32_rep()
|
H A D | checksum.c | 43 int odd, count; do_csum() local 54 count = len >> 1; /* nr of 16-bit words.. */ do_csum() 55 if (count) { do_csum() 58 count--; do_csum() 62 count >>= 1; /* nr of 32-bit words.. */ do_csum() 63 if (count) { do_csum() 64 while (count >= 4) { do_csum() 74 count -= 4; do_csum() 77 while (count) { do_csum() 79 count--; do_csum()
|
/linux-4.4.14/arch/sh/kernel/ |
H A D | iomap.c | 80 static inline void mmio_insb(void __iomem *addr, u8 *dst, int count) mmio_insb() argument 82 while (--count >= 0) { mmio_insb() 89 static inline void mmio_insw(void __iomem *addr, u16 *dst, int count) mmio_insw() argument 91 while (--count >= 0) { mmio_insw() 98 static inline void mmio_insl(void __iomem *addr, u32 *dst, int count) mmio_insl() argument 100 while (--count >= 0) { mmio_insl() 107 static inline void mmio_outsb(void __iomem *addr, const u8 *src, int count) mmio_outsb() argument 109 while (--count >= 0) { mmio_outsb() 115 static inline void mmio_outsw(void __iomem *addr, const u16 *src, int count) mmio_outsw() argument 117 while (--count >= 0) { mmio_outsw() 123 static inline void mmio_outsl(void __iomem *addr, const u32 *src, int count) mmio_outsl() argument 125 while (--count >= 0) { mmio_outsl() 131 void ioread8_rep(void __iomem *addr, void *dst, unsigned long count) ioread8_rep() argument 133 mmio_insb(addr, dst, count); ioread8_rep() 137 void ioread16_rep(void __iomem *addr, void *dst, unsigned long count) ioread16_rep() argument 139 mmio_insw(addr, dst, count); ioread16_rep() 143 void ioread32_rep(void __iomem *addr, void *dst, unsigned long count) ioread32_rep() argument 145 mmio_insl(addr, dst, count); ioread32_rep() 149 void iowrite8_rep(void __iomem *addr, const void *src, unsigned long count) iowrite8_rep() argument 151 mmio_outsb(addr, src, count); iowrite8_rep() 155 void iowrite16_rep(void __iomem *addr, const void *src, unsigned long count) iowrite16_rep() argument 157 mmio_outsw(addr, src, count); iowrite16_rep() 161 void iowrite32_rep(void __iomem *addr, const void *src, unsigned long count) iowrite32_rep() argument 163 mmio_outsl(addr, src, count); iowrite32_rep()
|
H A D | io.c | 19 void memcpy_fromio(void *to, const volatile void __iomem *from, unsigned long count) memcpy_fromio() argument 26 if ((count >= 0x20) && memcpy_fromio() 46 "cmp/hi %1, %2 ! T if 32 > count \n\t" memcpy_fromio() 53 : "=&r" (to), "=&r" (count), memcpy_fromio() 56 : "7"(from), "0" (to), "1" (count) memcpy_fromio() 62 for (; count > 3; count -= 4) { memcpy_fromio() 69 for (; count > 0; count--) { memcpy_fromio() 82 void memcpy_toio(volatile void __iomem *to, const void *from, unsigned long count) memcpy_toio() argument 85 for ( ; count > 3; count -= 4) { memcpy_toio() 92 for (; count > 0; count--) { memcpy_toio() 106 void memset_io(volatile void __iomem *dst, int c, unsigned long count) memset_io() argument 108 while (count) { memset_io() 109 count--; memset_io()
|
/linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp5/ |
H A D | mdp5_cfg.c | 28 .count = 1, 43 .count = 5, 48 .count = 3, 57 .count = 3, 65 .count = 2, 72 .count = 5, 77 .count = 3, 81 .count = 3, 99 .count = 1, 114 .count = 5, 119 .count = 3, 126 .count = 3, 132 .count = 2, 137 .count = 5, 144 .count = 3, 148 .count = 2, 152 .count = 3, 170 .count = 1, 192 .count = 5, 197 .count = 4, 204 .count = 4, 210 .count = 2, 215 .count = 6, 222 .count = 4, 227 .count = 3, 231 .count = 4, 249 .count = 1, 263 .count = 5, 268 .count = 1, 275 .count = 2, 281 .count = 1, 286 .count = 2, /* LM0 and LM3 */ 293 .count = 1, 310 .count = 1, 332 .count = 5, 337 .count = 4, 344 .count = 4, 350 .count = 2, 355 .count = 6, 362 .count = 4, 367 .count = 3, 371 .count = 4, 389 .count = 1, 396 .count = 5, 401 .count = 4, 412 .count = 4, 422 .count = 2, 430 .count = 6, 437 .count = 2, 441 .count = 3, 445 .count = 4, 449 .count = 1, 453 .count = 2,
|
/linux-4.4.14/arch/arm/boot/compressed/ |
H A D | string.c | 43 void *memmove(void *__dest, __const void *__src, size_t count) memmove() argument 52 return memcpy(__dest, __src, count); memmove() 54 while (count--) memmove() 55 d[count] = s[count]; memmove() 68 int memcmp(const void *cs, const void *ct, size_t count) memcmp() argument 70 const unsigned char *su1 = cs, *su2 = ct, *end = su1 + count; memcmp() 96 void *memchr(const void *s, int c, size_t count) memchr() argument 100 while (count--) memchr() 116 void *memset(void *s, int c, size_t count) memset() argument 119 while (count--) memset() 124 void __memzero(void *s, size_t count) __memzero() argument 126 memset(s, 0, count); __memzero()
|
/linux-4.4.14/arch/frv/kernel/ |
H A D | uaccess.c | 20 long strncpy_from_user(char *dst, const char __user *src, long count) strncpy_from_user() argument 26 BUG_ON(count < 0); strncpy_from_user() 39 if ((unsigned long) count > max) { strncpy_from_user() 40 memset(dst + max, 0, count - max); strncpy_from_user() 41 count = max; strncpy_from_user() 45 for (; count > 0; count--, p++, src++) { strncpy_from_user() 57 if (count > 0) strncpy_from_user() 58 memset(p, 0, count); /* clear remainder of buffer [security] */ strncpy_from_user() 72 long strnlen_user(const char __user *src, long count) strnlen_user() argument 78 BUG_ON(count < 0); strnlen_user() 88 for (p = src; count > 0; count--, p++) { strnlen_user()
|
/linux-4.4.14/arch/m68k/lib/ |
H A D | memset.c | 10 void *memset(void *s, int c, size_t count) memset() argument 15 if (!count) memset() 24 count--; memset() 26 if (count > 2 && (long)s & 2) { memset() 30 count -= 2; memset() 32 temp = count >> 2; memset() 63 if (count & 2) { memset() 68 if (count & 1) { memset()
|
/linux-4.4.14/arch/parisc/include/asm/ |
H A D | ide.h | 23 static __inline__ void __ide_mm_insw(void __iomem *port, void *addr, u32 count) __ide_mm_insw() argument 25 while (count--) { __ide_mm_insw() 31 static __inline__ void __ide_mm_insl(void __iomem *port, void *addr, u32 count) __ide_mm_insl() argument 33 while (count--) { __ide_mm_insl() 39 static __inline__ void __ide_mm_outsw(void __iomem *port, void *addr, u32 count) __ide_mm_outsw() argument 41 while (count--) { __ide_mm_outsw() 47 static __inline__ void __ide_mm_outsl(void __iomem *port, void *addr, u32 count) __ide_mm_outsl() argument 49 while (count--) { __ide_mm_outsl()
|
H A D | string.h | 8 void * memcpy(void * dest,const void *src,size_t count);
|
/linux-4.4.14/samples/bpf/ |
H A D | tracex6_kern.c | 16 u64 count; bpf_prog1() local 20 count = bpf_perf_event_read(&my_map, key); bpf_prog1() 21 bpf_trace_printk(fmt, sizeof(fmt), key, count); bpf_prog1()
|
/linux-4.4.14/arch/powerpc/platforms/powernv/ |
H A D | opal-nvram.c | 29 static ssize_t opal_nvram_read(char *buf, size_t count, loff_t *index) opal_nvram_read() argument 37 if ((off + count) > nvram_size) opal_nvram_read() 38 count = nvram_size - off; opal_nvram_read() 39 rc = opal_read_nvram(__pa(buf), count, off); opal_nvram_read() 42 *index += count; opal_nvram_read() 43 return count; opal_nvram_read() 46 static ssize_t opal_nvram_write(char *buf, size_t count, loff_t *index) opal_nvram_write() argument 54 if ((off + count) > nvram_size) opal_nvram_write() 55 count = nvram_size - off; opal_nvram_write() 58 rc = opal_write_nvram(__pa(buf), count, off); opal_nvram_write() 62 *index += count; opal_nvram_write() 63 return count; opal_nvram_write()
|
/linux-4.4.14/arch/sparc/include/asm/ |
H A D | ide.h | 35 static inline void __ide_insw(void __iomem *port, void *dst, u32 count) __ide_insw() argument 38 unsigned long end = (unsigned long)dst + (count << 1); __ide_insw() 45 count--; __ide_insw() 48 while(count >= 2) { __ide_insw() 54 count -= 2; __ide_insw() 57 if(count) __ide_insw() 65 static inline void __ide_outsw(void __iomem *port, const void *src, u32 count) __ide_outsw() argument 68 unsigned long end = (unsigned long)src + (count << 1); __ide_outsw() 75 count--; __ide_outsw() 78 while(count >= 2) { __ide_outsw() 84 count -= 2; __ide_outsw() 87 if(count) __ide_outsw()
|
H A D | rwsem.h | 28 if (unlikely(atomic64_inc_return((atomic64_t *)(&sem->count)) <= 0L)) __down_read() 36 while ((tmp = sem->count) >= 0L) { __down_read_trylock() 37 if (tmp == cmpxchg(&sem->count, tmp, __down_read_trylock() 53 (atomic64_t *)(&sem->count)); __down_write_nested() 67 tmp = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, __down_write_trylock() 79 tmp = atomic64_dec_return((atomic64_t *)(&sem->count)); __up_read() 90 (atomic64_t *)(&sem->count)) < 0L)) __up_write() 99 atomic64_add(delta, (atomic64_t *)(&sem->count)); rwsem_atomic_add() 109 tmp = atomic64_add_return(-RWSEM_WAITING_BIAS, (atomic64_t *)(&sem->count)); __downgrade_write() 119 return atomic64_add_return(delta, (atomic64_t *)(&sem->count)); rwsem_atomic_update()
|
H A D | uaccess.h | 12 long strncpy_from_user(char *dest, const char __user *src, long count);
|
/linux-4.4.14/arch/hexagon/mm/ |
H A D | uaccess.c | 35 __kernel_size_t __clear_user_hexagon(void __user *dest, unsigned long count) __clear_user_hexagon() argument 39 while (count > PAGE_SIZE) { __clear_user_hexagon() 43 return count - (PAGE_SIZE - uncleared); __clear_user_hexagon() 44 count -= PAGE_SIZE; __clear_user_hexagon() 47 if (count) __clear_user_hexagon() 48 count = __copy_to_user_hexagon(dest, &empty_zero_page, count); __clear_user_hexagon() 50 return count; __clear_user_hexagon() 53 unsigned long clear_user_hexagon(void __user *dest, unsigned long count) clear_user_hexagon() argument 55 if (!access_ok(VERIFY_WRITE, dest, count)) clear_user_hexagon() 56 return count; clear_user_hexagon() 58 return __clear_user_hexagon(dest, count); clear_user_hexagon()
|
/linux-4.4.14/drivers/oprofile/ |
H A D | oprofile_files.c | 31 size_t count, loff_t *offset) timeout_read() 34 buf, count, offset); timeout_read() 39 size_t count, loff_t *offset) timeout_write() 47 retval = oprofilefs_ulong_from_user(&val, buf, count); timeout_write() 55 return count; timeout_write() 68 static ssize_t depth_read(struct file *file, char __user *buf, size_t count, loff_t *offset) depth_read() argument 70 return oprofilefs_ulong_to_user(oprofile_backtrace_depth, buf, count, depth_read() 75 static ssize_t depth_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) depth_write() argument 86 retval = oprofilefs_ulong_from_user(&val, buf, count); depth_write() 94 return count; depth_write() 105 static ssize_t pointer_size_read(struct file *file, char __user *buf, size_t count, loff_t *offset) pointer_size_read() argument 107 return oprofilefs_ulong_to_user(sizeof(void *), buf, count, offset); pointer_size_read() 117 static ssize_t cpu_type_read(struct file *file, char __user *buf, size_t count, loff_t *offset) cpu_type_read() argument 119 return oprofilefs_str_to_user(oprofile_ops.cpu_type, buf, count, offset); cpu_type_read() 129 static ssize_t enable_read(struct file *file, char __user *buf, size_t count, loff_t *offset) enable_read() argument 131 return oprofilefs_ulong_to_user(oprofile_started, buf, count, offset); enable_read() 135 static ssize_t enable_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) enable_write() argument 143 retval = oprofilefs_ulong_from_user(&val, buf, count); enable_write() 155 return count; enable_write() 166 static ssize_t dump_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) dump_write() argument 169 return count; dump_write() 30 timeout_read(struct file *file, char __user *buf, size_t count, loff_t *offset) timeout_read() argument 38 timeout_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) timeout_write() argument
|
/linux-4.4.14/arch/h8300/lib/ |
H A D | memset.S | 16 ;;void *memset(*ptr, int c, size_t count) 19 ;; count = er2 36 ;; count>=4 -> count/4 53 ;; count % 4
|
/linux-4.4.14/drivers/tty/ |
H A D | tty_ldsem.c | 11 * 1) Upper half of semaphore count is a wait count (differs from rwsem 79 return atomic_long_add_return(delta, (atomic_long_t *)&sem->count); ldsem_atomic_update() 83 * ldsem_cmpxchg() updates @*old with the last-known sem->count value. 84 * Returns 1 if count was successfully changed; @*old will have @new value. 85 * Returns 0 if count was not changed; @*old will have most recent sem->count 89 long tmp = atomic_long_cmpxchg(&sem->count, *old, new); ldsem_cmpxchg() 112 sem->count = LDSEM_UNLOCKED; __init_ldsem() 123 long adjust, count; __ldsem_wake_readers() local 126 * Note the 'active part' of the count is incremented by __ldsem_wake_readers() 130 count = ldsem_atomic_update(adjust, sem); __ldsem_wake_readers() 132 if (count > 0) __ldsem_wake_readers() 134 if (ldsem_cmpxchg(&count, count - adjust, sem)) __ldsem_wake_readers() 151 /* only wake this writer if the active part of the count can be writer_trylock() 154 long count = ldsem_atomic_update(LDSEM_ACTIVE_BIAS, sem); writer_trylock() local 156 if ((count & LDSEM_ACTIVE_MASK) == LDSEM_ACTIVE_BIAS) writer_trylock() 158 if (ldsem_cmpxchg(&count, count - LDSEM_ACTIVE_BIAS, sem)) writer_trylock() 174 * - the 'active part' of count (&0x0000ffff) reached 0 (but may have changed) 175 * - the 'waiting part' of count (&0xffff0000) is -ve (and will still be so) 200 down_read_failed(struct ld_semaphore *sem, long count, long timeout) down_read_failed() argument 209 /* Try to reverse the lock attempt but if the count has changed down_read_failed() 213 if (ldsem_cmpxchg(&count, count + adjust, sem)) down_read_failed() 215 if (count > 0) { down_read_failed() 228 if ((count & LDSEM_ACTIVE_MASK) == 0) down_read_failed() 268 down_write_failed(struct ld_semaphore *sem, long count, long timeout) down_write_failed() argument 278 /* Try to reverse the lock attempt but if the count has changed down_write_failed() 282 if (ldsem_cmpxchg(&count, count + adjust, sem)) down_write_failed() 284 if ((count & LDSEM_ACTIVE_MASK) == LDSEM_ACTIVE_BIAS) { down_write_failed() 325 long count; __ldsem_down_read_nested() local 329 count = ldsem_atomic_update(LDSEM_READ_BIAS, sem); __ldsem_down_read_nested() 330 if (count <= 0) { __ldsem_down_read_nested() 332 if (!down_read_failed(sem, count, timeout)) { __ldsem_down_read_nested() 344 long count; __ldsem_down_write_nested() local 348 count = ldsem_atomic_update(LDSEM_WRITE_BIAS, sem); __ldsem_down_write_nested() 349 if ((count & LDSEM_ACTIVE_MASK) != LDSEM_ACTIVE_BIAS) { __ldsem_down_write_nested() 351 if (!down_write_failed(sem, count, timeout)) { __ldsem_down_write_nested() 375 long count = sem->count; ldsem_down_read_trylock() local 377 while (count >= 0) { ldsem_down_read_trylock() 378 if (ldsem_cmpxchg(&count, count + LDSEM_READ_BIAS, sem)) { ldsem_down_read_trylock() 401 long count = sem->count; ldsem_down_write_trylock() local 403 while ((count & LDSEM_ACTIVE_MASK) == 0) { ldsem_down_write_trylock() 404 if (ldsem_cmpxchg(&count, count + LDSEM_WRITE_BIAS, sem)) { ldsem_down_write_trylock() 418 long count; ldsem_up_read() local 422 count = ldsem_atomic_update(-LDSEM_READ_BIAS, sem); ldsem_up_read() 423 if (count < 0 && (count & LDSEM_ACTIVE_MASK) == 0) ldsem_up_read() 432 long count; ldsem_up_write() local 436 count = ldsem_atomic_update(-LDSEM_WRITE_BIAS, sem); ldsem_up_write() 437 if (count < 0) ldsem_up_write()
|
/linux-4.4.14/arch/tile/lib/ |
H A D | checksum.c | 21 int odd, count; do_csum() local 32 count = len >> 1; /* nr of 16-bit words.. */ do_csum() 33 if (count) { do_csum() 36 count--; do_csum() 40 count >>= 1; /* nr of 32-bit words.. */ do_csum() 41 if (count) { do_csum() 46 count--; do_csum() 50 count >>= 1; /* nr of 64-bit words.. */ do_csum() 57 BUG_ON(count >= 65530); do_csum() 59 while (count) { do_csum() 61 count--; do_csum()
|
H A D | strnlen_32.c | 19 size_t strnlen(const char *s, size_t count) strnlen() argument 28 /* Avoid page fault risk by not reading any bytes when count is 0. */ strnlen() 29 if (count == 0) strnlen() 36 if (bytes_read >= count) { strnlen() 38 return count; strnlen() 45 return (len < count ? len : count); strnlen()
|
H A D | strnlen_64.c | 20 size_t strnlen(const char *s, size_t count) strnlen() argument 29 /* Avoid page fault risk by not reading any bytes when count is 0. */ strnlen() 30 if (count == 0) strnlen() 37 if (bytes_read >= count) { strnlen() 39 return count; strnlen() 46 return (len < count ? len : count); strnlen()
|
/linux-4.4.14/arch/mn10300/include/asm/ |
H A D | io.h | 125 static inline void insb(unsigned long addr, void *buffer, int count) insb() argument 127 if (count) { insb() 132 } while (--count); insb() 136 static inline void insw(unsigned long addr, void *buffer, int count) insw() argument 138 if (count) { insw() 143 } while (--count); insw() 147 static inline void insl(unsigned long addr, void *buffer, int count) insl() argument 149 if (count) { insl() 154 } while (--count); insl() 158 static inline void outsb(unsigned long addr, const void *buffer, int count) outsb() argument 160 if (count) { outsb() 164 } while (--count); outsb() 168 static inline void outsw(unsigned long addr, const void *buffer, int count) outsw() argument 170 if (count) { outsw() 174 } while (--count); outsw() 178 extern void __outsl(unsigned long addr, const void *buffer, int count); outsl() 179 static inline void outsl(unsigned long addr, const void *buffer, int count) outsl() argument 182 return __outsl(addr, buffer, count); outsl() 184 if (count) { outsl() 188 } while (--count); outsl() 205 #define ioread8_rep(p, dst, count) \ 206 insb((unsigned long) (p), (dst), (count)) 207 #define ioread16_rep(p, dst, count) \ 208 insw((unsigned long) (p), (dst), (count)) 209 #define ioread32_rep(p, dst, count) \ 210 insl((unsigned long) (p), (dst), (count)) 212 #define iowrite8_rep(p, src, count) \ 213 outsb((unsigned long) (p), (src), (count)) 214 #define iowrite16_rep(p, src, count) \ 215 outsw((unsigned long) (p), (src), (count)) 216 #define iowrite32_rep(p, src, count) \ 217 outsl((unsigned long) (p), (src), (count)) 219 #define readsb(p, dst, count) \ 220 insb((unsigned long) (p), (dst), (count)) 221 #define readsw(p, dst, count) \ 222 insw((unsigned long) (p), (dst), (count)) 223 #define readsl(p, dst, count) \ 224 insl((unsigned long) (p), (dst), (count)) 226 #define writesb(p, src, count) \ 227 outsb((unsigned long) (p), (src), (count)) 228 #define writesw(p, src, count) \ 229 outsw((unsigned long) (p), (src), (count)) 230 #define writesl(p, src, count) \ 231 outsl((unsigned long) (p), (src), (count))
|
H A D | spinlock.h | 122 atomic_t *count = (atomic_t *)rw; arch_read_lock() local 123 while (atomic_dec_return(count) < 0) arch_read_lock() 124 atomic_inc(count); arch_read_lock() 135 atomic_t *count = (atomic_t *)rw; arch_write_lock() local 136 while (!atomic_sub_and_test(RW_LOCK_BIAS, count)) arch_write_lock() 137 atomic_add(RW_LOCK_BIAS, count); arch_write_lock() 148 atomic_t *count = (atomic_t *)rw; arch_read_unlock() local 149 atomic_inc(count); arch_read_unlock() 160 atomic_t *count = (atomic_t *)rw; arch_write_unlock() local 161 atomic_add(RW_LOCK_BIAS, count); arch_write_unlock() 168 atomic_t *count = (atomic_t *)lock; arch_read_trylock() local 169 atomic_dec(count); arch_read_trylock() 170 if (atomic_read(count) >= 0) arch_read_trylock() 172 atomic_inc(count); arch_read_trylock() 178 atomic_t *count = (atomic_t *)lock; arch_write_trylock() local 179 if (atomic_sub_and_test(RW_LOCK_BIAS, count)) arch_write_trylock() 181 atomic_add(RW_LOCK_BIAS, count); arch_write_trylock()
|
/linux-4.4.14/drivers/net/wireless/b43legacy/ |
H A D | sysfs.c | 38 static int get_integer(const char *buf, size_t count) get_integer() argument 43 if (count == 0) get_integer() 45 count = min_t(size_t, count, 10); get_integer() 46 memcpy(tmp, buf, count); get_integer() 52 static int get_boolean(const char *buf, size_t count) get_boolean() argument 54 if (count != 0) { get_boolean() 59 if (count >= 4 && memcmp(buf, "true", 4) == 0) get_boolean() 61 if (count >= 5 && memcmp(buf, "false", 5) == 0) get_boolean() 63 if (count >= 3 && memcmp(buf, "yes", 3) == 0) get_boolean() 65 if (count >= 2 && memcmp(buf, "no", 2) == 0) get_boolean() 67 if (count >= 2 && memcmp(buf, "on", 2) == 0) get_boolean() 69 if (count >= 3 && memcmp(buf, "off", 3) == 0) get_boolean() 80 ssize_t count = 0; b43legacy_attr_interfmode_show() local 89 count = snprintf(buf, PAGE_SIZE, "0 (No Interference" b43legacy_attr_interfmode_show() 93 count = snprintf(buf, PAGE_SIZE, "1 (Non-WLAN Interference" b43legacy_attr_interfmode_show() 97 count = snprintf(buf, PAGE_SIZE, "2 (WLAN Interference" b43legacy_attr_interfmode_show() 106 return count; b43legacy_attr_interfmode_show() 111 const char *buf, size_t count) b43legacy_attr_interfmode_store() 121 mode = get_integer(buf, count); b43legacy_attr_interfmode_store() 150 return err ? err : count; b43legacy_attr_interfmode_store() 162 ssize_t count; b43legacy_attr_preamble_show() local 170 count = snprintf(buf, PAGE_SIZE, "1 (Short Preamble" b43legacy_attr_preamble_show() 173 count = snprintf(buf, PAGE_SIZE, "0 (Short Preamble" b43legacy_attr_preamble_show() 178 return count; b43legacy_attr_preamble_show() 183 const char *buf, size_t count) b43legacy_attr_preamble_store() 192 value = get_boolean(buf, count); b43legacy_attr_preamble_store() 203 return count; b43legacy_attr_preamble_store() 109 b43legacy_attr_interfmode_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) b43legacy_attr_interfmode_store() argument 181 b43legacy_attr_preamble_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) b43legacy_attr_preamble_store() argument
|
H A D | debugfs.c | 46 int (*write)(struct b43legacy_wldev *dev, const char *buf, size_t count); 69 if (bufsize - count) \ 70 count += snprintf(buf + count, \ 71 bufsize - count, \ 81 ssize_t count = 0; tsf_read_file() local 89 return count; tsf_read_file() 93 static int tsf_write_file(struct b43legacy_wldev *dev, const char *buf, size_t count) tsf_write_file() argument 107 ssize_t count = 0; ucode_regs_read_file() local 115 return count; ucode_regs_read_file() 121 ssize_t count = 0; shm_read_file() local 131 count += sizeof(tmp); shm_read_file() 135 return count; shm_read_file() 141 ssize_t count = 0; txstat_read_file() local 182 return count; txstat_read_file() 186 static int restart_write_file(struct b43legacy_wldev *dev, const char *buf, size_t count) restart_write_file() argument 190 if (count > 0 && buf[0] == '1') { restart_write_file() 201 size_t count, loff_t *ppos) b43legacy_debugfs_read() 212 if (!count) b43legacy_debugfs_read() 253 ret = simple_read_from_buffer(userbuf, count, ppos, b43legacy_debugfs_read() 269 size_t count, loff_t *ppos) b43legacy_debugfs_write() 276 if (!count) b43legacy_debugfs_write() 278 if (count > PAGE_SIZE) b43legacy_debugfs_write() 301 if (copy_from_user(buf, userbuf, count)) { b43legacy_debugfs_write() 307 err = dfops->write(dev, buf, count); b43legacy_debugfs_write() 310 err = dfops->write(dev, buf, count); b43legacy_debugfs_write() 319 return err ? err : count; b43legacy_debugfs_write() 200 b43legacy_debugfs_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) b43legacy_debugfs_read() argument 267 b43legacy_debugfs_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) b43legacy_debugfs_write() argument
|
/linux-4.4.14/drivers/media/tuners/ |
H A D | tuner-types.c | 73 .count = ARRAY_SIZE(tuner_temic_pal_ranges), 89 .count = ARRAY_SIZE(tuner_philips_pal_i_ranges), 105 .count = ARRAY_SIZE(tuner_philips_ntsc_ranges), 122 .count = ARRAY_SIZE(tuner_philips_secam_ranges), 139 .count = ARRAY_SIZE(tuner_philips_pal_ranges), 156 .count = ARRAY_SIZE(tuner_temic_ntsc_ranges), 172 .count = ARRAY_SIZE(tuner_temic_pal_i_ranges), 188 .count = ARRAY_SIZE(tuner_temic_4036fy5_ntsc_ranges), 204 .count = ARRAY_SIZE(tuner_alps_tsb_1_ranges), 215 .count = ARRAY_SIZE(tuner_alps_tsb_1_ranges), 231 .count = ARRAY_SIZE(tuner_alps_tsb_5_pal_ranges), 241 .count = ARRAY_SIZE(tuner_alps_tsb_5_pal_ranges), 251 .count = ARRAY_SIZE(tuner_alps_tsb_5_pal_ranges), 267 .count = ARRAY_SIZE(tuner_lg_pal_ranges), 283 .count = ARRAY_SIZE(tuner_alps_tshc6_ntsc_ranges), 299 .count = ARRAY_SIZE(tuner_temic_pal_dk_ranges), 315 .count = ARRAY_SIZE(tuner_philips_ntsc_m_ranges), 331 .count = ARRAY_SIZE(tuner_temic_40x6f_5_pal_ranges), 341 .count = ARRAY_SIZE(tuner_temic_40x6f_5_pal_ranges), 358 .count = ARRAY_SIZE(tuner_temic_4009f_5_pal_ranges), 374 .count = ARRAY_SIZE(tuner_temic_4x3x_f_5_ntsc_ranges), 384 .count = ARRAY_SIZE(tuner_temic_40x6f_5_pal_ranges), 394 .count = ARRAY_SIZE(tuner_lg_pal_ranges), 404 .count = ARRAY_SIZE(tuner_lg_pal_ranges), 418 .count = ARRAY_SIZE(tuner_lg_pal_ranges), 428 .count = ARRAY_SIZE(tuner_lg_pal_ranges), 444 .count = ARRAY_SIZE(tuner_lg_ntsc_fm_ranges), 454 .count = ARRAY_SIZE(tuner_lg_pal_ranges), 464 .count = ARRAY_SIZE(tuner_lg_pal_ranges), 475 .count = ARRAY_SIZE(tuner_temic_4009f_5_pal_ranges), 491 .count = ARRAY_SIZE(tuner_sharp_2u5jf5540_ntsc_ranges), 507 .count = ARRAY_SIZE(tuner_samsung_pal_tcpm9091pd27_ranges), 517 .count = ARRAY_SIZE(tuner_temic_4009f_5_pal_ranges), 527 .count = ARRAY_SIZE(tuner_temic_pal_ranges), 537 .count = ARRAY_SIZE(tuner_temic_4x3x_f_5_ntsc_ranges), 553 .count = ARRAY_SIZE(tuner_lg_new_tapc_ranges), 569 .count = ARRAY_SIZE(tuner_fm1216me_mk3_pal_ranges), 594 .count = ARRAY_SIZE(tuner_fm1216mk5_pal_ranges), 613 .count = ARRAY_SIZE(tuner_lg_new_tapc_ranges), 624 .count = ARRAY_SIZE(tuner_lg_new_tapc_ranges), 640 .count = ARRAY_SIZE(tuner_philips_pal_mk_pal_ranges), 662 .count = ARRAY_SIZE(tuner_philips_fcv1236d_ntsc_ranges), 667 .count = ARRAY_SIZE(tuner_philips_fcv1236d_atsc_ranges), 684 .count = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges), 699 .count = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges), 709 .count = ARRAY_SIZE(tuner_temic_4009f_5_pal_ranges), 730 .count = ARRAY_SIZE(tuner_panasonic_vp27_ntsc_ranges), 751 .count = ARRAY_SIZE(tuner_tnf_8831bgff_pal_ranges), 773 .count = ARRAY_SIZE(tuner_microtune_4042fi5_ntsc_ranges), 778 .count = ARRAY_SIZE(tuner_microtune_4042fi5_atsc_ranges), 796 .count = ARRAY_SIZE(tuner_tcl_2002n_ntsc_ranges), 807 .count = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges), 825 .count = ARRAY_SIZE(tuner_thomson_dtt7610_ntsc_ranges), 830 .count = ARRAY_SIZE(tuner_thomson_dtt7610_ntsc_ranges), 847 .count = ARRAY_SIZE(tuner_philips_fq1286_ntsc_ranges), 863 .count = ARRAY_SIZE(tuner_tcl_2002mb_pal_ranges), 879 .count = ARRAY_SIZE(tuner_philips_fq12_6a___mk4_pal_ranges), 896 .count = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges), 906 .count = ARRAY_SIZE(tuner_philips_ntsc_m_ranges), 922 .count = ARRAY_SIZE(tuner_ymec_tvf_5533mf_ntsc_ranges), 946 .count = ARRAY_SIZE(tuner_thomson_dtt761x_ntsc_ranges), 954 .count = ARRAY_SIZE(tuner_thomson_dtt761x_atsc_ranges), 971 .count = ARRAY_SIZE(tuner_tena_9533_di_pal_ranges), 987 .count = ARRAY_SIZE(tuner_tena_tnf_5337_ntsc_ranges), 1013 .count = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_pal_ranges), 1024 .count = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_dvb_ranges), 1033 .count = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_pal_ranges), 1046 .count = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_dvb_ranges), 1069 .count = ARRAY_SIZE(tuner_tua6034_ntsc_ranges), 1074 .count = ARRAY_SIZE(tuner_tua6034_atsc_ranges), 1091 .count = ARRAY_SIZE(tuner_ymec_tvf66t5_b_dff_pal_ranges), 1113 .count = ARRAY_SIZE(tuner_lg_taln_ntsc_ranges), 1117 .count = ARRAY_SIZE(tuner_lg_taln_pal_secam_ranges), 1145 .count = ARRAY_SIZE(tuner_philips_td1316_pal_ranges), 1150 .count = ARRAY_SIZE(tuner_philips_td1316_dvb_ranges), 1173 .count = ARRAY_SIZE(tuner_tuv1236d_ntsc_ranges), 1178 .count = ARRAY_SIZE(tuner_tuv1236d_atsc_ranges), 1205 .count = ARRAY_SIZE(tuner_tnf_5335mf_ntsc_ranges), 1210 .count = ARRAY_SIZE(tuner_tnf_5335_d_if_pal_ranges), 1228 .count = ARRAY_SIZE(tuner_samsung_tcpn_2121p30a_ntsc_ranges), 1251 .count = ARRAY_SIZE(tuner_thomson_fe6600_pal_ranges), 1256 .count = ARRAY_SIZE(tuner_thomson_fe6600_dvb_ranges), 1274 .count = ARRAY_SIZE(tuner_samsung_tcpg_6121p30a_pal_ranges), 1294 .count = ARRAY_SIZE(tuner_tcl_mf02gip_5n_ntsc_ranges), 1306 .count = ARRAY_SIZE(tuner_fm1216me_mk3_pal_ranges), 1335 .count = ARRAY_SIZE(tuner_partsnic_pti_5nf05_ranges), 1352 .count = ARRAY_SIZE(tuner_cu1216l_ranges), 1369 .count = ARRAY_SIZE(tuner_sony_btf_pxn01z_ranges), 1379 .count = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges), 1396 .count = ARRAY_SIZE(tuner_sony_btf_pg472z_ranges), 1416 .count = ARRAY_SIZE(tuner_sony_btf_pg467z_ranges), 1432 .count = ARRAY_SIZE(tuner_sony_btf_pg463z_ranges), 1443 .count = ARRAY_SIZE(tuner_temic_pal_params), 1448 .count = ARRAY_SIZE(tuner_philips_pal_i_params), 1453 .count = ARRAY_SIZE(tuner_philips_ntsc_params), 1458 .count = ARRAY_SIZE(tuner_philips_secam_params), 1466 .count = ARRAY_SIZE(tuner_philips_pal_params), 1471 .count = ARRAY_SIZE(tuner_temic_ntsc_params), 1476 .count = ARRAY_SIZE(tuner_temic_pal_i_params), 1481 .count = ARRAY_SIZE(tuner_temic_4036fy5_ntsc_params), 1486 .count = ARRAY_SIZE(tuner_alps_tsbh1_ntsc_params), 1493 .count = ARRAY_SIZE(tuner_alps_tsb_1_params), 1498 .count = ARRAY_SIZE(tuner_alps_tsbb5_params), 1503 .count = ARRAY_SIZE(tuner_alps_tsbe5_params), 1508 .count = ARRAY_SIZE(tuner_alps_tsbc5_params), 1513 .count = ARRAY_SIZE(tuner_temic_4006fh5_params), 1518 .count = ARRAY_SIZE(tuner_alps_tshc6_params), 1523 .count = ARRAY_SIZE(tuner_temic_pal_dk_params), 1528 .count = ARRAY_SIZE(tuner_philips_ntsc_m_params), 1533 .count = ARRAY_SIZE(tuner_temic_4066fy5_pal_i_params), 1538 .count = ARRAY_SIZE(tuner_temic_4006fn5_multi_params), 1545 .count = ARRAY_SIZE(tuner_temic_4009f_5_params), 1550 .count = ARRAY_SIZE(tuner_temic_4039fr5_params), 1555 .count = ARRAY_SIZE(tuner_temic_4046fm5_params), 1560 .count = ARRAY_SIZE(tuner_philips_pal_dk_params), 1565 .count = ARRAY_SIZE(tuner_philips_fq1216me_params), 1570 .count = ARRAY_SIZE(tuner_lg_pal_i_fm_params), 1575 .count = ARRAY_SIZE(tuner_lg_pal_i_params), 1580 .count = ARRAY_SIZE(tuner_lg_ntsc_fm_params), 1585 .count = ARRAY_SIZE(tuner_lg_pal_fm_params), 1590 .count = ARRAY_SIZE(tuner_lg_pal_params), 1597 .count = ARRAY_SIZE(tuner_temic_4009_fn5_multi_pal_fm_params), 1602 .count = ARRAY_SIZE(tuner_sharp_2u5jf5540_params), 1607 .count = ARRAY_SIZE(tuner_samsung_pal_tcpm9091pd27_params), 1615 .count = ARRAY_SIZE(tuner_temic_4106fh5_params), 1620 .count = ARRAY_SIZE(tuner_temic_4012fy5_params), 1625 .count = ARRAY_SIZE(tuner_temic_4136_fy5_params), 1630 .count = ARRAY_SIZE(tuner_lg_pal_new_tapc_params), 1635 .count = ARRAY_SIZE(tuner_fm1216me_mk3_params), 1640 .count = ARRAY_SIZE(tuner_lg_ntsc_new_tapc_params), 1647 .count = ARRAY_SIZE(tuner_hitachi_ntsc_params), 1652 .count = ARRAY_SIZE(tuner_philips_pal_mk_params), 1657 .count = ARRAY_SIZE(tuner_philips_fcv1236d_params), 1665 .count = ARRAY_SIZE(tuner_fm1236_mk3_params), 1670 .count = ARRAY_SIZE(tuner_philips_4in1_params), 1675 .count = ARRAY_SIZE(tuner_microtune_4049_fm5_params), 1680 .count = ARRAY_SIZE(tuner_panasonic_vp27_params), 1685 .count = ARRAY_SIZE(tuner_fm1236_mk3_params), 1690 .count = ARRAY_SIZE(tuner_tnf_8831bgff_params), 1695 .count = ARRAY_SIZE(tuner_microtune_4042fi5_params), 1705 .count = ARRAY_SIZE(tuner_tcl_2002n_params), 1710 .count = ARRAY_SIZE(tuner_philips_fm1256_ih3_params), 1715 .count = ARRAY_SIZE(tuner_thomson_dtt7610_params), 1723 .count = ARRAY_SIZE(tuner_philips_fq1286_params), 1731 .count = ARRAY_SIZE(tuner_tcl_2002mb_params), 1736 .count = ARRAY_SIZE(tuner_philips_fq1216ame_mk4_params), 1741 .count = ARRAY_SIZE(tuner_philips_fq1236a_mk4_params), 1746 .count = ARRAY_SIZE(tuner_ymec_tvf_8531mf_params), 1751 .count = ARRAY_SIZE(tuner_ymec_tvf_5533mf_params), 1759 .count = ARRAY_SIZE(tuner_thomson_dtt761x_params), 1768 .count = ARRAY_SIZE(tuner_tena_9533_di_params), 1777 .count = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_params), 1787 .count = ARRAY_SIZE(tuner_lg_tdvs_h06xf_params), 1796 .count = ARRAY_SIZE(tuner_ymec_tvf66t5_b_dff_params), 1801 .count = ARRAY_SIZE(tuner_lg_taln_params), 1806 .count = ARRAY_SIZE(tuner_philips_td1316_params), 1814 .count = ARRAY_SIZE(tuner_tuv1236d_params), 1822 .count = ARRAY_SIZE(tuner_tnf_5335mf_params), 1829 .count = ARRAY_SIZE(tuner_samsung_tcpn_2121p30a_params), 1838 .count = ARRAY_SIZE(tuner_thomson_fe6600_params), 1846 .count = ARRAY_SIZE(tuner_samsung_tcpg_6121p30a_params), 1868 .count = ARRAY_SIZE(tuner_tcl_mf02gip_5n_params), 1873 .count = ARRAY_SIZE(tuner_philips_fmd1216mex_mk3_params), 1883 .count = ARRAY_SIZE(tuner_fm1216mk5_params), 1890 .count = ARRAY_SIZE(tuner_fq1216lme_mk3_params), 1896 .count = ARRAY_SIZE(tuner_partsnic_pti_5nf05_params), 1901 .count = ARRAY_SIZE(tuner_philips_cu1216l_params), 1911 .count = ARRAY_SIZE(tuner_sony_btf_pxn01z_params), 1916 .count = ARRAY_SIZE(tuner_philips_fq1236_mk5_params), 1921 .count = ARRAY_SIZE(tuner_tena_tnf_5337_params), 1930 .count = ARRAY_SIZE(tuner_sony_btf_pg472z_params), 1937 .count = ARRAY_SIZE(tuner_sony_btf_pg467z_params), 1942 .count = ARRAY_SIZE(tuner_sony_btf_pg463z_params),
|
/linux-4.4.14/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 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) __mutex_fastpath_lock_retval() argument 51 if (unlikely(atomic_dec_return(count) < 0)) __mutex_fastpath_lock_retval() 59 * @count: pointer of type atomic_t 70 #define __mutex_fastpath_unlock(count, fail_fn) \ 74 typecheck(atomic_t *, count); \ 82 : "a" (count) \ 91 * @count: pointer of type atomic_t 94 * Change the count from 1 to a value lower than 1, and return 0 (failure) 100 static inline int __mutex_fastpath_trylock(atomic_t *count, __mutex_fastpath_trylock() argument 104 if (likely(atomic_cmpxchg(count, 1, 0) == 1)) __mutex_fastpath_trylock()
|
H A D | mach_timer.h | 29 * (interrupt on terminal count mode), binary count, mach_prepare_counter() 30 * load 5 * LATCH count, (LSB and MSB) to begin countdown. mach_prepare_counter() 35 outb_p(CALIBRATE_LATCH & 0xff, 0x42); /* LSB of count */ mach_prepare_counter() 36 outb_p(CALIBRATE_LATCH >> 8, 0x42); /* MSB of count */ mach_prepare_counter() 41 unsigned long count = 0; mach_countup() local 43 count++; mach_countup() 45 *count_p = count; mach_countup()
|
H A D | string_32.h | 12 extern char *strncpy(char *dest, const char *src, size_t count); 18 extern char *strncat(char *dest, const char *src, size_t count); 24 extern int strncmp(const char *cs, const char *ct, size_t count); 49 * as the count is constant. 205 extern void *memchr(const void *cs, int c, size_t count); 207 static inline void *__memset_generic(void *s, char c, size_t count) __memset_generic() argument 213 : "a" (c), "1" (s), "0" (count) __memset_generic() 219 #define __constant_count_memset(s, c, count) __memset_generic((s), (c), (count)) 227 void *__constant_c_memset(void *s, unsigned long c, size_t count) __constant_c_memset() argument 239 : "a" (c), "q" (count), "0" (count/4), "1" ((long)s) __constant_c_memset() 246 extern size_t strnlen(const char *s, size_t count); 254 * as we by now know that both pattern and count is constant.. 258 size_t count) __constant_c_and_count_memset() 260 switch (count) { __constant_c_and_count_memset() 282 : "a" (eax), "0" (count/4), "1" ((long)s) \ __constant_c_and_count_memset() 294 switch (count % 4) { __constant_c_and_count_memset() 313 #define __constant_c_x_memset(s, c, count) \ 314 (__builtin_constant_p(count) \ 315 ? __constant_c_and_count_memset((s), (c), (count)) \ 316 : __constant_c_memset((s), (c), (count))) 318 #define __memset(s, c, count) \ 319 (__builtin_constant_p(count) \ 320 ? __constant_count_memset((s), (c), (count)) \ 321 : __memset_generic((s), (c), (count))) 325 #define memset(s, c, count) __builtin_memset(s, c, count) 327 #define memset(s, c, count) \ 330 (count)) \ 331 : __memset((s), (c), (count))) 257 __constant_c_and_count_memset(void *s, unsigned long pattern, size_t count) __constant_c_and_count_memset() argument
|
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) __mutex_fastpath_lock_retval() argument 61 if (unlikely(atomic_dec_return(count) < 0)) __mutex_fastpath_lock_retval() 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, __mutex_fastpath_trylock() argument 121 if (likely(atomic_cmpxchg(count, 1, 0) == 1)) __mutex_fastpath_trylock()
|
/linux-4.4.14/drivers/scsi/pcmcia/ |
H A D | nsp_io.h | 70 unsigned long count) nsp_multi_read_1() 72 insb(BaseAddr + Register, buf, count); nsp_multi_read_1() 77 unsigned long count) nsp_fifo8_read() 79 /*nsp_dbg(NSP_DEBUG_DATA_IO, "buf=0x%p, count=0x%lx", buf, count);*/ nsp_fifo8_read() 80 nsp_multi_read_1(base, FIFODATA, buf, count); nsp_fifo8_read() 89 unsigned long count) nsp_multi_read_2() 91 insw(BaseAddr + Register, buf, count); nsp_multi_read_2() 96 unsigned long count) nsp_fifo16_read() 98 //nsp_dbg(NSP_DEBUG_DATA_IO, "buf=0x%p, count=0x%lx*2", buf, count); nsp_fifo16_read() 99 nsp_multi_read_2(base, FIFODATA, buf, count); nsp_fifo16_read() 108 unsigned long count) nsp_multi_read_4() 110 insl(BaseAddr + Register, buf, count); nsp_multi_read_4() 115 unsigned long count) nsp_fifo32_read() 117 //nsp_dbg(NSP_DEBUG_DATA_IO, "buf=0x%p, count=0x%lx*4", buf, count); nsp_fifo32_read() 118 nsp_multi_read_4(base, FIFODATA, buf, count); nsp_fifo32_read() 127 unsigned long count) nsp_multi_write_1() 129 outsb(BaseAddr + Register, buf, count); nsp_multi_write_1() 134 unsigned long count) nsp_fifo8_write() 136 nsp_multi_write_1(base, FIFODATA, buf, count); nsp_fifo8_write() 145 unsigned long count) nsp_multi_write_2() 147 outsw(BaseAddr + Register, buf, count); nsp_multi_write_2() 152 unsigned long count) nsp_fifo16_write() 154 nsp_multi_write_2(base, FIFODATA, buf, count); nsp_fifo16_write() 163 unsigned long count) nsp_multi_write_4() 165 outsl(BaseAddr + Register, buf, count); nsp_multi_write_4() 170 unsigned long count) nsp_fifo32_write() 172 nsp_multi_write_4(base, FIFODATA, buf, count); nsp_fifo32_write() 222 unsigned long count) nsp_mmio_multi_read_4() 230 for (i = 0; i < count; i++) { nsp_mmio_multi_read_4() 239 unsigned long count) nsp_mmio_fifo32_read() 241 //nsp_dbg(NSP_DEBUG_DATA_IO, "buf=0x%p, count=0x%lx*4", buf, count); nsp_mmio_fifo32_read() 242 nsp_mmio_multi_read_4(base, FIFODATA, buf, count); nsp_mmio_fifo32_read() 248 unsigned long count) nsp_mmio_multi_write_4() 256 for (i = 0; i < count; i++) { nsp_mmio_multi_write_4() 265 unsigned long count) nsp_mmio_fifo32_write() 267 //nsp_dbg(NSP_DEBUG_DATA_IO, "buf=0x%p, count=0x%lx*4", buf, count); nsp_mmio_fifo32_write() 268 nsp_mmio_multi_write_4(base, FIFODATA, buf, count); nsp_mmio_fifo32_write() 67 nsp_multi_read_1(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) nsp_multi_read_1() argument 75 nsp_fifo8_read(unsigned int base, void *buf, unsigned long count) nsp_fifo8_read() argument 86 nsp_multi_read_2(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) nsp_multi_read_2() argument 94 nsp_fifo16_read(unsigned int base, void *buf, unsigned long count) nsp_fifo16_read() argument 105 nsp_multi_read_4(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) nsp_multi_read_4() argument 113 nsp_fifo32_read(unsigned int base, void *buf, unsigned long count) nsp_fifo32_read() argument 124 nsp_multi_write_1(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) nsp_multi_write_1() argument 132 nsp_fifo8_write(unsigned int base, void *buf, unsigned long count) nsp_fifo8_write() argument 142 nsp_multi_write_2(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) nsp_multi_write_2() argument 150 nsp_fifo16_write(unsigned int base, void *buf, unsigned long count) nsp_fifo16_write() argument 160 nsp_multi_write_4(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) nsp_multi_write_4() argument 168 nsp_fifo32_write(unsigned int base, void *buf, unsigned long count) nsp_fifo32_write() argument 219 nsp_mmio_multi_read_4(unsigned long base, unsigned int Register, void *buf, unsigned long count) nsp_mmio_multi_read_4() argument 237 nsp_mmio_fifo32_read(unsigned int base, void *buf, unsigned long count) nsp_mmio_fifo32_read() argument 245 nsp_mmio_multi_write_4(unsigned long base, unsigned int Register, void *buf, unsigned long count) nsp_mmio_multi_write_4() argument 263 nsp_mmio_fifo32_write(unsigned int base, void *buf, unsigned long count) nsp_mmio_fifo32_write() argument
|
/linux-4.4.14/drivers/ssb/ |
H A D | host_soc.c | 41 size_t count, u16 offset, u8 reg_width) ssb_host_soc_block_read() 53 while (count) { sizeof() 56 count--; sizeof() 63 SSB_WARN_ON(count & 1); sizeof() 64 while (count) { sizeof() 67 count -= 2; sizeof() 74 SSB_WARN_ON(count & 3); sizeof() 75 while (count) { sizeof() 78 count -= 4; sizeof() 114 size_t count, u16 offset, u8 reg_width) ssb_host_soc_block_write() 126 while (count) { sizeof() 129 count--; sizeof() 136 SSB_WARN_ON(count & 1); sizeof() 137 while (count) { sizeof() 140 count -= 2; sizeof() 147 SSB_WARN_ON(count & 3); sizeof() 148 while (count) { sizeof() 151 count -= 4; sizeof() 40 ssb_host_soc_block_read(struct ssb_device *dev, void *buffer, size_t count, u16 offset, u8 reg_width) ssb_host_soc_block_read() argument 113 ssb_host_soc_block_write(struct ssb_device *dev, const void *buffer, size_t count, u16 offset, u8 reg_width) ssb_host_soc_block_write() argument
|
/linux-4.4.14/drivers/acpi/ |
H A D | custom_method.c | 23 size_t count, loff_t *ppos) cm_write() 34 if (count <= sizeof(struct acpi_table_header)) cm_write() 49 (*ppos + count > max_size) || cm_write() 50 (*ppos + count < count) || cm_write() 51 (count > uncopied_bytes)) cm_write() 54 if (copy_from_user(buf + (*ppos), user_buf, count)) { cm_write() 60 uncopied_bytes -= count; cm_write() 61 *ppos += count; cm_write() 72 return count; cm_write() 22 cm_write(struct file *file, const char __user * user_buf, size_t count, loff_t *ppos) cm_write() argument
|
H A D | ec_sys.c | 32 size_t count, loff_t *off) acpi_ec_read_io() 43 if (*off + count >= size) { acpi_ec_read_io() 45 count = size; acpi_ec_read_io() 47 size = count; acpi_ec_read_io() 62 return count; acpi_ec_read_io() 66 size_t count, loff_t *off) acpi_ec_write_io() 72 unsigned int size = count; acpi_ec_write_io() 78 if (*off + count >= EC_SPACE_SIZE) { acpi_ec_write_io() 80 count = size; acpi_ec_write_io() 97 return count; acpi_ec_write_io() 31 acpi_ec_read_io(struct file *f, char __user *buf, size_t count, loff_t *off) acpi_ec_read_io() argument 65 acpi_ec_write_io(struct file *f, const char __user *buf, size_t count, loff_t *off) acpi_ec_write_io() argument
|
/linux-4.4.14/drivers/pci/hotplug/ |
H A D | ibmphp_pci.c | 361 int count; configure_device() local 374 for (count = 0; address[count]; count++) { /* for 6 BARs */ configure_device() 381 PCI_BASE_ADDRESS_0 + 4 * count, &tmp); configure_device() 384 PCI_BASE_ADDRESS_0 + 4 * count, 0xFFFFFFFD); configure_device() 387 PCI_BASE_ADDRESS_0 + 4 * count, 0xFFFFFFFF); configure_device() 389 pci_bus_write_config_dword (ibmphp_pci_bus, devfn, address[count], 0xFFFFFFFF); configure_device() 390 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &bar[count]); configure_device() 392 if (!bar[count]) /* This BAR is not implemented */ configure_device() 395 debug ("Device %x BAR %d wants %x\n", func->device, count, bar[count]); configure_device() 397 if (bar[count] & PCI_BASE_ADDRESS_SPACE_IO) { configure_device() 401 len[count] = bar[count] & 0xFFFFFFFC; configure_device() 402 len[count] = ~len[count] + 1; configure_device() 404 debug ("len[count] in IO %x, count %d\n", len[count], count); configure_device() 406 io[count] = kzalloc(sizeof(struct resource_node), GFP_KERNEL); configure_device() 408 if (!io[count]) { configure_device() 412 io[count]->type = IO; configure_device() 413 io[count]->busno = func->busno; configure_device() 414 io[count]->devfunc = PCI_DEVFN(func->device, func->function); configure_device() 415 io[count]->len = len[count]; configure_device() 416 if (ibmphp_check_resource(io[count], 0) == 0) { configure_device() 417 ibmphp_add_resource (io[count]); configure_device() 418 func->io[count] = io[count]; configure_device() 421 func->busno, func->device, func->function, len[count]); configure_device() 422 kfree (io[count]); configure_device() 425 pci_bus_write_config_dword (ibmphp_pci_bus, devfn, address[count], func->io[count]->start); configure_device() 428 debug ("b4 writing, the IO address is %x\n", func->io[count]->start); configure_device() 429 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &bar[count]); configure_device() 430 debug ("after writing.... the start address is %x\n", bar[count]); configure_device() 435 if (bar[count] & PCI_BASE_ADDRESS_MEM_PREFETCH) { configure_device() 439 len[count] = bar[count] & 0xFFFFFFF0; configure_device() 440 len[count] = ~len[count] + 1; configure_device() 442 debug ("len[count] in PFMEM %x, count %d\n", len[count], count); configure_device() 444 pfmem[count] = kzalloc(sizeof(struct resource_node), GFP_KERNEL); configure_device() 445 if (!pfmem[count]) { configure_device() 449 pfmem[count]->type = PFMEM; configure_device() 450 pfmem[count]->busno = func->busno; configure_device() 451 pfmem[count]->devfunc = PCI_DEVFN(func->device, configure_device() 453 pfmem[count]->len = len[count]; configure_device() 454 pfmem[count]->fromMem = 0; configure_device() 455 if (ibmphp_check_resource (pfmem[count], 0) == 0) { configure_device() 456 ibmphp_add_resource (pfmem[count]); configure_device() 457 func->pfmem[count] = pfmem[count]; configure_device() 462 kfree (pfmem[count]); configure_device() 466 mem_tmp->busno = pfmem[count]->busno; configure_device() 467 mem_tmp->devfunc = pfmem[count]->devfunc; configure_device() 468 mem_tmp->len = pfmem[count]->len; configure_device() 472 pfmem[count]->fromMem = 1; configure_device() 473 pfmem[count]->rangeno = mem_tmp->rangeno; configure_device() 474 pfmem[count]->start = mem_tmp->start; configure_device() 475 pfmem[count]->end = mem_tmp->end; configure_device() 476 ibmphp_add_pfmem_from_mem (pfmem[count]); configure_device() 477 func->pfmem[count] = pfmem[count]; configure_device() 480 func->busno, func->device, len[count]); configure_device() 482 kfree (pfmem[count]); configure_device() 487 pci_bus_write_config_dword (ibmphp_pci_bus, devfn, address[count], func->pfmem[count]->start); configure_device() 490 debug ("b4 writing, start address is %x\n", func->pfmem[count]->start); configure_device() 491 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &bar[count]); configure_device() 492 debug ("after writing, start address is %x\n", bar[count]); configure_device() 495 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) { /* takes up another dword */ configure_device() 496 debug ("inside the mem 64 case, count %d\n", count); configure_device() 497 count += 1; configure_device() 499 pci_bus_write_config_dword (ibmphp_pci_bus, devfn, address[count], 0x00000000); configure_device() 505 len[count] = bar[count] & 0xFFFFFFF0; configure_device() 506 len[count] = ~len[count] + 1; configure_device() 508 debug ("len[count] in Mem %x, count %d\n", len[count], count); configure_device() 510 mem[count] = kzalloc(sizeof(struct resource_node), GFP_KERNEL); configure_device() 511 if (!mem[count]) { configure_device() 515 mem[count]->type = MEM; configure_device() 516 mem[count]->busno = func->busno; configure_device() 517 mem[count]->devfunc = PCI_DEVFN(func->device, configure_device() 519 mem[count]->len = len[count]; configure_device() 520 if (ibmphp_check_resource (mem[count], 0) == 0) { configure_device() 521 ibmphp_add_resource (mem[count]); configure_device() 522 func->mem[count] = mem[count]; configure_device() 525 func->busno, func->device, len[count]); configure_device() 526 kfree (mem[count]); configure_device() 529 pci_bus_write_config_dword (ibmphp_pci_bus, devfn, address[count], func->mem[count]->start); configure_device() 531 debug ("b4 writing, start address is %x\n", func->mem[count]->start); configure_device() 532 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &bar[count]); configure_device() 533 debug ("after writing, the address is %x\n", bar[count]); configure_device() 536 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) { configure_device() 538 debug ("inside mem 64 case, reg. mem, count %d\n", count); configure_device() 539 count += 1; configure_device() 541 pci_bus_write_config_dword (ibmphp_pci_bus, devfn, address[count], 0x00000000); configure_device() 568 int count; configure_bridge() local 654 for (count = 0; address[count]; count++) { /* for 2 BARs */ configure_bridge() 655 pci_bus_write_config_dword (ibmphp_pci_bus, devfn, address[count], 0xFFFFFFFF); configure_bridge() 656 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &bar[count]); configure_bridge() 658 if (!bar[count]) { configure_bridge() 660 debug ("so we come here then, eh?, count = %d\n", count); configure_bridge() 663 // tmp_bar = bar[count]; configure_bridge() 665 debug ("Bar %d wants %x\n", count, bar[count]); configure_bridge() 667 if (bar[count] & PCI_BASE_ADDRESS_SPACE_IO) { configure_bridge() 669 len[count] = bar[count] & 0xFFFFFFFC; configure_bridge() 670 len[count] = ~len[count] + 1; configure_bridge() 672 debug ("len[count] in IO = %x\n", len[count]); configure_bridge() 674 bus_io[count] = kzalloc(sizeof(struct resource_node), GFP_KERNEL); configure_bridge() 676 if (!bus_io[count]) { configure_bridge() 681 bus_io[count]->type = IO; configure_bridge() 682 bus_io[count]->busno = func->busno; configure_bridge() 683 bus_io[count]->devfunc = PCI_DEVFN(func->device, configure_bridge() 685 bus_io[count]->len = len[count]; configure_bridge() 686 if (ibmphp_check_resource (bus_io[count], 0) == 0) { configure_bridge() 687 ibmphp_add_resource (bus_io[count]); configure_bridge() 688 func->io[count] = bus_io[count]; configure_bridge() 691 func->busno, func->device, len[count]); configure_bridge() 692 kfree (bus_io[count]); configure_bridge() 696 pci_bus_write_config_dword (ibmphp_pci_bus, devfn, address[count], func->io[count]->start); configure_bridge() 700 if (bar[count] & PCI_BASE_ADDRESS_MEM_PREFETCH) { configure_bridge() 702 len[count] = bar[count] & 0xFFFFFFF0; configure_bridge() 703 len[count] = ~len[count] + 1; configure_bridge() 705 debug ("len[count] in PFMEM = %x\n", len[count]); configure_bridge() 707 bus_pfmem[count] = kzalloc(sizeof(struct resource_node), GFP_KERNEL); configure_bridge() 708 if (!bus_pfmem[count]) { configure_bridge() 713 bus_pfmem[count]->type = PFMEM; configure_bridge() 714 bus_pfmem[count]->busno = func->busno; configure_bridge() 715 bus_pfmem[count]->devfunc = PCI_DEVFN(func->device, configure_bridge() 717 bus_pfmem[count]->len = len[count]; configure_bridge() 718 bus_pfmem[count]->fromMem = 0; configure_bridge() 719 if (ibmphp_check_resource (bus_pfmem[count], 0) == 0) { configure_bridge() 720 ibmphp_add_resource (bus_pfmem[count]); configure_bridge() 721 func->pfmem[count] = bus_pfmem[count]; configure_bridge() 730 mem_tmp->busno = bus_pfmem[count]->busno; configure_bridge() 731 mem_tmp->devfunc = bus_pfmem[count]->devfunc; configure_bridge() 732 mem_tmp->len = bus_pfmem[count]->len; configure_bridge() 735 bus_pfmem[count]->fromMem = 1; configure_bridge() 736 bus_pfmem[count]->rangeno = mem_tmp->rangeno; configure_bridge() 737 ibmphp_add_pfmem_from_mem (bus_pfmem[count]); configure_bridge() 738 func->pfmem[count] = bus_pfmem[count]; configure_bridge() 741 func->busno, func->device, len[count]); configure_bridge() 743 kfree (bus_pfmem[count]); configure_bridge() 748 pci_bus_write_config_dword (ibmphp_pci_bus, devfn, address[count], func->pfmem[count]->start); configure_bridge() 750 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) { configure_bridge() 752 count += 1; configure_bridge() 754 pci_bus_write_config_dword (ibmphp_pci_bus, devfn, address[count], 0x00000000); configure_bridge() 759 len[count] = bar[count] & 0xFFFFFFF0; configure_bridge() 760 len[count] = ~len[count] + 1; configure_bridge() 762 debug ("len[count] in Memory is %x\n", len[count]); configure_bridge() 764 bus_mem[count] = kzalloc(sizeof(struct resource_node), GFP_KERNEL); configure_bridge() 765 if (!bus_mem[count]) { configure_bridge() 770 bus_mem[count]->type = MEM; configure_bridge() 771 bus_mem[count]->busno = func->busno; configure_bridge() 772 bus_mem[count]->devfunc = PCI_DEVFN(func->device, configure_bridge() 774 bus_mem[count]->len = len[count]; configure_bridge() 775 if (ibmphp_check_resource (bus_mem[count], 0) == 0) { configure_bridge() 776 ibmphp_add_resource (bus_mem[count]); configure_bridge() 777 func->mem[count] = bus_mem[count]; configure_bridge() 780 func->busno, func->device, len[count]); configure_bridge() 781 kfree (bus_mem[count]); configure_bridge() 785 pci_bus_write_config_dword (ibmphp_pci_bus, devfn, address[count], func->mem[count]->start); configure_bridge() 787 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) { configure_bridge() 789 count += 1; configure_bridge() 791 pci_bus_write_config_dword (ibmphp_pci_bus, devfn, address[count], 0x00000000); configure_bridge() 812 for (count = 0; address[count]; count++) { configure_bridge() 814 if (bus_io[count]) { configure_bridge() 815 ibmphp_remove_resource (bus_io[count]); configure_bridge() 816 func->io[count] = NULL; configure_bridge() 817 } else if (bus_pfmem[count]) { configure_bridge() 818 ibmphp_remove_resource (bus_pfmem[count]); configure_bridge() 819 func->pfmem[count] = NULL; configure_bridge() 820 } else if (bus_mem[count]) { configure_bridge() 821 ibmphp_remove_resource (bus_mem[count]); configure_bridge() 822 func->mem[count] = NULL; configure_bridge() 1080 int count, len[6]; scan_behind_bridge() local 1141 for (count = 0; address[count]; count++) { scan_behind_bridge() 1144 pci_bus_read_config_byte (ibmphp_pci_bus, devfn, address[count], &tmp); scan_behind_bridge() 1146 pci_bus_write_config_dword (ibmphp_pci_bus, devfn, address[count], 0xFFFFFFFD); scan_behind_bridge() 1148 pci_bus_write_config_dword (ibmphp_pci_bus, devfn, address[count], 0xFFFFFFFF); scan_behind_bridge() 1150 pci_bus_write_config_dword (ibmphp_pci_bus, devfn, address[count], 0xFFFFFFFF); scan_behind_bridge() 1151 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &bar[count]); scan_behind_bridge() 1153 debug ("what is bar[count]? %x, count = %d\n", bar[count], count); scan_behind_bridge() 1155 if (!bar[count]) /* This BAR is not implemented */ scan_behind_bridge() 1158 //tmp_bar = bar[count]; scan_behind_bridge() 1160 debug ("count %d device %x function %x wants %x resources\n", count, device, function, bar[count]); scan_behind_bridge() 1162 if (bar[count] & PCI_BASE_ADDRESS_SPACE_IO) { scan_behind_bridge() 1164 len[count] = bar[count] & 0xFFFFFFFC; scan_behind_bridge() 1165 len[count] = ~len[count] + 1; scan_behind_bridge() 1166 amount->io += len[count]; scan_behind_bridge() 1169 if (bar[count] & PCI_BASE_ADDRESS_MEM_PREFETCH) { scan_behind_bridge() 1171 len[count] = bar[count] & 0xFFFFFFF0; scan_behind_bridge() 1172 len[count] = ~len[count] + 1; scan_behind_bridge() 1173 amount->pfmem += len[count]; scan_behind_bridge() 1174 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) scan_behind_bridge() 1176 count += 1; scan_behind_bridge() 1180 len[count] = bar[count] & 0xFFFFFFF0; scan_behind_bridge() 1181 len[count] = ~len[count] + 1; scan_behind_bridge() 1182 amount->mem += len[count]; scan_behind_bridge() 1183 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) { scan_behind_bridge() 1185 count += 1; scan_behind_bridge() 1226 int count; unconfigure_boot_device() local 1247 for (count = 0; address[count]; count++) { /* for 6 BARs */ unconfigure_boot_device() 1248 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &start_address); unconfigure_boot_device() 1252 pci_bus_write_config_dword (ibmphp_pci_bus, devfn, address[count], 0xFFFFFFFF); unconfigure_boot_device() 1253 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &size); unconfigure_boot_device() 1254 pci_bus_write_config_dword (ibmphp_pci_bus, devfn, address[count], start_address); unconfigure_boot_device() 1260 debug ("is this bar no implemented?, count = %d\n", count); unconfigure_boot_device() 1324 count += 1; unconfigure_boot_device() 1334 int count; unconfigure_boot_bridge() local 1383 for (count = 0; address[count]; count++) { unconfigure_boot_bridge() 1385 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &start_address); unconfigure_boot_bridge() 1436 count += 1; unconfigure_boot_bridge() 1564 int count; ibmphp_unconfigure_card() local 1587 count = 2; ibmphp_unconfigure_card() 1589 count = 6; ibmphp_unconfigure_card() 1592 for (i = 0; i < count; i++) { ibmphp_unconfigure_card()
|
/linux-4.4.14/drivers/staging/rtl8188eu/include/ |
H A D | rtw_debug.h | 121 off_t offset, int count, 125 off_t offset, int count, 129 unsigned long count, void *data); 131 off_t offset, int count, 135 unsigned long count, void *data); 138 off_t offset, int count, 141 off_t offset, int count, 144 off_t offset, int count, 148 off_t offset, int count, 151 off_t offset, int count, 154 off_t offset, int count, 157 off_t offset, int count, 161 off_t offset, int count, 165 off_t offset, int count, 169 off_t offset, int count, 173 off_t offset, int count, 177 off_t offset, int count, 181 off_t offset, int count, 185 off_t offset, int count, 189 off_t offset, int count, 193 off_t offset, int count, 197 off_t offset, int count, 201 off_t offset, int count, 205 off_t offset, int count, 211 off_t offset, int count, 217 off_t offset, int count, 221 off_t offset, int count, 225 unsigned long count, void *data); 228 off_t offset, int count, 232 unsigned long count, void *data); 235 off_t offset, int count, 239 unsigned long count, void *data); 242 off_t offset, int count, 246 unsigned long count, void *data); 249 off_t offset, int count, 253 unsigned long count, void *data); 256 off_t offset, int count, 260 off_t offset, int count, 264 unsigned long count, void *data);
|
/linux-4.4.14/drivers/staging/rtl8188eu/core/ |
H A D | rtw_debug.c | 26 off_t offset, int count, proc_get_drv_version() 31 len += snprintf(page + len, count - len, "%s\n", DRIVERVERSION); proc_get_drv_version() 38 off_t offset, int count, proc_get_write_reg() 46 unsigned long count, void *data) proc_set_write_reg() 53 if (count < 3) { proc_set_write_reg() 63 return count; proc_set_write_reg() 80 return count; proc_set_write_reg() 87 off_t offset, int count, proc_get_read_reg() 102 len += snprintf(page + len, count - len, "usb_read8(0x%x)=0x%x\n", proc_get_read_addr, usb_read8(padapter, proc_get_read_addr)); proc_get_read_reg() 105 len += snprintf(page + len, count - len, "usb_read16(0x%x)=0x%x\n", proc_get_read_addr, usb_read16(padapter, proc_get_read_addr)); proc_get_read_reg() 108 len += snprintf(page + len, count - len, "usb_read32(0x%x)=0x%x\n", proc_get_read_addr, usb_read32(padapter, proc_get_read_addr)); proc_get_read_reg() 111 len += snprintf(page + len, count - len, "error read length=%d\n", proc_get_read_len); proc_get_read_reg() 120 unsigned long count, void *data) proc_set_read_reg() 125 if (count < 2) { proc_set_read_reg() 135 return count; proc_set_read_reg() 143 return count; proc_set_read_reg() 147 off_t offset, int count, proc_get_fwstate() 156 len += snprintf(page + len, count - len, "fwstate=0x%x\n", get_fwstate(pmlmepriv)); proc_get_fwstate() 163 off_t offset, int count, proc_get_sec_info() 172 len += snprintf(page + len, count - len, "auth_alg=0x%x, enc_alg=0x%x, auth_type=0x%x, enc_type=0x%x\n", proc_get_sec_info() 181 off_t offset, int count, proc_get_mlmext_state() 191 len += snprintf(page + len, count - len, "pmlmeinfo->state=0x%x\n", pmlmeinfo->state); proc_get_mlmext_state() 198 off_t offset, int count, proc_get_qos_option() 207 len += snprintf(page + len, count - len, "qos_option=%d\n", pmlmepriv->qospriv.qos_option); proc_get_qos_option() 214 off_t offset, int count, proc_get_ht_option() 223 len += snprintf(page + len, count - len, "ht_option=%d\n", pmlmepriv->htpriv.ht_option); proc_get_ht_option() 229 off_t offset, int count, proc_get_rf_info() 237 len += snprintf(page + len, count - len, "cur_ch=%d, cur_bw=%d, cur_ch_offset=%d\n", proc_get_rf_info() 244 off_t offset, int count, proc_get_ap_info() 261 len += snprintf(page + len, count - len, "SSID=%s\n", cur_network->network.Ssid.Ssid); proc_get_ap_info() 262 len += snprintf(page + len, count - len, "sta's macaddr:%pM\n", psta->hwaddr); proc_get_ap_info() 263 len += snprintf(page + len, count - len, "cur_channel=%d, cur_bwmode=%d, cur_ch_offset=%d\n", pmlmeext->cur_channel, pmlmeext->cur_bwmode, pmlmeext->cur_ch_offset); proc_get_ap_info() 264 len += snprintf(page + len, count - len, "rtsen=%d, cts2slef=%d\n", psta->rtsen, psta->cts2self); proc_get_ap_info() 265 len += snprintf(page + len, count - len, "state=0x%x, aid=%d, macid=%d, raid=%d\n", psta->state, psta->aid, psta->mac_id, psta->raid); proc_get_ap_info() 266 len += snprintf(page + len, count - len, "qos_en=%d, ht_en=%d, init_rate=%d\n", psta->qos_option, psta->htpriv.ht_option, psta->init_rate); proc_get_ap_info() 267 len += snprintf(page + len, count - len, "bwmode=%d, ch_offset=%d, sgi=%d\n", psta->htpriv.bwmode, psta->htpriv.ch_offset, psta->htpriv.sgi); proc_get_ap_info() 268 len += snprintf(page + len, count - len, "ampdu_enable = %d\n", psta->htpriv.ampdu_enable); proc_get_ap_info() 269 len += snprintf(page + len, count - len, "agg_enable_bitmap=%x, candidate_tid_bitmap=%x\n", psta->htpriv.agg_enable_bitmap, psta->htpriv.candidate_tid_bitmap); proc_get_ap_info() 274 len += snprintf(page + len, count - len, "tid=%d, indicate_seq=%d\n", i, preorder_ctrl->indicate_seq); proc_get_ap_info() 277 len += snprintf(page + len, count - len, "can't get sta's macaddr, cur_network's macaddr: %pM\n", cur_network->network.MacAddress); proc_get_ap_info() 285 off_t offset, int count, proc_get_adapter_state() 292 len += snprintf(page + len, count - len, "bSurpriseRemoved=%d, bDriverStopped=%d\n", proc_get_adapter_state() 300 off_t offset, int count, proc_get_trx_info() 309 len += snprintf(page + len, count - len, "free_xmitbuf_cnt=%d, free_xmitframe_cnt=%d, free_ext_xmitbuf_cnt=%d, free_recvframe_cnt=%d\n", proc_get_trx_info() 311 len += snprintf(page + len, count - len, "rx_urb_pending_cn=%d\n", precvpriv->rx_pending_cnt); proc_get_trx_info() 318 off_t offset, int count, proc_get_mac_reg_dump1() 326 len += snprintf(page + len, count - len, "\n======= MAC REG =======\n"); proc_get_mac_reg_dump1() 330 len += snprintf(page + len, count - len, "0x%02x", i); proc_get_mac_reg_dump1() 331 len += snprintf(page + len, count - len, " 0x%08x ", usb_read32(padapter, i)); proc_get_mac_reg_dump1() 333 len += snprintf(page + len, count - len, "\n"); proc_get_mac_reg_dump1() 341 off_t offset, int count, proc_get_mac_reg_dump2() 349 len += snprintf(page + len, count - len, "\n======= MAC REG =======\n"); proc_get_mac_reg_dump2() 350 memset(page, 0, count); proc_get_mac_reg_dump2() 353 len += snprintf(page + len, count - len, "0x%02x", i); proc_get_mac_reg_dump2() 354 len += snprintf(page + len, count - len, " 0x%08x ", usb_read32(padapter, i)); proc_get_mac_reg_dump2() 356 len += snprintf(page + len, count - len, "\n"); proc_get_mac_reg_dump2() 364 off_t offset, int count, proc_get_mac_reg_dump3() 372 len += snprintf(page + len, count - len, "\n======= MAC REG =======\n"); proc_get_mac_reg_dump3() 376 len += snprintf(page + len, count - len, "0x%02x", i); proc_get_mac_reg_dump3() 377 len += snprintf(page + len, count - len, " 0x%08x ", usb_read32(padapter, i)); proc_get_mac_reg_dump3() 379 len += snprintf(page + len, count - len, "\n"); proc_get_mac_reg_dump3() 387 off_t offset, int count, proc_get_bb_reg_dump1() 395 len += snprintf(page + len, count - len, "\n======= BB REG =======\n"); proc_get_bb_reg_dump1() 398 len += snprintf(page + len, count - len, "0x%02x", i); proc_get_bb_reg_dump1() 399 len += snprintf(page + len, count - len, " 0x%08x ", usb_read32(padapter, i)); proc_get_bb_reg_dump1() 401 len += snprintf(page + len, count - len, "\n"); proc_get_bb_reg_dump1() 408 off_t offset, int count, proc_get_bb_reg_dump2() 416 len += snprintf(page + len, count - len, "\n======= BB REG =======\n"); proc_get_bb_reg_dump2() 419 len += snprintf(page + len, count - len, "0x%02x", i); proc_get_bb_reg_dump2() 420 len += snprintf(page + len, count - len, " 0x%08x ", usb_read32(padapter, i)); proc_get_bb_reg_dump2() 422 len += snprintf(page + len, count - len, "\n"); proc_get_bb_reg_dump2() 429 off_t offset, int count, proc_get_bb_reg_dump3() 437 len += snprintf(page + len, count - len, "\n======= BB REG =======\n"); proc_get_bb_reg_dump3() 440 len += snprintf(page + len, count - len, "0x%02x", i); proc_get_bb_reg_dump3() 441 len += snprintf(page + len, count - len, " 0x%08x ", usb_read32(padapter, i)); proc_get_bb_reg_dump3() 443 len += snprintf(page + len, count - len, "\n"); proc_get_bb_reg_dump3() 450 off_t offset, int count, proc_get_rf_reg_dump1() 459 len += snprintf(page + len, count - len, "\n======= RF REG =======\n"); proc_get_rf_reg_dump1() 461 len += snprintf(page + len, count - len, "\nRF_Path(%x)\n", path); proc_get_rf_reg_dump1() 465 len += snprintf(page + len, count - len, "0x%02x ", i); proc_get_rf_reg_dump1() 466 len += snprintf(page + len, count - len, " 0x%08x ", value); proc_get_rf_reg_dump1() 468 len += snprintf(page + len, count - len, "\n"); proc_get_rf_reg_dump1() 475 off_t offset, int count, proc_get_rf_reg_dump2() 484 len += snprintf(page + len, count - len, "\n======= RF REG =======\n"); proc_get_rf_reg_dump2() 486 len += snprintf(page + len, count - len, "\nRF_Path(%x)\n", path); proc_get_rf_reg_dump2() 490 len += snprintf(page + len, count - len, "0x%02x ", i); proc_get_rf_reg_dump2() 491 len += snprintf(page + len, count - len, " 0x%08x ", value); proc_get_rf_reg_dump2() 493 len += snprintf(page + len, count - len, "\n"); proc_get_rf_reg_dump2() 500 off_t offset, int count, proc_get_rf_reg_dump3() 509 len += snprintf(page + len, count - len, "\n======= RF REG =======\n"); proc_get_rf_reg_dump3() 511 len += snprintf(page + len, count - len, "\nRF_Path(%x)\n", path); proc_get_rf_reg_dump3() 515 len += snprintf(page + len, count - len, "0x%02x ", i); proc_get_rf_reg_dump3() 516 len += snprintf(page + len, count - len, " 0x%08x ", value); proc_get_rf_reg_dump3() 518 len += snprintf(page + len, count - len, "\n"); proc_get_rf_reg_dump3() 527 off_t offset, int count, proc_get_rf_reg_dump4() 536 len += snprintf(page + len, count - len, "\n======= RF REG =======\n"); proc_get_rf_reg_dump4() 538 len += snprintf(page + len, count - len, "\nRF_Path(%x)\n", path); proc_get_rf_reg_dump4() 542 len += snprintf(page + len, count - len, "0x%02x ", i); proc_get_rf_reg_dump4() 543 len += snprintf(page + len, count - len, " 0x%08x ", value); proc_get_rf_reg_dump4() 545 len += snprintf(page + len, count - len, "\n"); proc_get_rf_reg_dump4() 554 off_t offset, int count, proc_get_rx_signal() 561 len = snprintf(page + len, count, proc_get_rx_signal() 579 unsigned long count, void *data) proc_set_rx_signal() 587 if (count < 1) proc_set_rx_signal() 595 return count; proc_set_rx_signal() 607 return count; proc_set_rx_signal() 611 off_t offset, int count, proc_get_ht_enable() 620 len += snprintf(page + len, count - len, proc_get_ht_enable() 629 unsigned long count, void *data) proc_set_ht_enable() 637 if (count < 1) proc_set_ht_enable() 647 return count; proc_set_ht_enable() 651 off_t offset, int count, proc_get_cbw40_enable() 661 len += snprintf(page + len, count - len, proc_get_cbw40_enable() 671 unsigned long count, void *data) proc_set_cbw40_enable() 679 if (count < 1) proc_set_cbw40_enable() 688 return count; proc_set_cbw40_enable() 692 off_t offset, int count, proc_get_ampdu_enable() 702 len += snprintf(page + len, count - len, proc_get_ampdu_enable() 712 unsigned long count, void *data) proc_set_ampdu_enable() 720 if (count < 1) proc_set_ampdu_enable() 729 return count; proc_set_ampdu_enable() 733 off_t offset, int count, proc_get_two_path_rssi() 742 len += snprintf(page + len, count - len, proc_get_two_path_rssi() 753 off_t offset, int count, proc_get_rx_stbc() 763 len += snprintf(page + len, count - len, proc_get_rx_stbc() 773 unsigned long count, void *data) proc_set_rx_stbc() 781 if (count < 1) proc_set_rx_stbc() 790 return count; proc_set_rx_stbc() 794 off_t offset, int count, proc_get_rssi_disp() 802 unsigned long count, void *data) proc_set_rssi_disp() 809 if (count < 1) { proc_set_rssi_disp() 819 return count; proc_set_rssi_disp() 830 return count; proc_set_rssi_disp() 836 off_t offset, int count, proc_get_all_sta_info() 849 len += snprintf(page + len, count - len, "sta_dz_bitmap=0x%x, tim_bitmap=0x%x\n", pstapriv->sta_dz_bitmap, pstapriv->tim_bitmap); proc_get_all_sta_info() 862 len += snprintf(page + len, count - len, "sta's macaddr: %pM\n", psta->hwaddr); proc_get_all_sta_info() 863 len += snprintf(page + len, count - len, "rtsen=%d, cts2slef=%d\n", psta->rtsen, psta->cts2self); proc_get_all_sta_info() 864 len += snprintf(page + len, count - len, "state=0x%x, aid=%d, macid=%d, raid=%d\n", psta->state, psta->aid, psta->mac_id, psta->raid); proc_get_all_sta_info() 865 len += snprintf(page + len, count - len, "qos_en=%d, ht_en=%d, init_rate=%d\n", psta->qos_option, psta->htpriv.ht_option, psta->init_rate); proc_get_all_sta_info() 866 len += snprintf(page + len, count - len, "bwmode=%d, ch_offset=%d, sgi=%d\n", psta->htpriv.bwmode, psta->htpriv.ch_offset, psta->htpriv.sgi); proc_get_all_sta_info() 867 len += snprintf(page + len, count - len, "ampdu_enable = %d\n", psta->htpriv.ampdu_enable); proc_get_all_sta_info() 868 len += snprintf(page + len, count - len, "agg_enable_bitmap=%x, candidate_tid_bitmap=%x\n", psta->htpriv.agg_enable_bitmap, psta->htpriv.candidate_tid_bitmap); proc_get_all_sta_info() 869 len += snprintf(page + len, count - len, "sleepq_len=%d\n", psta->sleepq_len); proc_get_all_sta_info() 870 len += snprintf(page + len, count - len, "capability=0x%x\n", psta->capability); proc_get_all_sta_info() 871 len += snprintf(page + len, count - len, "flags=0x%x\n", psta->flags); proc_get_all_sta_info() 872 len += snprintf(page + len, count - len, "wpa_psk=0x%x\n", psta->wpa_psk); proc_get_all_sta_info() 873 len += snprintf(page + len, count - len, "wpa2_group_cipher=0x%x\n", psta->wpa2_group_cipher); proc_get_all_sta_info() 874 len += snprintf(page + len, count - len, "wpa2_pairwise_cipher=0x%x\n", psta->wpa2_pairwise_cipher); proc_get_all_sta_info() 875 len += snprintf(page + len, count - len, "qos_info=0x%x\n", psta->qos_info); proc_get_all_sta_info() 876 len += snprintf(page + len, count - len, "dot118021XPrivacy=0x%x\n", psta->dot118021XPrivacy); proc_get_all_sta_info() 881 len += snprintf(page + len, count - len, "tid=%d, indicate_seq=%d\n", j, preorder_ctrl->indicate_seq); proc_get_all_sta_info() 893 off_t offset, int count, proc_get_best_channel() 939 len += snprintf(page + len, count - len, "The rx cnt of channel %3d = %d\n", proc_get_best_channel() 943 len += snprintf(page + len, count - len, "best_channel_5G = %d\n", best_channel_5G); proc_get_best_channel() 944 len += snprintf(page + len, count - len, "best_channel_24G = %d\n", best_channel_24G); proc_get_best_channel() 25 proc_get_drv_version(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_drv_version() argument 37 proc_get_write_reg(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_write_reg() argument 45 proc_set_write_reg(struct file *file, const char __user *buffer, unsigned long count, void *data) proc_set_write_reg() argument 86 proc_get_read_reg(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_read_reg() argument 119 proc_set_read_reg(struct file *file, const char __user *buffer, unsigned long count, void *data) proc_set_read_reg() argument 146 proc_get_fwstate(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_fwstate() argument 162 proc_get_sec_info(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_sec_info() argument 180 proc_get_mlmext_state(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_mlmext_state() argument 197 proc_get_qos_option(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_qos_option() argument 213 proc_get_ht_option(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_ht_option() argument 228 proc_get_rf_info(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_rf_info() argument 243 proc_get_ap_info(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_ap_info() argument 284 proc_get_adapter_state(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_adapter_state() argument 299 proc_get_trx_info(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_trx_info() argument 317 proc_get_mac_reg_dump1(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_mac_reg_dump1() argument 340 proc_get_mac_reg_dump2(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_mac_reg_dump2() argument 363 proc_get_mac_reg_dump3(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_mac_reg_dump3() argument 386 proc_get_bb_reg_dump1(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_bb_reg_dump1() argument 407 proc_get_bb_reg_dump2(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_bb_reg_dump2() argument 428 proc_get_bb_reg_dump3(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_bb_reg_dump3() argument 449 proc_get_rf_reg_dump1(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_rf_reg_dump1() argument 474 proc_get_rf_reg_dump2(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_rf_reg_dump2() argument 499 proc_get_rf_reg_dump3(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_rf_reg_dump3() argument 526 proc_get_rf_reg_dump4(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_rf_reg_dump4() argument 553 proc_get_rx_signal(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_rx_signal() argument 578 proc_set_rx_signal(struct file *file, const char __user *buffer, unsigned long count, void *data) proc_set_rx_signal() argument 610 proc_get_ht_enable(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_ht_enable() argument 628 proc_set_ht_enable(struct file *file, const char __user *buffer, unsigned long count, void *data) proc_set_ht_enable() argument 650 proc_get_cbw40_enable(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_cbw40_enable() argument 670 proc_set_cbw40_enable(struct file *file, const char __user *buffer, unsigned long count, void *data) proc_set_cbw40_enable() argument 691 proc_get_ampdu_enable(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_ampdu_enable() argument 711 proc_set_ampdu_enable(struct file *file, const char __user *buffer, unsigned long count, void *data) proc_set_ampdu_enable() argument 732 proc_get_two_path_rssi(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_two_path_rssi() argument 752 proc_get_rx_stbc(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_rx_stbc() argument 772 proc_set_rx_stbc(struct file *file, const char __user *buffer, unsigned long count, void *data) proc_set_rx_stbc() argument 793 proc_get_rssi_disp(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_rssi_disp() argument 801 proc_set_rssi_disp(struct file *file, const char __user *buffer, unsigned long count, void *data) proc_set_rssi_disp() argument 835 proc_get_all_sta_info(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_all_sta_info() argument 892 proc_get_best_channel(char *page, char **start, off_t offset, int count, int *eof, void *data) proc_get_best_channel() argument
|
/linux-4.4.14/arch/mips/lib/ |
H A D | iomap.c | 104 static inline void mmio_insb(void __iomem *addr, u8 *dst, int count) mmio_insb() argument 106 while (--count >= 0) { mmio_insb() 113 static inline void mmio_insw(void __iomem *addr, u16 *dst, int count) mmio_insw() argument 115 while (--count >= 0) { mmio_insw() 122 static inline void mmio_insl(void __iomem *addr, u32 *dst, int count) mmio_insl() argument 124 while (--count >= 0) { mmio_insl() 131 static inline void mmio_outsb(void __iomem *addr, const u8 *src, int count) mmio_outsb() argument 133 while (--count >= 0) { mmio_outsb() 139 static inline void mmio_outsw(void __iomem *addr, const u16 *src, int count) mmio_outsw() argument 141 while (--count >= 0) { mmio_outsw() 147 static inline void mmio_outsl(void __iomem *addr, const u32 *src, int count) mmio_outsl() argument 149 while (--count >= 0) { mmio_outsl() 155 void ioread8_rep(void __iomem *addr, void *dst, unsigned long count) ioread8_rep() argument 157 mmio_insb(addr, dst, count); ioread8_rep() 162 void ioread16_rep(void __iomem *addr, void *dst, unsigned long count) ioread16_rep() argument 164 mmio_insw(addr, dst, count); ioread16_rep() 169 void ioread32_rep(void __iomem *addr, void *dst, unsigned long count) ioread32_rep() argument 171 mmio_insl(addr, dst, count); ioread32_rep() 176 void iowrite8_rep(void __iomem *addr, const void *src, unsigned long count) iowrite8_rep() argument 178 mmio_outsb(addr, src, count); iowrite8_rep() 183 void iowrite16_rep(void __iomem *addr, const void *src, unsigned long count) iowrite16_rep() argument 185 mmio_outsw(addr, src, count); iowrite16_rep() 190 void iowrite32_rep(void __iomem *addr, const void *src, unsigned long count) iowrite32_rep() argument 192 mmio_outsl(addr, src, count); iowrite32_rep()
|
/linux-4.4.14/arch/powerpc/kernel/ |
H A D | iomap.c | 76 void ioread8_rep(void __iomem *addr, void *dst, unsigned long count) ioread8_rep() argument 78 readsb(addr, dst, count); ioread8_rep() 80 void ioread16_rep(void __iomem *addr, void *dst, unsigned long count) ioread16_rep() argument 82 readsw(addr, dst, count); ioread16_rep() 84 void ioread32_rep(void __iomem *addr, void *dst, unsigned long count) ioread32_rep() argument 86 readsl(addr, dst, count); ioread32_rep() 92 void iowrite8_rep(void __iomem *addr, const void *src, unsigned long count) iowrite8_rep() argument 94 writesb(addr, src, count); iowrite8_rep() 96 void iowrite16_rep(void __iomem *addr, const void *src, unsigned long count) iowrite16_rep() argument 98 writesw(addr, src, count); iowrite16_rep() 100 void iowrite32_rep(void __iomem *addr, const void *src, unsigned long count) iowrite32_rep() argument 102 writesl(addr, src, count); iowrite32_rep()
|
H A D | io.c | 31 void _insb(const volatile u8 __iomem *port, void *buf, long count) _insb() argument 36 if (unlikely(count <= 0)) _insb() 43 } while (--count != 0); _insb() 48 void _outsb(volatile u8 __iomem *port, const void *buf, long count) _outsb() argument 52 if (unlikely(count <= 0)) _outsb() 57 } while (--count != 0); _outsb() 62 void _insw_ns(const volatile u16 __iomem *port, void *buf, long count) _insw_ns() argument 67 if (unlikely(count <= 0)) _insw_ns() 74 } while (--count != 0); _insw_ns() 79 void _outsw_ns(volatile u16 __iomem *port, const void *buf, long count) _outsw_ns() argument 83 if (unlikely(count <= 0)) _outsw_ns() 88 } while (--count != 0); _outsw_ns() 93 void _insl_ns(const volatile u32 __iomem *port, void *buf, long count) _insl_ns() argument 98 if (unlikely(count <= 0)) _insl_ns() 105 } while (--count != 0); _insl_ns() 110 void _outsl_ns(volatile u32 __iomem *port, const void *buf, long count) _outsl_ns() argument 114 if (unlikely(count <= 0)) _outsl_ns() 119 } while (--count != 0); _outsl_ns()
|
/linux-4.4.14/arch/nios2/include/asm/ |
H A D | string.h | 18 extern void *memset(void *s, int c, size_t count); 19 extern void *memcpy(void *d, const void *s, size_t count); 20 extern void *memmove(void *d, const void *s, size_t count);
|
/linux-4.4.14/drivers/video/fbdev/ |
H A D | atafb_utils.h | 48 static inline void *fb_memclear_small(void *s, size_t count) fb_memclear_small() argument 50 if (!count) fb_memclear_small() 59 : "=a" (s), "=d" (count) fb_memclear_small() 60 : "d" (0), "0" ((char *)s + count), "1" (count)); fb_memclear_small() 68 : "=a" (s), "=d" (count) fb_memclear_small() 69 : "d" (0), "0" (s), "1" (count) fb_memclear_small() 77 static inline void *fb_memclear(void *s, size_t count) fb_memclear() argument 79 if (!count) fb_memclear() 82 if (count < 16) { fb_memclear() 89 : "=a" (s), "=d" (count) fb_memclear() 90 : "0" (s), "1" (count)); fb_memclear() 109 : "=a" (s), "=d" (count), "=d" (tmp) fb_memclear() 110 : "0" (s), "1" (count)); fb_memclear() 117 static inline void *fb_memset255(void *s, size_t count) fb_memset255() argument 119 if (!count) fb_memset255() 128 : "=a" (s), "=d" (count) fb_memset255() 129 : "d" (-1), "0" ((char *)s+count), "1" (count)); fb_memset255() 136 : "=a" (s), "=d" (count) fb_memset255() 137 : "d" (-1), "0" (s), "1" (count) fb_memset255() 144 static inline void *fb_memmove(void *d, const void *s, size_t count) fb_memmove() argument 147 if (count < 16) { fb_memmove() 154 : "=a" (d), "=a" (s), "=d" (count) fb_memmove() 155 : "0" (d), "1" (s), "2" (count)); fb_memmove() 175 : "=a" (d), "=a" (s), "=d" (count), "=d" (tmp) fb_memmove() 176 : "0" (d), "1" (s), "2" (count)); fb_memmove() 179 if (count < 16) { fb_memmove() 186 : "=a" (d), "=a" (s), "=d" (count) fb_memmove() 187 : "0" ((char *) d + count), "1" ((char *) s + count), "2" (count)); fb_memmove() 208 : "=a" (d), "=a" (s), "=d" (count), "=d" (tmp) fb_memmove() 209 : "0" ((char *) d + count), "1" ((char *) s + count), "2" (count)); fb_memmove()
|
/linux-4.4.14/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-debugifc.c | 33 unsigned int count) debugifc_count_whitespace() 38 for (scnt = 0; scnt < count; scnt++) { debugifc_count_whitespace() 50 unsigned int count) debugifc_count_nonwhitespace() 55 for (scnt = 0; scnt < count; scnt++) { debugifc_count_nonwhitespace() 65 static unsigned int debugifc_isolate_word(const char *buf,unsigned int count, debugifc_isolate_word() argument 76 scnt = debugifc_count_whitespace(buf,count); debugifc_isolate_word() 77 consume_cnt += scnt; count -= scnt; buf += scnt; debugifc_isolate_word() 78 if (!count) goto done; debugifc_isolate_word() 80 scnt = debugifc_count_nonwhitespace(buf,count); debugifc_isolate_word() 84 consume_cnt += scnt; count -= scnt; buf += scnt; debugifc_isolate_word() 93 static int debugifc_parse_unsigned_number(const char *buf,unsigned int count, debugifc_parse_unsigned_number() argument 98 if ((count >= 2) && (buf[0] == '0') && debugifc_parse_unsigned_number() 101 count -= 2; debugifc_parse_unsigned_number() 103 } else if ((count >= 1) && (buf[0] == '0')) { debugifc_parse_unsigned_number() 107 while (count--) { debugifc_parse_unsigned_number() 119 static int debugifc_match_keyword(const char *buf,unsigned int count, debugifc_match_keyword() argument 125 if (kl != count) return 0; debugifc_match_keyword() 196 unsigned int count) pvr2_debugifc_do1cmd() 202 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); pvr2_debugifc_do1cmd() 204 count -= scnt; buf += scnt; pvr2_debugifc_do1cmd() 209 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); pvr2_debugifc_do1cmd() 211 count -= scnt; buf += scnt; pvr2_debugifc_do1cmd() 236 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); pvr2_debugifc_do1cmd() 238 count -= scnt; buf += scnt; pvr2_debugifc_do1cmd() 241 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); pvr2_debugifc_do1cmd() 243 count -= scnt; buf += scnt; pvr2_debugifc_do1cmd() 269 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); pvr2_debugifc_do1cmd() 271 count -= scnt; buf += scnt; pvr2_debugifc_do1cmd() 278 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); pvr2_debugifc_do1cmd() 280 count -= scnt; buf += scnt; pvr2_debugifc_do1cmd() 284 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); pvr2_debugifc_do1cmd() 306 unsigned int count) pvr2_debugifc_docmd() 311 while (count) { pvr2_debugifc_docmd() 312 for (bcnt = 0; bcnt < count; bcnt++) { pvr2_debugifc_docmd() 318 if (bcnt < count) bcnt++; pvr2_debugifc_docmd() 320 count -= bcnt; pvr2_debugifc_docmd() 32 debugifc_count_whitespace(const char *buf, unsigned int count) debugifc_count_whitespace() argument 49 debugifc_count_nonwhitespace(const char *buf, unsigned int count) debugifc_count_nonwhitespace() argument 195 pvr2_debugifc_do1cmd(struct pvr2_hdw *hdw,const char *buf, unsigned int count) pvr2_debugifc_do1cmd() argument 305 pvr2_debugifc_docmd(struct pvr2_hdw *hdw,const char *buf, unsigned int count) pvr2_debugifc_docmd() argument
|
/linux-4.4.14/arch/alpha/oprofile/ |
H A D | op_model_ev4.c | 24 unsigned long ctl = 0, count, hilo; ev4_reg_setup() local 45 extent. Take the interrupt count selected by the user, ev4_reg_setup() 48 count = ctr[0].count; ev4_reg_setup() 49 if (count <= 4096) ev4_reg_setup() 50 count = 4096, hilo = 1; ev4_reg_setup() 52 count = 65536, hilo = 0; ev4_reg_setup() 53 ctr[0].count = count; ev4_reg_setup() 56 count = ctr[1].count; ev4_reg_setup() 57 if (count <= 256) ev4_reg_setup() 58 count = 256, hilo = 1; ev4_reg_setup() 60 count = 4096, hilo = 0; ev4_reg_setup() 61 ctr[1].count = count; ev4_reg_setup()
|
H A D | op_model_ev6.c | 47 unsigned long count = ctr[i].count; ev6_reg_setup() local 51 if (count > 0x100000) ev6_reg_setup() 52 count = 0x100000; ev6_reg_setup() 53 ctr[i].count = count; ev6_reg_setup() 54 reset |= (0x100000 - count) << (i ? 6 : 28); ev6_reg_setup() 55 if (count != 0x100000) ev6_reg_setup() 74 /* CTR is a counter for which the user has requested an interrupt count 75 in between one of the widths selectable in hardware. Reset the count
|
/linux-4.4.14/arch/blackfin/include/asm/ |
H A D | io.h | 22 extern void outsb(unsigned long port, const void *addr, unsigned long count); 23 extern void outsw(unsigned long port, const void *addr, unsigned long count); 24 extern void outsw_8(unsigned long port, const void *addr, unsigned long count); 25 extern void outsl(unsigned long port, const void *addr, unsigned long count); 30 extern void insb(unsigned long port, void *addr, unsigned long count); 31 extern void insw(unsigned long port, void *addr, unsigned long count); 32 extern void insw_8(unsigned long port, void *addr, unsigned long count); 33 extern void insl(unsigned long port, void *addr, unsigned long count); 34 extern void insl_16(unsigned long port, void *addr, unsigned long count);
|
H A D | string.h | 24 extern int strncmp(const char *cs, const char *ct, size_t count); 27 extern void *memset(void *s, int c, size_t count); 29 extern void *memcpy(void *d, const void *s, size_t count); 35 extern void *memmove(void *dest, const void *src, size_t count);
|
/linux-4.4.14/arch/arm/kernel/ |
H A D | io.c | 44 void _memcpy_fromio(void *to, const volatile void __iomem *from, size_t count) _memcpy_fromio() argument 47 while (count) { _memcpy_fromio() 48 count--; _memcpy_fromio() 60 void _memcpy_toio(volatile void __iomem *to, const void *from, size_t count) _memcpy_toio() argument 63 while (count) { _memcpy_toio() 64 count--; _memcpy_toio() 76 void _memset_io(volatile void __iomem *dst, int c, size_t count) _memset_io() argument 78 while (count) { _memset_io() 79 count--; _memset_io()
|
/linux-4.4.14/include/linux/mfd/ |
H A D | qcom_rpm.h | 11 int qcom_rpm_write(struct qcom_rpm *rpm, int state, int resource, u32 *buf, size_t count);
|
/linux-4.4.14/tools/testing/selftests/powerpc/mm/ |
H A D | Makefile | 14 dd if=/dev/zero of=tempfile bs=64k count=1
|
/linux-4.4.14/drivers/md/persistent-data/ |
H A D | dm-btree-spine.c | 130 s->count = 0; init_ro_spine() 139 for (i = 0; i < s->count; i++) { exit_ro_spine() 150 if (s->count == 2) { ro_step() 153 s->count--; ro_step() 156 r = bn_read_lock(s->info, new_child, s->nodes + s->count); ro_step() 158 s->count++; ro_step() 165 BUG_ON(!s->count); ro_pop() 166 --s->count; ro_pop() 167 unlock_block(s->info, s->nodes[s->count]); ro_pop() 174 BUG_ON(!s->count); ro_node() 175 block = s->nodes[s->count - 1]; ro_node() 185 s->count = 0; init_shadow_spine() 192 for (i = 0; i < s->count; i++) { exit_shadow_spine() 204 if (s->count == 2) { shadow_step() 207 s->count--; shadow_step() 210 r = bn_shadow(s->info, b, vt, s->nodes + s->count); shadow_step() 212 if (!s->count) shadow_step() 215 s->count++; shadow_step() 223 BUG_ON(!s->count); shadow_current() 225 return s->nodes[s->count - 1]; shadow_current() 230 BUG_ON(s->count != 2); shadow_parent() 232 return s->count == 2 ? s->nodes[0] : NULL; shadow_parent() 237 return s->count >= 2; shadow_has_parent()
|
/linux-4.4.14/fs/sysv/ |
H A D | ialloc.c | 107 unsigned count; sysv_free_inode() local 122 count = fs16_to_cpu(sbi, *sbi->s_sb_fic_count); sysv_free_inode() 123 if (count < sbi->s_fic_size) { sysv_free_inode() 124 *sv_sb_fic_inode(sb,count++) = cpu_to_fs16(sbi, ino); sysv_free_inode() 125 *sbi->s_sb_fic_count = cpu_to_fs16(sbi, count); sysv_free_inode() 141 unsigned count; sysv_new_inode() local 151 count = fs16_to_cpu(sbi, *sbi->s_sb_fic_count); sysv_new_inode() 152 if (count == 0 || (*sv_sb_fic_inode(sb,count-1) == 0)) { sysv_new_inode() 153 count = refill_free_cache(sb); sysv_new_inode() 154 if (count == 0) { sysv_new_inode() 160 /* Now count > 0. */ sysv_new_inode() 161 ino = *sv_sb_fic_inode(sb,--count); sysv_new_inode() 162 *sbi->s_sb_fic_count = cpu_to_fs16(sbi, count); sysv_new_inode() 186 int ino, count, sb_count; sysv_count_free_inodes() local 196 count = 0; sysv_count_free_inodes() 203 count++; sysv_count_free_inodes() 213 if (count != sb_count) sysv_count_free_inodes() 217 return count; sysv_count_free_inodes() 221 "free inode count was %d, correcting to %d\n", sysv_count_free_inodes() 222 sb_count, count); sysv_count_free_inodes() 224 *sbi->s_sb_total_free_inodes = cpu_to_fs16(SYSV_SB(sb), count); sysv_count_free_inodes() 232 count = sb_count; sysv_count_free_inodes()
|
H A D | balloc.c | 47 unsigned count; sysv_free_block() local 64 count = fs16_to_cpu(sbi, *sbi->s_bcache_count); sysv_free_block() 66 if (count > sbi->s_flc_size) { sysv_free_block() 75 if (count == sbi->s_flc_size || count == 0) { sysv_free_block() 84 *(__fs16*)bh->b_data = cpu_to_fs16(sbi, count); sysv_free_block() 85 memcpy(get_chunk(sb,bh), blocks, count * sizeof(sysv_zone_t)); sysv_free_block() 89 count = 0; sysv_free_block() 91 sbi->s_bcache[count++] = nr; sysv_free_block() 93 *sbi->s_bcache_count = cpu_to_fs16(sbi, count); sysv_free_block() 105 unsigned count; sysv_new_block() local 108 count = fs16_to_cpu(sbi, *sbi->s_bcache_count); sysv_new_block() 110 if (count == 0) /* Applies only to Coherent FS */ sysv_new_block() 112 nr = sbi->s_bcache[--count]; sysv_new_block() 118 *sbi->s_bcache_count = cpu_to_fs16(sbi, count); sysv_new_block() 126 if (count == 0) { /* the last block continues the free list */ sysv_new_block() 127 unsigned count; sysv_new_block() local 136 count = fs16_to_cpu(sbi, *(__fs16*)bh->b_data); sysv_new_block() 137 if (count > sbi->s_flc_size) { sysv_new_block() 142 *sbi->s_bcache_count = cpu_to_fs16(sbi, count); sysv_new_block() 144 count * sizeof(sysv_zone_t)); sysv_new_block() 162 int count; sysv_count_free_blocks() local 183 count = 0; sysv_count_free_blocks() 192 count++; sysv_count_free_blocks() 211 if (count != sb_count) sysv_count_free_blocks() 215 return count; sysv_count_free_blocks() 229 count = sb_count; sysv_count_free_blocks() 232 printk("sysv_count_free_blocks: free block count was %d, " sysv_count_free_blocks() 233 "correcting to %d\n", sb_count, count); sysv_count_free_blocks() 235 *sbi->s_free_blocks = cpu_to_fs32(sbi, count); sysv_count_free_blocks()
|
/linux-4.4.14/arch/s390/lib/ |
H A D | spinlock.c | 44 int count; arch_spin_lock_wait() local 60 count = spin_retry; arch_spin_lock_wait() 65 } while (owner && count-- > 0); arch_spin_lock_wait() 82 int count; arch_spin_lock_wait_flags() local 100 count = spin_retry; arch_spin_lock_wait_flags() 105 } while (owner && count-- > 0); arch_spin_lock_wait_flags() 122 int count; arch_spin_trylock_retry() local 124 for (count = spin_retry; count > 0; count--) { arch_spin_trylock_retry() 140 int count = spin_retry; _raw_read_lock_wait() local 147 if (count-- <= 0) { _raw_read_lock_wait() 150 count = spin_retry; _raw_read_lock_wait() 168 int count = spin_retry; _raw_read_trylock_retry() local 170 while (count-- > 0) { _raw_read_trylock_retry() 189 int count = spin_retry; _raw_write_lock_wait() local 193 if (count-- <= 0) { _raw_write_lock_wait() 196 count = spin_retry; _raw_write_lock_wait() 218 int count = spin_retry; _raw_write_lock_wait() local 223 if (count-- <= 0) { _raw_write_lock_wait() 226 count = spin_retry; _raw_write_lock_wait() 248 int count = spin_retry; _raw_write_trylock_retry() local 250 while (count-- > 0) { _raw_write_trylock_retry()
|
/linux-4.4.14/arch/powerpc/boot/ |
H A D | div64.S | 68 * R5 has shift count 78 srw r4,r4,r5 # LSW = count > 31 ? 0 : LSW >> count 80 slw r6,r3,r6 # t1 = count > 31 ? 0 : MSW << (32-count) 81 rlwinm r8,r7,0,32 # t3 = (count < 32) ? 32 : 0 82 sraw r7,r3,r7 # t2 = MSW >> (count-32) 84 slw r7,r7,r8 # t2 = (count < 32) ? 0 : t2 85 sraw r3,r3,r5 # MSW = MSW >> count 92 slw r3,r3,r5 # MSW = count > 31 ? 0 : MSW << count 94 srw r6,r4,r6 # t1 = count > 31 ? 0 : LSW >> (32-count) 95 slw r7,r4,r7 # t2 = count < 32 ? 0 : LSW << (count-32) 97 slw r4,r4,r5 # LSW = LSW << count 104 srw r4,r4,r5 # LSW = count > 31 ? 0 : LSW >> count 106 slw r6,r3,r6 # t1 = count > 31 ? 0 : MSW << (32-count) 107 srw r7,r3,r7 # t2 = count < 32 ? 0 : MSW >> (count-32) 109 srw r3,r3,r5 # MSW = MSW >> count
|
/linux-4.4.14/drivers/isdn/hisax/ |
H A D | hscx_irq.c | 53 hscx_empty_fifo(struct BCState *bcs, int count) hscx_empty_fifo() argument 61 if (bcs->hw.hscx.rcvidx + count > HSCX_BUFMAX) { hscx_empty_fifo() 69 bcs->hw.hscx.rcvidx += count; hscx_empty_fifo() 70 READHSCXFIFO(cs, bcs->hw.hscx.hscx, ptr, count); hscx_empty_fifo() 76 bcs->hw.hscx.hscx ? 'B' : 'A', count); hscx_empty_fifo() 77 QuickHex(t, ptr, count); hscx_empty_fifo() 86 int more, count; hscx_fill_fifo() local 101 count = fifo_size; hscx_fill_fifo() 103 count = bcs->tx_skb->len; hscx_fill_fifo() 107 skb_pull(bcs->tx_skb, count); hscx_fill_fifo() 108 bcs->tx_cnt -= count; hscx_fill_fifo() 109 bcs->hw.hscx.count += count; hscx_fill_fifo() 110 WRITEHSCXFIFO(cs, bcs->hw.hscx.hscx, ptr, count); hscx_fill_fifo() 116 bcs->hw.hscx.hscx ? 'B' : 'A', count); hscx_fill_fifo() 117 QuickHex(t, ptr, count); hscx_fill_fifo() 129 int count; hscx_interrupt() local 161 count = READHSCX(cs, hscx, HSCX_RBCL) & ( hscx_interrupt() 163 if (count == 0) hscx_interrupt() 164 count = fifo_size; hscx_interrupt() 165 hscx_empty_fifo(bcs, count); hscx_interrupt() 166 if ((count = bcs->hw.hscx.rcvidx - 1) > 0) { hscx_interrupt() 168 debugl1(cs, "HX Frame %d", count); hscx_interrupt() 169 if (!(skb = dev_alloc_skb(count))) hscx_interrupt() 172 memcpy(skb_put(skb, count), bcs->hw.hscx.rcvbuf, count); hscx_interrupt() local 204 bcs->ackcnt += bcs->hw.hscx.count; hscx_interrupt() 209 bcs->hw.hscx.count = 0; hscx_interrupt() 214 bcs->hw.hscx.count = 0; hscx_interrupt() 245 skb_push(bcs->tx_skb, bcs->hw.hscx.count); hscx_int_main() 246 bcs->tx_cnt += bcs->hw.hscx.count; hscx_int_main() 247 bcs->hw.hscx.count = 0; hscx_int_main() 275 skb_push(bcs->tx_skb, bcs->hw.hscx.count); hscx_int_main() 276 bcs->tx_cnt += bcs->hw.hscx.count; hscx_int_main() 277 bcs->hw.hscx.count = 0; hscx_int_main()
|
H A D | jade_irq.c | 43 jade_empty_fifo(struct BCState *bcs, int count) jade_empty_fifo() argument 51 if (bcs->hw.hscx.rcvidx + count > HSCX_BUFMAX) { jade_empty_fifo() 59 bcs->hw.hscx.rcvidx += count; jade_empty_fifo() 60 READJADEFIFO(cs, bcs->hw.hscx.hscx, ptr, count); jade_empty_fifo() 66 bcs->hw.hscx.hscx ? 'B' : 'A', count); jade_empty_fifo() 67 QuickHex(t, ptr, count); jade_empty_fifo() 76 int more, count; jade_fill_fifo() local 91 count = fifo_size; jade_fill_fifo() 93 count = bcs->tx_skb->len; jade_fill_fifo() 97 skb_pull(bcs->tx_skb, count); jade_fill_fifo() 98 bcs->tx_cnt -= count; jade_fill_fifo() 99 bcs->hw.hscx.count += count; jade_fill_fifo() 100 WRITEJADEFIFO(cs, bcs->hw.hscx.hscx, ptr, count); jade_fill_fifo() 106 bcs->hw.hscx.hscx ? 'B' : 'A', count); jade_fill_fifo() 107 QuickHex(t, ptr, count); jade_fill_fifo() 120 int count; jade_interrupt() local 140 count = READJADE(cs, i_jade, jade_HDLC_RBCL) & 0x1F; jade_interrupt() 141 if (count == 0) jade_interrupt() 142 count = fifo_size; jade_interrupt() 143 jade_empty_fifo(bcs, count); jade_interrupt() 144 if ((count = bcs->hw.hscx.rcvidx - 1) > 0) { jade_interrupt() 146 debugl1(cs, "HX Frame %d", count); jade_interrupt() 147 if (!(skb = dev_alloc_skb(count))) jade_interrupt() 150 memcpy(skb_put(skb, count), bcs->hw.hscx.rcvbuf, count); jade_interrupt() local 182 bcs->ackcnt += bcs->hw.hscx.count; jade_interrupt() 187 bcs->hw.hscx.count = 0; jade_interrupt() 192 bcs->hw.hscx.count = 0; jade_interrupt() 222 skb_push(bcs->tx_skb, bcs->hw.hscx.count); jade_int_main() 223 bcs->tx_cnt += bcs->hw.hscx.count; jade_int_main() 224 bcs->hw.hscx.count = 0; jade_int_main()
|
/linux-4.4.14/arch/metag/kernel/ |
H A D | ptrace.c | 28 unsigned int pos, unsigned int count, metag_gp_regs_copyout() 36 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, metag_gp_regs_copyout() 41 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, metag_gp_regs_copyout() 50 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, metag_gp_regs_copyout() 55 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, metag_gp_regs_copyout() 60 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, metag_gp_regs_copyout() 68 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, metag_gp_regs_copyout() 73 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, metag_gp_regs_copyout() 78 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, metag_gp_regs_copyout() 85 unsigned int pos, unsigned int count, metag_gp_regs_copyin() 93 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, metag_gp_regs_copyin() 98 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, metag_gp_regs_copyin() 107 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, metag_gp_regs_copyin() 112 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, metag_gp_regs_copyin() 117 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, metag_gp_regs_copyin() 122 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, metag_gp_regs_copyin() 132 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, metag_gp_regs_copyin() 140 unsigned int pos, unsigned int count, metag_gp_regs_get() 144 return metag_gp_regs_copyout(regs, pos, count, kbuf, ubuf); metag_gp_regs_get() 149 unsigned int pos, unsigned int count, metag_gp_regs_set() 153 return metag_gp_regs_copyin(regs, pos, count, kbuf, ubuf); metag_gp_regs_set() 157 unsigned int pos, unsigned int count, metag_cb_regs_copyout() 164 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, metag_cb_regs_copyout() 167 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, metag_cb_regs_copyout() 173 unsigned int pos, unsigned int count, metag_cb_regs_copyin() 179 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, metag_cb_regs_copyin() 186 unsigned int pos, unsigned int count, metag_cb_regs_get() 190 return metag_cb_regs_copyout(regs, pos, count, kbuf, ubuf); metag_cb_regs_get() 195 unsigned int pos, unsigned int count, metag_cb_regs_set() 199 return metag_cb_regs_copyin(regs, pos, count, kbuf, ubuf); metag_cb_regs_set() 203 unsigned int pos, unsigned int count, metag_rp_state_copyout() 212 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, metag_rp_state_copyout() 224 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, metag_rp_state_copyout() 227 ret = user_regset_copyout_zero(&pos, &count, &kbuf, metag_rp_state_copyout() 233 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, metag_rp_state_copyout() 240 unsigned int pos, unsigned int count, metag_rp_state_copyin() 248 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, metag_rp_state_copyin() 275 unsigned int pos, unsigned int count, metag_rp_state_get() 279 return metag_rp_state_copyout(regs, pos, count, kbuf, ubuf); metag_rp_state_get() 284 unsigned int pos, unsigned int count, metag_rp_state_set() 288 return metag_rp_state_copyin(regs, pos, count, kbuf, ubuf); metag_rp_state_set() 293 unsigned int pos, unsigned int count, metag_tls_get() 297 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, &tls, 0, -1); metag_tls_get() 302 unsigned int pos, unsigned int count, metag_tls_set() 308 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &tls, 0, -1); metag_tls_set() 27 metag_gp_regs_copyout(const struct pt_regs *regs, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) metag_gp_regs_copyout() argument 84 metag_gp_regs_copyin(struct pt_regs *regs, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) metag_gp_regs_copyin() argument 138 metag_gp_regs_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) metag_gp_regs_get() argument 147 metag_gp_regs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) metag_gp_regs_set() argument 156 metag_cb_regs_copyout(const struct pt_regs *regs, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) metag_cb_regs_copyout() argument 172 metag_cb_regs_copyin(struct pt_regs *regs, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) metag_cb_regs_copyin() argument 184 metag_cb_regs_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) metag_cb_regs_get() argument 193 metag_cb_regs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) metag_cb_regs_set() argument 202 metag_rp_state_copyout(const struct pt_regs *regs, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) metag_rp_state_copyout() argument 239 metag_rp_state_copyin(struct pt_regs *regs, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) metag_rp_state_copyin() argument 273 metag_rp_state_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) metag_rp_state_get() argument 282 metag_rp_state_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) metag_rp_state_set() argument 291 metag_tls_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) metag_tls_get() argument 300 metag_tls_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) metag_tls_set() argument
|
/linux-4.4.14/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) s3c_pm_do_save() argument 33 for (; count > 0; count--, ptr++) { s3c_pm_do_save() 42 * @count: Size of the ptr array. 50 void s3c_pm_do_restore(const struct sleep_save *ptr, int count) s3c_pm_do_restore() argument 52 for (; count > 0; count--, ptr++) { s3c_pm_do_restore() 71 void s3c_pm_do_restore_core(const struct sleep_save *ptr, int count) s3c_pm_do_restore_core() argument 73 for (; count > 0; count--, ptr++) s3c_pm_do_restore_core()
|
/linux-4.4.14/drivers/block/paride/ |
H A D | friq.c | 77 static void friq_read_block_int( PIA *pi, char * buf, int count, int regr ) friq_read_block_int() argument 84 for (k=0;k<count;k++) { friq_read_block_int() 95 for (k=0;k<count;k++) { friq_read_block_int() 104 for (k=0;k<count-2;k++) buf[k] = r4(); friq_read_block_int() 106 buf[count-2] = r4(); friq_read_block_int() 107 buf[count-1] = r4(); friq_read_block_int() 112 for (k=0;k<(count/2)-1;k++) ((u16 *)buf)[k] = r4w(); friq_read_block_int() 114 buf[count-2] = r4(); friq_read_block_int() 115 buf[count-1] = r4(); friq_read_block_int() 120 for (k=0;k<(count/4)-1;k++) ((u32 *)buf)[k] = r4l(); friq_read_block_int() 121 buf[count-4] = r4(); friq_read_block_int() 122 buf[count-3] = r4(); friq_read_block_int() 124 buf[count-2] = r4(); friq_read_block_int() 125 buf[count-1] = r4(); friq_read_block_int() 132 static void friq_read_block( PIA *pi, char * buf, int count) friq_read_block() argument 134 { friq_read_block_int(pi,buf,count,0x08); friq_read_block() 137 static void friq_write_block( PIA *pi, char * buf, int count ) friq_write_block() 145 for (k=0;k<count;k++) { friq_write_block() 153 for (k=0;k<count;k++) w4(buf[k]); friq_write_block() 158 for (k=0;k<count/2;k++) w4w(((u16 *)buf)[k]); friq_write_block() 163 for (k=0;k<count/4;k++) w4l(((u32 *)buf)[k]); friq_write_block()
|
H A D | ppc6lnx.c | 111 static void ppc6_rd_data_blk(Interface *ppc, u8 *data, long count); 113 static void ppc6_wr_data_blk(Interface *ppc, u8 *data, long count); 379 static void ppc6_rd_data_blk(Interface *ppc, u8 *data, long count) ppc6_rd_data_blk() argument 386 while(count) ppc6_rd_data_blk() 409 count--; ppc6_rd_data_blk() 424 while(count) ppc6_rd_data_blk() 431 count--; ppc6_rd_data_blk() 451 while(count) ppc6_rd_data_blk() 454 count--; ppc6_rd_data_blk() 468 while(count > 1) ppc6_rd_data_blk() 472 count -= 2; ppc6_rd_data_blk() 475 while(count) ppc6_rd_data_blk() 478 count--; ppc6_rd_data_blk() 492 while(count > 3) ppc6_rd_data_blk() 496 count -= 4; ppc6_rd_data_blk() 499 while(count) ppc6_rd_data_blk() 502 count--; ppc6_rd_data_blk() 528 static void ppc6_wr_data_blk(Interface *ppc, u8 *data, long count) ppc6_wr_data_blk() argument 535 while(count--) ppc6_wr_data_blk() 562 while(count) ppc6_wr_data_blk() 565 count--; ppc6_wr_data_blk() 592 while(count) ppc6_wr_data_blk() 595 count--; ppc6_wr_data_blk() 605 while(count > 1) ppc6_wr_data_blk() 609 count -= 2; ppc6_wr_data_blk() 612 while(count) ppc6_wr_data_blk() 615 count--; ppc6_wr_data_blk() 625 while(count > 3) ppc6_wr_data_blk() 629 count -= 4; ppc6_wr_data_blk() 632 while(count) ppc6_wr_data_blk() 635 count--; ppc6_wr_data_blk()
|
H A D | frpw.c | 74 static void frpw_read_block_int( PIA *pi, char * buf, int count, int regr ) frpw_read_block_int() argument 81 for (k=0;k<count;k++) { frpw_read_block_int() 92 for (k=0;k<count;k++) { frpw_read_block_int() 101 for (k=0;k<count;k++) buf[k] = r4(); frpw_read_block_int() 107 for (k=0;k<count-2;k++) buf[k] = r4(); frpw_read_block_int() 109 buf[count-2] = r4(); frpw_read_block_int() 110 buf[count-1] = r4(); frpw_read_block_int() 115 for (k=0;k<(count/2)-1;k++) ((u16 *)buf)[k] = r4w(); frpw_read_block_int() 117 buf[count-2] = r4(); frpw_read_block_int() 118 buf[count-1] = r4(); frpw_read_block_int() 123 for (k=0;k<(count/4)-1;k++) ((u32 *)buf)[k] = r4l(); frpw_read_block_int() 124 buf[count-4] = r4(); frpw_read_block_int() 125 buf[count-3] = r4(); frpw_read_block_int() 127 buf[count-2] = r4(); frpw_read_block_int() 128 buf[count-1] = r4(); frpw_read_block_int() 135 static void frpw_read_block( PIA *pi, char * buf, int count) frpw_read_block() argument 137 { frpw_read_block_int(pi,buf,count,0x08); frpw_read_block() 140 static void frpw_write_block( PIA *pi, char * buf, int count ) frpw_write_block() 149 for (k=0;k<count;k++) { frpw_write_block() 157 for (k=0;k<count;k++) w4(buf[k]); frpw_write_block() 162 for (k=0;k<count/2;k++) w4w(((u16 *)buf)[k]); frpw_write_block() 167 for (k=0;k<count/4;k++) w4l(((u32 *)buf)[k]); frpw_write_block()
|
H A D | epat.c | 97 static void epat_read_block( PIA *pi, char * buf, int count ) epat_read_block() 105 for(k=0;k<count;k++) { epat_read_block() 106 if (k == count-1) w0(0xfd); epat_read_block() 118 for(k=0;k<count;k++) { epat_read_block() 119 if (k == count-1) w0(0xfd); epat_read_block() 130 for(k=0;k<count-1;k++) { epat_read_block() 135 w2(0x26); w2(0x27); buf[count-1] = r0(); epat_read_block() 140 for(k=0;k<count-1;k++) buf[k] = r4(); epat_read_block() 141 w2(4); w3(0xa0); w2(0x24); buf[count-1] = r4(); epat_read_block() 146 for(k=0;k<(count/2)-1;k++) ((u16 *)buf)[k] = r4w(); epat_read_block() 147 buf[count-2] = r4(); epat_read_block() 148 w2(4); w3(0xa0); w2(0x24); buf[count-1] = r4(); epat_read_block() 153 for(k=0;k<(count/4)-1;k++) ((u32 *)buf)[k] = r4l(); epat_read_block() 154 for(k=count-4;k<count-1;k++) buf[k] = r4(); epat_read_block() 155 w2(4); w3(0xa0); w2(0x24); buf[count-1] = r4(); epat_read_block() 162 static void epat_write_block( PIA *pi, char * buf, int count ) epat_write_block() 172 for(k=0;k<count;k++) { epat_write_block() 181 for(k=0;k<count;k++) w4(buf[k]); epat_write_block() 186 for(k=0;k<(count/2);k++) w4w(((u16 *)buf)[k]); epat_write_block() 191 for(k=0;k<(count/4);k++) w4l(((u32 *)buf)[k]); epat_write_block()
|
H A D | epia.c | 136 static void epia_read_block( PIA *pi, char * buf, int count ) epia_read_block() 144 for (k=0;k<count;k++) { epia_read_block() 156 for (k=0;k<count;k++) { epia_read_block() 167 for (k=0;k<count;k++) { epia_read_block() 175 case 3: if (count > 512) WR(0x84,3); epia_read_block() 177 for (k=0;k<count;k++) buf[k] = r4(); epia_read_block() 181 case 4: if (count > 512) WR(0x84,3); epia_read_block() 183 for (k=0;k<count/2;k++) ((u16 *)buf)[k] = r4w(); epia_read_block() 187 case 5: if (count > 512) WR(0x84,3); epia_read_block() 189 for (k=0;k<count/4;k++) ((u32 *)buf)[k] = r4l(); epia_read_block() 196 static void epia_write_block( PIA *pi, char * buf, int count ) epia_write_block() 206 for (k=0;k<count;k++) { epia_write_block() 215 case 3: if (count < 512) WR(0x84,1); epia_write_block() 217 for (k=0;k<count;k++) w4(buf[k]); epia_write_block() 218 if (count < 512) WR(0x84,0); epia_write_block() 221 case 4: if (count < 512) WR(0x84,1); epia_write_block() 223 for (k=0;k<count/2;k++) w4w(((u16 *)buf)[k]); epia_write_block() 224 if (count < 512) WR(0x84,0); epia_write_block() 227 case 5: if (count < 512) WR(0x84,1); epia_write_block() 229 for (k=0;k<count/4;k++) w4l(((u32 *)buf)[k]); epia_write_block() 230 if (count < 512) WR(0x84,0); epia_write_block()
|
/linux-4.4.14/fs/ext4/ |
H A D | block_validity.c | 25 unsigned int count; member in struct:ext4_system_zone 46 if ((entry1->start_blk + entry1->count) == entry2->start_blk) can_merge() 58 unsigned int count) add_system_zone() 69 else if (start_blk >= (entry->start_blk + entry->count)) add_system_zone() 72 if (start_blk + count > (entry->start_blk + add_system_zone() 73 entry->count)) add_system_zone() 74 entry->count = (start_blk + count - add_system_zone() 89 new_entry->count = count; add_system_zone() 102 new_entry->count += entry->count; add_system_zone() 113 new_entry->count += entry->count; add_system_zone() 132 entry->start_blk, entry->start_blk + entry->count - 1); debug_print_tree() 193 * start_blk+count) is valid; 0 if some part of the block region 197 unsigned int count) ext4_data_block_valid() 203 (start_blk + count < start_blk) || ext4_data_block_valid() 204 (start_blk + count > ext4_blocks_count(sbi->s_es))) { ext4_data_block_valid() 210 if (start_blk + count - 1 < entry->start_blk) ext4_data_block_valid() 212 else if (start_blk >= (entry->start_blk + entry->count)) ext4_data_block_valid() 56 add_system_zone(struct ext4_sb_info *sbi, ext4_fsblk_t start_blk, unsigned int count) add_system_zone() argument 196 ext4_data_block_valid(struct ext4_sb_info *sbi, ext4_fsblk_t start_blk, unsigned int count) ext4_data_block_valid() argument
|
H A D | acl.h | 26 static inline size_t ext4_acl_size(int count) ext4_acl_size() argument 28 if (count <= 4) { ext4_acl_size() 30 count * sizeof(ext4_acl_entry_short); ext4_acl_size() 34 (count - 4) * sizeof(ext4_acl_entry); ext4_acl_size()
|
/linux-4.4.14/mm/ |
H A D | cma.h | 6 unsigned long count; member in struct:cma 21 return cma->count >> cma->order_per_bit; cma_bitmap_maxno()
|
H A D | cma_debug.c | 60 if (start >= cma->count) cma_maxchunk_get() 93 static int cma_free_mem(struct cma *cma, int count) cma_free_mem() argument 97 while (count) { cma_free_mem() 102 if (mem->n <= count) { cma_free_mem() 104 count -= mem->n; cma_free_mem() 107 cma_release(cma, mem->p, count); cma_free_mem() 108 mem->p += count; cma_free_mem() 109 mem->n -= count; cma_free_mem() 110 count = 0; cma_free_mem() 132 static int cma_alloc_mem(struct cma *cma, int count) cma_alloc_mem() argument 141 p = cma_alloc(cma, count, 0); cma_alloc_mem() 148 mem->n = count; cma_alloc_mem() 182 debugfs_create_file("count", S_IRUGO, tmp, cma_debugfs_add_one() 183 &cma->count, &cma_debugfs_fops); cma_debugfs_add_one()
|
/linux-4.4.14/arch/h8300/include/asm/ |
H A D | string.h | 10 extern void *memset(void *s, int c, size_t count); 13 extern void *memcpy(void *d, const void *s, size_t count);
|
/linux-4.4.14/arch/arm64/lib/ |
H A D | memset.S | 42 count .req x2 label 66 cmp count, #15 69 tbz count, #3, 1f 72 tbz count, #2, 2f 75 tbz count, #1, 3f 78 tbz count, #0, 4f 89 * The count is not less than 16, we can use stp to store the start 16 bytes, 95 sub count, count, tmp2 102 cmp count, #64 105 ands tmp1, count, #0x30 120 ands count, count, #15 121 cbz count, 4f 122 add dst, dst, count 134 sub count, count, #64 140 subs count, count, #64 142 tst count, #0x3f 153 cmp count, #63 159 cmp count, #128 160 b.lt .Lnot_short /*count is at least 128 bytes*/ 179 cmp count, zva_len_x 186 sub tmp1, count, tmp2 197 mov count, tmp1 209 sub count, count, zva_len_x 213 subs count, count, zva_len_x 215 ands count, count, zva_bits_x
|
H A D | memmove.S | 42 count .req x2 label 65 add tmp1, src, count 69 add dst, dstin, count 70 add src, src, count 71 cmp count, #16 76 sub count, count, tmp2 99 cmp count, #64 109 * bottom 6 bits of count to be accurate. 111 ands tmp1, count, #0x30 126 tbz count, #3, 1f 130 tbz count, #2, 2f 134 tbz count, #1, 3f 138 tbz count, #0, .Lexitfunc 146 subs count, count, #128 161 tst count, #0x3f 189 subs count, count, #64 196 tst count, #0x3f
|
/linux-4.4.14/drivers/misc/mic/cosm/ |
H A D | cosm_sysfs.c | 104 const char *buf, size_t count) state_store() 128 count = rc; state_store() 129 return count; state_store() 161 const char *buf, size_t count) heartbeat_enable_store() 179 ret = count; heartbeat_enable_store() 204 const char *buf, size_t count) cmdline_store() 214 cdev->cmdline = kmalloc(count + 1, GFP_KERNEL); cmdline_store() 216 count = -ENOMEM; cmdline_store() 220 strncpy(cdev->cmdline, buf, count); cmdline_store() 222 if (cdev->cmdline[count - 1] == '\n') cmdline_store() 223 cdev->cmdline[count - 1] = '\0'; cmdline_store() 225 cdev->cmdline[count] = '\0'; cmdline_store() 228 return count; cmdline_store() 250 const char *buf, size_t count) firmware_store() 260 cdev->firmware = kmalloc(count + 1, GFP_KERNEL); firmware_store() 262 count = -ENOMEM; firmware_store() 265 strncpy(cdev->firmware, buf, count); firmware_store() 267 if (cdev->firmware[count - 1] == '\n') firmware_store() 268 cdev->firmware[count - 1] = '\0'; firmware_store() 270 cdev->firmware[count] = '\0'; firmware_store() 273 return count; firmware_store() 295 const char *buf, size_t count) ramdisk_store() 305 cdev->ramdisk = kmalloc(count + 1, GFP_KERNEL); ramdisk_store() 307 count = -ENOMEM; ramdisk_store() 311 strncpy(cdev->ramdisk, buf, count); ramdisk_store() 313 if (cdev->ramdisk[count - 1] == '\n') ramdisk_store() 314 cdev->ramdisk[count - 1] = '\0'; ramdisk_store() 316 cdev->ramdisk[count] = '\0'; ramdisk_store() 319 return count; ramdisk_store() 341 const char *buf, size_t count) bootmode_store() 354 cdev->bootmode = kmalloc(count + 1, GFP_KERNEL); bootmode_store() 356 count = -ENOMEM; bootmode_store() 360 strncpy(cdev->bootmode, buf, count); bootmode_store() 362 if (cdev->bootmode[count - 1] == '\n') bootmode_store() 363 cdev->bootmode[count - 1] = '\0'; bootmode_store() 365 cdev->bootmode[count] = '\0'; bootmode_store() 368 return count; bootmode_store() 386 const char *buf, size_t count) log_buf_addr_store() 400 ret = count; log_buf_addr_store() 420 const char *buf, size_t count) log_buf_len_store() 434 ret = count; log_buf_len_store() 103 state_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) state_store() argument 159 heartbeat_enable_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) heartbeat_enable_store() argument 203 cmdline_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) cmdline_store() argument 249 firmware_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) firmware_store() argument 294 ramdisk_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) ramdisk_store() argument 340 bootmode_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) bootmode_store() argument 385 log_buf_addr_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) log_buf_addr_store() argument 419 log_buf_len_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) log_buf_len_store() argument
|
/linux-4.4.14/arch/s390/include/asm/ |
H A D | rwsem.h | 14 * The MSW of the count is the negated number of active writers and waiting 17 * The lock count is initialized to 0 (no active and no waiting lockers). 62 : "=&d" (old), "=&d" (new), "=Q" (sem->count) __down_read() 63 : "Q" (sem->count), "i" (RWSEM_ACTIVE_READ_BIAS) __down_read() 84 : "=&d" (old), "=&d" (new), "=Q" (sem->count) __down_read_trylock() 85 : "Q" (sem->count), "i" (RWSEM_ACTIVE_READ_BIAS) __down_read_trylock() 104 : "=&d" (old), "=&d" (new), "=Q" (sem->count) __down_write_nested() 105 : "Q" (sem->count), "m" (tmp) __down_write_nested() 130 : "=&d" (old), "=Q" (sem->count) __down_write_trylock() 131 : "Q" (sem->count), "d" (RWSEM_ACTIVE_WRITE_BIAS) __down_write_trylock() 149 : "=&d" (old), "=&d" (new), "=Q" (sem->count) __up_read() 150 : "Q" (sem->count), "i" (-RWSEM_ACTIVE_READ_BIAS) __up_read() 171 : "=&d" (old), "=&d" (new), "=Q" (sem->count) __up_write() 172 : "Q" (sem->count), "m" (tmp) __up_write() 193 : "=&d" (old), "=&d" (new), "=Q" (sem->count) __downgrade_write() 194 : "Q" (sem->count), "m" (tmp) __downgrade_write() 213 : "=&d" (old), "=&d" (new), "=Q" (sem->count) rwsem_atomic_add() 214 : "Q" (sem->count), "d" (delta) rwsem_atomic_add() 231 : "=&d" (old), "=&d" (new), "=Q" (sem->count) rwsem_atomic_update() 232 : "Q" (sem->count), "d" (delta) rwsem_atomic_update()
|
H A D | idals.h | 77 nridaws = idal_nr_words(vaddr, ccw->count); set_normalized_cda() 83 idal_create_words(idal, vaddr, ccw->count); set_normalized_cda() 189 ccw->count = ib->size; idal_buffer_set_cda() 193 * Copy count bytes from an idal buffer to user memory 196 idal_buffer_to_user(struct idal_buffer *ib, void __user *to, size_t count) idal_buffer_to_user() argument 201 BUG_ON(count > ib->size); idal_buffer_to_user() 202 for (i = 0; count > IDA_BLOCK_SIZE; i++) { idal_buffer_to_user() 205 return left + count - IDA_BLOCK_SIZE; idal_buffer_to_user() 207 count -= IDA_BLOCK_SIZE; idal_buffer_to_user() 209 return copy_to_user(to, ib->data[i], count); idal_buffer_to_user() 213 * Copy count bytes from user memory to an idal buffer 216 idal_buffer_from_user(struct idal_buffer *ib, const void __user *from, size_t count) idal_buffer_from_user() argument 221 BUG_ON(count > ib->size); idal_buffer_from_user() 222 for (i = 0; count > IDA_BLOCK_SIZE; i++) { idal_buffer_from_user() 225 return left + count - IDA_BLOCK_SIZE; idal_buffer_from_user() 227 count -= IDA_BLOCK_SIZE; idal_buffer_from_user() 229 return copy_from_user(ib->data[i], from, count); idal_buffer_from_user()
|
H A D | io.h | 63 #define memcpy_fromio(dst, src, count) zpci_memcpy_fromio(dst, src, count) 64 #define memcpy_toio(dst, src, count) zpci_memcpy_toio(dst, src, count) 65 #define memset_io(dst, val, count) zpci_memset_io(dst, val, count)
|
/linux-4.4.14/arch/sparc/kernel/ |
H A D | ptrace_64.c | 209 unsigned int pos, unsigned int count, genregs64_get() 218 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, genregs64_get() 221 if (!ret && count && pos < (32 * sizeof(u64))) { genregs64_get() 226 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, genregs64_get() 234 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, genregs64_get() 243 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, genregs64_get() 250 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, genregs64_get() 259 unsigned int pos, unsigned int count, genregs64_set() 268 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, genregs64_set() 271 if (!ret && count && pos < (32 * sizeof(u64))) { genregs64_set() 277 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, genregs64_set() 287 if (!ret && count > 0) { genregs64_set() 291 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, genregs64_set() 307 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, genregs64_set() 316 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, genregs64_set() 325 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, genregs64_set() 333 unsigned int pos, unsigned int count, fpregs64_get() 346 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, fpregs64_get() 350 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, fpregs64_get() 356 ret = user_regset_copyout(&pos, &count, fpregs64_get() 362 ret = user_regset_copyout_zero(&pos, &count, fpregs64_get() 376 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, fpregs64_get() 381 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, fpregs64_get() 386 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, fpregs64_get() 392 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, fpregs64_get() 400 unsigned int pos, unsigned int count, fpregs64_set() 410 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, fpregs64_set() 414 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, fpregs64_set() 419 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, fpregs64_set() 425 if (!ret && count > 0) { fpregs64_set() 426 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, fpregs64_set() 436 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, fpregs64_set() 477 unsigned int pos, unsigned int count, genregs32_get() 490 count /= sizeof(reg); genregs32_get() 493 for (; count > 0 && pos < 16; count--) genregs32_get() 499 for (; count > 0 && pos < 32; count--) { genregs32_get() 504 for (; count > 0 && pos < 32; count--) { genregs32_get() 516 for (; count > 0 && pos < 16; count--) { genregs32_get() 524 for (; count > 0 && pos < 32; count--) { genregs32_get() 530 for (; count > 0 && pos < 32; count--) { genregs32_get() 547 while (count > 0) { genregs32_get() 574 count--; genregs32_get() 578 count *= sizeof(reg); genregs32_get() 580 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, genregs32_get() 586 unsigned int pos, unsigned int count, genregs32_set() 599 count /= sizeof(reg); genregs32_set() 602 for (; count > 0 && pos < 16; count--) genregs32_set() 608 for (; count > 0 && pos < 32; count--) { genregs32_set() 613 for (; count > 0 && pos < 32; count--) { genregs32_set() 626 for (; count > 0 && pos < 16; count--) { genregs32_set() 635 for (; count > 0 && pos < 32; count--) { genregs32_set() 641 for (; count > 0 && pos < 32; count--) { genregs32_set() 659 while (count > 0) { genregs32_set() 693 count--; genregs32_set() 697 count *= sizeof(reg); genregs32_set() 699 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, genregs32_set() 705 unsigned int pos, unsigned int count, fpregs32_get() 726 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, fpregs32_get() 731 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, fpregs32_get() 735 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, fpregs32_get() 744 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, fpregs32_get() 751 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, fpregs32_get() 759 unsigned int pos, unsigned int count, fpregs32_set() 771 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, fpregs32_set() 775 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, fpregs32_set() 778 if (!ret && count > 0) { fpregs32_set() 782 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, fpregs32_set() 798 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, fpregs32_set() 207 genregs64_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) genregs64_get() argument 257 genregs64_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) genregs64_set() argument 331 fpregs64_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) fpregs64_get() argument 398 fpregs64_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) fpregs64_set() argument 475 genregs32_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) genregs32_get() argument 584 genregs32_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) genregs32_set() argument 703 fpregs32_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) fpregs32_get() argument 757 fpregs32_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) fpregs32_set() argument
|
H A D | ptrace_32.c | 50 unsigned int pos, unsigned int count, genregs32_get() 63 count /= sizeof(reg); genregs32_get() 66 for (; count > 0 && pos < 16; count--) genregs32_get() 71 for (; count > 0 && pos < 32; count--) { genregs32_get() 76 for (; count > 0 && pos < 16; count--) { genregs32_get() 83 for (; count > 0 && pos < 32; count--) { genregs32_get() 89 while (count > 0) { genregs32_get() 116 count--; genregs32_get() 120 count *= sizeof(reg); genregs32_get() 122 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, genregs32_get() 128 unsigned int pos, unsigned int count, genregs32_set() 141 count /= sizeof(reg); genregs32_set() 144 for (; count > 0 && pos < 16; count--) genregs32_set() 149 for (; count > 0 && pos < 32; count--) { genregs32_set() 154 for (; count > 0 && pos < 16; count--) { genregs32_set() 162 for (; count > 0 && pos < 32; count--) { genregs32_set() 168 while (count > 0) { genregs32_set() 200 count--; genregs32_set() 204 count *= sizeof(reg); genregs32_set() 206 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, genregs32_set() 212 unsigned int pos, unsigned int count, fpregs32_get() 223 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, fpregs32_get() 228 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, fpregs32_get() 232 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, fpregs32_get() 241 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, fpregs32_get() 248 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, fpregs32_get() 256 unsigned int pos, unsigned int count, fpregs32_set() 266 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, fpregs32_set() 270 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, fpregs32_set() 273 if (!ret && count > 0) { fpregs32_set() 274 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, fpregs32_set() 281 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, fpregs32_set() 48 genregs32_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) genregs32_get() argument 126 genregs32_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) genregs32_set() argument 210 fpregs32_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) fpregs32_get() argument 254 fpregs32_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) fpregs32_set() argument
|
/linux-4.4.14/tools/perf/util/ |
H A D | alias.c | 28 int src, dst, count = 0, size = 16; local 34 (*argv)[count++] = cmdline; 42 if (count >= size) { 46 (*argv)[count++] = cmdline + dst; 74 return count;
|
/linux-4.4.14/arch/xtensa/include/asm/ |
H A D | rwsem.h | 32 if (atomic_add_return(1,(atomic_t *)(&sem->count)) > 0) __down_read() 42 while ((tmp = sem->count) >= 0) { __down_read_trylock() 43 if (tmp == cmpxchg(&sem->count, tmp, __down_read_trylock() 60 (atomic_t *)(&sem->count)); __down_write() 71 tmp = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, __down_write_trylock() 85 tmp = atomic_sub_return(1,(atomic_t *)(&sem->count)); __up_read() 97 (atomic_t *)(&sem->count)) < 0) __up_write() 106 atomic_add(delta, (atomic_t *)(&sem->count)); rwsem_atomic_add() 117 tmp = atomic_add_return(-RWSEM_WAITING_BIAS, (atomic_t *)(&sem->count)); __downgrade_write() 128 return atomic_add_return(delta, (atomic_t *)(&sem->count)); rwsem_atomic_update()
|
/linux-4.4.14/samples/seccomp/ |
H A D | bpf-helper.c | 19 struct sock_filter *filter, size_t count) bpf_resolve_jumps() 22 __u8 insn = count - 1; bpf_resolve_jumps() 24 if (count < 1) bpf_resolve_jumps() 68 if (labels->count == BPF_LABELS_MAX) { seccomp_bpf_label() 72 if (labels->count == 0) { seccomp_bpf_label() 75 labels->count++; seccomp_bpf_label() 78 end = begin + labels->count; seccomp_bpf_label() 85 labels->count++; seccomp_bpf_label() 89 void seccomp_bpf_print(struct sock_filter *filter, size_t count) seccomp_bpf_print() argument 91 struct sock_filter *end = filter + count; seccomp_bpf_print() 18 bpf_resolve_jumps(struct bpf_labels *labels, struct sock_filter *filter, size_t count) bpf_resolve_jumps() argument
|
/linux-4.4.14/security/integrity/evm/ |
H A D | evm_secfs.c | 29 * @count: maximum to send along 35 size_t count, loff_t *ppos) evm_read_key() 44 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp)); evm_read_key() 53 * @count: bytes sent 62 size_t count, loff_t *ppos) evm_write_key() 70 if (count >= sizeof(temp) || count == 0) evm_write_key() 73 if (copy_from_user(temp, buf, count) != 0) evm_write_key() 76 temp[count] = '\0'; evm_write_key() 87 return count; evm_write_key() 34 evm_read_key(struct file *filp, char __user *buf, size_t count, loff_t *ppos) evm_read_key() argument 61 evm_write_key(struct file *file, const char __user *buf, size_t count, loff_t *ppos) evm_write_key() argument
|
/linux-4.4.14/arch/powerpc/platforms/pseries/ |
H A D | event_sources.c | 27 int i, index, count = 0; request_event_sources_irqs() local 41 if (count > 15) request_event_sources_irqs() 43 virqs[count] = irq_create_mapping(NULL, *(opicprop++)); request_event_sources_irqs() 44 if (virqs[count] == NO_IRQ) { request_event_sources_irqs() 51 count++; request_event_sources_irqs() 60 if (count > 15) request_event_sources_irqs() 62 virqs[count] = irq_create_of_mapping(&oirq); request_event_sources_irqs() 63 if (virqs[count] == NO_IRQ) { request_event_sources_irqs() 70 count++; request_event_sources_irqs() 75 for (i = 0; i < count; i++) { request_event_sources_irqs()
|
H A D | hvconsole.c | 39 * @count: not used? 41 int hvc_get_chars(uint32_t vtermno, char *buf, int count) hvc_get_chars() argument 66 * @count: Send this number of characters. 68 int hvc_put_chars(uint32_t vtermno, const char *buf, int count) hvc_put_chars() argument 74 /* hcall will ret H_PARAMETER if 'count' exceeds firmware max.*/ hvc_put_chars() 75 if (count > MAX_VIO_PUT_CHARS) hvc_put_chars() 76 count = MAX_VIO_PUT_CHARS; hvc_put_chars() 78 ret = plpar_hcall_norets(H_PUT_TERM_CHAR, vtermno, count, hvc_put_chars() 82 return count; hvc_put_chars()
|
/linux-4.4.14/arch/sh/include/asm/ |
H A D | mutex-llsc.h | 22 __mutex_fastpath_lock(atomic_t *count, void (*fail_fn)(atomic_t *)) __mutex_fastpath_lock() argument 32 : "r" (&(count)->counter) __mutex_fastpath_lock() 36 fail_fn(count); __mutex_fastpath_lock() 40 __mutex_fastpath_lock_retval(atomic_t *count) __mutex_fastpath_lock_retval() argument 50 : "r" (&(count)->counter) __mutex_fastpath_lock_retval() 60 __mutex_fastpath_unlock(atomic_t *count, void (*fail_fn)(atomic_t *)) __mutex_fastpath_unlock() argument 70 : "r" (&(count)->counter) __mutex_fastpath_unlock() 74 fail_fn(count); __mutex_fastpath_unlock() 88 __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *)) __mutex_fastpath_trylock() argument 104 : "r" (&count->counter) __mutex_fastpath_trylock()
|
H A D | rwsem.h | 27 if (atomic_inc_return((atomic_t *)(&sem->count)) > 0) __down_read() 37 while ((tmp = sem->count) >= 0) { __down_read_trylock() 38 if (tmp == cmpxchg(&sem->count, tmp, __down_read_trylock() 55 (atomic_t *)(&sem->count)); __down_write() 66 tmp = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, __down_write_trylock() 80 tmp = atomic_dec_return((atomic_t *)(&sem->count)); __up_read() 92 (atomic_t *)(&sem->count)) < 0) __up_write() 101 atomic_add(delta, (atomic_t *)(&sem->count)); rwsem_atomic_add() 112 tmp = atomic_add_return(-RWSEM_WAITING_BIAS, (atomic_t *)(&sem->count)); __downgrade_write() 128 return atomic_add_return(delta, (atomic_t *)(&sem->count)); rwsem_atomic_update()
|
/linux-4.4.14/drivers/net/wireless/b43/ |
H A D | sysfs.c | 36 static int get_integer(const char *buf, size_t count) get_integer() argument 41 if (count == 0) get_integer() 43 count = min_t(size_t, count, 10); get_integer() 44 memcpy(tmp, buf, count); get_integer() 55 ssize_t count = 0; b43_attr_interfmode_show() local 69 count = b43_attr_interfmode_show() 74 count = b43_attr_interfmode_show() 79 count = b43_attr_interfmode_show() 89 return count; b43_attr_interfmode_show() 94 const char *buf, size_t count) b43_attr_interfmode_store() 103 mode = get_integer(buf, count); b43_attr_interfmode_store() 135 return err ? err : count; b43_attr_interfmode_store() 92 b43_attr_interfmode_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) b43_attr_interfmode_store() argument
|
/linux-4.4.14/sound/oss/ |
H A D | msnd.c | 121 int count = 0; msnd_fifo_write_io() local 123 while ((count < len) && (f->len != f->n)) { msnd_fifo_write_io() 128 nwritten = len - count; msnd_fifo_write_io() 134 if (nwritten > len - count) msnd_fifo_write_io() 135 nwritten = len - count; msnd_fifo_write_io() 140 count += nwritten; msnd_fifo_write_io() 147 return count; msnd_fifo_write_io() 152 int count = 0; msnd_fifo_write() local 154 while ((count < len) && (f->len != f->n)) { msnd_fifo_write() 159 nwritten = len - count; msnd_fifo_write() 165 if (nwritten > len - count) msnd_fifo_write() 166 nwritten = len - count; msnd_fifo_write() 171 count += nwritten; msnd_fifo_write() 178 return count; msnd_fifo_write() 183 int count = 0; msnd_fifo_read_io() local 185 while ((count < len) && (f->len > 0)) { msnd_fifo_read_io() 190 nread = len - count; msnd_fifo_read_io() 196 if (nread > len - count) msnd_fifo_read_io() 197 nread = len - count; msnd_fifo_read_io() 202 count += nread; msnd_fifo_read_io() 209 return count; msnd_fifo_read_io() 214 int count = 0; msnd_fifo_read() local 216 while ((count < len) && (f->len > 0)) { msnd_fifo_read() 221 nread = len - count; msnd_fifo_read() 227 if (nread > len - count) msnd_fifo_read() 228 nread = len - count; msnd_fifo_read() 233 count += nread; msnd_fifo_read() 240 return count; msnd_fifo_read() 356 printk(KERN_DEBUG LOGNAME ": IRQ ref count is %d\n", dev->irq_ref); msnd_disable_irq()
|
/linux-4.4.14/drivers/acpi/acpica/ |
H A D | nsprepkg.c | 56 union acpi_operand_object **elements, u32 count); 75 * DESCRIPTION: Check a returned package object for the correct count and 89 u32 count; acpi_ns_check_package() local 101 return_object->package.count)); acpi_ns_check_package() 110 /* Extract package count and elements array */ acpi_ns_check_package() 113 count = return_object->package.count; acpi_ns_check_package() 119 if (!count) { acpi_ns_check_package() 140 * The package count is fixed and there are no subpackages acpi_ns_check_package() 147 if (count < expected_count) { acpi_ns_check_package() 149 } else if (count > expected_count) { acpi_ns_check_package() 153 info->full_pathname, count, acpi_ns_check_package() 172 * The package count is variable, there are no subpackages, and all acpi_ns_check_package() 175 for (i = 0; i < count; i++) { acpi_ns_check_package() 188 * The package count is variable, there are no subpackages. There are acpi_ns_check_package() 194 expected_count = package->ret_info3.count; acpi_ns_check_package() 195 if (count < expected_count) { acpi_ns_check_package() 201 for (i = 0; i < count; i++) { acpi_ns_check_package() 202 if (i < package->ret_info3.count) { acpi_ns_check_package() 243 count--; acpi_ns_check_package() 248 acpi_ns_check_package_list(info, package, elements, count); acpi_ns_check_package() 253 /* First element is the (Integer) count of subpackages to follow */ acpi_ns_check_package() 266 if (expected_count >= count) { acpi_ns_check_package() 270 count = expected_count; acpi_ns_check_package() 276 acpi_ns_check_package_list(info, package, elements, count); acpi_ns_check_package() 310 count = 1; acpi_ns_check_package() 316 acpi_ns_check_package_list(info, package, elements, count); acpi_ns_check_package() 330 if (count & 1) { acpi_ns_check_package() 331 expected_count = count + 1; acpi_ns_check_package() 335 while (count > 0) { acpi_ns_check_package() 361 count -= 2; acpi_ns_check_package() 381 /* Error exit for the case with an incorrect package count */ acpi_ns_check_package() 385 count, expected_count)); acpi_ns_check_package() 398 * count - Count of subpackages 409 union acpi_operand_object **elements, u32 count) acpi_ns_check_package_list() 425 for (i = 0; i < count; i++) { acpi_ns_check_package_list() 450 if (sub_package->package.count < expected_count) { acpi_ns_check_package_list() 476 if (sub_package->package.count < expected_count) { acpi_ns_check_package_list() 489 count - acpi_ns_check_package_list() 507 expected_count = package->ret_info2.count; acpi_ns_check_package_list() 508 if (sub_package->package.count < expected_count) { acpi_ns_check_package_list() 533 if (sub_package->package.count < expected_count) { acpi_ns_check_package_list() 544 count, 0, 0, 0); acpi_ns_check_package_list() 552 * First element is the (Integer) count of elements, including acpi_ns_check_package_list() 553 * the count field (the ACPI name is num_elements) acpi_ns_check_package_list() 567 if (sub_package->package.count < expected_count) { acpi_ns_check_package_list() 570 if (sub_package->package.count < acpi_ns_check_package_list() 582 expected_count = sub_package->package.count; acpi_ns_check_package_list() 612 /* The subpackage count was smaller than required */ acpi_ns_check_package_list() 616 i, sub_package->package.count, expected_count)); acpi_ns_check_package_list() 654 * The second group can have a count of zero. acpi_ns_check_package_elements() 407 acpi_ns_check_package_list(struct acpi_evaluate_info *info, const union acpi_predefined_info *package, union acpi_operand_object **elements, u32 count) acpi_ns_check_package_list() argument
|
/linux-4.4.14/drivers/vfio/pci/ |
H A D | vfio_pci_rdwr.c | 31 loff_t off, size_t count, size_t x_start, do_io_rw() 36 while (count) { do_io_rw() 40 fillable = min(count, (size_t)(x_start - off)); do_io_rw() 42 fillable = count; do_io_rw() 96 filled = min(count, (size_t)(x_end - off)); do_io_rw() 107 count -= filled; do_io_rw() 117 size_t count, loff_t *ppos, bool iswrite) vfio_pci_bar_rw() 135 count = min(count, (size_t)(end - pos)); vfio_pci_bar_rw() 169 done = do_io_rw(io, buf, pos, count, x_start, x_end, iswrite); vfio_pci_bar_rw() 181 size_t count, loff_t *ppos, bool iswrite) vfio_pci_vga_rw() 195 count = min(count, (size_t)(0xc0000 - pos)); vfio_pci_vga_rw() 202 count = min(count, (size_t)(0x3bc - pos)); vfio_pci_vga_rw() 209 count = min(count, (size_t)(0x3e0 - pos)); vfio_pci_vga_rw() 228 done = do_io_rw(iomem, buf, off, count, 0, 0, iswrite); vfio_pci_vga_rw() 30 do_io_rw(void __iomem *io, char __user *buf, loff_t off, size_t count, size_t x_start, size_t x_end, bool iswrite) do_io_rw() argument 116 vfio_pci_bar_rw(struct vfio_pci_device *vdev, char __user *buf, size_t count, loff_t *ppos, bool iswrite) vfio_pci_bar_rw() argument 180 vfio_pci_vga_rw(struct vfio_pci_device *vdev, char __user *buf, size_t count, loff_t *ppos, bool iswrite) vfio_pci_vga_rw() argument
|
/linux-4.4.14/drivers/clocksource/ |
H A D | i8253.c | 33 int count; i8253_read() local 44 * before latching the timer count to guarantee that although i8253_read() 45 * the jiffies value might be older than the count (that is, i8253_read() 48 * count), it cannot be newer. i8253_read() 51 outb_p(0x00, PIT_MODE); /* latch the count ASAP */ i8253_read() 52 count = inb_p(PIT_CH0); /* read the latched count */ i8253_read() 53 count |= inb_p(PIT_CH0) << 8; i8253_read() 55 /* VIA686a test code... reset the latch if count > max + 1 */ i8253_read() 56 if (count > PIT_LATCH) { i8253_read() 60 count = PIT_LATCH - 1; i8253_read() 64 * It's possible for count to appear to go the wrong way for a i8253_read() 76 if (count > old_count && jifs == old_jifs) i8253_read() 77 count = old_count; i8253_read() 79 old_count = count; i8253_read() 84 count = (PIT_LATCH - 1) - count; i8253_read() 86 return (cycle_t)(jifs * PIT_LATCH) + count; i8253_read()
|
/linux-4.4.14/drivers/bcma/ |
H A D | host_soc.c | 51 size_t count, u16 offset, u8 reg_width) bcma_host_soc_block_read() 59 while (count) { sizeof() 62 count--; sizeof() 69 WARN_ON(count & 1); sizeof() 70 while (count) { sizeof() 73 count -= 2; sizeof() 80 WARN_ON(count & 3); sizeof() 81 while (count) { sizeof() 84 count -= 4; sizeof() 95 size_t count, u16 offset, u8 reg_width) bcma_host_soc_block_write() 103 while (count) { sizeof() 106 count--; sizeof() 113 WARN_ON(count & 1); sizeof() 114 while (count) { sizeof() 117 count -= 2; sizeof() 124 WARN_ON(count & 3); sizeof() 125 while (count) { sizeof() 128 count -= 4; sizeof() 50 bcma_host_soc_block_read(struct bcma_device *core, void *buffer, size_t count, u16 offset, u8 reg_width) bcma_host_soc_block_read() argument 93 bcma_host_soc_block_write(struct bcma_device *core, const void *buffer, size_t count, u16 offset, u8 reg_width) bcma_host_soc_block_write() argument
|
/linux-4.4.14/arch/m32r/kernel/ |
H A D | time.c | 69 unsigned long count; m32r_gettimeoffset() local 71 /* timer count may underflow right here */ m32r_gettimeoffset() 72 count = inl(M32R_MFT2CUT_PORTL); m32r_gettimeoffset() 75 count = 0; m32r_gettimeoffset() 77 count = (latch - count) * TICK_SIZE; m32r_gettimeoffset() 78 elapsed_time = DIV_ROUND_CLOSEST(count, latch); m32r_gettimeoffset() 79 /* NOTE: LATCH is equal to the "interval" value (= reload count). */ m32r_gettimeoffset() 82 unsigned long count; m32r_gettimeoffset() local 86 /* timer count may underflow right here */ m32r_gettimeoffset() 87 count = inl(M32R_MFT2CUT_PORTL); m32r_gettimeoffset() 89 if (jiffies == p_jiffies && count > p_count) m32r_gettimeoffset() 90 count = 0; m32r_gettimeoffset() 93 p_count = count; m32r_gettimeoffset() 95 count = (latch - count) * TICK_SIZE; m32r_gettimeoffset() 96 elapsed_time = DIV_ROUND_CLOSEST(count, latch); m32r_gettimeoffset() 97 /* NOTE: LATCH is equal to the "interval" value (= reload count). */ m32r_gettimeoffset()
|
/linux-4.4.14/arch/m32r/platforms/oaks32r/ |
H A D | io.c | 51 static inline void _ne_insb(void *portp, void *addr, unsigned long count) _ne_insb() argument 54 while (count--) _ne_insb() 150 void _insb(unsigned int port, void *addr, unsigned long count) _insb() argument 153 _ne_insb(PORT2ADDR_NE(port), addr, count); _insb() local 157 while (count--) _insb() 162 void _insw(unsigned int port, void *addr, unsigned long count) _insw() argument 169 while (count--) _insw() 173 while (count--) _insw() 178 void _insl(unsigned int port, void *addr, unsigned long count) _insl() argument 184 while (count--) _insl() 188 void _outsb(unsigned int port, const void *addr, unsigned long count) _outsb() argument 195 while (count--) _outsb() 199 while (count--) _outsb() 204 void _outsw(unsigned int port, const void *addr, unsigned long count) _outsw() argument 211 while (count--) _outsw() 215 while (count--) _outsw() 220 void _outsl(unsigned int port, const void *addr, unsigned long count) _outsl() argument 226 while (count--) _outsl()
|
/linux-4.4.14/drivers/isdn/hardware/eicon/ |
H A D | dqueue.c | 29 q->read = q->write = q->count = q->segment_pending = 0; diva_data_q_init() 52 q->read = q->write = q->count = q->segment_pending = 0; diva_data_q_finit() 64 if ((!q->segment_pending) && (q->count < q->segments)) { diva_data_q_get_segment4write() 77 q->count++; diva_data_q_ack_segment4write() 89 if (q->count) { diva_data_q_get_segment4read() 102 if (q->count) { diva_data_q_ack_segment4read() 104 q->count--; diva_data_q_ack_segment4read()
|
/linux-4.4.14/sound/drivers/pcsp/ |
H A D | pcsp_input.c | 21 static void pcspkr_do_sound(unsigned int count) pcspkr_do_sound() argument 27 if (count) { pcspkr_do_sound() 31 outb_p(count & 0xff, 0x42); pcspkr_do_sound() 32 outb((count >> 8) & 0xff, 0x42); pcspkr_do_sound() 51 unsigned int count = 0; pcspkr_input_event() local 74 count = PIT_TICK_RATE / value; pcspkr_input_event() 76 pcspkr_do_sound(count); pcspkr_input_event()
|
/linux-4.4.14/drivers/staging/dgnc/ |
H A D | dgnc_sysfs.c | 52 const char *buf, size_t count) dgnc_driver_pollrate_store() 66 return count; dgnc_driver_pollrate_store() 110 int count = 0; dgnc_vpd_show() local 115 count += sprintf(buf + count, dgnc_vpd_show() 119 count += sprintf(buf + count, "\n%04X ", i * 2); dgnc_vpd_show() 120 count += sprintf(buf + count, "%02X ", bd->vpd[i]); dgnc_vpd_show() 122 count += sprintf(buf + count, "\n"); dgnc_vpd_show() 124 return count; dgnc_vpd_show() 132 int count = 0; dgnc_serial_number_show() local 137 count += sprintf(buf + count, "<UNKNOWN>\n"); dgnc_serial_number_show() 139 count += sprintf(buf + count, "%s\n", bd->serial_num); dgnc_serial_number_show() 141 return count; dgnc_serial_number_show() 149 int count = 0; dgnc_ports_state_show() local 155 count += snprintf(buf + count, PAGE_SIZE - count, dgnc_ports_state_show() 159 return count; dgnc_ports_state_show() 167 int count = 0; dgnc_ports_baud_show() local 173 count += snprintf(buf + count, PAGE_SIZE - count, dgnc_ports_baud_show() 177 return count; dgnc_ports_baud_show() 186 int count = 0; dgnc_ports_msignals_show() local 193 count += snprintf(buf + count, PAGE_SIZE - count, dgnc_ports_msignals_show() 203 count += snprintf(buf + count, PAGE_SIZE - count, dgnc_ports_msignals_show() 207 return count; dgnc_ports_msignals_show() 215 int count = 0; dgnc_ports_iflag_show() local 221 count += snprintf(buf + count, PAGE_SIZE - count, "%d %x\n", dgnc_ports_iflag_show() 225 return count; dgnc_ports_iflag_show() 233 int count = 0; dgnc_ports_cflag_show() local 239 count += snprintf(buf + count, PAGE_SIZE - count, "%d %x\n", dgnc_ports_cflag_show() 243 return count; dgnc_ports_cflag_show() 251 int count = 0; dgnc_ports_oflag_show() local 257 count += snprintf(buf + count, PAGE_SIZE - count, "%d %x\n", dgnc_ports_oflag_show() 261 return count; dgnc_ports_oflag_show() 269 int count = 0; dgnc_ports_lflag_show() local 275 count += snprintf(buf + count, PAGE_SIZE - count, "%d %x\n", dgnc_ports_lflag_show() 279 return count; dgnc_ports_lflag_show() 288 int count = 0; dgnc_ports_digi_flag_show() local 294 count += snprintf(buf + count, PAGE_SIZE - count, "%d %x\n", dgnc_ports_digi_flag_show() 298 return count; dgnc_ports_digi_flag_show() 306 int count = 0; dgnc_ports_rxcount_show() local 312 count += snprintf(buf + count, PAGE_SIZE - count, "%d %ld\n", dgnc_ports_rxcount_show() 316 return count; dgnc_ports_rxcount_show() 324 int count = 0; dgnc_ports_txcount_show() local 330 count += snprintf(buf + count, PAGE_SIZE - count, "%d %ld\n", dgnc_ports_txcount_show() 334 return count; dgnc_ports_txcount_show() 51 dgnc_driver_pollrate_store(struct device_driver *ddp, const char *buf, size_t count) dgnc_driver_pollrate_store() argument
|
/linux-4.4.14/drivers/staging/iio/addac/ |
H A D | adt7316-spi.c | 26 static int adt7316_spi_multi_read(void *client, u8 reg, u8 count, u8 *data) adt7316_spi_multi_read() argument 32 if (count > ADT7316_REG_MAX_ADDR) adt7316_spi_multi_read() 33 count = ADT7316_REG_MAX_ADDR; adt7316_spi_multi_read() 46 ret = spi_write_then_read(spi_dev, cmd, 1, data, count); adt7316_spi_multi_read() 55 static int adt7316_spi_multi_write(void *client, u8 reg, u8 count, u8 *data) adt7316_spi_multi_write() argument 61 if (count > ADT7316_REG_MAX_ADDR) adt7316_spi_multi_write() 62 count = ADT7316_REG_MAX_ADDR; adt7316_spi_multi_write() 66 for (i = 0; i < count; i++) adt7316_spi_multi_write() 69 ret = spi_write(spi_dev, buf, count + 2); adt7316_spi_multi_write()
|
H A D | adt7316-i2c.c | 53 static int adt7316_i2c_multi_read(void *client, u8 reg, u8 count, u8 *data) adt7316_i2c_multi_read() argument 58 if (count > ADT7316_REG_MAX_ADDR) adt7316_i2c_multi_read() 59 count = ADT7316_REG_MAX_ADDR; adt7316_i2c_multi_read() 61 for (i = 0; i < count; i++) { adt7316_i2c_multi_read() 72 static int adt7316_i2c_multi_write(void *client, u8 reg, u8 count, u8 *data) adt7316_i2c_multi_write() argument 77 if (count > ADT7316_REG_MAX_ADDR) adt7316_i2c_multi_write() 78 count = ADT7316_REG_MAX_ADDR; adt7316_i2c_multi_write() 80 for (i = 0; i < count; i++) { adt7316_i2c_multi_write()
|
/linux-4.4.14/arch/ia64/lib/ |
H A D | io.c | 10 void memcpy_fromio(void *to, const volatile void __iomem *from, long count) memcpy_fromio() argument 14 while (count) { memcpy_fromio() 15 count--; memcpy_fromio() 25 void memcpy_toio(volatile void __iomem *to, const void *from, long count) memcpy_toio() argument 29 while (count) { memcpy_toio() 30 count--; memcpy_toio() 40 void memset_io(volatile void __iomem *dst, int c, long count) memset_io() argument 44 while (count) { memset_io() 45 count--; memset_io()
|
H A D | csum_partial_copy.c | 36 int odd, count; do_csum_c() local 47 count = len >> 1; /* nr of 16-bit words.. */ do_csum_c() 48 if (count) { do_csum_c() 51 count--; do_csum_c() 55 count >>= 1; /* nr of 32-bit words.. */ do_csum_c() 56 if (count) { do_csum_c() 59 count--; do_csum_c() 63 count >>= 1; /* nr of 64-bit words.. */ do_csum_c() 64 if (count) { do_csum_c() 68 count--; do_csum_c() 73 } while (count); do_csum_c()
|
/linux-4.4.14/tools/perf/tests/ |
H A D | bp_signal_overflow.c | 46 long long count; bp_count() local 49 ret = read(fd, &count, sizeof(long long)); bp_count() 55 return count; bp_count() 65 long long count; test__bp_signal_overflow() local 114 count = bp_count(fd); test__bp_signal_overflow() 118 pr_debug("count %lld, overflow %d\n", test__bp_signal_overflow() 119 count, overflows); test__bp_signal_overflow() 121 if (count != EXECUTIONS) { test__bp_signal_overflow() 123 count, EXECUTIONS); test__bp_signal_overflow()
|
/linux-4.4.14/arch/x86/lib/ |
H A D | csum-partial_64.c | 36 unsigned odd, count; do_csum() local 47 count = len >> 1; /* nr of 16-bit words.. */ do_csum() 48 if (count) { do_csum() 51 count--; do_csum() 55 count >>= 1; /* nr of 32-bit words.. */ do_csum() 56 if (count) { do_csum() 61 count--; do_csum() 65 count >>= 1; /* nr of 64-bit words.. */ do_csum() 69 count64 = count >> 3; do_csum() 88 count %= 8; do_csum() 89 while (count) { do_csum() 95 --count; do_csum()
|
/linux-4.4.14/sound/core/ |
H A D | memory.c | 32 * @count: the data size to copy in bytes 38 int copy_to_user_fromio(void __user *dst, const volatile void __iomem *src, size_t count) copy_to_user_fromio() argument 41 return copy_to_user(dst, (const void __force*)src, count) ? -EFAULT : 0; copy_to_user_fromio() 44 while (count) { copy_to_user_fromio() 45 size_t c = count; copy_to_user_fromio() 51 count -= c; copy_to_user_fromio() 65 * @count: the data size to copy in bytes 71 int copy_from_user_toio(volatile void __iomem *dst, const void __user *src, size_t count) copy_from_user_toio() argument 74 return copy_from_user((void __force *)dst, src, count) ? -EFAULT : 0; copy_from_user_toio() 77 while (count) { copy_from_user_toio() 78 size_t c = count; copy_from_user_toio() 84 count -= c; copy_from_user_toio()
|
/linux-4.4.14/include/crypto/ |
H A D | sha512_base.h | 33 sctx->count[0] = sctx->count[1] = 0; sha384_base_init() 50 sctx->count[0] = sctx->count[1] = 0; sha512_base_init() 61 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; sha512_base_do_update() 63 sctx->count[0] += len; sha512_base_do_update() 64 if (sctx->count[0] < len) sha512_base_do_update() 65 sctx->count[1]++; sha512_base_do_update() 101 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; sha512_base_do_finalize() 112 bits[0] = cpu_to_be64(sctx->count[1] << 3 | sctx->count[0] >> 61); sha512_base_do_finalize() 113 bits[1] = cpu_to_be64(sctx->count[0] << 3); sha512_base_do_finalize()
|
/linux-4.4.14/arch/powerpc/sysdev/ |
H A D | mmio_nvram.c | 37 static ssize_t mmio_nvram_read(char *buf, size_t count, loff_t *index) mmio_nvram_read() argument 43 if (*index + count > mmio_nvram_len) mmio_nvram_read() 44 count = mmio_nvram_len - *index; mmio_nvram_read() 48 memcpy_fromio(buf, mmio_nvram_start + *index, count); mmio_nvram_read() 52 *index += count; mmio_nvram_read() 53 return count; mmio_nvram_read() 73 static ssize_t mmio_nvram_write(char *buf, size_t count, loff_t *index) mmio_nvram_write() argument 79 if (*index + count > mmio_nvram_len) mmio_nvram_write() 80 count = mmio_nvram_len - *index; mmio_nvram_write() 84 memcpy_toio(mmio_nvram_start + *index, buf, count); mmio_nvram_write() 88 *index += count; mmio_nvram_write() 89 return count; mmio_nvram_write()
|
/linux-4.4.14/arch/mips/paravirt/ |
H A D | serial.c | 25 static int paravirt_put_chars(u32 vtermno, const char *buf, int count) paravirt_put_chars() argument 28 (unsigned long)buf, count); paravirt_put_chars() 30 return count; paravirt_put_chars()
|
/linux-4.4.14/arch/arm/mach-ixp4xx/include/mach/ |
H A D | io.h | 98 const u8 *vaddr, int count) __indirect_writesb() 100 while (count--) __indirect_writesb() 121 const u16 *vaddr, int count) __indirect_writesw() 123 while (count--) __indirect_writesw() 140 const u32 *vaddr, int count) __indirect_writesl() 142 while (count--) __indirect_writesl() 163 u8 *vaddr, u32 count) __indirect_readsb() 165 while (count--) __indirect_readsb() 186 u16 *vaddr, u32 count) __indirect_readsw() 188 while (count--) __indirect_readsw() 207 u32 *vaddr, u32 count) __indirect_readsl() 209 while (count--) __indirect_readsl() 248 static inline void outsb(u32 io_addr, const void *p, u32 count) outsb() argument 252 while (count--) outsb() 267 static inline void outsw(u32 io_addr, const void *p, u32 count) outsw() argument 270 while (count--) outsw() 281 static inline void outsl(u32 io_addr, const void *p, u32 count) outsl() argument 284 while (count--) outsl() 301 static inline void insb(u32 io_addr, void *p, u32 count) insb() argument 304 while (count--) insb() 321 static inline void insw(u32 io_addr, void *p, u32 count) insw() argument 324 while (count--) insw() 339 static inline void insl(u32 io_addr, void *p, u32 count) insl() argument 342 while (count--) insl() 367 static inline void ioread8_rep(const void __iomem *addr, void *vaddr, u32 count) ioread8_rep() argument 371 insb(port & PIO_MASK, vaddr, count); ioread8_rep() 374 __raw_readsb(addr, vaddr, count); ioread8_rep() 376 __indirect_readsb(addr, vaddr, count); ioread8_rep() 396 u32 count) ioread16_rep() 400 insw(port & PIO_MASK, vaddr, count); ioread16_rep() 403 __raw_readsw(addr, vaddr, count); ioread16_rep() 405 __indirect_readsw(addr, vaddr, count); ioread16_rep() 426 u32 count) ioread32_rep() 430 insl(port & PIO_MASK, vaddr, count); ioread32_rep() 433 __raw_readsl(addr, vaddr, count); ioread32_rep() 435 __indirect_readsl(addr, vaddr, count); ioread32_rep() 455 u32 count) iowrite8_rep() 459 outsb(port & PIO_MASK, vaddr, count); iowrite8_rep() 462 __raw_writesb(addr, vaddr, count); iowrite8_rep() 464 __indirect_writesb(addr, vaddr, count); iowrite8_rep() 484 u32 count) iowrite16_rep() 488 outsw(port & PIO_MASK, vaddr, count); iowrite16_rep() 491 __raw_writesw(addr, vaddr, count); iowrite16_rep() 493 __indirect_writesw(addr, vaddr, count); iowrite16_rep() 513 u32 count) iowrite32_rep() 517 outsl(port & PIO_MASK, vaddr, count); iowrite32_rep() 520 __raw_writesl(addr, vaddr, count); iowrite32_rep() 522 __indirect_writesl(addr, vaddr, count); iowrite32_rep() 97 __indirect_writesb(volatile void __iomem *bus_addr, const u8 *vaddr, int count) __indirect_writesb() argument 120 __indirect_writesw(volatile void __iomem *bus_addr, const u16 *vaddr, int count) __indirect_writesw() argument 139 __indirect_writesl(volatile void __iomem *bus_addr, const u32 *vaddr, int count) __indirect_writesl() argument 162 __indirect_readsb(const volatile void __iomem *bus_addr, u8 *vaddr, u32 count) __indirect_readsb() argument 185 __indirect_readsw(const volatile void __iomem *bus_addr, u16 *vaddr, u32 count) __indirect_readsw() argument 206 __indirect_readsl(const volatile void __iomem *bus_addr, u32 *vaddr, u32 count) __indirect_readsl() argument 395 ioread16_rep(const void __iomem *addr, void *vaddr, u32 count) ioread16_rep() argument 425 ioread32_rep(const void __iomem *addr, void *vaddr, u32 count) ioread32_rep() argument 454 iowrite8_rep(void __iomem *addr, const void *vaddr, u32 count) iowrite8_rep() argument 483 iowrite16_rep(void __iomem *addr, const void *vaddr, u32 count) iowrite16_rep() argument 512 iowrite32_rep(void __iomem *addr, const void *vaddr, u32 count) iowrite32_rep() argument
|
/linux-4.4.14/fs/ufs/ |
H A D | util.c | 23 u64 count = 0; _ubh_bread_() local 26 count = size >> uspi->s_fshift; _ubh_bread_() 27 if (count > UFS_MAXFRAG) _ubh_bread_() 33 ubh->count = count; _ubh_bread_() 34 for (i = 0; i < count; i++) _ubh_bread_() 51 u64 count = 0; ubh_bread_uspi() local 54 count = size >> uspi->s_fshift; ubh_bread_uspi() 55 if (count <= 0 || count > UFS_MAXFRAG) ubh_bread_uspi() 58 USPI_UBH(uspi)->count = count; ubh_bread_uspi() 59 for (i = 0; i < count; i++) ubh_bread_uspi() 76 for (i = 0; i < ubh->count; i++) ubh_brelse() 86 for ( i = 0; i < USPI_UBH(uspi)->count; i++ ) { ubh_brelse_uspi() 97 for ( i = 0; i < ubh->count; i++ ) ubh_mark_buffer_dirty() 107 for ( i = 0; i < ubh->count; i++ ) ubh_mark_buffer_uptodate() 110 for ( i = 0; i < ubh->count; i++ ) ubh_mark_buffer_uptodate() 120 for (i = 0; i < ubh->count; i++) ubh_sync_block() 123 for (i = 0; i < ubh->count; i++) ubh_sync_block() 133 for ( i = 0; i < ubh->count; i++ ) if ( ubh->bh[i] ) ubh_bforget() 143 for ( i = 0; i < ubh->count; i++ ) ubh_buffer_dirty() 152 if (size > (ubh->count << uspi->s_fshift)) _ubh_ubhcpymem_() 153 size = ubh->count << uspi->s_fshift; _ubh_ubhcpymem_() 168 if (size > (ubh->count << uspi->s_fshift)) _ubh_memcpyubh_() 169 size = ubh->count << uspi->s_fshift; _ubh_memcpyubh_() 239 * count and returns its address.
|
/linux-4.4.14/drivers/net/wireless/libertas/ |
H A D | debugfs.c | 25 size_t count, loff_t *ppos) write_file_dummy() 33 size_t count, loff_t *ppos) lbs_dev_info() 48 res = simple_read_from_buffer(userbuf, count, ppos, buf, pos); lbs_dev_info() 55 const char __user *user_buf, size_t count, lbs_sleepparams_write() 67 buf_size = min(count, len - 1); lbs_sleepparams_write() 86 ret = count; lbs_sleepparams_write() 96 size_t count, loff_t *ppos) lbs_sleepparams_read() 116 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); lbs_sleepparams_read() 124 const char __user *user_buf, size_t count, lbs_host_sleep_write() 135 buf_size = min(count, len - 1); lbs_host_sleep_write() 162 ret = count; lbs_host_sleep_write() 170 size_t count, loff_t *ppos) lbs_host_sleep_read() 182 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); lbs_host_sleep_read() 226 size_t count, loff_t *ppos) lbs_threshold_read() 265 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); lbs_threshold_read() 278 const char __user *userbuf, size_t count, lbs_threshold_write() 294 buf_size = min(count, len - 1); lbs_threshold_write() 342 ret = count; lbs_threshold_write() 352 size_t count, loff_t *ppos) lbs_lowrssi_read() 355 file, userbuf, count, ppos); lbs_lowrssi_read() 360 size_t count, loff_t *ppos) lbs_lowrssi_write() 363 file, userbuf, count, ppos); lbs_lowrssi_write() 368 size_t count, loff_t *ppos) lbs_lowsnr_read() 371 file, userbuf, count, ppos); lbs_lowsnr_read() 376 size_t count, loff_t *ppos) lbs_lowsnr_write() 379 file, userbuf, count, ppos); lbs_lowsnr_write() 384 size_t count, loff_t *ppos) lbs_failcount_read() 387 file, userbuf, count, ppos); lbs_failcount_read() 392 size_t count, loff_t *ppos) lbs_failcount_write() 395 file, userbuf, count, ppos); lbs_failcount_write() 400 size_t count, loff_t *ppos) lbs_highrssi_read() 403 file, userbuf, count, ppos); lbs_highrssi_read() 408 size_t count, loff_t *ppos) lbs_highrssi_write() 411 file, userbuf, count, ppos); lbs_highrssi_write() 416 size_t count, loff_t *ppos) lbs_highsnr_read() 419 file, userbuf, count, ppos); lbs_highsnr_read() 424 size_t count, loff_t *ppos) lbs_highsnr_write() 427 file, userbuf, count, ppos); lbs_highsnr_write() 431 size_t count, loff_t *ppos) lbs_bcnmiss_read() 434 file, userbuf, count, ppos); lbs_bcnmiss_read() 439 size_t count, loff_t *ppos) lbs_bcnmiss_write() 442 file, userbuf, count, ppos); lbs_bcnmiss_write() 447 size_t count, loff_t *ppos) lbs_rdmac_read() 464 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); lbs_rdmac_read() 472 size_t count, loff_t *ppos) lbs_rdmac_write() 481 buf_size = min(count, len - 1); lbs_rdmac_write() 487 res = count; lbs_rdmac_write() 495 size_t count, loff_t *ppos) lbs_wrmac_write() 506 buf_size = min(count, len - 1); lbs_wrmac_write() 521 res = count; lbs_wrmac_write() 528 size_t count, loff_t *ppos) lbs_rdbbp_read() 545 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); lbs_rdbbp_read() 554 size_t count, loff_t *ppos) lbs_rdbbp_write() 563 buf_size = min(count, len - 1); lbs_rdbbp_write() 569 res = count; lbs_rdbbp_write() 577 size_t count, loff_t *ppos) lbs_wrbbp_write() 588 buf_size = min(count, len - 1); lbs_wrbbp_write() 603 res = count; lbs_wrbbp_write() 610 size_t count, loff_t *ppos) lbs_rdrf_read() 627 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); lbs_rdrf_read() 636 size_t count, loff_t *ppos) lbs_rdrf_write() 645 buf_size = min(count, len - 1); lbs_rdrf_write() 651 res = count; lbs_rdrf_write() 659 size_t count, loff_t *ppos) lbs_wrrf_write() 670 buf_size = min(count, len - 1); lbs_wrrf_write() 685 res = count; lbs_wrrf_write() 852 * @count: number of bytes to read 858 size_t count, loff_t *ppos) lbs_debugfs_read() 888 res = simple_read_from_buffer(userbuf, count, ppos, p, pos); lbs_debugfs_read() 24 write_file_dummy(struct file *file, const char __user *buf, size_t count, loff_t *ppos) write_file_dummy() argument 32 lbs_dev_info(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_dev_info() argument 54 lbs_sleepparams_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) lbs_sleepparams_write() argument 95 lbs_sleepparams_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_sleepparams_read() argument 123 lbs_host_sleep_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) lbs_host_sleep_write() argument 169 lbs_host_sleep_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_host_sleep_read() argument 224 lbs_threshold_read(uint16_t tlv_type, uint16_t event_mask, struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_threshold_read() argument 276 lbs_threshold_write(uint16_t tlv_type, uint16_t event_mask, struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_threshold_write() argument 351 lbs_lowrssi_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_lowrssi_read() argument 359 lbs_lowrssi_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_lowrssi_write() argument 367 lbs_lowsnr_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_lowsnr_read() argument 375 lbs_lowsnr_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_lowsnr_write() argument 383 lbs_failcount_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_failcount_read() argument 391 lbs_failcount_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_failcount_write() argument 399 lbs_highrssi_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_highrssi_read() argument 407 lbs_highrssi_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_highrssi_write() argument 415 lbs_highsnr_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_highsnr_read() argument 423 lbs_highsnr_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_highsnr_write() argument 430 lbs_bcnmiss_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_bcnmiss_read() argument 438 lbs_bcnmiss_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_bcnmiss_write() argument 446 lbs_rdmac_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_rdmac_read() argument 470 lbs_rdmac_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_rdmac_write() argument 493 lbs_wrmac_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_wrmac_write() argument 527 lbs_rdbbp_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_rdbbp_read() argument 552 lbs_rdbbp_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_rdbbp_write() argument 575 lbs_wrbbp_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_wrbbp_write() argument 609 lbs_rdrf_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_rdrf_read() argument 634 lbs_rdrf_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_rdrf_write() argument 657 lbs_wrrf_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_wrrf_write() argument 857 lbs_debugfs_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_debugfs_read() argument
|
/linux-4.4.14/fs/ |
H A D | eventfd.c | 30 * value of the __u64 being written is added to "count" and a 31 * wakeup is performed on "wqh". A read(2) will return the "count" 32 * value to userspace, and will reset "count" to zero. The kernel 33 * side eventfd_signal() also, adds to the "count" counter and 36 __u64 count; member in struct:eventfd_ctx 59 if (ULLONG_MAX - ctx->count < n) eventfd_signal() 60 n = ULLONG_MAX - ctx->count; eventfd_signal() 61 ctx->count += n; eventfd_signal() 121 u64 count; eventfd_poll() local 125 count = ctx->count; eventfd_poll() 127 if (count > 0) eventfd_poll() 129 if (count == ULLONG_MAX) eventfd_poll() 131 if (ULLONG_MAX - 1 > count) eventfd_poll() 139 *cnt = (ctx->flags & EFD_SEMAPHORE) ? 1 : ctx->count; eventfd_ctx_do_read() 140 ctx->count -= *cnt; eventfd_ctx_do_read() 194 if (ctx->count > 0) eventfd_ctx_read() 200 if (ctx->count > 0) { eventfd_ctx_read() 226 static ssize_t eventfd_read(struct file *file, char __user *buf, size_t count, eventfd_read() argument 233 if (count < sizeof(cnt)) eventfd_read() 242 static ssize_t eventfd_write(struct file *file, const char __user *buf, size_t count, eventfd_write() argument 250 if (count < sizeof(ucnt)) eventfd_write() 258 if (ULLONG_MAX - ctx->count > ucnt) eventfd_write() 264 if (ULLONG_MAX - ctx->count > ucnt) { eventfd_write() 280 ctx->count += ucnt; eventfd_write() 295 seq_printf(m, "eventfd-count: %16llx\n", eventfd_show_fdinfo() 296 (unsigned long long)ctx->count); eventfd_show_fdinfo() 379 * @count: Initial eventfd counter value. 391 struct file *eventfd_file_create(unsigned int count, int flags) eventfd_file_create() argument 409 ctx->count = count; eventfd_file_create() 420 SYSCALL_DEFINE2(eventfd2, unsigned int, count, int, flags) SYSCALL_DEFINE2() 430 file = eventfd_file_create(count, flags); SYSCALL_DEFINE2() 445 SYSCALL_DEFINE1(eventfd, unsigned int, count) SYSCALL_DEFINE1() 447 return sys_eventfd2(count, 0); SYSCALL_DEFINE1()
|
/linux-4.4.14/drivers/w1/slaves/ |
H A D | w1_ds28e04.c | 64 * Check the file size bounds and adjusts count as needed. 67 static inline size_t w1_f1C_fix_count(loff_t off, size_t count, size_t size) w1_f1C_fix_count() argument 72 if ((off + count) > size) w1_f1C_fix_count() 75 return count; w1_f1C_fix_count() 123 loff_t off, size_t count) eeprom_read() 129 count = w1_f1C_fix_count(off, count, W1_EEPROM_SIZE); eeprom_read() 130 if (count == 0) eeprom_read() 137 max_page = (off + count - 1) >> W1_PAGE_BITS; eeprom_read() 140 count = -EIO; eeprom_read() 144 memcpy(buf, &data->memory[off], count); eeprom_read() 146 count = w1_f1C_read(sl, off, count, buf); eeprom_read() 152 return count; eeprom_read() 231 loff_t off, size_t count) eeprom_write() 237 count = w1_f1C_fix_count(off, count, W1_EEPROM_SIZE); eeprom_write() 238 if (count == 0) eeprom_write() 243 if ((off & W1_PAGE_MASK) || (count & W1_PAGE_MASK)) { eeprom_write() 244 dev_err(&sl->dev, "invalid offset/count off=%d cnt=%zd\n", eeprom_write() 245 (int)off, count); eeprom_write() 250 for (idx = 0; idx < count; idx += W1_PAGE_SIZE) { eeprom_write() 264 while (idx < count) { eeprom_write() 267 if (len > (count - idx)) eeprom_write() 268 len = count - idx; eeprom_write() 271 count = -EIO; eeprom_write() 280 return count; eeprom_write() 287 size_t count) pio_read() 294 if (off != 0 || count != 1 || buf == NULL) pio_read() 298 ret = w1_f1C_read(sl, W1_1C_REG_LOGIC_STATE, count, buf); pio_read() 306 size_t count) pio_write() 314 if (off != 0 || count != 1 || buf == NULL) pio_write() 341 return count; pio_write() 356 const char *buf, size_t count) crccheck_store() 360 if (count != 1 || !buf) crccheck_store() 121 eeprom_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) eeprom_read() argument 229 eeprom_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) eeprom_write() argument 285 pio_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) pio_read() argument 304 pio_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) pio_write() argument 355 crccheck_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) crccheck_store() argument
|
H A D | w1_ds2408.c | 77 size_t count) state_read() 80 "Reading %s kobj: %p, off: %0#10x, count: %zu, buff addr: %p", state_read() 81 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); state_read() 82 if (count != 1 || off != 0) state_read() 89 loff_t off, size_t count) output_read() 92 "Reading %s kobj: %p, off: %0#10x, count: %zu, buff addr: %p", output_read() 93 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); output_read() 94 if (count != 1 || off != 0) output_read() 102 loff_t off, size_t count) activity_read() 105 "Reading %s kobj: %p, off: %0#10x, count: %zu, buff addr: %p", activity_read() 106 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); activity_read() 107 if (count != 1 || off != 0) activity_read() 115 loff_t off, size_t count) cond_search_mask_read() 118 "Reading %s kobj: %p, off: %0#10x, count: %zu, buff addr: %p", cond_search_mask_read() 119 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); cond_search_mask_read() 120 if (count != 1 || off != 0) cond_search_mask_read() 129 char *buf, loff_t off, size_t count) cond_search_polarity_read() 131 if (count != 1 || off != 0) cond_search_polarity_read() 139 loff_t off, size_t count) status_control_read() 141 if (count != 1 || off != 0) status_control_read() 149 loff_t off, size_t count) output_write() 156 if (count != 1 || off != 0) output_write() 220 loff_t off, size_t count) activity_write() 225 if (count != 1 || off != 0) activity_write() 250 loff_t off, size_t count) status_control_write() 256 if (count != 1 || off != 0) status_control_write() 75 state_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) state_read() argument 87 output_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) output_read() argument 100 activity_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) activity_read() argument 113 cond_search_mask_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) cond_search_mask_read() argument 126 cond_search_polarity_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) cond_search_polarity_read() argument 137 status_control_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) status_control_read() argument 147 output_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) output_write() argument 218 activity_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) activity_write() argument 248 status_control_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) status_control_write() argument
|
H A D | w1_ds2431.c | 45 * Check the file size bounds and adjusts count as needed. 48 static inline size_t w1_f2d_fix_count(loff_t off, size_t count, size_t size) w1_f2d_fix_count() argument 53 if ((off + count) > size) w1_f2d_fix_count() 56 return count; w1_f2d_fix_count() 64 * count must not exceed W1_F2D_READ_MAXLEN. 66 static int w1_f2d_readblock(struct w1_slave *sl, int off, int count, char *buf) w1_f2d_readblock() argument 81 w1_read_block(sl->master, buf, count); w1_f2d_readblock() 87 w1_read_block(sl->master, cmp, count); w1_f2d_readblock() 89 if (!memcmp(cmp, buf, count)) w1_f2d_readblock() 101 loff_t off, size_t count) eeprom_read() 104 int todo = count; eeprom_read() 106 count = w1_f2d_fix_count(off, count, W1_F2D_EEPROM_SIZE); eeprom_read() 107 if (count == 0) eeprom_read() 122 count = -EIO; eeprom_read() 131 return count; eeprom_read() 207 loff_t off, size_t count) eeprom_write() 213 count = w1_f2d_fix_count(off, count, W1_F2D_EEPROM_SIZE); eeprom_write() 214 if (count == 0) eeprom_write() 221 len = count; eeprom_write() 231 count = -EIO; eeprom_write() 245 count = -EIO; eeprom_write() 252 count = -EIO; eeprom_write() 264 return count; eeprom_write() 99 eeprom_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) eeprom_read() argument 205 eeprom_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) eeprom_write() argument
|
H A D | w1_ds2433.c | 53 * Check the file size bounds and adjusts count as needed. 56 static inline size_t w1_f23_fix_count(loff_t off, size_t count, size_t size) w1_f23_fix_count() argument 61 if ((off + count) > size) w1_f23_fix_count() 64 return count; w1_f23_fix_count() 98 loff_t off, size_t count) eeprom_read() 108 if ((count = w1_f23_fix_count(off, count, W1_EEPROM_SIZE)) == 0) eeprom_read() 116 max_page = (off + count - 1) >> W1_PAGE_BITS; eeprom_read() 119 count = -EIO; eeprom_read() 123 memcpy(buf, &data->memory[off], count); eeprom_read() 129 count = -EIO; eeprom_read() 137 w1_read_block(sl->master, buf, count); eeprom_read() 144 return count; eeprom_read() 212 loff_t off, size_t count) eeprom_write() 217 if ((count = w1_f23_fix_count(off, count, W1_EEPROM_SIZE)) == 0) eeprom_write() 222 if ((off & W1_PAGE_MASK) || (count & W1_PAGE_MASK)) { eeprom_write() 223 dev_err(&sl->dev, "invalid offset/count off=%d cnt=%zd\n", eeprom_write() 224 (int)off, count); eeprom_write() 229 for (idx = 0; idx < count; idx += W1_PAGE_SIZE) { eeprom_write() 241 while (idx < count) { eeprom_write() 244 if (len > (count - idx)) eeprom_write() 245 len = count - idx; eeprom_write() 248 count = -EIO; eeprom_write() 257 return count; eeprom_write() 96 eeprom_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) eeprom_read() argument 210 eeprom_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) eeprom_write() argument
|
H A D | w1_ds2780.c | 30 size_t count, int io) w1_ds2780_do_io() 37 count = min_t(int, count, DS2780_DATA_SIZE - addr); w1_ds2780_do_io() 43 w1_write_block(sl->master, buf, count); w1_ds2780_do_io() 47 count = w1_read_block(sl->master, buf, count); w1_ds2780_do_io() 51 return count; w1_ds2780_do_io() 54 int w1_ds2780_io(struct device *dev, char *buf, int addr, size_t count, w1_ds2780_io() argument 65 ret = w1_ds2780_do_io(dev, buf, addr, count, io); w1_ds2780_io() 94 loff_t off, size_t count) w1_slave_read() 97 return w1_ds2780_io(dev, buf, off, count, 0); w1_slave_read() 29 w1_ds2780_do_io(struct device *dev, char *buf, int addr, size_t count, int io) w1_ds2780_do_io() argument 92 w1_slave_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) w1_slave_read() argument
|
H A D | w1_ds2781.c | 28 size_t count, int io) w1_ds2781_do_io() 35 count = min_t(int, count, DS2781_DATA_SIZE - addr); w1_ds2781_do_io() 41 w1_write_block(sl->master, buf, count); w1_ds2781_do_io() 45 count = w1_read_block(sl->master, buf, count); w1_ds2781_do_io() 49 return count; w1_ds2781_do_io() 52 int w1_ds2781_io(struct device *dev, char *buf, int addr, size_t count, w1_ds2781_io() argument 63 ret = w1_ds2781_do_io(dev, buf, addr, count, io); w1_ds2781_io() 92 loff_t off, size_t count) w1_slave_read() 95 return w1_ds2781_io(dev, buf, off, count, 0); w1_slave_read() 27 w1_ds2781_do_io(struct device *dev, char *buf, int addr, size_t count, int io) w1_ds2781_do_io() argument 90 w1_slave_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) w1_slave_read() argument
|
H A D | w1_ds2760.c | 26 static int w1_ds2760_io(struct device *dev, char *buf, int addr, size_t count, w1_ds2760_io() argument 37 count = 0; w1_ds2760_io() 40 if (addr + count > DS2760_DATA_SIZE) w1_ds2760_io() 41 count = DS2760_DATA_SIZE - addr; w1_ds2760_io() 47 count = w1_read_block(sl->master, buf, count); w1_ds2760_io() 51 w1_write_block(sl->master, buf, count); w1_ds2760_io() 59 return count; w1_ds2760_io() 62 int w1_ds2760_read(struct device *dev, char *buf, int addr, size_t count) w1_ds2760_read() argument 64 return w1_ds2760_io(dev, buf, addr, count, 0); w1_ds2760_read() 67 int w1_ds2760_write(struct device *dev, char *buf, int addr, size_t count) w1_ds2760_write() argument 69 return w1_ds2760_io(dev, buf, addr, count, 1); w1_ds2760_write() 102 loff_t off, size_t count) w1_slave_read() 105 return w1_ds2760_read(dev, buf, off, count); w1_slave_read() 100 w1_slave_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) w1_slave_read() argument
|
/linux-4.4.14/drivers/base/regmap/ |
H A D | trace.h | 68 TP_PROTO(struct regmap *map, unsigned int reg, int count), 70 TP_ARGS(map, reg, count), 75 __field( int, count ) 81 __entry->count = count; 84 TP_printk("%s reg=%x count=%d", __get_str(name), 86 (int)__entry->count) 91 TP_PROTO(struct regmap *map, unsigned int reg, int count), 93 TP_ARGS(map, reg, count) 98 TP_PROTO(struct regmap *map, unsigned int reg, int count), 100 TP_ARGS(map, reg, count) 105 TP_PROTO(struct regmap *map, unsigned int reg, int count), 107 TP_ARGS(map, reg, count) 112 TP_PROTO(struct regmap *map, unsigned int reg, int count), 114 TP_ARGS(map, reg, count) 196 TP_PROTO(struct regmap *map, unsigned int reg, int count), 198 TP_ARGS(map, reg, count)
|
/linux-4.4.14/kernel/ |
H A D | ksysfs.c | 49 const char *buf, size_t count) uevent_helper_store() 51 if (count+1 > UEVENT_HELPER_PATH_LEN) uevent_helper_store() 53 memcpy(uevent_helper, buf, count); uevent_helper_store() 54 uevent_helper[count] = '\0'; uevent_helper_store() 55 if (count && uevent_helper[count-1] == '\n') uevent_helper_store() 56 uevent_helper[count-1] = '\0'; uevent_helper_store() 57 return count; uevent_helper_store() 70 const char *buf, size_t count) profiling_store() 88 return count; profiling_store() 115 const char *buf, size_t count) kexec_crash_size_store() 124 return ret < 0 ? ret : count; kexec_crash_size_store() 155 const char *buf, size_t count) rcu_expedited_store() 160 return count; rcu_expedited_store() 173 char *buf, loff_t off, size_t count) notes_read() 175 memcpy(buf, &__start_notes + off, count); notes_read() 176 return count; notes_read() 47 uevent_helper_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) uevent_helper_store() argument 68 profiling_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) profiling_store() argument 113 kexec_crash_size_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) kexec_crash_size_store() argument 153 rcu_expedited_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) rcu_expedited_store() argument 171 notes_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) notes_read() argument
|
/linux-4.4.14/drivers/net/wireless/ath/wil6210/ |
H A D | fw.c | 27 size_t count) wil_memset_toio_32() 31 for (count += 4; count > 4; count -= 4) wil_memset_toio_32() 26 wil_memset_toio_32(volatile void __iomem *dst, u32 val, size_t count) wil_memset_toio_32() argument
|
/linux-4.4.14/fs/ext2/ |
H A D | acl.h | 26 static inline size_t ext2_acl_size(int count) ext2_acl_size() argument 28 if (count <= 4) { ext2_acl_size() 30 count * sizeof(ext2_acl_entry_short); ext2_acl_size() 34 (count - 4) * sizeof(ext2_acl_entry); ext2_acl_size()
|
/linux-4.4.14/include/uapi/linux/ |
H A D | random.h | 16 /* Get the entropy count. */ 19 /* Add to (or subtract from) the entropy count. (Superuser only.) */ 26 * Write bytes into the entropy pool and add to the entropy count. 31 /* Clear entropy count to 0. (Superuser only.) */
|
/linux-4.4.14/arch/mips/jz4740/ |
H A D | prom.c | 28 unsigned int count = COMMAND_LINE_SIZE - 1; jz4740_init_cmdline() local 33 for (i = 1; i < argc && count; ++i) { jz4740_init_cmdline() 35 while (*src && count) { jz4740_init_cmdline() 37 --count; jz4740_init_cmdline()
|
/linux-4.4.14/arch/m32r/platforms/usrv/ |
H A D | io.c | 150 void _insb(unsigned int port, void * addr, unsigned long count) _insb() argument 153 pcc_ioread_byte(0, port, addr, sizeof(unsigned char), count, 1); _insb() 157 while (count--) _insb() 162 void _insw(unsigned int port, void * addr, unsigned long count) _insw() argument 168 pcc_ioread_word(0, port, addr, sizeof(unsigned short), count, _insw() 172 while (count--) _insw() 177 void _insl(unsigned int port, void * addr, unsigned long count) _insl() argument 183 while (count--) _insl() 187 void _outsb(unsigned int port, const void * addr, unsigned long count) _outsb() argument 194 count, 1); _outsb() 197 while (count--) _outsb() 202 void _outsw(unsigned int port, const void * addr, unsigned long count) _outsw() argument 209 count, 1); _outsw() 212 while (count--) _outsw() 217 void _outsl(unsigned int port, const void * addr, unsigned long count) _outsl() argument 223 while (count--) _outsl()
|
/linux-4.4.14/drivers/firmware/efi/libstub/ |
H A D | string.c | 40 * @count: The maximum number of bytes to compare 42 int strncmp(const char *cs, const char *ct, size_t count) strncmp() argument 46 while (count) { strncmp() 53 count--; strncmp()
|
/linux-4.4.14/net/mac80211/ |
H A D | debugfs.h | 8 int __printf(4, 5) mac80211_format_buffer(char __user *userbuf, size_t count,
|
/linux-4.4.14/drivers/staging/wilc1000/ |
H A D | wilc_debugfs.c | 37 static ssize_t wilc_debug_level_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) wilc_debug_level_read() argument 48 return simple_read_from_buffer(userbuf, count, ppos, buf, res); wilc_debug_level_read() 52 size_t count, loff_t *ppos) wilc_debug_level_write() 57 ret = kstrtouint_from_user(buf, count, 16, &flag); wilc_debug_level_write() 73 return count; wilc_debug_level_write() 76 static ssize_t wilc_debug_region_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) wilc_debug_region_read() argument 87 return simple_read_from_buffer(userbuf, count, ppos, buf, res); wilc_debug_region_read() 90 static ssize_t wilc_debug_region_write(struct file *filp, const char *buf, size_t count, loff_t *ppos) wilc_debug_region_write() argument 95 if (count > sizeof(buffer)) wilc_debug_region_write() 98 if (copy_from_user(buffer, buf, count)) { wilc_debug_region_write() 112 return count; wilc_debug_region_write() 51 wilc_debug_level_write(struct file *filp, const char __user *buf, size_t count, loff_t *ppos) wilc_debug_level_write() argument
|
/linux-4.4.14/drivers/thermal/ |
H A D | fair_share.c | 36 int count = 0; get_trip_level() local 43 for (count = 0; count < tz->trips; count++) { get_trip_level() 44 tz->ops->get_trip_temp(tz, count, &trip_temp); get_trip_level() 50 * count > 0 only if temperature is greater than first trip get_trip_level() 51 * point, in which case, trip_point = count - 1 get_trip_level() 53 if (count > 0) { get_trip_level() 54 tz->ops->get_trip_type(tz, count - 1, &trip_type); get_trip_level() 55 trace_thermal_zone_trip(tz, count - 1, trip_type); get_trip_level() 58 return count; get_trip_level()
|
/linux-4.4.14/net/atm/ |
H A D | atm_sysfs.c | 36 int i, j, count = 0; show_atmaddress() local 42 count += scnprintf(buf + count, show_atmaddress() 43 PAGE_SIZE - count, "."); show_atmaddress() 47 count += scnprintf(buf + count, show_atmaddress() 48 PAGE_SIZE - count, "%02x", show_atmaddress() 51 count += scnprintf(buf + count, PAGE_SIZE - count, "\n"); show_atmaddress() 55 return count; show_atmaddress()
|
/linux-4.4.14/drivers/parisc/ |
H A D | eisa_eeprom.c | 40 char __user *buf, size_t count, loff_t *ppos ) eisa_eeprom_read() 49 count = *ppos + count < HPEE_MAX_LENGTH ? count : HPEE_MAX_LENGTH - *ppos; eisa_eeprom_read() 50 tmp = kmalloc(count, GFP_KERNEL); eisa_eeprom_read() 52 for (i = 0; i < count; i++) eisa_eeprom_read() 55 if (copy_to_user (buf, tmp, count)) eisa_eeprom_read() 58 ret = count; eisa_eeprom_read() 39 eisa_eeprom_read(struct file * file, char __user *buf, size_t count, loff_t *ppos ) eisa_eeprom_read() argument
|
/linux-4.4.14/drivers/devfreq/exynos/ |
H A D | exynos_ppmu.c | 68 /* Setup count registers to monitor read/write transactions */ busfreq_mon_reset() 92 ppmu_data->ppmu[i].count[j] = 0; exynos_read_ppmu() 94 ppmu_data->ppmu[i].count[j] = exynos_read_ppmu() 105 unsigned int count = 0; exynos_get_busier_ppmu() local 110 if (ppmu_data->ppmu[i].count[j] > count) { exynos_get_busier_ppmu() 111 count = ppmu_data->ppmu[i].count[j]; exynos_get_busier_ppmu()
|
/linux-4.4.14/arch/s390/oprofile/ |
H A D | init.c | 125 size_t count, loff_t *offset) hwsampler_read() 127 return oprofilefs_ulong_to_user(hwsampler_enabled, buf, count, offset); hwsampler_read() 131 size_t count, loff_t *offset) hwsampler_write() 139 retval = oprofilefs_ulong_from_user(&val, buf, count); hwsampler_write() 156 return count; hwsampler_write() 166 * /dev/oprofile/0/count 173 size_t count, loff_t *offset) hw_interval_read() 176 count, offset); hw_interval_read() 180 size_t count, loff_t *offset) hw_interval_write() 187 retval = oprofilefs_ulong_from_user(&val, buf, count); hw_interval_write() 197 return count; hw_interval_write() 216 size_t count, loff_t *offset) hwsampler_zero_read() 218 return oprofilefs_ulong_to_user(0, buf, count, offset); hwsampler_zero_read() 222 size_t count, loff_t *offset) hwsampler_zero_write() 230 retval = oprofilefs_ulong_from_user(&val, buf, count); hwsampler_zero_write() 235 return count; hwsampler_zero_write() 246 size_t count, loff_t *offset) hwsampler_kernel_read() 249 buf, count, offset); hwsampler_kernel_read() 253 size_t count, loff_t *offset) hwsampler_kernel_write() 261 retval = oprofilefs_ulong_from_user(&val, buf, count); hwsampler_kernel_write() 270 return count; hwsampler_kernel_write() 281 size_t count, loff_t *offset) hwsampler_user_read() 284 buf, count, offset); hwsampler_user_read() 288 size_t count, loff_t *offset) hwsampler_user_write() 296 retval = oprofilefs_ulong_from_user(&val, buf, count); hwsampler_user_write() 305 return count; hwsampler_user_write() 321 size_t count, loff_t *offset) timer_enabled_read() 323 return oprofilefs_ulong_to_user(!hwsampler_enabled, buf, count, offset); timer_enabled_read() 327 size_t count, loff_t *offset) timer_enabled_write() 335 retval = oprofilefs_ulong_from_user(&val, buf, count); timer_enabled_write() 356 return count; timer_enabled_write() 400 oprofilefs_create_file(dir, "count", &hw_interval_fops); oprofile_create_hwsampling_files() 124 hwsampler_read(struct file *file, char __user *buf, size_t count, loff_t *offset) hwsampler_read() argument 130 hwsampler_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) hwsampler_write() argument 172 hw_interval_read(struct file *file, char __user *buf, size_t count, loff_t *offset) hw_interval_read() argument 179 hw_interval_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) hw_interval_write() argument 215 hwsampler_zero_read(struct file *file, char __user *buf, size_t count, loff_t *offset) hwsampler_zero_read() argument 221 hwsampler_zero_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) hwsampler_zero_write() argument 245 hwsampler_kernel_read(struct file *file, char __user *buf, size_t count, loff_t *offset) hwsampler_kernel_read() argument 252 hwsampler_kernel_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) hwsampler_kernel_write() argument 280 hwsampler_user_read(struct file *file, char __user *buf, size_t count, loff_t *offset) hwsampler_user_read() argument 287 hwsampler_user_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) hwsampler_user_write() argument 320 timer_enabled_read(struct file *file, char __user *buf, size_t count, loff_t *offset) timer_enabled_read() argument 326 timer_enabled_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) timer_enabled_write() argument
|
/linux-4.4.14/arch/blackfin/kernel/ |
H A D | kgdb_test.c | 52 noinline int kgdb_test(char *name, int len, int count, int z) kgdb_test() argument 54 pr_alert("kgdb name(%d): %s, %d, %d\n", len, name, count, z); kgdb_test() 55 count = z; kgdb_test() 56 return count; kgdb_test() 61 size_t count, loff_t *ppos) kgdb_test_proc_read() 76 size_t count, loff_t *pos) kgdb_test_proc_write() 78 len = min_t(size_t, 255, count); kgdb_test_proc_write() 79 memcpy(cmdline, buffer, count); kgdb_test_proc_write() 60 kgdb_test_proc_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) kgdb_test_proc_read() argument 75 kgdb_test_proc_write(struct file *file, const char __user *buffer, size_t count, loff_t *pos) kgdb_test_proc_write() argument
|
/linux-4.4.14/arch/c6x/kernel/ |
H A D | soc.c | 36 int count, i, val; get_mac_addr_from_cmdline() local 38 for (count = 0; count < 6 && *str; count++, str += 3) { get_mac_addr_from_cmdline() 41 if (str[2] != ((count < 5) ? ':' : '\0')) get_mac_addr_from_cmdline() 49 cmdline_mac[count] = val; get_mac_addr_from_cmdline()
|
/linux-4.4.14/arch/metag/include/asm/ |
H A D | ptrace.h | 36 unsigned int pos, unsigned int count, 40 unsigned int pos, unsigned int count, 44 unsigned int pos, unsigned int count, 48 unsigned int pos, unsigned int count, 52 unsigned int pos, unsigned int count, 56 unsigned int pos, unsigned int count,
|
/linux-4.4.14/arch/m32r/platforms/mappi/ |
H A D | io.c | 211 void _insb(unsigned int port, void *addr, unsigned long count) _insb() argument 218 while (count--) _insb() 223 count, 1); _insb() 226 count, 1); _insb() 230 while (count--) _insb() 235 void _insw(unsigned int port, void *addr, unsigned long count) _insw() argument 242 while (count--) _insw() 247 count, 1); _insw() 250 count, 1); _insw() 254 while (count--) _insw() 259 void _insl(unsigned int port, void *addr, unsigned long count) _insl() argument 265 while (count--) _insl() 269 void _outsb(unsigned int port, const void *addr, unsigned long count) _outsb() argument 276 while (count--) _outsb() 281 count, 1); _outsb() 284 count, 1); _outsb() 288 while (count--) _outsb() 293 void _outsw(unsigned int port, const void *addr, unsigned long count) _outsw() argument 300 while (count--) _outsw() 305 count, 1); _outsw() 308 count, 1); _outsw() 312 while (count--) _outsw() 317 void _outsl(unsigned int port, const void *addr, unsigned long count) _outsl() argument 323 while (count--) _outsl()
|
/linux-4.4.14/tools/perf/util/intel-pt-decoder/ |
H A D | intel-pt-pkt-decoder.c | 77 int count; intel_pt_get_long_tnt() local 84 for (count = 47; count; count--) { intel_pt_get_long_tnt() 91 packet->count = count; intel_pt_get_long_tnt() 132 unsigned int count = (52 - 5) >> 3; intel_pt_get_vmcs() local 134 if (count < 1 || count > 7) intel_pt_get_vmcs() 137 if (len < count + 2) intel_pt_get_vmcs() 141 packet->count = count; intel_pt_get_vmcs() 142 memcpy_le64(&packet->payload, buf + 2, count); intel_pt_get_vmcs() 144 return count + 2; intel_pt_get_vmcs() 184 packet->count = buf[5] | ((buf[6] & BIT(0)) << 8); intel_pt_get_tma() 254 int count; intel_pt_get_short_tnt() local 256 for (count = 6; count; count--) { intel_pt_get_short_tnt() 263 packet->count = count; intel_pt_get_short_tnt() 297 packet->count = 0; intel_pt_get_ip() 302 packet->count = 2; intel_pt_get_ip() 308 packet->count = 4; intel_pt_get_ip() 315 packet->count = 6; intel_pt_get_ip() 324 return packet->count + 1; intel_pt_get_ip() 468 for (i = 0; i < packet->count; i++) { intel_pt_pkt_desc() 479 ret = snprintf(buf, blen, " (%d)", packet->count); intel_pt_pkt_desc() 489 if (!(packet->count)) intel_pt_pkt_desc() 500 (unsigned)payload, packet->count); intel_pt_pkt_desc() 517 name, payload, packet->count); intel_pt_pkt_desc()
|
/linux-4.4.14/drivers/gpu/drm/savage/ |
H A D | savage_state.c | 117 if(start <= reg && start+count > reg) \ 120 if(start <= reg && start+count > reg) { \ 129 unsigned int start, unsigned int count, savage_verify_state_s3d() 133 start + count - 1 > SAVAGE_DESTTEXRWWATERMARK_S3D) { savage_verify_state_s3d() 135 start, start + count - 1); savage_verify_state_s3d() 146 start + count > SAVAGE_TEXPALADDR_S3D) { savage_verify_state_s3d() 159 unsigned int start, unsigned int count, savage_verify_state_s4() 165 start + count - 1 > SAVAGE_TEXBLENDCOLOR_S4) { savage_verify_state_s4() 167 start, start + count - 1); savage_verify_state_s4() 178 start + count > SAVAGE_TEXPALADDR_S4) { savage_verify_state_s4() 201 unsigned int count = cmd_header->state.count; savage_dispatch_state() local 208 if (!count) savage_dispatch_state() 212 ret = savage_verify_state_s3d(dev_priv, start, count, regs); savage_dispatch_state() 217 if (start + count > SAVAGE_SCEND_S3D + 1) savage_dispatch_state() 218 count2 = count - (SAVAGE_SCEND_S3D + 1 - start); savage_dispatch_state() 219 if (start + count > SAVAGE_SCSTART_S3D) savage_dispatch_state() 220 count = SAVAGE_SCSTART_S3D - start; savage_dispatch_state() 222 if (start + count > SAVAGE_SCEND_S3D + 1) { savage_dispatch_state() 223 count -= SAVAGE_SCEND_S3D + 1 - start; savage_dispatch_state() 229 ret = savage_verify_state_s4(dev_priv, start, count, regs); savage_dispatch_state() 234 if (start + count > SAVAGE_DRAWCTRL1_S4 + 1) savage_dispatch_state() 235 count2 = count - savage_dispatch_state() 237 if (start + count > SAVAGE_DRAWCTRL0_S4) savage_dispatch_state() 238 count = SAVAGE_DRAWCTRL0_S4 - start; savage_dispatch_state() 240 if (start + count > SAVAGE_DRAWCTRL1_S4 + 1) { savage_dispatch_state() 241 count -= SAVAGE_DRAWCTRL1_S4 + 1 - start; savage_dispatch_state() 248 bci_size = count + (count + 254) / 255 + count2 + (count2 + 254) / 255; savage_dispatch_state() 259 while (count > 0) { savage_dispatch_state() 260 unsigned int n = count < 255 ? count : 255; savage_dispatch_state() 263 count -= n; savage_dispatch_state() 269 count = count2; savage_dispatch_state() 271 } while (count); savage_dispatch_state() 285 unsigned int n = cmd_header->prim.count; savage_dispatch_dma_prim() 374 unsigned int count = n > 255 ? 255 : n; savage_dispatch_dma_prim() local 382 BEGIN_BCI((count + 1 + 1) / 2); savage_dispatch_dma_prim() 383 BCI_DRAW_INDICES_S3D(count, prim, start + 2); savage_dispatch_dma_prim() 385 for (i = start + 1; i + 1 < start + count; i += 2) savage_dispatch_dma_prim() 389 if (i < start + count) savage_dispatch_dma_prim() 392 BEGIN_BCI((count + 1 + 1) / 2); savage_dispatch_dma_prim() 393 BCI_DRAW_INDICES_S3D(count, prim, start); savage_dispatch_dma_prim() 395 for (i = start + 1; i + 1 < start + count; i += 2) savage_dispatch_dma_prim() 397 if (i < start + count) savage_dispatch_dma_prim() 400 BEGIN_BCI((count + 2 + 1) / 2); savage_dispatch_dma_prim() 401 BCI_DRAW_INDICES_S4(count, prim, skip); savage_dispatch_dma_prim() 403 for (i = start; i + 1 < start + count; i += 2) savage_dispatch_dma_prim() 405 if (i < start + count) savage_dispatch_dma_prim() 409 start += count; savage_dispatch_dma_prim() 410 n -= count; savage_dispatch_dma_prim() 426 unsigned int n = cmd_header->prim.count; savage_dispatch_vb_prim() 493 unsigned int count = n > 255 ? 255 : n; savage_dispatch_vb_prim() local 501 BEGIN_DMA(count * vtx_size + 1); savage_dispatch_vb_prim() 502 DMA_DRAW_PRIMITIVE(count, prim, skip); savage_dispatch_vb_prim() 504 for (i = start; i < start + count; ++i) { savage_dispatch_vb_prim() 511 BEGIN_DMA(count * vtx_size + 1); savage_dispatch_vb_prim() 512 DMA_DRAW_PRIMITIVE(count, prim, skip); savage_dispatch_vb_prim() 516 vtx_size * count); savage_dispatch_vb_prim() 518 for (i = start; i < start + count; ++i) { savage_dispatch_vb_prim() 527 start += count; savage_dispatch_vb_prim() 528 n -= count; savage_dispatch_vb_prim() 544 unsigned int n = cmd_header->idx.count; savage_dispatch_dma_idx() 624 unsigned int count = n > 255 ? 255 : n; savage_dispatch_dma_idx() local 627 for (i = 0; i < count; ++i) { savage_dispatch_dma_idx() 641 BEGIN_BCI((count + 1 + 1) / 2); savage_dispatch_dma_idx() 642 BCI_DRAW_INDICES_S3D(count, prim, idx[2]); savage_dispatch_dma_idx() 644 for (i = 1; i + 1 < count; i += 2) savage_dispatch_dma_idx() 648 if (i < count) savage_dispatch_dma_idx() 651 BEGIN_BCI((count + 1 + 1) / 2); savage_dispatch_dma_idx() 652 BCI_DRAW_INDICES_S3D(count, prim, idx[0]); savage_dispatch_dma_idx() 654 for (i = 1; i + 1 < count; i += 2) savage_dispatch_dma_idx() 656 if (i < count) savage_dispatch_dma_idx() 659 BEGIN_BCI((count + 2 + 1) / 2); savage_dispatch_dma_idx() 660 BCI_DRAW_INDICES_S4(count, prim, skip); savage_dispatch_dma_idx() 662 for (i = 0; i + 1 < count; i += 2) savage_dispatch_dma_idx() 664 if (i < count) savage_dispatch_dma_idx() 668 idx += count; savage_dispatch_dma_idx() 669 n -= count; savage_dispatch_dma_idx() 686 unsigned int n = cmd_header->idx.count; savage_dispatch_vb_idx() 744 unsigned int count = n > 255 ? 255 : n; savage_dispatch_vb_idx() local 747 for (i = 0; i < count; ++i) { savage_dispatch_vb_idx() 761 BEGIN_DMA(count * vtx_size + 1); savage_dispatch_vb_idx() 762 DMA_DRAW_PRIMITIVE(count, prim, skip); savage_dispatch_vb_idx() 764 for (i = 0; i < count; ++i) { savage_dispatch_vb_idx() 771 BEGIN_DMA(count * vtx_size + 1); savage_dispatch_vb_idx() 772 DMA_DRAW_PRIMITIVE(count, prim, skip); savage_dispatch_vb_idx() 774 for (i = 0; i < count; ++i) { savage_dispatch_vb_idx() 782 idx += count; savage_dispatch_vb_idx() 783 n -= count; savage_dispatch_vb_idx() 924 j = (cmd_header.idx.count + 3) / 4; savage_dispatch_draw() 932 j = (cmd_header.idx.count + 3) / 4; savage_dispatch_draw() 1055 j = (cmd_header.idx.count + 3) / 4; savage_bci_cmdbuf() 1089 j = (cmd_header.state.count + 1) / 2; savage_bci_cmdbuf() 128 savage_verify_state_s3d(drm_savage_private_t * dev_priv, unsigned int start, unsigned int count, const uint32_t *regs) savage_verify_state_s3d() argument 158 savage_verify_state_s4(drm_savage_private_t * dev_priv, unsigned int start, unsigned int count, const uint32_t *regs) savage_verify_state_s4() argument
|
/linux-4.4.14/drivers/media/rc/ |
H A D | ir-xmp-decoder.c | 56 data->state, data->count, TO_US(ev.duration), TO_STR(ev.pulse)); ir_xmp_decode() 65 data->count = 0; ir_xmp_decode() 90 if (data->count != 16) { ir_xmp_decode() 92 data->count, ev.duration); ir_xmp_decode() 158 if (data->count == 16) { ir_xmp_decode() 160 data->count, ev.duration); ir_xmp_decode() 166 data->count = 8; ir_xmp_decode() 169 else if (data->count != 8) ir_xmp_decode() 171 data->count, ev.duration); ir_xmp_decode() 178 if (data->count == 16) { ir_xmp_decode() 180 data->count, ev.duration); ir_xmp_decode() 184 data->durations[data->count] = ev.duration; ir_xmp_decode() 185 data->count++; ir_xmp_decode() 195 IR_dprintk(1, "XMP decode failed at count %d state %d (%uus %s)\n", ir_xmp_decode() 196 data->count, data->state, TO_US(ev.duration), TO_STR(ev.pulse)); ir_xmp_decode()
|
/linux-4.4.14/drivers/pcmcia/ |
H A D | socket_sysfs.c | 85 const char *buf, size_t count) pccard_store_insert() 89 if (!count) pccard_store_insert() 94 return count; pccard_store_insert() 109 const char *buf, size_t count) pccard_store_card_pm_state() 112 ssize_t ret = count; pccard_store_card_pm_state() 114 if (!count) pccard_store_card_pm_state() 132 const char *buf, size_t count) pccard_store_eject() 136 if (!count) pccard_store_eject() 141 return count; pccard_store_eject() 156 const char *buf, size_t count) pccard_store_irq_mask() 162 if (!count) pccard_store_irq_mask() 174 return ret ? ret : count; pccard_store_irq_mask() 188 const char *buf, size_t count) pccard_store_resource() 192 if (!count) pccard_store_resource() 202 return count; pccard_store_resource() 84 pccard_store_insert(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) pccard_store_insert() argument 107 pccard_store_card_pm_state(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) pccard_store_card_pm_state() argument 130 pccard_store_eject(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) pccard_store_eject() argument 154 pccard_store_irq_mask(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) pccard_store_irq_mask() argument 186 pccard_store_resource(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) pccard_store_resource() argument
|
/linux-4.4.14/arch/tile/kernel/vdso/ |
H A D | vgettimeofday.c | 66 unsigned count; do_realtime() local 70 count = raw_read_seqcount_begin(&vdso->tb_seq); do_realtime() 75 } while (unlikely(read_seqcount_retry(&vdso->tb_seq, count))); do_realtime() 85 unsigned count; do_monotonic() local 89 count = raw_read_seqcount_begin(&vdso->tb_seq); do_monotonic() 94 } while (unlikely(read_seqcount_retry(&vdso->tb_seq, count))); do_monotonic() 105 unsigned count; do_realtime_coarse() local 108 count = raw_read_seqcount_begin(&vdso->tb_seq); do_realtime_coarse() 111 } while (unlikely(read_seqcount_retry(&vdso->tb_seq, count))); do_realtime_coarse() 119 unsigned count; do_monotonic_coarse() local 122 count = raw_read_seqcount_begin(&vdso->tb_seq); do_monotonic_coarse() 125 } while (unlikely(read_seqcount_retry(&vdso->tb_seq, count))); do_monotonic_coarse() 134 unsigned count; __vdso_gettimeofday() local 140 count = raw_read_seqcount_begin(&vdso->tz_seq); __vdso_gettimeofday() 143 } while (unlikely(read_seqcount_retry(&vdso->tz_seq, count))); __vdso_gettimeofday()
|
/linux-4.4.14/arch/s390/mm/ |
H A D | maccess.c | 21 unsigned long aligned, offset, count; s390_kernel_write_odd() local 27 count = size - 1; s390_kernel_write_odd() 36 : "+&a" (aligned), "+&a" (count), "=m" (tmp) s390_kernel_write_odd() 70 static int __memcpy_real(void *dest, void *src, size_t count) __memcpy_real() argument 73 register unsigned long _len1 asm("3") = (unsigned long) count; __memcpy_real() 75 register unsigned long _len2 asm("5") = (unsigned long) count; __memcpy_real() 94 int memcpy_real(void *dest, void *src, size_t count) memcpy_real() argument 99 if (!count) memcpy_real() 103 rc = __memcpy_real(dest, src, count); memcpy_real() 111 void memcpy_absolute(void *dest, void *src, size_t count) memcpy_absolute() argument 122 memcpy(dest, src, count); memcpy_absolute() 126 memcpy(dest, src, count); memcpy_absolute() 135 int copy_to_user_real(void __user *dest, void *src, unsigned long count) copy_to_user_real() argument 144 while (offs < count) { copy_to_user_real() 145 size = min(PAGE_SIZE, count - offs); copy_to_user_real()
|
/linux-4.4.14/arch/sparc/crypto/ |
H A D | sha512_glue.c | 39 sctx->count[0] = sctx->count[1] = 0; sha512_sparc64_init() 55 sctx->count[0] = sctx->count[1] = 0; sha384_sparc64_init() 65 if ((sctx->count[0] += len) < len) __sha512_sparc64_update() 66 sctx->count[1]++; __sha512_sparc64_update() 86 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; sha512_sparc64_update() 90 if ((sctx->count[0] += len) < len) sha512_sparc64_update() 91 sctx->count[1]++; sha512_sparc64_update() 108 bits[1] = cpu_to_be64(sctx->count[0] << 3); sha512_sparc64_final() 109 bits[0] = cpu_to_be64(sctx->count[1] << 3 | sctx->count[0] >> 61); sha512_sparc64_final() 112 index = sctx->count[0] % SHA512_BLOCK_SIZE; sha512_sparc64_final() 117 if ((sctx->count[0] += padlen) < padlen) sha512_sparc64_final() 118 sctx->count[1]++; sha512_sparc64_final()
|
/linux-4.4.14/arch/mips/kernel/ |
H A D | rtlx.c | 240 ssize_t rtlx_read(int index, void __user *buff, size_t count) rtlx_read() argument 256 count = min(count, rtlx_read() 261 fl = min(count, (size_t)lx->buffer_size - lx->lx_read); rtlx_read() 268 if (count - fl) rtlx_read() 269 failed = copy_to_user(buff + fl, lx->lx_buffer, count - fl); rtlx_read() 272 count -= failed; rtlx_read() 275 lx->lx_read = (lx->lx_read + count) % lx->buffer_size; rtlx_read() 279 return count; rtlx_read() 282 ssize_t rtlx_write(int index, const void __user *buffer, size_t count) rtlx_write() argument 299 count = min_t(size_t, count, write_spacefree(rt_read, rt->rt_write, rtlx_write() 302 /* first bit from write pointer to the end of the buffer, or count */ rtlx_write() 303 fl = min(count, (size_t) rt->buffer_size - rt->rt_write); rtlx_write() 310 if (count - fl) rtlx_write() 311 failed = copy_from_user(rt->rt_buffer, buffer + fl, count - fl); rtlx_write() 314 count -= failed; rtlx_write() 317 rt->rt_write = (rt->rt_write + count) % rt->buffer_size; rtlx_write() 323 return count; rtlx_write() 359 static ssize_t file_read(struct file *file, char __user *buffer, size_t count, file_read() argument 368 return rtlx_read(minor, buffer, count); file_read() 372 size_t count, loff_t *ppos) file_write() 389 return rtlx_write(minor, buffer, count); file_write() 371 file_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) file_write() argument
|
/linux-4.4.14/drivers/s390/char/ |
H A D | sclp_tty.c | 76 if (tty->count > 1) sclp_tty_close() 95 int count; sclp_tty_write_room() local 98 count = 0; sclp_tty_write_room() 100 count = sclp_buffer_space(sclp_ttybuf) / sizeof(struct msg_buf); sclp_tty_write_room() 102 count += NR_EMPTY_MSG_PER_SCCB; sclp_tty_write_room() 104 return count; sclp_tty_write_room() 135 int count; __sclp_ttybuf_emit() local 140 count = sclp_tty_buffer_count++; __sclp_ttybuf_emit() 142 if (count) __sclp_ttybuf_emit() 172 static int sclp_tty_write_string(const unsigned char *str, int count, int may_fail) sclp_tty_write_string() argument 180 if (count <= 0) sclp_tty_write_string() 201 written = sclp_write(sclp_ttybuf, str, count); sclp_tty_write_string() 203 if (written == count) sclp_tty_write_string() 216 count -= written; sclp_tty_write_string() 217 } while (count > 0); sclp_tty_write_string() 238 sclp_tty_write(struct tty_struct *tty, const unsigned char *buf, int count) sclp_tty_write() argument 244 return sclp_tty_write_string(buf, count, 1); sclp_tty_write() 294 int count; sclp_tty_chars_in_buffer() local 297 count = 0; sclp_tty_chars_in_buffer() 299 count = sclp_chars_in_buffer(sclp_ttybuf); sclp_tty_chars_in_buffer() 302 count += sclp_chars_in_buffer(t); sclp_tty_chars_in_buffer() 305 return count; sclp_tty_chars_in_buffer() 324 sclp_tty_input(unsigned char* buf, unsigned int count) sclp_tty_input() argument 335 cchar = ctrlchar_handle(buf, count, tty); sclp_tty_input() 345 if (count < 2 || sclp_tty_input() 346 (strncmp((const char *) buf + count - 2, "^n", 2) && sclp_tty_input() 347 strncmp((const char *) buf + count - 2, "\252n", 2))) { sclp_tty_input() 349 tty_insert_flip_string(&sclp_port, buf, count); sclp_tty_input() 352 tty_insert_flip_string(&sclp_port, buf, count - 2); sclp_tty_input() 365 static int sclp_switch_cases(unsigned char *buf, int count) sclp_switch_cases() argument 373 while (count-- > 0) { sclp_switch_cases() 377 if (count && ip[1] == CASE_DELIMITER) { sclp_switch_cases() 383 count--; sclp_switch_cases() 413 int count; sclp_get_input() local 416 count = sv->length - sizeof(*sv); sclp_get_input() 418 EBC_TOLOWER(str, count); sclp_get_input() 419 count = sclp_switch_cases(str, count); sclp_get_input() 421 sclp_ebcasc_str(str, count); sclp_get_input() 424 sclp_tty_input(str, count); sclp_get_input()
|
/linux-4.4.14/drivers/gpu/host1x/hw/ |
H A D | host1x01_hardware.h | 95 static inline u32 host1x_opcode_incr(unsigned offset, unsigned count) host1x_opcode_incr() argument 97 return (1 << 28) | (offset << 16) | count; host1x_opcode_incr() 100 static inline u32 host1x_opcode_nonincr(unsigned offset, unsigned count) host1x_opcode_nonincr() argument 102 return (2 << 28) | (offset << 16) | count; host1x_opcode_nonincr() 126 static inline u32 host1x_opcode_gather(unsigned count) host1x_opcode_gather() argument 128 return (6 << 28) | count; host1x_opcode_gather() 131 static inline u32 host1x_opcode_gather_nonincr(unsigned offset, unsigned count) host1x_opcode_gather_nonincr() argument 133 return (6 << 28) | (offset << 16) | BIT(15) | count; host1x_opcode_gather_nonincr() 136 static inline u32 host1x_opcode_gather_incr(unsigned offset, unsigned count) host1x_opcode_gather_incr() argument 138 return (6 << 28) | (offset << 16) | BIT(15) | BIT(14) | count; host1x_opcode_gather_incr()
|
H A D | host1x02_hardware.h | 94 static inline u32 host1x_opcode_incr(unsigned offset, unsigned count) host1x_opcode_incr() argument 96 return (1 << 28) | (offset << 16) | count; host1x_opcode_incr() 99 static inline u32 host1x_opcode_nonincr(unsigned offset, unsigned count) host1x_opcode_nonincr() argument 101 return (2 << 28) | (offset << 16) | count; host1x_opcode_nonincr() 125 static inline u32 host1x_opcode_gather(unsigned count) host1x_opcode_gather() argument 127 return (6 << 28) | count; host1x_opcode_gather() 130 static inline u32 host1x_opcode_gather_nonincr(unsigned offset, unsigned count) host1x_opcode_gather_nonincr() argument 132 return (6 << 28) | (offset << 16) | BIT(15) | count; host1x_opcode_gather_nonincr() 135 static inline u32 host1x_opcode_gather_incr(unsigned offset, unsigned count) host1x_opcode_gather_incr() argument 137 return (6 << 28) | (offset << 16) | BIT(15) | BIT(14) | count; host1x_opcode_gather_incr()
|
H A D | host1x04_hardware.h | 94 static inline u32 host1x_opcode_incr(unsigned offset, unsigned count) host1x_opcode_incr() argument 96 return (1 << 28) | (offset << 16) | count; host1x_opcode_incr() 99 static inline u32 host1x_opcode_nonincr(unsigned offset, unsigned count) host1x_opcode_nonincr() argument 101 return (2 << 28) | (offset << 16) | count; host1x_opcode_nonincr() 125 static inline u32 host1x_opcode_gather(unsigned count) host1x_opcode_gather() argument 127 return (6 << 28) | count; host1x_opcode_gather() 130 static inline u32 host1x_opcode_gather_nonincr(unsigned offset, unsigned count) host1x_opcode_gather_nonincr() argument 132 return (6 << 28) | (offset << 16) | BIT(15) | count; host1x_opcode_gather_nonincr() 135 static inline u32 host1x_opcode_gather_incr(unsigned offset, unsigned count) host1x_opcode_gather_incr() argument 137 return (6 << 28) | (offset << 16) | BIT(15) | BIT(14) | count; host1x_opcode_gather_incr()
|
/linux-4.4.14/drivers/media/pci/cx18/ |
H A D | cx18-io.c | 27 void cx18_memset_io(struct cx18 *cx, void __iomem *addr, int val, size_t count) cx18_memset_io() argument 34 if ((count > 0) && ((unsigned long)dst & 1)) { cx18_memset_io() 36 count--; cx18_memset_io() 39 if ((count > 1) && ((unsigned long)dst & 2)) { cx18_memset_io() 41 count -= 2; cx18_memset_io() 44 while (count > 3) { cx18_memset_io() 46 count -= 4; cx18_memset_io() 49 if (count > 1) { cx18_memset_io() 51 count -= 2; cx18_memset_io() 54 if (count > 0) cx18_memset_io()
|
/linux-4.4.14/fs/hfs/ |
H A D | extent.c | 77 u16 count; hfs_ext_find_block() local 80 count = be16_to_cpu(ext->count); hfs_ext_find_block() 81 if (off < count) hfs_ext_find_block() 83 off -= count; hfs_ext_find_block() 92 u16 count = 0; hfs_ext_block_count() local 95 count += be16_to_cpu(ext->count); hfs_ext_block_count() 96 return count; hfs_ext_block_count() 105 if (ext->count) hfs_ext_lastblock() 107 return be16_to_cpu(ext->block) + be16_to_cpu(ext->count); hfs_ext_lastblock() 212 be16_to_cpu(extent[i].count)); hfs_dump_extent() 219 u16 count, start; hfs_add_extent() local 224 count = be16_to_cpu(extent->count); hfs_add_extent() 225 if (offset == count) { hfs_add_extent() 227 if (alloc_block != start + count) { hfs_add_extent() 233 block_count += count; hfs_add_extent() 234 extent->count = cpu_to_be16(block_count); hfs_add_extent() 236 } else if (offset < count) hfs_add_extent() 238 offset -= count; hfs_add_extent() 247 u16 count, start; hfs_free_extents() local 252 count = be16_to_cpu(extent->count); hfs_free_extents() 253 if (offset == count) hfs_free_extents() 255 else if (offset < count) hfs_free_extents() 257 offset -= count; hfs_free_extents() 264 if (count <= block_nr) { hfs_free_extents() 265 hfs_clear_vbm_bits(sb, start, count); hfs_free_extents() 267 extent->count = 0; hfs_free_extents() 268 block_nr -= count; hfs_free_extents() 270 count -= block_nr; hfs_free_extents() 271 hfs_clear_vbm_bits(sb, start + count, block_nr); hfs_free_extents() 272 extent->count = cpu_to_be16(count); hfs_free_extents() 279 count = be16_to_cpu(extent->count); hfs_free_extents() 304 blocks += be16_to_cpu(extent[i].count); hfs_free_fork() 414 HFS_I(inode)->first_extents[0].count = cpu_to_be16(len); hfs_extend_file() 460 HFS_I(inode)->cached_extents[0].count = cpu_to_be16(len); hfs_extend_file()
|
/linux-4.4.14/arch/m68k/emu/ |
H A D | nfcon.c | 26 static void nfputs(const char *str, unsigned int count) nfputs() argument 32 while (count > 64) { nfputs() 36 count -= 64; nfputs() 38 memcpy(buf, str, count); nfputs() 39 buf[count] = 0; nfputs() 44 unsigned int count) nfcon_write() 46 nfputs(str, count); nfcon_write() 74 int count) nfcon_tty_write() 76 nfputs(buf, count); nfcon_tty_write() 77 return count; nfcon_tty_write() 43 nfcon_write(struct console *con, const char *str, unsigned int count) nfcon_write() argument 73 nfcon_tty_write(struct tty_struct *tty, const unsigned char *buf, int count) nfcon_tty_write() argument
|
/linux-4.4.14/sound/drivers/opl4/ |
H A D | opl4_proc.c | 54 size_t count, loff_t pos) snd_opl4_mem_proc_read() 59 buf = vmalloc(count); snd_opl4_mem_proc_read() 62 snd_opl4_read_memory(opl4, buf, pos, count); snd_opl4_mem_proc_read() 63 if (copy_to_user(_buf, buf, count)) { snd_opl4_mem_proc_read() 68 return count; snd_opl4_mem_proc_read() 75 size_t count, loff_t pos) snd_opl4_mem_proc_write() 80 buf = vmalloc(count); snd_opl4_mem_proc_write() 83 if (copy_from_user(buf, _buf, count)) { snd_opl4_mem_proc_write() 87 snd_opl4_write_memory(opl4, buf, pos, count); snd_opl4_mem_proc_write() 89 return count; snd_opl4_mem_proc_write() 51 snd_opl4_mem_proc_read(struct snd_info_entry *entry, void *file_private_data, struct file *file, char __user *_buf, size_t count, loff_t pos) snd_opl4_mem_proc_read() argument 71 snd_opl4_mem_proc_write(struct snd_info_entry *entry, void *file_private_data, struct file *file, const char __user *_buf, size_t count, loff_t pos) snd_opl4_mem_proc_write() argument
|
/linux-4.4.14/tools/perf/scripts/perl/ |
H A D | rwtop.pl | 57 $nr, $fd, $buf, $count) = @_; 61 $reads{$common_pid}{bytes_requested} += $count; 83 $nr, $fd, $buf, $count) = @_; 87 $writes{$common_pid}{bytes_written} += $count; 123 my $count; 125 $count = 0; 146 if (++$count == $nlines) { 151 $count = 0; 169 if (++$count == $nlines) { 188 printf("%-40s %10s\n", "event", "count");
|
/linux-4.4.14/drivers/net/ethernet/8390/ |
H A D | mac8390.c | 137 static void sane_block_input(struct net_device *dev, int count, 139 static void sane_block_output(struct net_device *dev, int count, 144 int from, int count); 146 const void *from, int count); 151 static void dayna_block_input(struct net_device *dev, int count, 153 static void dayna_block_output(struct net_device *dev, int count, 164 static void slow_sane_block_input(struct net_device *dev, int count, 166 static void slow_sane_block_output(struct net_device *dev, int count, 168 static void word_memcpy_tocard(unsigned long tp, const void *fp, int count); 169 static void word_memcpy_fromcard(void *tp, unsigned long fp, int count); 671 int count) dayna_memcpy_fromcard() 681 count--; dayna_memcpy_fromcard() 683 while (count >= 2) { dayna_memcpy_fromcard() 687 count -= 2; dayna_memcpy_fromcard() 690 if (count) dayna_memcpy_fromcard() 695 const void *from, int count) dayna_memcpy_tocard() 705 count--; dayna_memcpy_tocard() 707 while (count >= 2) { dayna_memcpy_tocard() 711 count -= 2; dayna_memcpy_tocard() 714 if (count) { dayna_memcpy_tocard() 727 hdr->count = swab16(hdr->count); sane_get_8390_hdr() 730 static void sane_block_input(struct net_device *dev, int count, sane_block_input() argument 736 if (xfer_start + count > ei_status.rmem_end) { sane_block_input() 741 count -= semi_count; sane_block_input() 743 count); sane_block_input() 745 memcpy_fromio(skb->data, dev->mem_start + xfer_base, count); sane_block_input() 749 static void sane_block_output(struct net_device *dev, int count, sane_block_output() argument 754 memcpy_toio(dev->mem_start + shmem, buf, count); sane_block_output() 765 hdr->count = (hdr->count & 0xFF) << 8 | (hdr->count >> 8); dayna_get_8390_hdr() 768 static void dayna_block_input(struct net_device *dev, int count, dayna_block_input() argument 777 if (xfer_start + count > ei_status.rmem_end) { dayna_block_input() 781 count -= semi_count; dayna_block_input() 784 count); dayna_block_input() 786 dayna_memcpy_fromcard(dev, skb->data, xfer_base, count); dayna_block_input() 790 static void dayna_block_output(struct net_device *dev, int count, dayna_block_output() argument 796 dayna_memcpy_tocard(dev, shmem, buf, count); dayna_block_output() 807 hdr->count = (hdr->count&0xFF)<<8|(hdr->count>>8); slow_sane_get_8390_hdr() 810 static void slow_sane_block_input(struct net_device *dev, int count, slow_sane_block_input() argument 816 if (xfer_start + count > ei_status.rmem_end) { slow_sane_block_input() 821 count -= semi_count; slow_sane_block_input() 823 ei_status.rmem_start, count); slow_sane_block_input() 826 count); slow_sane_block_input() 830 static void slow_sane_block_output(struct net_device *dev, int count, slow_sane_block_output() argument 835 word_memcpy_tocard(dev->mem_start + shmem, buf, count); slow_sane_block_output() 838 static void word_memcpy_tocard(unsigned long tp, const void *fp, int count) word_memcpy_tocard() argument 843 count++; word_memcpy_tocard() 844 count /= 2; word_memcpy_tocard() 846 while (count--) word_memcpy_tocard() 850 static void word_memcpy_fromcard(void *tp, unsigned long fp, int count) word_memcpy_fromcard() argument 855 count++; word_memcpy_fromcard() 856 count /= 2; word_memcpy_fromcard() 858 while (count--) word_memcpy_fromcard() 670 dayna_memcpy_fromcard(struct net_device *dev, void *to, int from, int count) dayna_memcpy_fromcard() argument 694 dayna_memcpy_tocard(struct net_device *dev, int to, const void *from, int count) dayna_memcpy_tocard() argument
|
/linux-4.4.14/arch/hexagon/include/asm/ |
H A D | io.h | 208 int count) memcpy_fromio() 210 memcpy(dst, (void *) src, count); memcpy_fromio() 214 int count) memcpy_toio() 216 memcpy((void *) dst, src, count); memcpy_toio() 270 static inline void insb(unsigned long port, void *buffer, int count) insb() argument 272 if (count) { insb() 277 } while (--count); insb() 281 static inline void insw(unsigned long port, void *buffer, int count) insw() argument 283 if (count) { insw() 288 } while (--count); insw() 292 static inline void insl(unsigned long port, void *buffer, int count) insl() argument 294 if (count) { insl() 299 } while (--count); insl() 303 static inline void outsb(unsigned long port, const void *buffer, int count) outsb() argument 305 if (count) { outsb() 309 } while (--count); outsb() 313 static inline void outsw(unsigned long port, const void *buffer, int count) outsw() argument 315 if (count) { outsw() 319 } while (--count); outsw() 323 static inline void outsl(unsigned long port, const void *buffer, int count) outsl() argument 325 if (count) { outsl() 329 } while (--count); outsl() 207 memcpy_fromio(void *dst, const volatile void __iomem *src, int count) memcpy_fromio() argument 213 memcpy_toio(volatile void __iomem *dst, const void *src, int count) memcpy_toio() argument
|
/linux-4.4.14/arch/m32r/platforms/m32104ut/ |
H A D | io.c | 90 static inline void _ne_insb(void *portp, void *addr, unsigned long count) _ne_insb() argument 94 while (count--) _ne_insb() 189 void _insb(unsigned int port, void *addr, unsigned long count) _insb() argument 192 _ne_insb(PORT2ADDR_NE(port), addr, count); _insb() local 196 while (count--) _insb() 201 void _insw(unsigned int port, void *addr, unsigned long count) _insw() argument 212 while (count--) _insw() 217 count, 1); _insw() 222 while (count--) _insw() 227 while (count--) _insw() 232 void _insl(unsigned int port, void *addr, unsigned long count) _insl() argument 238 while (count--) _insl() 242 void _outsb(unsigned int port, const void *addr, unsigned long count) _outsb() argument 249 while (count--) _outsb() 253 while (count--) _outsb() 258 void _outsw(unsigned int port, const void *addr, unsigned long count) _outsw() argument 269 while (count--) _outsw() 274 while (count--) _outsw() 280 count, 1); _outsw() 284 while (count--) _outsw() 289 void _outsl(unsigned int port, const void *addr, unsigned long count) _outsl() argument 295 while (count--) _outsl()
|
/linux-4.4.14/sound/firewire/fireworks/ |
H A D | fireworks_hwdep.c | 28 long count = 0; hwdep_read_resp_buf() local 65 count += till_end; hwdep_read_resp_buf() 72 return count; hwdep_read_resp_buf() 76 hwdep_read_locked(struct snd_efw *efw, char __user *buf, long count, hwdep_read_locked() argument 87 count = min_t(long, count, sizeof(event.lock_status)); hwdep_read_locked() 89 if (copy_to_user(buf, &event, count)) hwdep_read_locked() 92 return count; hwdep_read_locked() 96 hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count, hwdep_read() argument 115 count = hwdep_read_locked(efw, buf, count, offset); hwdep_read() 117 count = hwdep_read_resp_buf(efw, buf, count, offset); hwdep_read() 121 return count; hwdep_read() 125 hwdep_write(struct snd_hwdep *hwdep, const char __user *data, long count, hwdep_write() argument 132 if (count < sizeof(struct snd_efw_transaction) || hwdep_write() 133 SND_EFW_RESPONSE_MAXIMUM_BYTES < count) hwdep_write() 136 buf = memdup_user(data, count); hwdep_write() 143 count = -EINVAL; hwdep_write() 147 if (snd_efw_transaction_cmd(efw->unit, buf, count) < 0) hwdep_write() 148 count = -EIO; hwdep_write() 151 return count; hwdep_write()
|
/linux-4.4.14/drivers/net/ethernet/cisco/enic/ |
H A D | vnic_rq.c | 34 unsigned int i, j, count = rq->ring.desc_count; vnic_rq_alloc_bufs() local 35 unsigned int blks = VNIC_RQ_BUF_BLKS_NEEDED(count); vnic_rq_alloc_bufs() 38 rq->bufs[i] = kzalloc(VNIC_RQ_BUF_BLK_SZ(count), GFP_ATOMIC); vnic_rq_alloc_bufs() 45 for (j = 0; j < VNIC_RQ_BUF_BLK_ENTRIES(count); j++) { vnic_rq_alloc_bufs() 46 buf->index = i * VNIC_RQ_BUF_BLK_ENTRIES(count) + j; vnic_rq_alloc_bufs() 49 if (buf->index + 1 == count) { vnic_rq_alloc_bufs() 52 } else if (j + 1 == VNIC_RQ_BUF_BLK_ENTRIES(count)) { vnic_rq_alloc_bufs() 120 unsigned int count = rq->ring.desc_count; vnic_rq_init_start() local 124 iowrite32(count, &rq->ctrl->ring_size); vnic_rq_init_start() 134 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES(count)] vnic_rq_init_start() 135 [fetch_index % VNIC_RQ_BUF_BLK_ENTRIES(count)]; vnic_rq_init_start() 192 unsigned int count = rq->ring.desc_count; vnic_rq_clean() local 211 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES(count)] vnic_rq_clean() 212 [fetch_index % VNIC_RQ_BUF_BLK_ENTRIES(count)]; vnic_rq_clean()
|
/linux-4.4.14/fs/f2fs/ |
H A D | shrinker.c | 43 unsigned long count = 0; f2fs_shrink_count() local 57 /* count extent cache entries */ f2fs_shrink_count() 58 count += __count_extent_cache(sbi); f2fs_shrink_count() 61 count += __count_nat_entries(sbi); f2fs_shrink_count() 63 /* count free nids cache entries */ f2fs_shrink_count() 64 count += __count_free_nids(sbi); f2fs_shrink_count() 71 return count; f2fs_shrink_count()
|
/linux-4.4.14/fs/pstore/ |
H A D | pmsg.c | 25 size_t count, loff_t *ppos) write_pmsg() 30 if (!count) write_pmsg() 33 if (!access_ok(VERIFY_READ, buf, count)) write_pmsg() 36 buffer_size = count; write_pmsg() 44 for (i = 0; i < count; ) { write_pmsg() 45 size_t c = min(count - i, buffer_size); write_pmsg() 63 return count; write_pmsg() 24 write_pmsg(struct file *file, const char __user *buf, size_t count, loff_t *ppos) write_pmsg() argument
|
/linux-4.4.14/arch/s390/hypfs/ |
H A D | hypfs_diag0c.c | 43 static void *diag0c_store(unsigned int *count) diag0c_store() argument 68 *count = cpu_count; 94 unsigned int count; dbfs_diag0c_create() local 96 diag0c_data = diag0c_store(&count); dbfs_diag0c_create() 101 diag0c_data->hdr.len = count * sizeof(struct hypfs_diag0c_entry); dbfs_diag0c_create() 103 diag0c_data->hdr.count = count; dbfs_diag0c_create()
|
/linux-4.4.14/arch/mn10300/lib/ |
H A D | usercopy.c | 33 #define __do_strncpy_from_user(dst, src, count, res) \ 63 :"=&r"(res), "=r"(count), "=&r"(w) \ 64 :"i"(-EFAULT), "1"(count), "a"(src), "a"(dst) \ 69 __strncpy_from_user(char *dst, const char *src, long count) __strncpy_from_user() argument 72 __do_strncpy_from_user(dst, src, count, res); __strncpy_from_user() 77 strncpy_from_user(char *dst, const char *src, long count) strncpy_from_user() argument 81 __do_strncpy_from_user(dst, src, count, res); strncpy_from_user()
|
/linux-4.4.14/drivers/staging/rdma/ipath/ |
H A D | ipath_diag.c | 60 size_t count, loff_t *off); 62 size_t count, loff_t *off); 75 size_t count, loff_t *off); 130 * @count: number of bytes to copy (multiple of 32 bits) 139 const void __iomem *caddr, size_t count) ipath_read_umem64() 142 const u64 __iomem *reg_end = reg_addr + (count / sizeof(u64)); ipath_read_umem64() 169 * @count: the number of bytes to copy (multiple of 32 bits) 176 const void __user *uaddr, size_t count) ipath_write_umem64() 179 const u64 __iomem *reg_end = reg_addr + (count / sizeof(u64)); ipath_write_umem64() 208 * @count: number of bytes to copy 214 const void __iomem *caddr, size_t count) ipath_read_umem32() 217 const u32 __iomem *reg_end = reg_addr + (count / sizeof(u32)); ipath_read_umem32() 247 * @count: number of bytes to copy 254 const void __user *uaddr, size_t count) ipath_write_umem32() 257 const u32 __iomem *reg_end = reg_addr + (count / sizeof(u32)); ipath_write_umem32() 321 * @count: size of data to write 326 size_t count, loff_t *off) ipath_diagpkt_write() 339 if (count == sizeof(dp)) { ipath_diagpkt_write() 344 } else if (count == sizeof(odp)) { ipath_diagpkt_write() 358 /* send count must be an exact number of dwords */ ipath_diagpkt_write() 489 size_t count, loff_t *off) ipath_diag_read() 497 if (count == 0) ipath_diag_read() 499 else if ((count % 4) || (*off % 4)) ipath_diag_read() 502 else if (ipath_diag_inuse < 1 && (*off || count != 8)) ipath_diag_read() 504 else if ((count % 8) || (*off % 8)) ipath_diag_read() 506 ret = ipath_read_umem32(dd, data, kreg_base + *off, count); ipath_diag_read() 508 ret = ipath_read_umem64(dd, data, kreg_base + *off, count); ipath_diag_read() 511 *off += count; ipath_diag_read() 512 ret = count; ipath_diag_read() 521 size_t count, loff_t *off) ipath_diag_write() 529 if (count == 0) ipath_diag_write() 531 else if ((count % 4) || (*off % 4)) ipath_diag_write() 534 else if ((ipath_diag_inuse == -1 && (*off || count != 8)) || ipath_diag_write() 537 else if ((count % 8) || (*off % 8)) ipath_diag_write() 539 ret = ipath_write_umem32(dd, kreg_base + *off, data, count); ipath_diag_write() 541 ret = ipath_write_umem64(dd, kreg_base + *off, data, count); ipath_diag_write() 544 *off += count; ipath_diag_write() 545 ret = count; ipath_diag_write() 138 ipath_read_umem64(struct ipath_devdata *dd, void __user *uaddr, const void __iomem *caddr, size_t count) ipath_read_umem64() argument 175 ipath_write_umem64(struct ipath_devdata *dd, void __iomem *caddr, const void __user *uaddr, size_t count) ipath_write_umem64() argument 213 ipath_read_umem32(struct ipath_devdata *dd, void __user *uaddr, const void __iomem *caddr, size_t count) ipath_read_umem32() argument 253 ipath_write_umem32(struct ipath_devdata *dd, void __iomem *caddr, const void __user *uaddr, size_t count) ipath_write_umem32() argument 324 ipath_diagpkt_write(struct file *fp, const char __user *data, size_t count, loff_t *off) ipath_diagpkt_write() argument 488 ipath_diag_read(struct file *fp, char __user *data, size_t count, loff_t *off) ipath_diag_read() argument 520 ipath_diag_write(struct file *fp, const char __user *data, size_t count, loff_t *off) ipath_diag_write() argument
|
/linux-4.4.14/drivers/input/touchscreen/ |
H A D | intel-mid-touch.c | 174 int count; mrstouch_ts_bias_set() local 182 for (count = 0; count <= 3; count++) { mrstouch_ts_bias_set() 183 reg[count] = chan++; mrstouch_ts_bias_set() 184 data[count] = bias | (start + count); mrstouch_ts_bias_set() 245 int err, count; mrstouch_fs_adc_read_prepare() local 258 for (count = 0; count <= 3; count++) { mrstouch_fs_adc_read_prepare() 259 reg[count] = chan++; mrstouch_fs_adc_read_prepare() 260 data[count] = 0x2A; mrstouch_fs_adc_read_prepare() 262 reg[count] = chan++; /* Dummy */ mrstouch_fs_adc_read_prepare() 263 data[count] = 0; mrstouch_fs_adc_read_prepare() 272 for (count = 0; count <= 3; count++) { mrstouch_fs_adc_read_prepare() 273 reg[count] = chan++; mrstouch_fs_adc_read_prepare() 274 data[count] = 0x4A; mrstouch_fs_adc_read_prepare() 276 reg[count] = chan++; /* Dummy */ mrstouch_fs_adc_read_prepare() 277 data[count] = 0; mrstouch_fs_adc_read_prepare() 347 int err, count; mrstouch_fs_adc_read_finish() local 354 for (count = 0; count <= 4; count++) { mrstouch_fs_adc_read_finish() 355 reg[count] = chan++; mrstouch_fs_adc_read_finish() 356 data[count] = 0; mrstouch_fs_adc_read_finish() 362 for (count = 0; count <= 4; count++) { mrstouch_fs_adc_read_finish() 363 reg[count] = chan++; mrstouch_fs_adc_read_finish() 364 data[count] = 0; mrstouch_fs_adc_read_finish() 485 int ret, count; mrstouch_ts_chan_set() local 488 for (count = 0; count <= 3; count++) { mrstouch_ts_chan_set() 489 ret = intel_scu_ipc_iowrite8(chan++, MRST_TS_CHAN10 + count); mrstouch_ts_chan_set()
|
/linux-4.4.14/crypto/ |
H A D | testmgr.c | 81 unsigned int count; member in struct:aead_test_suite::__anon3285 88 unsigned int count; member in struct:cipher_test_suite::__anon3286 95 unsigned int count; member in struct:comp_test_suite::__anon3287 102 unsigned int count; member in struct:pcomp_test_suite::__anon3288 108 unsigned int count; member in struct:hash_test_suite 113 unsigned int count; member in struct:cprng_test_suite 118 unsigned int count; member in struct:drbg_test_suite 123 unsigned int count; member in struct:akcipher_test_suite 1549 desc->suite.aead.enc.count); alg_test_aead() 1556 desc->suite.aead.dec.count); alg_test_aead() 1578 desc->suite.cipher.enc.count); alg_test_cipher() 1585 desc->suite.cipher.dec.count); alg_test_cipher() 1607 desc->suite.cipher.enc.count); alg_test_skcipher() 1614 desc->suite.cipher.dec.count); alg_test_skcipher() 1636 desc->suite.comp.comp.count, alg_test_comp() 1637 desc->suite.comp.decomp.count); alg_test_comp() 1658 desc->suite.pcomp.comp.count, alg_test_pcomp() 1659 desc->suite.pcomp.decomp.count); alg_test_pcomp() 1679 desc->suite.hash.count, true); alg_test_hash() 1682 desc->suite.hash.count, false); alg_test_hash() 1748 err = test_cprng(rng, desc->suite.cprng.vecs, desc->suite.cprng.count); alg_test_cprng() 1831 unsigned int tcount = desc->suite.drbg.count; alg_test_drbg() 2002 desc->suite.akcipher.count); alg_test_akcipher() 2105 .count = ANSI_CPRNG_AES_TEST_VECTORS 2115 .count = HMAC_MD5_ECB_CIPHER_NULL_ENC_TEST_VECTORS 2119 .count = HMAC_MD5_ECB_CIPHER_NULL_DEC_TEST_VECTORS 2131 .count = 2144 .count = 2157 .count = 2170 .count = 2176 .count = 2189 .count = 2202 .count = 2215 .count = 2228 .count = 2241 .count = 2254 .count = 2267 .count = 2280 .count = 2293 .count = 2306 .count = 2319 .count = AES_CBC_ENC_TEST_VECTORS 2323 .count = AES_CBC_DEC_TEST_VECTORS 2334 .count = ANUBIS_CBC_ENC_TEST_VECTORS 2338 .count = ANUBIS_CBC_DEC_TEST_VECTORS 2349 .count = BF_CBC_ENC_TEST_VECTORS 2353 .count = BF_CBC_DEC_TEST_VECTORS 2364 .count = CAMELLIA_CBC_ENC_TEST_VECTORS 2368 .count = CAMELLIA_CBC_DEC_TEST_VECTORS 2379 .count = CAST5_CBC_ENC_TEST_VECTORS 2383 .count = CAST5_CBC_DEC_TEST_VECTORS 2394 .count = CAST6_CBC_ENC_TEST_VECTORS 2398 .count = CAST6_CBC_DEC_TEST_VECTORS 2409 .count = DES_CBC_ENC_TEST_VECTORS 2413 .count = DES_CBC_DEC_TEST_VECTORS 2425 .count = DES3_EDE_CBC_ENC_TEST_VECTORS 2429 .count = DES3_EDE_CBC_DEC_TEST_VECTORS 2440 .count = SERPENT_CBC_ENC_TEST_VECTORS 2444 .count = SERPENT_CBC_DEC_TEST_VECTORS 2455 .count = TF_CBC_ENC_TEST_VECTORS 2459 .count = TF_CBC_DEC_TEST_VECTORS 2471 .count = AES_CCM_ENC_TEST_VECTORS 2475 .count = AES_CCM_DEC_TEST_VECTORS 2486 .count = CHACHA20_ENC_TEST_VECTORS 2490 .count = CHACHA20_ENC_TEST_VECTORS 2501 .count = CMAC_AES_TEST_VECTORS 2511 .count = CMAC_DES3_EDE_TEST_VECTORS 2523 .count = CRC32_TEST_VECTORS 2533 .count = CRC32C_TEST_VECTORS 2543 .count = CRCT10DIF_TEST_VECTORS 2603 .count = AES_CTR_ENC_TEST_VECTORS 2607 .count = AES_CTR_DEC_TEST_VECTORS 2618 .count = BF_CTR_ENC_TEST_VECTORS 2622 .count = BF_CTR_DEC_TEST_VECTORS 2633 .count = CAMELLIA_CTR_ENC_TEST_VECTORS 2637 .count = CAMELLIA_CTR_DEC_TEST_VECTORS 2648 .count = CAST5_CTR_ENC_TEST_VECTORS 2652 .count = CAST5_CTR_DEC_TEST_VECTORS 2663 .count = CAST6_CTR_ENC_TEST_VECTORS 2667 .count = CAST6_CTR_DEC_TEST_VECTORS 2678 .count = DES_CTR_ENC_TEST_VECTORS 2682 .count = DES_CTR_DEC_TEST_VECTORS 2693 .count = DES3_EDE_CTR_ENC_TEST_VECTORS 2697 .count = DES3_EDE_CTR_DEC_TEST_VECTORS 2708 .count = SERPENT_CTR_ENC_TEST_VECTORS 2712 .count = SERPENT_CTR_DEC_TEST_VECTORS 2723 .count = TF_CTR_ENC_TEST_VECTORS 2727 .count = TF_CTR_DEC_TEST_VECTORS 2738 .count = CTS_MODE_ENC_TEST_VECTORS 2742 .count = CTS_MODE_DEC_TEST_VECTORS 2754 .count = DEFLATE_COMP_TEST_VECTORS 2758 .count = DEFLATE_DECOMP_TEST_VECTORS 2772 .count = ARRAY_SIZE(drbg_nopr_ctr_aes128_tv_template) 2782 .count = ARRAY_SIZE(drbg_nopr_ctr_aes192_tv_template) 2792 .count = ARRAY_SIZE(drbg_nopr_ctr_aes256_tv_template) 2810 .count = 2834 .count = ARRAY_SIZE(drbg_nopr_sha256_tv_template) 2853 .count = ARRAY_SIZE(drbg_pr_ctr_aes128_tv_template) 2876 .count = ARRAY_SIZE(drbg_pr_hmac_sha256_tv_template) 2899 .count = ARRAY_SIZE(drbg_pr_sha256_tv_template) 2923 .count = AES_ENC_TEST_VECTORS 2927 .count = AES_DEC_TEST_VECTORS 2938 .count = ANUBIS_ENC_TEST_VECTORS 2942 .count = ANUBIS_DEC_TEST_VECTORS 2953 .count = ARC4_ENC_TEST_VECTORS 2957 .count = ARC4_DEC_TEST_VECTORS 2968 .count = BF_ENC_TEST_VECTORS 2972 .count = BF_DEC_TEST_VECTORS 2983 .count = CAMELLIA_ENC_TEST_VECTORS 2987 .count = CAMELLIA_DEC_TEST_VECTORS 2998 .count = CAST5_ENC_TEST_VECTORS 3002 .count = CAST5_DEC_TEST_VECTORS 3013 .count = CAST6_ENC_TEST_VECTORS 3017 .count = CAST6_DEC_TEST_VECTORS 3031 .count = DES_ENC_TEST_VECTORS 3035 .count = DES_DEC_TEST_VECTORS 3047 .count = DES3_EDE_ENC_TEST_VECTORS 3051 .count = DES3_EDE_DEC_TEST_VECTORS 3062 .count = 1 3066 .count = 1 3077 .count = KHAZAD_ENC_TEST_VECTORS 3081 .count = KHAZAD_DEC_TEST_VECTORS 3092 .count = SEED_ENC_TEST_VECTORS 3096 .count = SEED_DEC_TEST_VECTORS 3107 .count = SERPENT_ENC_TEST_VECTORS 3111 .count = SERPENT_DEC_TEST_VECTORS 3122 .count = TEA_ENC_TEST_VECTORS 3126 .count = TEA_DEC_TEST_VECTORS 3137 .count = TNEPRES_ENC_TEST_VECTORS 3141 .count = TNEPRES_DEC_TEST_VECTORS 3152 .count = TF_ENC_TEST_VECTORS 3156 .count = TF_DEC_TEST_VECTORS 3167 .count = XETA_ENC_TEST_VECTORS 3171 .count = XETA_DEC_TEST_VECTORS 3182 .count = XTEA_ENC_TEST_VECTORS 3186 .count = XTEA_DEC_TEST_VECTORS 3198 .count = AES_GCM_ENC_TEST_VECTORS 3202 .count = AES_GCM_DEC_TEST_VECTORS 3213 .count = GHASH_TEST_VECTORS 3222 .count = BFIN_CRC_TEST_VECTORS 3231 .count = HMAC_MD5_TEST_VECTORS 3240 .count = HMAC_RMD128_TEST_VECTORS 3249 .count = HMAC_RMD160_TEST_VECTORS 3259 .count = HMAC_SHA1_TEST_VECTORS 3269 .count = HMAC_SHA224_TEST_VECTORS 3279 .count = HMAC_SHA256_TEST_VECTORS 3289 .count = HMAC_SHA384_TEST_VECTORS 3299 .count = HMAC_SHA512_TEST_VECTORS 3314 .count = ARRAY_SIZE(aes_kw_enc_tv_template) 3318 .count = ARRAY_SIZE(aes_kw_dec_tv_template) 3329 .count = AES_LRW_ENC_TEST_VECTORS 3333 .count = AES_LRW_DEC_TEST_VECTORS 3344 .count = CAMELLIA_LRW_ENC_TEST_VECTORS 3348 .count = CAMELLIA_LRW_DEC_TEST_VECTORS 3359 .count = CAST6_LRW_ENC_TEST_VECTORS 3363 .count = CAST6_LRW_DEC_TEST_VECTORS 3374 .count = SERPENT_LRW_ENC_TEST_VECTORS 3378 .count = SERPENT_LRW_DEC_TEST_VECTORS 3389 .count = TF_LRW_ENC_TEST_VECTORS 3393 .count = TF_LRW_DEC_TEST_VECTORS 3405 .count = LZ4_COMP_TEST_VECTORS 3409 .count = LZ4_DECOMP_TEST_VECTORS 3421 .count = LZ4HC_COMP_TEST_VECTORS 3425 .count = LZ4HC_DECOMP_TEST_VECTORS 3437 .count = LZO_COMP_TEST_VECTORS 3441 .count = LZO_DECOMP_TEST_VECTORS 3451 .count = MD4_TEST_VECTORS 3460 .count = MD5_TEST_VECTORS 3469 .count = MICHAEL_MIC_TEST_VECTORS 3480 .count = AES_OFB_ENC_TEST_VECTORS 3484 .count = AES_OFB_DEC_TEST_VECTORS 3495 .count = FCRYPT_ENC_TEST_VECTORS 3499 .count = FCRYPT_DEC_TEST_VECTORS 3509 .count = POLY1305_TEST_VECTORS 3520 .count = AES_CTR_3686_ENC_TEST_VECTORS 3524 .count = AES_CTR_3686_DEC_TEST_VECTORS 3536 .count = AES_GCM_4106_ENC_TEST_VECTORS 3540 .count = AES_GCM_4106_DEC_TEST_VECTORS 3552 .count = AES_CCM_4309_ENC_TEST_VECTORS 3556 .count = AES_CCM_4309_DEC_TEST_VECTORS 3567 .count = AES_GCM_4543_ENC_TEST_VECTORS 3571 .count = AES_GCM_4543_DEC_TEST_VECTORS 3582 .count = RFC7539_ENC_TEST_VECTORS 3586 .count = RFC7539_DEC_TEST_VECTORS 3597 .count = RFC7539ESP_ENC_TEST_VECTORS 3601 .count = RFC7539ESP_DEC_TEST_VECTORS 3611 .count = RMD128_TEST_VECTORS 3620 .count = RMD160_TEST_VECTORS 3629 .count = RMD256_TEST_VECTORS 3638 .count = RMD320_TEST_VECTORS 3648 .count = RSA_TEST_VECTORS 3658 .count = SALSA20_STREAM_ENC_TEST_VECTORS 3669 .count = SHA1_TEST_VECTORS 3679 .count = SHA224_TEST_VECTORS 3689 .count = SHA256_TEST_VECTORS 3699 .count = SHA384_TEST_VECTORS 3709 .count = SHA512_TEST_VECTORS 3718 .count = TGR128_TEST_VECTORS 3727 .count = TGR160_TEST_VECTORS 3736 .count = TGR192_TEST_VECTORS 3745 .count = VMAC_AES_TEST_VECTORS 3754 .count = WP256_TEST_VECTORS 3763 .count = WP384_TEST_VECTORS 3772 .count = WP512_TEST_VECTORS 3781 .count = XCBC_AES_TEST_VECTORS 3792 .count = AES_XTS_ENC_TEST_VECTORS 3796 .count = AES_XTS_DEC_TEST_VECTORS 3807 .count = CAMELLIA_XTS_ENC_TEST_VECTORS 3811 .count = CAMELLIA_XTS_DEC_TEST_VECTORS 3822 .count = CAST6_XTS_ENC_TEST_VECTORS 3826 .count = CAST6_XTS_DEC_TEST_VECTORS 3837 .count = SERPENT_XTS_ENC_TEST_VECTORS 3841 .count = SERPENT_XTS_DEC_TEST_VECTORS 3852 .count = TF_XTS_ENC_TEST_VECTORS 3856 .count = TF_XTS_DEC_TEST_VECTORS 3868 .count = ZLIB_COMP_TEST_VECTORS 3872 .count = ZLIB_DECOMP_TEST_VECTORS
|