Searched refs:count (Results 626 - 650 of 7702) sorted by relevance

<<21222324252627282930>>

/linux-master/drivers/input/misc/
H A Dadxl34x-i2c.c34 unsigned char reg, int count,
39 return i2c_smbus_read_i2c_block_data(client, reg, count, buf);
43 unsigned char reg, int count,
53 ret = i2c_master_recv(client, buf, count);
57 if (ret != count)
33 adxl34x_smbus_read_block(struct device *dev, unsigned char reg, int count, void *buf) argument
42 adxl34x_i2c_read_block(struct device *dev, unsigned char reg, int count, void *buf) argument
H A Dpcspkr.c26 unsigned int count = 0; local
44 count = PIT_TICK_RATE / value;
48 if (count) {
52 outb_p(count & 0xff, 0x42);
53 outb((count >> 8) & 0xff, 0x42);
/linux-master/tools/perf/tests/
H A Dstat.c83 struct perf_counts_values count; local
85 count.val = 100;
86 count.ena = 200;
87 count.run = 300;
91 &count, process_stat_event, NULL));
/linux-master/lib/
H A Ducs2_string.c40 * @count: Size of the destination buffer, in UCS2 (16-bit) characters.
49 * %NUL terminator) or -E2BIG if @count is 0 or @src was truncated due to the
52 ssize_t ucs2_strscpy(ucs2_char_t *dst, const ucs2_char_t *src, size_t count) argument
60 if (count == 0 || WARN_ON_ONCE(count > INT_MAX / sizeof(*dst)))
64 * Copy at most 'count' characters, return early if we find a
67 for (res = 0; res < count; res++) {
79 * exceeding the 'count': Enforce proper NUL-termination and return
82 dst[count - 1] = 0;
H A Dref_tracker.c24 int count; member in struct:ref_tracker_dir_stats
27 unsigned int count; member in struct:ref_tracker_dir_stats::__anon4758
42 stats->count = 0;
49 for (i = 0; i < stats->count; ++i)
54 if (i >= stats->count) {
56 stats->stacks[i].count = 0;
57 ++stats->count;
59 ++stats->stacks[i].count;
106 for (i = 0, skipped = stats->total; i < stats->count; ++i) {
111 stats->stacks[i].count, stat
[all...]
/linux-master/drivers/xen/
H A Dgntalloc.c94 unsigned int users; /* Use count - when zero, waiting on Xen */
107 int count; member in struct:gntalloc_vma_private_data
130 for (i = 0; i < op->count; i++) {
165 gref_size -= (op->count - i);
205 uint64_t index, uint32_t count)
215 count--;
216 if (count == 0)
283 gref_ids = kcalloc(op.count, sizeof(gref_ids[0]), GFP_KERNEL);
291 * by remote domains. Since those pages count towards the limit that we
295 if (gref_size + op.count > limi
204 find_grefs(struct gntalloc_file_private_data *priv, uint64_t index, uint32_t count) argument
496 int count = vma_pages(vma); local
[all...]
/linux-master/drivers/gpu/drm/hisilicon/hibmc/
H A Dhibmc_drm_vdac.c27 int count; local
34 count = drm_add_edid_modes(connector, edid);
35 if (count)
39 count = drm_add_modes_noedid(connector,
46 return count;
/linux-master/drivers/accel/habanalabs/common/
H A Ddebugfs.c407 size_t count, loff_t *f_pos)
415 rc = kstrtoull_from_user(buf, count, 16, &value);
421 return count;
481 size_t count, loff_t *f_pos)
491 if (count > sizeof(kbuf) - 1)
493 if (copy_from_user(kbuf, buf, count))
495 kbuf[count] = 0;
512 return count;
543 size_t count, loff_t *f_pos)
552 if (count > sizeo
406 userptr_lookup_write(struct file *file, const char __user *buf, size_t count, loff_t *f_pos) argument
480 mmu_asid_va_write(struct file *file, const char __user *buf, size_t count, loff_t *f_pos) argument
541 mmu_ack_error_value_write(struct file *file, const char __user *buf, size_t count, loff_t *f_pos) argument
610 hl_memory_scrub(struct file *f, const char __user *buf, size_t count, loff_t *ppos) argument
842 hl_data_read32(struct file *f, char __user *buf, size_t count, loff_t *ppos) argument
871 hl_data_write32(struct file *f, const char __user *buf, size_t count, loff_t *ppos) argument
897 hl_data_read64(struct file *f, char __user *buf, size_t count, loff_t *ppos) argument
924 hl_data_write64(struct file *f, const char __user *buf, size_t count, loff_t *ppos) argument
949 hl_dma_size_write(struct file *f, const char __user *buf, size_t count, loff_t *ppos) argument
1006 hl_monitor_dump_trigger(struct file *f, const char __user *buf, size_t count, loff_t *ppos) argument
1050 hl_get_power_state(struct file *f, char __user *buf, size_t count, loff_t *ppos) argument
1074 hl_set_power_state(struct file *f, const char __user *buf, size_t count, loff_t *ppos) argument
1104 hl_i2c_data_read(struct file *f, char __user *buf, size_t count, loff_t *ppos) argument
1132 hl_i2c_data_write(struct file *f, const char __user *buf, size_t count, loff_t *ppos) argument
1156 hl_led0_write(struct file *f, const char __user *buf, size_t count, loff_t *ppos) argument
1175 hl_led1_write(struct file *f, const char __user *buf, size_t count, loff_t *ppos) argument
1194 hl_led2_write(struct file *f, const char __user *buf, size_t count, loff_t *ppos) argument
1213 hl_device_read(struct file *f, char __user *buf, size_t count, loff_t *ppos) argument
1221 hl_device_write(struct file *f, const char __user *buf, size_t count, loff_t *ppos) argument
1253 hl_clk_gate_read(struct file *f, char __user *buf, size_t count, loff_t *ppos) argument
1259 hl_clk_gate_write(struct file *f, const char __user *buf, size_t count, loff_t *ppos) argument
1265 hl_stop_on_err_read(struct file *f, char __user *buf, size_t count, loff_t *ppos) argument
1286 hl_stop_on_err_write(struct file *f, const char __user *buf, size_t count, loff_t *ppos) argument
1314 hl_security_violations_read(struct file *f, char __user *buf, size_t count, loff_t *ppos) argument
1325 hl_state_dump_read(struct file *f, char __user *buf, size_t count, loff_t *ppos) argument
1344 hl_state_dump_write(struct file *f, const char __user *buf, size_t count, loff_t *ppos) argument
1379 hl_timeout_locked_read(struct file *f, char __user *buf, size_t count, loff_t *ppos) argument
1398 hl_timeout_locked_write(struct file *f, const char __user *buf, size_t count, loff_t *ppos) argument
1418 hl_check_razwi_happened(struct file *f, char __user *buf, size_t count, loff_t *ppos) argument
1542 hl_debugfs_write(struct file *file, const char __user *buf, size_t count, loff_t *f_pos) argument
1613 int count = ARRAY_SIZE(hl_debugfs_list); local
1739 int count = ARRAY_SIZE(hl_debugfs_list); local
[all...]
/linux-master/sound/core/
H A Dcontrol_compat.c17 u32 count; member in struct:snd_ctl_elem_list32
29 /* offset, space, used, count */
54 u32 count; member in struct:snd_ctl_elem_info32
102 /* id, type, access, count */
162 /* get the value type and count of the control */
184 *countp = info->count;
189 static int get_elem_size(snd_ctl_elem_type_t type, int count) argument
193 return sizeof(s64) * count;
195 return sizeof(int) * count;
213 int count; local
251 copy_ctl_value_to_user(void __user *userdata, void __user *valuep, struct snd_ctl_elem_value *data, int type, int count) argument
282 int err, type, count; local
304 int err, type, count; local
[all...]
/linux-master/drivers/tty/
H A Dtty_buffer.c376 * @count: number of bytes to process
384 size_t count)
387 count = ld->ops->receive_buf2(ld->tty, p, f, count);
389 count = min_t(size_t, count, ld->tty->receive_room);
390 if (count && ld->ops->receive_buf)
391 ld->ops->receive_buf(ld->tty, p, f, count);
393 return count;
403 unsigned int count; local
383 tty_ldisc_receive_buf(struct tty_ldisc *ld, const u8 *p, const u8 *f, size_t count) argument
436 receive_buf(struct tty_port *port, struct tty_buffer *head, size_t count) argument
472 size_t count, rcvd; local
[all...]
/linux-master/drivers/gpio/
H A Dgpiolib-swnode.c109 * swnode_gpio_count - count the GPIOs associated with a device / function
122 int count; local
130 count = 0;
132 count, &args) == 0) {
134 count++;
137 return count ?: -ENOENT;
/linux-master/tools/testing/selftests/timers/
H A Dthreadtest.c106 int count; local
110 for (count = 0; count < LISTSIZE; count++)
111 clock_gettime(CLOCK_MONOTONIC, &my_list[count]);
/linux-master/drivers/mtd/ubi/
H A Dcdev.c171 static ssize_t vol_cdev_read(struct file *file, __user char *buf, size_t count, argument
178 size_t count_save = count;
182 count, *offp, vol->vol_id);
192 if (*offp == vol->used_bytes || count == 0)
198 if (*offp + count > vol->used_bytes)
199 count_save = count = vol->used_bytes - *offp;
202 if (count < tbuf_size)
203 tbuf_size = ALIGN(count, ubi->min_io_size);
208 len = count > tbuf_size ? tbuf_size : count;
248 vol_cdev_direct_write(struct file *file, const char __user *buf, size_t count, loff_t *offp) argument
323 vol_cdev_write(struct file *file, const char __user *buf, size_t count, loff_t *offp) argument
[all...]
/linux-master/drivers/misc/altera-stapl/
H A Daltera.c120 static int altera_check_stack(int stack_ptr, int count, int *status) argument
122 if (stack_ptr < count) {
138 static void altera_export_bool_array(char *key, u8 *data, s32 count) argument
144 if (count > HEX_LINE_BITS) {
146 key, count);
147 lines = (count + (HEX_LINE_BITS - 1)) / HEX_LINE_BITS;
153 offset = count - ((line + 1) * HEX_LINE_BITS);
156 count - ((lines - 1) * HEX_LINE_BITS);
182 size = (count + 3) / 4;
187 for (i = 0; i < count;
247 u32 count; local
[all...]
/linux-master/drivers/staging/media/ipu3/
H A Dipu3-dmamap.c23 int count = size >> PAGE_SHIFT; local
25 while (count--)
26 __free_page(pages[count]);
37 unsigned int i = 0, count = size >> PAGE_SHIFT; local
42 pages = kvmalloc_array(count, sizeof(*pages), GFP_KERNEL);
49 while (count) {
53 for (order_mask &= (2U << __fls(count)) - 1;
75 count -= order_size;
99 int count = size >> PAGE_SHIFT; local
118 for (i = 0; i < count;
[all...]
/linux-master/drivers/acpi/acpica/
H A Drsdump.c65 u32 count = 0; local
79 acpi_os_printf("\n[%02X] ", count);
80 count++;
140 u8 count; local
154 for (count = 0; prt_element->length; count++) {
156 count);
183 u8 count; local
187 count = table->offset;
189 while (count) {
[all...]
/linux-master/drivers/bluetooth/
H A Dhci_h4.c108 static int h4_recv(struct hci_uart *hu, const void *data, int count) argument
115 h4->rx_skb = h4_recv_buf(hu->hdev, h4->rx_skb, data, count,
124 return count;
155 const unsigned char *buffer, int count,
165 while (count) {
169 for (; hu->padding && count > 0; hu->padding--) {
170 count--;
173 if (!count)
195 count -= 1;
199 len = min_t(uint, hci_skb_expect(skb) - skb->len, count);
154 h4_recv_buf(struct hci_dev *hdev, struct sk_buff *skb, const unsigned char *buffer, int count, const struct h4_recv_pkt *pkts, int pkts_count) argument
[all...]
/linux-master/include/xen/
H A Dgrant_table.h67 u16 count; member in struct:gnttab_free_callback
82 unsigned int count; member in struct:gntab_unmap_queue_data
128 int gnttab_alloc_grant_references(u16 count, grant_ref_t *pprivate_head);
130 int gnttab_alloc_grant_reference_seq(unsigned int count, grant_ref_t *first);
136 void gnttab_free_grant_reference_seq(grant_ref_t head, unsigned int count);
146 void (*fn)(void *), void *arg, u16 count);
204 unsigned int count; member in struct:grant_frames
257 struct page **pages, unsigned int count);
260 struct page **pages, unsigned int count);
274 void gnttab_batch_map(struct gnttab_map_grant_ref *batch, unsigned count);
[all...]
/linux-master/drivers/net/ethernet/cisco/enic/
H A Dvnic_wq.c21 unsigned int i, j, count = wq->ring.desc_count; local
22 unsigned int blks = VNIC_WQ_BUF_BLKS_NEEDED(count);
25 wq->bufs[i] = kzalloc(VNIC_WQ_BUF_BLK_SZ(count), GFP_KERNEL);
32 for (j = 0; j < VNIC_WQ_BUF_BLK_ENTRIES(count); j++) {
33 buf->index = i * VNIC_WQ_BUF_BLK_ENTRIES(count) + j;
36 if (buf->index + 1 == count) {
40 } else if (j + 1 == VNIC_WQ_BUF_BLK_ENTRIES(count)) {
127 unsigned int count = wq->ring.desc_count; local
131 iowrite32(count, &wq->ctrl->ring_size);
140 &wq->bufs[fetch_index / VNIC_WQ_BUF_BLK_ENTRIES(count)]
[all...]
/linux-master/arch/powerpc/include/asm/
H A Ddma.h52 * - transfer count loaded to registers is 1 less than actual count
83 * Transfer count (_not # bytes_) is limited to 64K, represented as actual
84 * count - 1 : 64K => 0xFFFF, 1 => 0x0000. Thus, count is always 1 or more,
125 #define DMA_CNT_0 0x01 /* DMA count registers */
292 * than the initial word count"! This is taken into account.
294 * NOTE 2: "count" represents _bytes_ and must be even for channels 5-7.
296 static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) argument
298 count
328 unsigned short count; local
[all...]
/linux-master/drivers/counter/
H A Dinterrupt-cnt.c18 atomic_t count; member in struct:interrupt_cnt_priv
32 atomic_inc(&priv->count);
40 struct counter_count *count, u8 *enable)
50 struct counter_count *count, u8 enable)
78 struct counter_count *count,
88 struct counter_count *count, u64 *val)
92 *val = atomic_read(&priv->count);
98 struct counter_count *count, const u64 val)
102 if (val != (typeof(priv->count.counter))val)
105 atomic_set(&priv->count, va
39 interrupt_cnt_enable_read(struct counter_device *counter, struct counter_count *count, u8 *enable) argument
49 interrupt_cnt_enable_write(struct counter_device *counter, struct counter_count *count, u8 enable) argument
77 interrupt_cnt_action_read(struct counter_device *counter, struct counter_count *count, struct counter_synapse *synapse, enum counter_synapse_action *action) argument
87 interrupt_cnt_read(struct counter_device *counter, struct counter_count *count, u64 *val) argument
97 interrupt_cnt_write(struct counter_device *counter, struct counter_count *count, const u64 val) argument
114 interrupt_cnt_function_read(struct counter_device *counter, struct counter_count *count, enum counter_function *function) argument
[all...]
/linux-master/drivers/net/wireless/silabs/wfx/
H A Dbus_spi.c64 static int wfx_spi_copy_from_io(void *priv, unsigned int addr, void *dst, size_t count) argument
67 u16 regaddr = (addr << 12) | (count / 2) | SET_READ;
75 .len = count,
80 WARN(count % 2, "buffer size must be a multiple of 2");
92 for (i = 0; i < count / 2; i++)
97 static int wfx_spi_copy_to_io(void *priv, unsigned int addr, const void *src, size_t count) argument
100 u16 regaddr = (addr << 12) | (count / 2);
111 .len = count,
114 WARN(count % 2, "buffer size must be a multiple of 2");
125 for (i = 0; i < count /
[all...]
/linux-master/drivers/ata/pata_parport/
H A Ddstr.c115 static void dstr_read_block(struct pi_adapter *pi, char *buf, int count) argument
128 for (k = 0; k < count; k++) {
136 for (k = 0; k < count; k++) {
145 for (k = 0; k < count; k++)
151 for (k = 0; k < count / 2; k++)
157 for (k = 0; k < count / 4; k++)
164 static void dstr_write_block(struct pi_adapter *pi, char *buf, int count) argument
178 for (k = 0; k < count; k++) {
187 for (k = 0; k < count; k++)
193 for (k = 0; k < count /
[all...]
H A Dcomm.c99 static void comm_read_block(struct pi_adapter *pi, char *buf, int count) argument
106 for (i = 0; i < count; i++) {
114 for (i = 0; i < count; i++) {
123 for (i = 0; i < count; i++)
129 for (i = 0; i < count / 2; i++)
135 for (i = 0; i < count / 4; i++)
143 static void comm_write_block(struct pi_adapter *pi, char *buf, int count) argument
151 for (k = 0; k < count; k++) {
160 for (k = 0; k < count; k++)
165 for (k = 0; k < count /
[all...]
/linux-master/lib/crypto/mpi/
H A Dmpi-bit.c158 void mpi_rshift_limbs(MPI a, unsigned int count) argument
164 if (count >= n) {
169 for (i = 0; i < n - count; i++)
170 ap[i] = ap[i+count];
172 a->nlimbs -= count;
251 void mpi_lshift_limbs(MPI a, unsigned int count) argument
257 if (!count || !n)
260 RESIZE_IF_NEEDED(a, n+count);
264 ap[i+count] = ap[i];
265 for (i = 0; i < count;
[all...]

Completed in 269 milliseconds

<<21222324252627282930>>