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

<<11121314151617181920>>

/linux-master/net/netfilter/
H A Dxt_statistic.c19 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 Dmlxfw_mfa2_tlv_multi.c45 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 Dpmsg.c15 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
/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/arch/alpha/include/asm/
H A Dvga.h34 static inline void scr_memsetw(u16 *s, u16 c, unsigned int count) argument
37 memsetw_io((u16 __iomem *) s, c, count);
39 memset16(s, c, count / 2);
43 extern void scr_memcpyw(u16 *d, const u16 *s, unsigned int count);
44 extern void scr_memmovew(u16 *d, const u16 *s, unsigned int count);
/linux-master/include/linux/
H A Ddynamic_queue_limits.h125 static inline void dql_queued(struct dql *dql, unsigned int count) argument
127 if (WARN_ON_ONCE(count > DQL_MAX_OBJECT))
130 dql->last_obj_cnt = count;
139 dql->num_queued += count;
153 void dql_completed(struct dql *dql, unsigned int count);
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...]
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
254 * Return: True if the reference count was successfully incremented.
261 static inline bool folio_ref_try_add_rcu(struct folio *folio, int count) argument
273 folio_ref_add(folio, count);
275 if (unlikely(!folio_ref_add_unless(folio, count, 0))) {
304 * Return: True if the reference count was successfully incremented.
311 static inline int page_ref_freeze(struct page *page, int count) argument
313 int ret = likely(atomic_cmpxchg(&page->_refcount, count, 0) == count);
320 folio_ref_freeze(struct folio *folio, int count) argument
325 page_ref_unfreeze(struct page *page, int count) argument
335 folio_ref_unfreeze(struct folio *folio, int count) argument
[all...]
/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/tools/testing/selftests/net/mptcp/
H A Dmptcp_join.sh834 local count
837 count=$(mptcp_lib_get_counter ${ns} "MPTcpExtMPCurrEstab")
838 if [ -z "$count" ]; then
840 elif [ "$count" != "$cestab" ]; then
841 fail_test "got $count current establish[s] expected $cestab"
1098 local count
1113 count=$(mptcp_lib_get_counter ${ns1} "MPTcpExtDataCsumErr")
1114 if [ "$count" != "$csum_ns1" ]; then
1115 extra_msg+=" ns1=$count"
1117 if [ -z "$count" ]; the
[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/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/fs/
H A Dseq_file.c30 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/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...]

Completed in 472 milliseconds

<<11121314151617181920>>