/linux-master/include/asm-generic/ |
H A D | io.h | 396 * native endianness in 8-, 16-, 32- or 64-bit chunks (@count times). 401 unsigned int count) 403 if (count) { 409 } while (--count); 417 unsigned int count) 419 if (count) { 425 } while (--count); 433 unsigned int count) 435 if (count) { 441 } while (--count); 400 readsb(const volatile void __iomem *addr, void *buffer, unsigned int count) argument 416 readsw(const volatile void __iomem *addr, void *buffer, unsigned int count) argument 432 readsl(const volatile void __iomem *addr, void *buffer, unsigned int count) argument 449 readsq(const volatile void __iomem *addr, void *buffer, unsigned int count) argument 466 writesb(volatile void __iomem *addr, const void *buffer, unsigned int count) argument 481 writesw(volatile void __iomem *addr, const void *buffer, unsigned int count) argument 496 writesl(volatile void __iomem *addr, const void *buffer, unsigned int count) argument 512 writesq(volatile void __iomem *addr, const void *buffer, unsigned int count) argument 690 insb(unsigned long addr, void *buffer, unsigned int count) argument 698 insw(unsigned long addr, void *buffer, unsigned int count) argument 706 insl(unsigned long addr, void *buffer, unsigned int count) argument 714 outsb(unsigned long addr, const void *buffer, unsigned int count) argument 723 outsw(unsigned long addr, const void *buffer, unsigned int count) argument 732 outsl(unsigned long addr, const void *buffer, unsigned int count) argument 741 insb_p(unsigned long addr, void *buffer, unsigned int count) argument 749 insw_p(unsigned long addr, void *buffer, unsigned int count) argument 757 insl_p(unsigned long addr, void *buffer, unsigned int count) argument 765 outsb_p(unsigned long addr, const void *buffer, unsigned int count) argument 774 outsw_p(unsigned long addr, const void *buffer, unsigned int count) argument 783 outsl_p(unsigned long addr, const void *buffer, unsigned int count) argument 913 ioread8_rep(const volatile void __iomem *addr, void *buffer, unsigned int count) argument 922 ioread16_rep(const volatile void __iomem *addr, void *buffer, unsigned int count) argument 931 ioread32_rep(const volatile void __iomem *addr, void *buffer, unsigned int count) argument 941 ioread64_rep(const volatile void __iomem *addr, void *buffer, unsigned int count) argument 951 iowrite8_rep(volatile void __iomem *addr, const void *buffer, unsigned int count) argument 961 iowrite16_rep(volatile void __iomem *addr, const void *buffer, unsigned int count) argument 971 iowrite32_rep(volatile void __iomem *addr, const void *buffer, unsigned int count) argument 982 iowrite64_rep(volatile void __iomem *addr, const void *buffer, unsigned int count) argument [all...] |
/linux-master/arch/powerpc/kernel/ptrace/ |
H A D | ptrace-view.c | 239 unsigned int pos, unsigned int count, const void *kbuf, 248 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 252 if (!ret && count > 0) { 253 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, 264 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 270 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 274 if (!ret && count > 0) { 275 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, 283 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 300 unsigned int pos, unsigned int count, cons 238 gpr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 299 ppr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 315 dscr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 329 tar_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 364 ebb_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 418 pmu_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 504 hashkeyr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 538 pkey_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 719 gpr32_set_common_kernel(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, unsigned long *regs) argument 757 gpr32_set_common_user(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void __user *ubuf, unsigned long *regs) argument 811 gpr32_set_common(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf, unsigned long *regs) argument 834 gpr32_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument [all...] |
/linux-master/fs/ext4/ |
H A D | acl.h | 27 static inline size_t ext4_acl_size(int count) argument 29 if (count <= 4) { 31 count * sizeof(ext4_acl_entry_short); 35 (count - 4) * sizeof(ext4_acl_entry);
|
/linux-master/net/wireless/ |
H A D | debugfs.c | 16 size_t count, loff_t *ppos) \ 23 return simple_read_from_buffer(userbuf, count, ppos, buf, res); \ 65 size_t count, loff_t *ppos) 87 r = simple_read_from_buffer(user_buf, count, ppos, buf, offset); 119 size_t count, 150 char __user *userbuf, size_t count, 190 return simple_read_from_buffer(userbuf, count, ppos, buf, work.ret); 199 size_t count, 204 size_t count; member in struct:debugfs_write_work 215 w->ret = w->handler(w->wiphy, w->file, w->buf, w->count, 63 ht40allow_map_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 148 wiphy_locked_debugfs_read(struct wiphy *wiphy, struct file *file, char *buf, size_t bufsize, char __user *userbuf, size_t count, loff_t *ppos, ssize_t (*handler)(struct wiphy *wiphy, struct file *file, char *buf, size_t bufsize, void *data), void *data) argument 228 wiphy_locked_debugfs_write(struct wiphy *wiphy, struct file *file, char *buf, size_t bufsize, const char __user *userbuf, size_t count, ssize_t (*handler)(struct wiphy *wiphy, struct file *file, char *buf, size_t count, void *data), void *data) argument [all...] |
/linux-master/drivers/tty/hvc/ |
H A D | hvc_udbg.c | 22 static ssize_t hvc_udbg_put(uint32_t vtermno, const u8 *buf, size_t count) argument 26 for (i = 0; i < count && udbg_putc; i++) 32 static ssize_t hvc_udbg_get(uint32_t vtermno, u8 *buf, size_t count) argument 40 for (i = 0; i < count; i++) {
|
/linux-master/tools/testing/selftests/kvm/x86_64/ |
H A D | userspace_io_test.c | 13 static void guest_ins_port80(uint8_t *buffer, unsigned int count) argument 17 if (count == 2) 22 asm volatile("cld; rep; insb" : "+D"(buffer), "+c"(count) : "d"(0x80) : "memory"); 23 GUEST_ASSERT_EQ(count, 0); 34 * test that KVM doesn't explode when userspace modifies the "count" on 36 * itself as KVM doesn't support manipulating the count, it just needs 77 * Modify the rep string count in RCX: 2 => 1 and 3 => 8192.
|
/linux-master/arch/sparc/lib/ |
H A D | bitext.c | 30 int offset, count; /* siamese twins */ local 58 count = 0; 62 count += off_new - offset; 66 if (count + len > t->size) { 69 "bitmap out: size %d used %d off %d len %d align %d count %d\n", 70 t->size, t->used, offset, len, align, count); 75 count += t->size - offset; 97 count += i + 1;
|
/linux-master/drivers/net/wireless/ti/wlcore/ |
H A D | debugfs.h | 15 __printf(4, 5) int wl1271_format_buffer(char __user *userbuf, size_t count, 27 size_t count, loff_t *ppos) \ 30 return wl1271_format_buffer(userbuf, count, ppos, \ 56 size_t count, loff_t *ppos) \ 63 return wl1271_format_buffer(userbuf, count, ppos, fmt "\n", \ 76 size_t count, loff_t *ppos) \ 90 return wl1271_format_buffer(userbuf, count, ppos, "%s", buf); \
|
H A D | debugfs.c | 31 int wl1271_format_buffer(char __user *userbuf, size_t count, argument 42 return simple_read_from_buffer(userbuf, count, ppos, buf, res); 79 size_t count, loff_t *ppos) 89 return simple_read_from_buffer(userbuf, count, ppos, buf, res); 125 size_t count, loff_t *ppos) \ 128 return wl1271_format_buffer(user_buf, count, \ 135 size_t count, loff_t *ppos) \ 141 ret = kstrtoul_from_user(user_buf, count, 10, &value); \ 158 return count; \ 176 size_t count, loff_ 78 tx_queue_len_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument 175 gpio_power_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 189 gpio_power_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument 221 start_recovery_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument 240 dynamic_ps_timeout_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 250 dynamic_ps_timeout_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument 305 forced_ps_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 315 forced_ps_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument 375 split_scan_timeout_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 385 split_scan_timeout_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument 417 driver_state_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 516 vifs_state_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 626 dtim_interval_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 641 dtim_interval_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument 686 suspend_dtim_interval_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 702 suspend_dtim_interval_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument 742 beacon_interval_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 757 beacon_interval_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument 800 rx_streaming_interval_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument 840 rx_streaming_interval_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument 856 rx_streaming_always_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument 896 rx_streaming_always_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument 912 beacon_filtering_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument 950 fw_stats_raw_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument 969 sleep_auth_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 979 sleep_auth_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument 1032 dev_mem_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 1115 dev_mem_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument 1205 fw_logger_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 1215 fw_logger_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument [all...] |
/linux-master/arch/sparc/kernel/ |
H A D | led.c | 69 size_t count, loff_t *ppos) 73 if (count > LED_MAX_LENGTH) 74 count = LED_MAX_LENGTH; 76 buf = memdup_user_nul(buffer, count); 81 if (buf[count - 1] == '\n') 82 buf[count - 1] = '\0'; 105 return count; 68 led_proc_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) argument
|
/linux-master/samples/fprobe/ |
H A D | fprobe_example.c | 94 int ret, count, i; local 115 count = 1; 117 count++; 119 pr_info("%d symbols found\n", count); 121 syms = kcalloc(count, sizeof(char *), GFP_KERNEL); 128 for (i = 0; i < count; i++) 131 ret = register_fprobe_syms(&sample_probe, syms, count);
|
/linux-master/tools/testing/selftests/powerpc/ |
H A D | utils.c | 31 int read_file(const char *path, char *buf, size_t count, size_t *len) argument 42 rc = read(fd, buf, count); 52 if (rc == count) { 126 int write_file(const char *path, const char *buf, size_t count) argument 136 rc = write(fd, buf, count); 142 if (rc != count) { 168 int read_debugfs_file(const char *subpath, char *buf, size_t count) argument 174 return read_file(path, buf, count, NULL); 177 int write_debugfs_file(const char *subpath, const char *buf, size_t count) argument 183 return write_file(path, buf, count); 186 validate_int_parse(const char *buffer, size_t count, char *end) argument 212 parse_bounded_int(const char *buffer, size_t count, intmax_t *result, int base, intmax_t min, intmax_t max) argument 236 parse_bounded_uint(const char *buffer, size_t count, uintmax_t *result, int base, uintmax_t max) argument 260 parse_intmax(const char *buffer, size_t count, intmax_t *result, int base) argument 265 parse_uintmax(const char *buffer, size_t count, uintmax_t *result, int base) argument 270 parse_int(const char *buffer, size_t count, int *result, int base) argument 279 parse_uint(const char *buffer, size_t count, unsigned int *result, int base) argument 288 parse_long(const char *buffer, size_t count, long *result, int base) argument 297 parse_ulong(const char *buffer, size_t count, unsigned long *result, int base) argument [all...] |
/linux-master/net/ethtool/ |
H A D | strset.c | 11 unsigned int count; member in struct:strset_info 27 .count = ARRAY_SIZE(netdev_features_strings), 32 .count = ARRAY_SIZE(rss_hash_func_strings), 37 .count = ARRAY_SIZE(tunable_strings), 45 .count = ARRAY_SIZE(phy_tunable_strings), 50 .count = __ETHTOOL_LINK_MODE_MASK_NBITS, 55 .count = NETIF_MSG_CLASS_COUNT, 60 .count = WOL_MODE_COUNT, 65 .count = __SOF_TIMESTAMPING_CNT, 70 .count 241 int count, ret; local [all...] |
/linux-master/drivers/firmware/google/ |
H A D | cbmem.c | 34 size_t count) 38 return memory_read_from_buffer(buf, count, &pos, entry->mem_file_buf, 44 size_t count) 50 if (count > entry->size - pos) 51 count = entry->size - pos; 53 memcpy(entry->mem_file_buf + pos, buf, count); 54 return count; 32 mem_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t pos, size_t count) argument 42 mem_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t pos, size_t count) argument
|
/linux-master/fs/ |
H A D | seq_file.c | 30 m->count = m->size; 97 m->count = m->from = 0; 116 m->count = 0; 121 if (pos + m->count > offset) { 123 m->count -= m->from; 126 pos += m->count; 127 m->count = 0; 137 m->count = 0; 190 m->count = 0; 201 m->count [all...] |
/linux-master/fs/hfs/ |
H A D | extent.c | 77 u16 count; local 80 count = be16_to_cpu(ext->count); 81 if (off < count) 83 off -= count; 92 u16 count = 0; local 95 count += be16_to_cpu(ext->count); 96 return count; 105 if (ext->count) 223 u16 count, start; local 251 u16 count, start; local [all...] |
/linux-master/tools/testing/selftests/powerpc/include/ |
H A D | utils.h | 46 int parse_intmax(const char *buffer, size_t count, intmax_t *result, int base); 47 int parse_uintmax(const char *buffer, size_t count, uintmax_t *result, int base); 48 int parse_int(const char *buffer, size_t count, int *result, int base); 49 int parse_uint(const char *buffer, size_t count, unsigned int *result, int base); 50 int parse_long(const char *buffer, size_t count, long *result, int base); 51 int parse_ulong(const char *buffer, size_t count, unsigned long *result, int base); 53 int read_file(const char *path, char *buf, size_t count, size_t *len); 54 int write_file(const char *path, const char *buf, size_t count); 60 int read_debugfs_file(const char *debugfs_file, char *buf, size_t count); 61 int write_debugfs_file(const char *debugfs_file, const char *buf, size_t count); [all...] |
/linux-master/drivers/dma-buf/ |
H A D | dma-fence-unwrap.c | 71 size_t count; local 73 count = 0; 78 ++count; 92 if (count == 0) 95 array = kmalloc_array(count, sizeof(*array), GFP_KERNEL); 108 count = 0; 148 array[count++] = dma_fence_get(tmp); 153 if (count == 0) { 158 if (count == 1) { 163 result = dma_fence_array_create(count, arra [all...] |
/linux-master/drivers/leds/rgb/ |
H A D | leds-group-multicolor.c | 72 int i, ret, count = 0, common_flags = 0; local 81 led_cdev = devm_of_led_get_optional(dev, count); 84 count); 89 count + 1, sizeof(*priv->monochromatics), 95 priv->monochromatics[count] = led_cdev; 99 count++; 102 subled = devm_kcalloc(dev, count, sizeof(*subled), GFP_KERNEL); 107 for (i = 0; i < count; i++) { 121 priv->mc_cdev.num_colors = count; 137 for (i = 0; i < count; [all...] |
/linux-master/tools/testing/selftests/powerpc/tm/ |
H A D | tm-signal-context-force-tm.c | 47 /* count is changed in the signal handler, so it must be volatile */ 48 static volatile int count; variable 88 * with count set so it will exit in the next segfault. 91 count = COUNT_MAX; 102 count++; 125 while (count < COUNT_MAX) { 158 count++;
|
/linux-master/drivers/media/usb/au0828/ |
H A D | au0828-i2c.c | 35 int count; local 37 for (count = 0; count < I2C_WAIT_RETRY; count++) { 43 if (I2C_WAIT_RETRY == count) 58 int count; local 60 for (count = 0; count < I2C_WAIT_RETRY; count++) { 66 if (I2C_WAIT_RETRY == count) 81 int count; local 104 int count; local [all...] |
/linux-master/arch/s390/crypto/ |
H A D | sha1_s390.c | 39 sctx->count = 0; 50 octx->count = sctx->count; 61 sctx->count = ictx->count;
|
/linux-master/net/netfilter/ |
H A D | xt_statistic.c | 19 atomic_t count; member in struct:xt_statistic_priv 42 oval = atomic_read(&info->master->count); 44 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval); 64 atomic_set(&info->master->count, info->u.nth.count);
|
/linux-master/drivers/net/ethernet/mellanox/mlxfw/ |
H A D | mlxfw_mfa2_tlv_multi.c | 45 const struct mlxfw_mfa2_tlv *from_tlv, u16 count) 50 mlxfw_mfa2_tlv_foreach(mfa2_file, tlv, idx, from_tlv, count) 83 u16 count = 0; local 93 count++; 95 *p_count = count; 44 mlxfw_mfa2_tlv_advance(const struct mlxfw_mfa2_file *mfa2_file, const struct mlxfw_mfa2_tlv *from_tlv, u16 count) argument
|
/linux-master/fs/pstore/ |
H A D | pmsg.c | 15 size_t count, loff_t *ppos) 20 if (!count) 25 record.size = count; 28 if (!access_ok(buf, count)) 34 return ret ? ret : count; 14 write_pmsg(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
|