Searched refs:count (Results 401 - 425 of 7674) sorted by relevance

<<11121314151617181920>>

/linux-master/drivers/video/fbdev/core/
H A Dfbsysfs.c57 const char *buf, size_t count)
72 if (strncmp(mstr, buf, max(count, i)) == 0) {
79 return count;
98 const char *buf, size_t count)
102 int i = count / sizeof(struct fb_videomode);
104 if (i * sizeof(struct fb_videomode) != count)
142 const char *buf, size_t count)
153 return count;
165 const char *buf, size_t count)
178 return count;
56 store_mode(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument
96 store_modes(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument
141 store_bpp(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument
163 store_rotate(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument
190 store_virtual(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument
226 store_blank(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument
252 store_console(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument
267 store_cursor(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument
282 store_pan(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument
323 store_fbstate(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument
352 store_bl_curve(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument
[all...]
/linux-master/drivers/char/
H A Dadi.c55 size_t count, loff_t *offp)
63 ver_buf_sz = min_t(size_t, count, MAX_BUF_SZ);
70 while (bytes_read < count) {
89 ver_buf_sz = min(count - bytes_read,
132 size_t count, loff_t *offp)
140 if (count <= 0)
143 ver_buf_sz = min_t(size_t, count, MAX_BUF_SZ);
166 ver_buf_sz = min(count - bytes_written, (size_t)MAX_BUF_SZ);
167 } while (bytes_written < count);
54 adi_read(struct file *file, char __user *buf, size_t count, loff_t *offp) argument
131 adi_write(struct file *file, const char __user *buf, size_t count, loff_t *offp) argument
/linux-master/lib/zlib_inflate/
H A Dinftrees.c44 unsigned short count[MAXBITS+1]; /* number of codes of each length */ local
79 The codes are sorted by computing a count of codes for each length,
94 count[len] = 0;
96 count[lens[sym]]++;
101 if (count[max] != 0) break;
113 if (count[min] != 0) break;
120 left -= count[len];
129 offs[len + 1] = offs[len] + count[len];
151 counts are used for this, and so count[] is decremented as codes are
238 /* go to next symbol, update count, le
[all...]
/linux-master/tools/perf/scripts/perl/
H A Drwtop.pl57 $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");
[all...]
/linux-master/drivers/crypto/
H A Dpadlock-sha.c66 uint32_t *dst, size_t count)
68 while (count--)
73 unsigned int count, u8 *out)
91 if (state.count + count > ULONG_MAX)
92 return crypto_shash_finup(&dctx->fallback, in, count, out);
94 leftover = ((state.count - 1) & (SHA1_BLOCK_SIZE - 1)) + 1;
97 if (count > space) {
102 count -= space;
105 memcpy(state.buffer + leftover, in, count);
65 padlock_output_block(uint32_t *src, uint32_t *dst, size_t count) argument
72 padlock_sha1_finup(struct shash_desc *desc, const u8 *in, unsigned int count, u8 *out) argument
133 padlock_sha256_finup(struct shash_desc *desc, const u8 *in, unsigned int count, u8 *out) argument
[all...]
/linux-master/drivers/media/tuners/
H A Dtuner-i2c.h20 int count; member in struct:tuner_i2c_props
129 state->i2c_props.count++; \
130 __ret = state->i2c_props.count; \
146 state->i2c_props.count++; \
147 __ret = state->i2c_props.count; \
156 state->i2c_props.count--; \
157 __ret = state->i2c_props.count; \
158 if (!state->i2c_props.count) { \
170 __ret = state->i2c_props.count; \
/linux-master/sound/core/seq/oss/
H A Dseq_oss_rw.c31 snd_seq_oss_read(struct seq_oss_devinfo *dp, char __user *buf, int count) argument
42 while (count >= SHORT_EVENT_SIZE) {
60 if (ev_len < count) {
72 count -= ev_len;
83 snd_seq_oss_write(struct seq_oss_devinfo *dp, const char __user *buf, int count, struct file *opt) argument
92 while (count >= SHORT_EVENT_SIZE) {
106 fmt, buf, 0, count);
116 if (count < ev_size)
141 count -= ev_size;
/linux-master/drivers/net/wireless/broadcom/b43/
H A Ddebugfs.c32 int (*write)(struct b43_wldev *dev, const char *buf, size_t count);
53 if (bufsize - count) \
54 count += scnprintf(buf + count, \
55 bufsize - count, \
69 ssize_t count = 0; local
82 return count;
86 const char *buf, size_t count)
110 const char *buf, size_t count)
145 ssize_t count local
85 shm16read__write_file(struct b43_wldev *dev, const char *buf, size_t count) argument
109 shm16write__write_file(struct b43_wldev *dev, const char *buf, size_t count) argument
161 shm32read__write_file(struct b43_wldev *dev, const char *buf, size_t count) argument
185 shm32write__write_file(struct b43_wldev *dev, const char *buf, size_t count) argument
224 ssize_t count = 0; local
238 mmio16read__write_file(struct b43_wldev *dev, const char *buf, size_t count) argument
257 mmio16write__write_file(struct b43_wldev *dev, const char *buf, size_t count) argument
288 ssize_t count = 0; local
302 mmio32read__write_file(struct b43_wldev *dev, const char *buf, size_t count) argument
321 mmio32write__write_file(struct b43_wldev *dev, const char *buf, size_t count) argument
353 ssize_t count = 0; local
394 restart_write_file(struct b43_wldev *dev, const char *buf, size_t count) argument
428 ssize_t count = 0; local
490 b43_debugfs_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
553 b43_debugfs_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/tools/testing/selftests/netfilter/
H A Dnft_zones_many.sh81 dd if=/dev/zero of=/dev/stdout bs=8k count=1000 2>/dev/null | ip netns exec "$ns" socat STDIN UDP:127.0.0.1:12345,sourceport=12345
93 local count=$(ip netns exec "$ns" conntrack -C)
96 if [ $count -eq $max_zones ]; then
97 echo "PASS: inserted $count entries from packet path in $duration ms total"
100 echo "FAIL: inserted $count entries from packet path in $duration ms total, expected $max_zones entries"
140 local count=$(ip netns exec "$ns" conntrack -C)
143 if [ $count -eq $max_zones ]; then
144 echo "PASS: inserted $count entries via ctnetlink in $duration ms"
147 echo "FAIL: inserted $count entries via ctnetlink in $duration ms, expected $max_zones entries ($duration ms)"
/linux-master/lib/
H A Doid_registry.c136 int count; local
142 ret = count = snprintf(buffer, bufsize, "%u.%u", n / 40, n % 40);
143 if (count >= bufsize)
145 buffer += count;
146 bufsize -= count;
162 ret += count = snprintf(buffer, bufsize, ".%lu", num);
163 if (count >= bufsize)
165 buffer += count;
166 bufsize -= count;
H A Dhashtable_test.c127 int bkt, i, j, count; local
138 count = 0;
143 count++;
147 KUNIT_EXPECT_EQ(test, count, 3);
157 int bkt, i, j, count; local
168 count = 0;
173 count++;
180 KUNIT_EXPECT_EQ(test, count, 3);
190 int bkt, i, j, count; local
207 count
245 int bkt, i, j, count; local
[all...]
/linux-master/arch/s390/include/asm/
H A Dstring.h73 void *__memset16(uint16_t *s, uint16_t v, size_t count);
74 void *__memset32(uint32_t *s, uint32_t v, size_t count);
75 void *__memset64(uint64_t *s, uint64_t v, size_t count);
77 static inline void *memset16(uint16_t *s, uint16_t v, size_t count) argument
79 return __memset16(s, v, count * sizeof(v));
82 static inline void *memset32(uint32_t *s, uint32_t v, size_t count) argument
84 return __memset32(s, v, count * sizeof(v));
87 static inline void *memset64(uint64_t *s, uint64_t v, size_t count) argument
89 return __memset64(s, v, count * sizeof(v));
/linux-master/tools/testing/selftests/drivers/net/mlxsw/
H A Dmirror_gre_scale.sh51 local count=$1; shift
55 for ((i=0; i < count; ++i)); do
93 local count=$1; shift
95 for ((i=0; i < count; ++i)); do
112 local count=$1; shift
115 mirror_gre_tunnels_create $count $should_fail
122 for ((i = 0; i < count; ++i)); do
136 local count=$1; shift
145 __mirror_gre_test $count $should_fail
/linux-master/drivers/md/persistent-data/
H A Ddm-space-map.h28 * Extensions do not appear in this count until after commit has
31 int (*get_nr_blocks)(struct dm_space_map *sm, dm_block_t *count);
38 * have blocks with a zero reference count that will not be
41 int (*get_nr_free)(struct dm_space_map *sm, dm_block_t *count);
46 int (*set_count)(struct dm_space_map *sm, dm_block_t b, uint32_t count);
89 static inline int dm_sm_get_nr_blocks(struct dm_space_map *sm, dm_block_t *count) argument
91 return sm->get_nr_blocks(sm, count);
94 static inline int dm_sm_get_nr_free(struct dm_space_map *sm, dm_block_t *count) argument
96 return sm->get_nr_free(sm, count);
112 uint32_t count)
111 dm_sm_set_count(struct dm_space_map *sm, dm_block_t b, uint32_t count) argument
[all...]
/linux-master/drivers/vfio/pci/virtio/
H A Dmain.c35 size_t count, bool read)
52 count, bar0_buf + pos);
55 count, bar0_buf + pos);
58 if (copy_to_user(buf, bar0_buf + pos, count))
61 if (copy_from_user(bar0_buf + pos, buf, count)) {
68 count, bar0_buf + pos);
71 count, bar0_buf + pos);
81 size_t count, bool read)
91 if (pos + count > virtvdev->bar0_virtual_buf_size)
102 if (count !
33 virtiovf_issue_legacy_rw_cmd(struct virtiovf_pci_core_device *virtvdev, loff_t pos, char __user *buf, size_t count, bool read) argument
79 virtiovf_pci_bar0_rw(struct virtiovf_pci_core_device *virtvdev, loff_t pos, char __user *buf, size_t count, bool read) argument
135 virtiovf_pci_read_config(struct vfio_device *core_vdev, char __user *buf, size_t count, loff_t *ppos) argument
221 virtiovf_pci_core_read(struct vfio_device *core_vdev, char __user *buf, size_t count, loff_t *ppos) argument
241 virtiovf_pci_write_config(struct vfio_device *core_vdev, const char __user *buf, size_t count, loff_t *ppos) argument
276 virtiovf_pci_core_write(struct vfio_device *core_vdev, const char __user *buf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/drivers/accessibility/speakup/
H A Ddevsynth.c17 size_t count = nbytes; local
25 while (count > 0) {
26 bytes = min(count, sizeof(buf));
29 count -= bytes;
42 size_t count = nbytes, want; local
54 while (count >= want) {
56 bytes = min(count, sizeof(buf));
114 count -= bytes;
127 return (ssize_t)(nbytes - count);
/linux-master/block/partitions/
H A Daix.c74 * @count
76 * Description: Reads @count bytes from @state->disk into @buffer.
80 size_t count)
84 if (!buffer || lba + count / 512 > get_capacity(state->disk) - 1ULL)
87 while (count) {
93 if (copied > count)
94 copied = count;
99 count -= copied;
115 size_t count = sizeof(struct pvd); local
118 p = kmalloc(count, GFP_KERNE
79 read_lba(struct parsed_partitions *state, u64 lba, u8 *buffer, size_t count) argument
140 size_t count = sizeof(struct lvname) * LVM_MAXLVS; local
[all...]
/linux-master/drivers/net/ethernet/cisco/enic/
H A Dvnic_rq.c21 unsigned int i, j, count = rq->ring.desc_count; local
22 unsigned int blks = VNIC_RQ_BUF_BLKS_NEEDED(count);
25 rq->bufs[i] = kzalloc(VNIC_RQ_BUF_BLK_SZ(count), GFP_KERNEL);
32 for (j = 0; j < VNIC_RQ_BUF_BLK_ENTRIES(count); j++) {
33 buf->index = i * VNIC_RQ_BUF_BLK_ENTRIES(count) + j;
36 if (buf->index + 1 == count) {
39 } else if (j + 1 == VNIC_RQ_BUF_BLK_ENTRIES(count)) {
107 unsigned int count = rq->ring.desc_count; local
111 iowrite32(count, &rq->ctrl->ring_size);
121 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES(count)]
176 unsigned int count = rq->ring.desc_count; local
[all...]
/linux-master/arch/powerpc/kernel/ptrace/
H A Dptrace-decl.h74 unsigned int pos, unsigned int count,
82 unsigned int pos, unsigned int count,
90 unsigned int pos, unsigned int count,
98 unsigned int pos, unsigned int count,
109 unsigned int pos, unsigned int count,
124 unsigned int pos, unsigned int count,
129 unsigned int pos, unsigned int count,
134 unsigned int pos, unsigned int count,
139 unsigned int pos, unsigned int count,
144 unsigned int pos, unsigned int count,
[all...]
/linux-master/arch/alpha/kernel/
H A Dsrmcons.c51 int count = 0, loops = 0; local
57 count++;
61 if (count)
64 return count;
92 srmcons_do_write(struct tty_port *port, const u8 *buf, size_t count) argument
97 while (count > 0) {
103 for (c = 0; c < min_t(size_t, 128U, count) && !need_cr; c++)
110 count -= result.bits.c;
129 srmcons_write(struct tty_struct *tty, const u8 *buf, size_t count) argument
134 srmcons_do_write(tty->port, buf, count);
235 srm_console_write(struct console *co, const char *s, unsigned count) argument
[all...]
/linux-master/arch/mips/include/asm/octeon/
H A Dcvmx-cmd-queue.h366 int count; local
386 count = qptr->pool_size_m1 - qptr->index;
388 cmd_count -= count;
389 while (count--)
469 int count = qptr->pool_size_m1 - qptr->index; local
481 count--;
487 if (likely(count))
497 if (unlikely(count == 0)) {
571 int count = qptr->pool_size_m1 - qptr->index; local
583 count
[all...]
/linux-master/drivers/crypto/intel/qat/qat_common/
H A Dadf_heartbeat_dbgfs.c23 size_t count, loff_t *ppos)
35 return simple_read_from_buffer(user_buffer, count, ppos, buf, len + 1);
45 size_t count, loff_t *ppos)
66 return simple_read_from_buffer(user_buf, count, ppos, ret_str, len + 1);
76 size_t count, loff_t *ppos)
90 return simple_read_from_buffer(user_buf, count, ppos, timer_str,
95 size_t count, loff_t *ppos)
107 if (count > sizeof(input_str) - 1)
111 ppos, user_buf, count);
160 size_t count, loff_
22 adf_hb_stats_read(struct file *file, char __user *user_buffer, size_t count, loff_t *ppos) argument
44 adf_hb_status_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
75 adf_hb_cfg_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
94 adf_hb_cfg_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
158 adf_hb_error_inject_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/fs/xfs/libxfs/
H A Dxfs_attr_leaf.c115 ASSERT(!to->count && !to->usedbytes);
169 to->count = be16_to_cpu(hdr3->count);
183 to->count = be16_to_cpu(from->hdr.count);
211 hdr3->count = cpu_to_be16(from->count);
226 to->hdr.count = cpu_to_be16(from->count);
342 if ((char *)&entries[ichdr.count] >
1642 int count; local
1832 int count; local
2481 xfs_attr3_leaf_moveents( struct xfs_da_args *args, struct xfs_attr_leafblock *leaf_s, struct xfs_attr3_icleaf_hdr *ichdr_s, int start_s, struct xfs_attr_leafblock *leaf_d, struct xfs_attr3_icleaf_hdr *ichdr_d, int start_d, int count) argument
2625 xfs_attr_leaf_lasthash( struct xfs_buf *bp, int *count) argument
[all...]
/linux-master/fs/ext4/
H A Dblock_validity.c26 unsigned int count; member in struct:ext4_system_zone
49 if ((entry1->start_blk + entry1->count) == entry2->start_blk &&
71 unsigned int count, u32 ino)
82 else if (start_blk >= (entry->start_blk + entry->count))
93 new_entry->count = count;
106 new_entry->count += entry->count;
117 new_entry->count += entry->count;
69 add_system_zone(struct ext4_system_blocks *system_blks, ext4_fsblk_t start_blk, unsigned int count, u32 ino) argument
295 ext4_sb_block_valid(struct super_block *sb, struct inode *inode, ext4_fsblk_t start_blk, unsigned int count) argument
343 ext4_inode_block_valid(struct inode *inode, ext4_fsblk_t start_blk, unsigned int count) argument
[all...]
/linux-master/drivers/misc/lkdtm/
H A Dcore.c35 size_t count, loff_t *off);
37 size_t count, loff_t *off);
43 size_t count, loff_t *off);
229 size_t count, loff_t *off)
236 if (count >= PAGE_SIZE)
242 if (copy_from_user(buf, user_buf, count)) {
247 buf[count] = '\0';
260 *off += count;
262 return count;
268 size_t count, loff_
227 lkdtm_debugfs_entry(struct file *f, const char __user *user_buf, size_t count, loff_t *off) argument
267 lkdtm_debugfs_read(struct file *f, char __user *user_buf, size_t count, loff_t *off) argument
304 direct_entry(struct file *f, const char __user *user_buf, size_t count, loff_t *off) argument
[all...]

Completed in 255 milliseconds

<<11121314151617181920>>