Searched refs:count (Results 276 - 300 of 7674) sorted by relevance

<<11121314151617181920>>

/linux-master/drivers/acpi/acpica/
H A Dutascii.c83 * count - Number of characters to check
92 void acpi_ut_check_and_repair_ascii(u8 *name, char *repaired_name, u32 count) argument
96 for (i = 0; i < count; i++) {
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dof.c22 int count; local
25 count = of_property_count_strings(np, "brcm,ccode-map");
26 if (count < 0) {
36 return (count == -EINVAL) ? 0 : count;
39 cc = devm_kzalloc(dev, struct_size(cc, table, count), GFP_KERNEL);
43 cc->table_size = count;
45 for (i = 0; i < count; i++) {
/linux-master/drivers/spi/
H A Dspi-altera-core.c96 txd = hw->tx[hw->count];
99 txd = (hw->tx[hw->count * 2]
100 | (hw->tx[hw->count * 2 + 1] << 8));
103 txd = (hw->tx[hw->count * 4]
104 | (hw->tx[hw->count * 4 + 1] << 8)
105 | (hw->tx[hw->count * 4 + 2] << 16)
106 | (hw->tx[hw->count * 4 + 3] << 24));
123 hw->rx[hw->count] = rxd;
126 hw->rx[hw->count * 2] = rxd;
127 hw->rx[hw->count *
[all...]
/linux-master/drivers/staging/iio/addac/
H A Dadt7316-i2c.c54 static int adt7316_i2c_multi_read(void *client, u8 reg, u8 count, u8 *data) argument
59 if (count > ADT7316_REG_MAX_ADDR)
60 count = ADT7316_REG_MAX_ADDR;
62 for (i = 0; i < count; i++) {
73 static int adt7316_i2c_multi_write(void *client, u8 reg, u8 count, u8 *data) argument
78 if (count > ADT7316_REG_MAX_ADDR)
79 count = ADT7316_REG_MAX_ADDR;
81 for (i = 0; i < count; i++) {
/linux-master/arch/s390/hypfs/
H A Dhypfs_vm.c58 void *diag2fc_store(char *query, unsigned int *count, int offset) argument
74 *count = (size / sizeof(struct diag2fc_data));
88 u64 count; /* Number of VM guests in d2fc buffer */ member in struct:dbfs_d2fc_hdr
100 unsigned int count; local
102 d2fc = diag2fc_store(diag2fc_guest_query, &count, sizeof(d2fc->hdr));
106 d2fc->hdr.len = count * sizeof(struct diag2fc_data);
108 d2fc->hdr.count = count;
/linux-master/drivers/infiniband/hw/qib/
H A Dqib_fs.c104 size_t count, loff_t *ppos)
107 return simple_read_from_buffer(buf, count, ppos, &qib_stats,
132 size_t count, loff_t *ppos)
134 return simple_read_from_buffer(buf, count, ppos, qib_statnames,
145 size_t count, loff_t *ppos)
152 return simple_read_from_buffer(buf, count, ppos, counters, avail);
157 size_t count, loff_t *ppos)
164 return simple_read_from_buffer(buf, count, ppos, names, avail);
179 size_t count, loff_t *ppos)
186 return simple_read_from_buffer(buf, count, ppo
103 driver_stats_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
131 driver_names_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
144 dev_counters_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
156 dev_names_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
178 portnames_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
190 portcntrs_1_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
202 portcntrs_2_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
222 qsfp_1_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
243 qsfp_2_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
269 flash_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
320 flash_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/include/linux/
H A Dpercpu_counter.h24 s64 count; member in struct:percpu_counter
83 * are accumulated in local per cpu counter and not in fbc->count until
84 * local count overflows PERCPU_COUNTER_LOCAL_BATCH. This makes counter
110 return fbc->count;
120 /* Prevent reloads of fbc->count */
121 s64 ret = READ_ONCE(fbc->count);
136 s64 count; member in struct:percpu_counter
146 fbc[i].count = amount;
168 fbc->count = amount;
173 if (fbc->count > rh
202 s64 count; local
[all...]
H A Dbitmap-str.h8 int nmaskbits, loff_t off, size_t count);
10 int nmaskbits, loff_t off, size_t count);
H A Dregset.h106 * @count: amount of data to copy, in bytes
111 * are usual failure returns. The @pos and @count values are in
119 unsigned int pos, unsigned int count,
180 * The @pos argument must be aligned according to @align; the @count
253 static inline int user_regset_copyin(unsigned int *pos, unsigned int *count, argument
258 if (*count == 0)
262 unsigned int copy = (end_pos < 0 ? *count
263 : min(*count, end_pos - *pos));
273 *count -= copy;
279 unsigned int *count,
[all...]
/linux-master/tools/testing/selftests/timers/
H A Dnsleep-lat.c102 int i, count; local
112 count = 10;
116 for (i = 0; i < count; i++)
120 if (((timespec_sub(start, end)/count)-ns) > UNRESONABLE_LATENCY) {
121 ksft_print_msg("Large rel latency: %lld ns :", (timespec_sub(start, end)/count)-ns);
126 for (i = 0; i < count; i++) {
134 if (latency/count > UNRESONABLE_LATENCY) {
135 ksft_print_msg("Large abs latency: %lld ns :", latency/count);
/linux-master/net/sched/
H A Dsch_mqprio_lib.c27 unsigned int last = qopt->offset[i] + qopt->count[i];
29 if (!qopt->count[i]) {
35 /* Verify the queue count is in tx range being equal to the
42 qopt->count[i], qopt->offset[i],
55 qopt->count[j])) {
58 i, qopt->count[i], qopt->offset[i],
59 j, qopt->count[j], qopt->offset[j]);
111 qopt->count[tc] = dev->tc_to_txq[tc].count;
/linux-master/drivers/tty/
H A Dehv_bytechan.c140 unsigned int *count,
144 unsigned int c = *count;
154 return ev_byte_channel_send(handle, count, p);
171 int ret, count; local
174 count = 1;
176 &count, &data);
234 unsigned int count)
239 while (count) {
240 len = min_t(unsigned int, count, EV_BYTE_CHANNEL_MAX_BYTES);
244 count
139 local_ev_byte_channel_send(unsigned int handle, unsigned int *count, const u8 *p) argument
233 ehv_bc_console_byte_channel_send(unsigned int handle, const char *s, unsigned int count) argument
261 ehv_bc_console_write(struct console *co, const char *s, unsigned int count) argument
354 int count; local
412 unsigned int count; local
472 ehv_bc_tty_write(struct tty_struct *ttys, const u8 *s, size_t count) argument
545 unsigned int count; local
758 unsigned int count = 0; /* Number of elements in bcs[] */ local
[all...]
/linux-master/include/uapi/xen/
H A Dgntalloc.h28 __u32 count; member in struct:ioctl_gntalloc_alloc_gref
33 /* Variable size, depending on count */
53 __u32 count; member in struct:ioctl_gntalloc_dealloc_gref
/linux-master/security/integrity/
H A Diint.c26 void *addr, unsigned long count)
28 return __kernel_read(file, addr, count, &offset);
25 integrity_kernel_read(struct file *file, loff_t offset, void *addr, unsigned long count) argument
/linux-master/drivers/platform/x86/
H A Dintel_scu_ipcutil.c34 u32 count; /* No. of registers */ member in struct:scu_ipc_data
51 unsigned int count = data->count; local
53 if (count == 0 || count == 3 || count > 4)
58 return intel_scu_ipc_dev_readv(scu, data->addr, data->data, count);
60 return intel_scu_ipc_dev_writev(scu, data->addr, data->data, count);
/linux-master/drivers/gpu/drm/xe/tests/
H A Dxe_guc_db_mgr_test.c28 KUNIT_ASSERT_EQ(test, dbm->count, 0);
42 KUNIT_ASSERT_EQ(test, dbm->count, GUC_NUM_DOORBELLS);
67 KUNIT_ASSERT_EQ(test, dbm->count, *p);
72 KUNIT_EXPECT_LT(test, id, dbm->count);
119 KUNIT_ASSERT_LE(test, *p, dbm->count);
122 for (n = 0; n < dbm->count - *p; n++) {
129 xe_guc_db_mgr_release_range(dbm, 0, dbm->count);
137 for (n = 0; n < dbm->count - *p; n++) {
145 xe_guc_db_mgr_release_range(dbm, 0, dbm->count);
157 KUNIT_ASSERT_LE(test, *p, dbm->count);
[all...]
/linux-master/tools/perf/tests/shell/lib/
H A Dperf_json_output_lint.py70 count = len(item)
71 if count != expected_items and count >= 1 and count <= 6 and 'metric-value' in item:
76 elif count != expected_items and count >= 1 and count <= 5 and 'metricgroup' in item:
78 elif count != expected_items:
79 raise RuntimeError(f'wrong number of fields. counted {count} expected {expected_items}'
/linux-master/fs/xfs/scrub/
H A Dxfile.h16 int xfile_load(struct xfile *xf, void *buf, size_t count, loff_t pos);
17 int xfile_store(struct xfile *xf, const void *buf, size_t count,
/linux-master/drivers/s390/cio/
H A Dfcx.c104 u32 count = 0; local
110 count += dcw->count;
115 return count;
131 data_count += tidaw[i].count;
147 * Calculate the input-/output-count and tccbl field in the tcw, add a
159 u32 count; local
169 /* Calculate tcw input/output count and tcat transport count. */
170 count
296 tccb_add_dcw(struct tccb *tccb, size_t tccb_size, u8 cmd, u8 flags, void *cd, u8 cd_count, u32 count) argument
339 tcw_add_tidaw(struct tcw *tcw, int num_tidaws, u8 flags, void *addr, u32 count) argument
[all...]
/linux-master/sound/soc/sof/
H A Dsof-client-ipc-msg-injector.c53 size_t count, loff_t *ppos)
59 if (!rhdr->hdr.size || !count || *ppos)
62 if (count > rhdr->hdr.size)
63 count = rhdr->hdr.size;
65 if (copy_to_user(buffer, priv->rx_buffer, count))
68 *ppos += count;
69 return count;
74 size_t count, loff_t *ppos)
82 if (!ipc4_msg->header_u64 || !count || *ppos)
86 if (count < header_siz
52 sof_msg_inject_dfs_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos) argument
72 sof_msg_inject_ipc4_dfs_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos) argument
148 sof_msg_inject_dfs_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) argument
177 sof_msg_inject_ipc4_dfs_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) argument
[all...]
/linux-master/drivers/remoteproc/
H A Dremoteproc_debugfs.c43 size_t count, loff_t *ppos)
52 return simple_read_from_buffer(userbuf, count, ppos, buf, len);
72 const char __user *user_buf, size_t count,
79 if (count < 1 || count > sizeof(buf))
82 ret = copy_from_user(buf, user_buf, count);
87 if (buf[count - 1] == '\n')
88 buf[count - 1] = '\0';
96 if (!strncmp(buf, "disabled", count)) {
98 } else if (!strncmp(buf, "enabled", count)) {
42 rproc_coredump_read(struct file *filp, char __user *userbuf, size_t count, loff_t *ppos) argument
71 rproc_coredump_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *ppos) argument
126 rproc_trace_read(struct file *filp, char __user *userbuf, size_t count, loff_t *ppos) argument
155 rproc_name_read(struct file *filp, char __user *userbuf, size_t count, loff_t *ppos) argument
175 rproc_recovery_read(struct file *filp, char __user *userbuf, size_t count, loff_t *ppos) argument
209 rproc_recovery_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *ppos) argument
252 rproc_crash_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/arch/sparc/crypto/
H A Dsha512_glue.c34 if ((sctx->count[0] += len) < len)
35 sctx->count[1]++;
55 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE;
59 if ((sctx->count[0] += len) < len)
60 sctx->count[1]++;
77 bits[1] = cpu_to_be64(sctx->count[0] << 3);
78 bits[0] = cpu_to_be64(sctx->count[1] << 3 | sctx->count[0] >> 61);
81 index = sctx->count[0] % SHA512_BLOCK_SIZE;
86 if ((sctx->count[
[all...]
/linux-master/arch/x86/include/asm/
H A Ddma.h34 * - transfer count loaded to registers is 1 less than actual count
65 * Transfer count (_not # bytes_) is limited to 64K, represented as actual
66 * count - 1 : 64K => 0xFFFF, 1 => 0x0000. Thus, count is always 1 or more,
123 #define DMA_CNT_0 0x01 /* DMA count registers */
260 * than the initial word count"! This is taken into account.
262 * NOTE 2: "count" represents _bytes_ and must be even for channels 5-7.
264 static inline void set_dma_count(unsigned int dmanr, unsigned int count) argument
266 count
292 unsigned short count; local
[all...]
/linux-master/arch/mips/include/asm/
H A Ddma.h40 * - transfer count loaded to registers is 1 less than actual count
71 * Transfer count (_not # bytes_) is limited to 64K, represented as actual
72 * count - 1 : 64K => 0xFFFF, 1 => 0x0000. Thus, count is always 1 or more,
135 #define DMA_CNT_0 0x01 /* DMA count registers */
266 * than the initial word count"! This is taken into account.
268 * NOTE 2: "count" represents _bytes_ and must be even for channels 5-7.
270 static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) argument
272 count
297 unsigned short count; local
[all...]
/linux-master/drivers/w1/slaves/
H A Dw1_ds2781.c24 size_t count, int io)
31 count = min_t(int, count, DS2781_DATA_SIZE - addr);
37 w1_write_block(sl->master, buf, count);
41 count = w1_read_block(sl->master, buf, count);
45 return count;
48 int w1_ds2781_io(struct device *dev, char *buf, int addr, size_t count, argument
59 ret = w1_ds2781_do_io(dev, buf, addr, count, io);
88 loff_t off, size_t count)
23 w1_ds2781_do_io(struct device *dev, char *buf, int addr, size_t count, int io) argument
86 w1_slave_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
[all...]

Completed in 264 milliseconds

<<11121314151617181920>>