Searched refs:count (Results 376 - 400 of 7674) sorted by relevance

<<11121314151617181920>>

/linux-master/kernel/locking/
H A Dlock_events.c62 size_t count, loff_t *ppos)
80 return simple_read_from_buffer(user_buf, count, ppos, buf, len);
89 size_t count, loff_t *ppos)
97 return count;
106 return count;
61 lockevent_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
88 lockevent_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
/linux-master/drivers/gpio/
H A Dgpiolib-swnode.c94 * swnode_gpio_count - count the GPIOs associated with a device / function
107 int count; local
115 count = 0;
117 count, &args) == 0) {
119 count++;
122 return count ?: -ENOENT;
/linux-master/drivers/staging/media/meson/vdec/
H A Dcodec_vp9.c1481 unsigned int *count,
1495 const int n0 = count[coef_count_cxt_start];
1496 const int n1 = count[coef_count_cxt_start + 1];
1497 const int n2 = count[coef_count_cxt_start + 2];
1498 const int neob = count[coef_count_cxt_start + 3];
1499 const int nneob = count[coef_count_cxt_start + 4];
1543 unsigned int *count)
1597 count,
1655 den = count[coef_count_node_start] +
1656 count[coef_count_node_star
1479 adapt_coef_probs_cxt(unsigned int *prev_prob, unsigned int *cur_prob, unsigned int *count, int update_factor, int cxt_num, int coef_cxt_start, int coef_count_cxt_start) argument
1541 adapt_coef_probs(int prev_kf, int cur_kf, int pre_fc, unsigned int *prev_prob, unsigned int *cur_prob, unsigned int *count) argument
[all...]
/linux-master/drivers/tty/
H A Dn_hdlc.c23 * a byte count in the range of 2-65535 bytes (2 is min HDLC frame
24 * with 1 addr byte and 1 ctrl byte). The max byte count of 65535
49 * otherwise the count of the next available frame is returned.
112 size_t count; member in struct:n_hdlc_buf
118 int count; member in struct:n_hdlc_buf_list
284 pr_debug("sending frame %p, count=%zu\n", tbuf, tbuf->count);
288 actual = tty->ops->write(tty, tbuf->buf, tbuf->count);
298 actual = tbuf->count;
300 if (actual == tbuf->count) {
372 n_hdlc_tty_receive(struct tty_struct *tty, const u8 *data, const u8 *flags, size_t count) argument
520 n_hdlc_tty_write(struct tty_struct *tty, struct file *file, const u8 *data, size_t count) argument
588 int count; local
675 n_hdlc_alloc_buf(struct n_hdlc_buf_list *list, unsigned int count, const char *name) argument
[all...]
/linux-master/drivers/net/wireless/broadcom/b43legacy/
H A Ddebugfs.c33 int (*write)(struct b43legacy_wldev *dev, const char *buf, size_t count);
56 if (bufsize - count) \
57 count += scnprintf(buf + count, \
58 bufsize - count, \
68 ssize_t count = 0; local
76 return count;
80 static int tsf_write_file(struct b43legacy_wldev *dev, const char *buf, size_t count) argument
94 ssize_t count = 0; local
102 return count;
108 ssize_t count = 0; local
128 ssize_t count = 0; local
173 restart_write_file(struct b43legacy_wldev *dev, const char *buf, size_t count) argument
187 b43legacy_debugfs_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
255 b43legacy_debugfs_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/drivers/vfio/pci/
H A Dvfio_pci_rdwr.c101 loff_t off, size_t count, size_t x_start,
107 while (count) {
111 fillable = min(count, (size_t)(x_start - off));
113 fillable = count;
185 filled = min(count, (size_t)(x_end - off));
196 count -= filled;
232 size_t count, loff_t *ppos, bool iswrite)
254 count = min(count, (size_t)(end - pos));
284 count, x_star
99 vfio_pci_core_do_io_rw(struct vfio_pci_core_device *vdev, bool test_mem, void __iomem *io, char __user *buf, loff_t off, size_t count, size_t x_start, size_t x_end, bool iswrite) argument
231 vfio_pci_bar_rw(struct vfio_pci_core_device *vdev, char __user *buf, size_t count, loff_t *ppos, bool iswrite) argument
296 vfio_pci_vga_rw(struct vfio_pci_core_device *vdev, char __user *buf, size_t count, loff_t *ppos, bool iswrite) argument
420 vfio_pci_ioeventfd(struct vfio_pci_core_device *vdev, loff_t offset, uint64_t data, int count, int fd) argument
[all...]
H A Dvfio_pci_config.c112 int (*readfn)(struct vfio_pci_core_device *vdev, int pos, int count,
114 int (*writefn)(struct vfio_pci_core_device *vdev, int pos, int count,
124 __le32 *val, int count)
129 switch (count) {
155 __le32 val, int count)
160 switch (count) {
176 int count, struct perm_bits *perm,
181 memcpy(val, vdev->vconfig + pos, count);
183 memcpy(&virt, perm->virt + offset, count);
186 if (cpu_to_le32(~0U >> (32 - (count *
123 vfio_user_config_read(struct pci_dev *pdev, int offset, __le32 *val, int count) argument
154 vfio_user_config_write(struct pci_dev *pdev, int offset, __le32 val, int count) argument
175 vfio_default_config_read(struct vfio_pci_core_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 *val) argument
201 vfio_default_config_write(struct vfio_pci_core_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 val) argument
248 vfio_direct_config_read(struct vfio_pci_core_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 *val) argument
273 vfio_raw_config_write(struct vfio_pci_core_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 val) argument
286 vfio_raw_config_read(struct vfio_pci_core_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 *val) argument
300 vfio_virt_config_write(struct vfio_pci_core_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 val) argument
308 vfio_virt_config_read(struct vfio_pci_core_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 *val) argument
521 vfio_basic_config_read(struct vfio_pci_core_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 *val) argument
559 vfio_basic_config_write(struct vfio_pci_core_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 val) argument
715 vfio_pm_config_write(struct vfio_pci_core_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 val) argument
787 vfio_vpd_config_write(struct vfio_pci_core_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 val) argument
869 vfio_exp_config_write(struct vfio_pci_core_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 val) argument
953 vfio_af_config_write(struct vfio_pci_core_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 val) argument
1130 vfio_msi_config_read(struct vfio_pci_core_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 *val) argument
1150 vfio_msi_config_write(struct vfio_pci_core_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 val) argument
1862 vfio_config_do_rw(struct vfio_pci_core_device *vdev, char __user *buf, size_t count, loff_t *ppos, bool iswrite) argument
1945 vfio_pci_config_rw(struct vfio_pci_core_device *vdev, char __user *buf, size_t count, loff_t *ppos, bool iswrite) argument
[all...]
/linux-master/drivers/pcmcia/
H A Dsocket_sysfs.c82 const char *buf, size_t count)
86 if (!count)
91 return count;
106 const char *buf, size_t count)
109 ssize_t ret = count;
111 if (!count)
129 const char *buf, size_t count)
133 if (!count)
138 return count;
153 const char *buf, size_t count)
81 pccard_store_insert(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
104 pccard_store_card_pm_state(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
127 pccard_store_eject(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
151 pccard_store_irq_mask(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
183 pccard_store_resource(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
[all...]
/linux-master/drivers/bluetooth/
H A Dbtmrvl_debugfs.c22 const char __user *ubuf, size_t count, loff_t *ppos)
27 ret = kstrtol_from_user(ubuf, count, 10, &result);
38 return count;
42 size_t count, loff_t *ppos)
51 return simple_read_from_buffer(userbuf, count, ppos, buf, ret);
62 size_t count, loff_t *ppos)
67 ret = kstrtol_from_user(ubuf, count, 10, &result);
78 return count;
83 size_t count, loff_t *ppos)
91 return simple_read_from_buffer(userbuf, count, ppo
21 btmrvl_hscfgcmd_write(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument
41 btmrvl_hscfgcmd_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
61 btmrvl_pscmd_write(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument
82 btmrvl_pscmd_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
101 btmrvl_hscmd_write(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument
120 btmrvl_hscmd_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/include/linux/
H A Dpage_ref.h71 * folio_ref_count - The reference count on this folio.
110 * Setup the page count before being freed into the page allocator for
259 * Return: True if the reference count was successfully incremented.
266 static inline bool folio_ref_try_add_rcu(struct folio *folio, int count) argument
278 folio_ref_add(folio, count);
280 if (unlikely(!folio_ref_add_unless(folio, count, 0))) {
309 * Return: True if the reference count was successfully incremented.
316 static inline int page_ref_freeze(struct page *page, int count) argument
318 int ret = likely(atomic_cmpxchg(&page->_refcount, count, 0) == count);
325 folio_ref_freeze(struct folio *folio, int count) argument
330 page_ref_unfreeze(struct page *page, int count) argument
340 folio_ref_unfreeze(struct folio *folio, int count) argument
[all...]
H A Doverflow.h347 * @count: Number of elements in the array.
349 * Calculates size of a flexible array of @count number of @member
354 #define flex_array_size(p, member, count) \
355 __builtin_choose_expr(__is_constexpr(count), \
356 (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
357 size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
363 * @count: Number of elements in the array.
366 * array of @count number of @member elements.
370 #define struct_size(p, member, count) \
371 __builtin_choose_expr(__is_constexpr(count), \
[all...]
/linux-master/arch/s390/lib/
H A Dspinlock.c120 int lockval, ix, node_id, tail_id, old, new, owner, count; local
167 count = spin_retry;
169 if (count-- >= 0)
171 count = spin_retry;
180 count = spin_retry;
192 if (count-- >= 0)
194 count = spin_retry;
213 int lockval, old, new, owner, count; local
222 count = spin_retry;
235 if (count
255 int owner, count; local
[all...]
/linux-master/drivers/video/fbdev/
H A Dcobalt_lcdfb.c126 size_t count, loff_t *ppos)
136 if (pos >= LCD_CHARS_MAX || count == 0)
139 if (count > LCD_CHARS_MAX)
140 count = LCD_CHARS_MAX;
142 if (pos + count > LCD_CHARS_MAX)
143 count = LCD_CHARS_MAX - pos;
145 for (len = 0; len < count; len++) {
175 size_t count, loff_t *ppos)
185 if (pos >= LCD_CHARS_MAX || count == 0)
188 if (count > LCD_CHARS_MA
125 cobalt_lcdfb_read(struct fb_info *info, char __user *buf, size_t count, loff_t *ppos) argument
174 cobalt_lcdfb_write(struct fb_info *info, const char __user *buf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/arch/s390/boot/
H A Dipl_parm.c87 static size_t scpdata_length(const u8 *buf, size_t count) argument
89 while (count) {
90 if (buf[count - 1] != '\0' && buf[count - 1] != ' ')
92 count--;
94 return count;
103 size_t count = 0; local
124 count = min(size - 1, scpdata_length(scp_data, scp_data_len));
125 if (!count)
129 for (i = 0; i < count;
[all...]
/linux-master/drivers/tty/hvc/
H A Dhvc_dcc.c50 unsigned int count = 0x4000000; local
52 while (--count && (__dcc_getstatus() & DCC_STATUS_TX))
65 static ssize_t hvc_dcc_put_chars(uint32_t vt, const u8 *buf, size_t count) argument
69 for (i = 0; i < count; i++) {
76 return count;
79 static ssize_t hvc_dcc_get_chars(uint32_t vt, u8 *buf, size_t count) argument
83 for (i = 0; i < count; ++i)
183 static ssize_t hvc_dcc0_put_chars(u32 vt, const u8 *buf, size_t count) argument
189 return hvc_dcc_put_chars(vt, buf, count);
193 len = kfifo_in(&outbuf, buf, count);
222 hvc_dcc0_get_chars(u32 vt, u8 *buf, size_t count) argument
[all...]
/linux-master/arch/mips/include/asm/mach-au1x00/
H A Dau1000_dma.h366 static inline void set_dma_count0(unsigned int dmanr, unsigned int count) argument
372 count &= DMA_COUNT_MASK;
373 __raw_writel(count, chan->io + DMA_BUFFER0_COUNT);
379 static inline void set_dma_count1(unsigned int dmanr, unsigned int count) argument
385 count &= DMA_COUNT_MASK;
386 __raw_writel(count, chan->io + DMA_BUFFER1_COUNT);
392 static inline void set_dma_count(unsigned int dmanr, unsigned int count) argument
398 count &= DMA_COUNT_MASK;
399 __raw_writel(count, chan->io + DMA_BUFFER0_COUNT);
400 __raw_writel(count, cha
434 int curBufCntReg, count; local
[all...]
/linux-master/drivers/net/arcnet/
H A Dcom20020_cs.c56 int count; local
59 for (count = 0; count < 16; count++) {
60 if (!(count % 16))
61 pr_cont("%04X:", ioaddr + count);
62 pr_cont(" %02X", arcnet_inb(ioaddr, count));
68 count = 0;
69 arcnet_outb((count >> 8) | RDDATAflag | AUTOINCflag,
71 arcnet_outb(count
[all...]
/linux-master/arch/s390/include/asm/
H A Didals.h95 nridaws = idal_nr_words(vaddr, ccw->count);
100 idal_create_words(idal, vaddr, ccw->count);
213 ccw->count = ib->size;
217 * Copy count bytes from an idal buffer to user memory
219 static inline size_t idal_buffer_to_user(struct idal_buffer *ib, void __user *to, size_t count) argument
225 BUG_ON(count > ib->size);
226 for (i = 0; count > IDA_BLOCK_SIZE; i++) {
230 return left + count - IDA_BLOCK_SIZE;
232 count -= IDA_BLOCK_SIZE;
235 return copy_to_user(to, vaddr, count);
241 idal_buffer_from_user(struct idal_buffer *ib, const void __user *from, size_t count) argument
[all...]
/linux-master/drivers/s390/char/
H A Dsclp_vt220.c305 const unsigned char *msg, int count, int convertlf)
313 if (count > sclp_vt220_space_left(request))
314 count = sclp_vt220_space_left(request);
315 if (count <= 0)
324 (from < count) && (to < sclp_vt220_space_left(request));
343 memcpy(buffer, (const void *) msg, count);
344 sccb->header.length += count;
345 sccb->evbuf.length += count;
346 return count;
399 __sclp_vt220_write(const unsigned char *buf, int count, in argument
304 sclp_vt220_add_msg(struct sclp_vt220_request *request, const unsigned char *msg, int count, int convertlf) argument
466 sclp_vt220_write(struct tty_struct *tty, const u8 *buf, size_t count) argument
485 sclp_vt220_handle_input(const char *buffer, unsigned int count) argument
515 sclp_vt220_handle_input(const char *buffer, unsigned int count) argument
529 unsigned int count; local
611 unsigned int count; local
632 unsigned int count = 0; local
773 sclp_vt220_con_write(struct console *con, const char *buf, unsigned int count) argument
[all...]
/linux-master/drivers/tee/amdtee/
H A Dcall.c15 static int tee_params_to_amd_params(struct tee_param *tee, u32 count, argument
21 if (!count)
24 if (!tee || !amd || count > TEE_MAX_PARAMS)
28 for (i = 0; i < count; i++) {
36 for (i = 0; i < count; i++) {
72 static int amd_params_to_tee_params(struct tee_param *tee, u32 count, argument
78 if (!count)
81 if (!tee || !amd || count > TEE_MAX_PARAMS)
85 for (i = 0; i < count; i++) {
130 u32 count local
151 u32 count = 0; local
170 u32 status, count; local
286 handle_map_shmem(u32 count, struct shmem_desc *start, u32 *buf_id) argument
[all...]
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_mca.c235 uint32_t count; local
249 count = 0;
250 ret = amdgpu_mca_smu_parse_mca_error_count(adev, blk, type, entry, &count);
254 if (!count)
268 &mcm_info, &err_addr, (uint64_t)count);
272 &mcm_info, &err_addr, (uint64_t)count);
275 &mcm_info, &err_addr, (uint64_t)count);
286 int amdgpu_mca_smu_get_valid_mca_count(struct amdgpu_device *adev, enum amdgpu_mca_error_type type, uint32_t *count) argument
290 if (!count)
294 return mca_funcs->mca_get_valid_mca_count(adev, type, count);
306 uint32_t count; local
342 amdgpu_mca_smu_parse_mca_error_count(struct amdgpu_device *adev, enum amdgpu_ras_block blk, enum amdgpu_mca_error_type type, struct mca_bank_entry *entry, uint32_t *count) argument
376 int count; local
437 uint32_t count = 0; local
[all...]
/linux-master/drivers/mtd/ubi/
H A Dupd.c257 * @count: how much bytes to write
266 const void __user *buf, int count)
268 int lnum, offs, err = 0, len, to_write = count;
271 count, vol->upd_bytes, vol->upd_received);
277 if (vol->upd_received + count > vol->upd_bytes)
278 to_write = count = vol->upd_bytes - vol->upd_received;
293 if (len > count)
294 len = count;
316 count -= len;
325 while (count) {
265 ubi_more_update_data(struct ubi_device *ubi, struct ubi_volume *vol, const void __user *buf, int count) argument
380 ubi_more_leb_change_data(struct ubi_device *ubi, struct ubi_volume *vol, const void __user *buf, int count) argument
[all...]
/linux-master/fs/afs/
H A Dvlclient.c177 u32 uniquifier, nentries, count; local
181 call->unmarshall, iov_iter_count(call->iter), call->count);
200 count = ntohl(*bp);
202 nentries = min(nentries, count);
208 call->count = count;
213 count = min(call->count, 4U);
214 afs_extract_to_buf(call, count * sizeof(__be32));
218 ret = afs_extract_data(call, call->count >
319 u32 count; local
[all...]
/linux-master/arch/sparc/kernel/
H A Dptrace_32.c108 unsigned int pos, unsigned int count,
119 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
122 if (ret || !count)
127 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
134 if (!count)
137 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
144 if (!count)
146 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
149 if (ret || !count)
151 ret = user_regset_copyin(&pos, &count,
106 genregs32_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument
182 fpregs32_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument
260 setregs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument
300 setfpregs_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/drivers/w1/slaves/
H A Dw1_ds2438.c66 size_t count; local
81 count = w1_read_block(sl->master, buf, DS2438_PAGE_SIZE + 1);
82 if (count == DS2438_PAGE_SIZE + 1) {
292 loff_t off, size_t count)
297 if (count != 1 || off != 0)
314 loff_t off, size_t count)
326 ret = snprintf(buf, count, "%i\n", voltage);
335 loff_t off, size_t count)
349 if (count > DS2438_PAGE_SIZE)
350 count
290 iad_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
312 iad_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
333 page0_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
363 page1_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
393 offset_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
412 temperature_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
433 vad_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
454 vdd_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
[all...]

Completed in 227 milliseconds

<<11121314151617181920>>