Home
last modified time | relevance | path

Searched refs:read_size (Results 1 – 25 of 39) sorted by relevance

12

/Linux-v4.19/drivers/sbus/char/
Dflash.c28 unsigned long read_size; /* Size of read area */ member
44 size = flash.read_size; in flash_mmap()
53 size = flash.read_size; in flash_mmap()
89 if (file->f_pos > flash.read_size) in flash_llseek()
90 file->f_pos = flash.read_size; in flash_llseek()
93 file->f_pos = flash.read_size; in flash_llseek()
110 if (count > flash.read_size - p) in flash_read()
111 count = flash.read_size - p; in flash_read()
174 flash.read_size = resource_size(&op->resource[0]); in flash_probe()
186 flash.read_base, flash.read_size, in flash_probe()
/Linux-v4.19/drivers/iio/chemical/
Dvz89x.c60 u8 read_size; member
156 return !!(data->buffer[data->chip->read_size - 1] > 0); in vz89x_measurement_is_valid()
165 for (i = 0; i < (data->chip->read_size - 1); i++) { in vz89te_measurement_is_valid()
171 return !((0xff - crc) == data->buffer[data->chip->read_size - 1]); in vz89te_measurement_is_valid()
189 msg[1].len = chip->read_size; in vz89x_i2c_xfer()
207 for (i = 0; i < data->chip->read_size; i++) { in vz89x_smbus_xfer()
327 .read_size = VZ89X_REG_MEASUREMENT_RD_SIZE,
337 .read_size = VZ89TE_REG_MEASUREMENT_RD_SIZE,
/Linux-v4.19/tools/testing/selftests/networking/timestamping/
Drxtimestamp.c169 bool do_recv(int rcv, int read_size, struct tstamps expected) in do_recv() argument
186 recv_iov.iov_base = malloc(read_size); in do_recv()
187 recv_iov.iov_len = read_size; in do_recv()
195 if (r != read_size) in do_recv()
274 int read_size = op_size; in run_test_case() local
315 read_size += 20; /* for IP header */ in run_test_case()
316 failed = do_recv(rcv, read_size, t.expected); in run_test_case()
/Linux-v4.19/drivers/iio/temperature/
Dmaxim_thermocouple.c84 u8 read_size; member
94 .read_size = 2,
100 .read_size = 4,
116 unsigned int storage_bytes = data->chip->read_size; in maxim_thermocouple_read()
154 ret = spi_read(data->spi, data->buffer, data->chip->read_size); in maxim_thermocouple_trigger_handler()
/Linux-v4.19/arch/powerpc/platforms/pseries/
Ddtl.c265 long int rc, n_read, n_req, read_size; in dtl_file_read() local
303 read_size = dtl->buf_entries - i; in dtl_file_read()
306 read_size * sizeof(struct dtl_entry)); in dtl_file_read()
311 n_req -= read_size; in dtl_file_read()
312 n_read += read_size; in dtl_file_read()
313 buf += read_size * sizeof(struct dtl_entry); in dtl_file_read()
/Linux-v4.19/drivers/net/wimax/i2400m/
Dusb-rx.c196 int usb_pipe, read_size, rx_size, do_autopm; in i2400mu_rx() local
218 rx_size, &read_size, 200); in i2400mu_rx()
222 if (read_size == 0) in i2400mu_rx()
224 skb_put(rx_skb, read_size); in i2400mu_rx()
262 skb_put(rx_skb, read_size); in i2400mu_rx()
276 rx_size, read_size, rx_skb->len, in i2400mu_rx()
/Linux-v4.19/drivers/iio/adc/
Dti-adc161s626.c70 u8 read_size; member
81 switch (data->read_size) { in ti_adc_read_measurement()
196 data->read_size = 2; in ti_adc_probe()
202 data->read_size = 3; in ti_adc_probe()
/Linux-v4.19/drivers/uwb/i1480/dfu/
Dusb.c153 size_t itr, read_size = i1480->buf_size; in i1480_usb_read() local
158 BUG_ON(read_size > 512); in i1480_usb_read()
161 read_size = 4; in i1480_usb_read()
163 for (itr = 0; itr < size; itr += read_size) { in i1480_usb_read()
165 size_t itr_size = min(read_size, size - itr); in i1480_usb_read()
/Linux-v4.19/drivers/misc/mic/scif/
Dscif_rb.c183 int read_size = 0; in scif_rb_get_next() local
190 read_size = size; in scif_rb_get_next()
194 return read_size; in scif_rb_get_next()
Dscif_nodeqp.c1110 int read_size; in scif_nodeqp_intrhandler() local
1113 read_size = scif_rb_get_next(&qp->inbound_q, &msg, sizeof(msg)); in scif_nodeqp_intrhandler()
1114 if (!read_size) in scif_nodeqp_intrhandler()
1196 int read_size; in scif_loopb_msg_handler() local
1203 read_size = scif_rb_get_next(&qp->inbound_q, &msg->msg, in scif_loopb_msg_handler()
1205 if (read_size != sizeof(struct scifmsg)) { in scif_loopb_msg_handler()
1215 } while (read_size == sizeof(struct scifmsg)); in scif_loopb_msg_handler()
1216 return read_size; in scif_loopb_msg_handler()
/Linux-v4.19/drivers/usb/serial/
Df81534.c406 size_t read_size; in f81534_read_flash() local
434 read_size = min_t(size_t, F81534_MAX_DATA_BLOCK, size); in f81534_read_flash()
436 for (count = 0; count < read_size; ++count) { in f81534_read_flash()
439 read_size == count + 1) in f81534_read_flash()
463 size -= read_size; in f81534_read_flash()
1184 size_t read_size = 0; in f81534_process_per_serial_block() local
1217 read_size = data[2]; in f81534_process_per_serial_block()
1218 if (read_size > F81534_MAX_RX_SIZE) { in f81534_process_per_serial_block()
1221 __func__, phy_num, read_size, in f81534_process_per_serial_block()
1234 for (i = 4; i < 4 + read_size; i += 2) { in f81534_process_per_serial_block()
/Linux-v4.19/sound/usb/usx2y/
Dus122l.c156 if (offset < PAGE_ALIGN(s->read_size)) in usb_stream_hwdep_vm_fault()
159 offset -= PAGE_ALIGN(s->read_size); in usb_stream_hwdep_vm_fault()
248 read = offset < s->read_size; in usb_stream_hwdep_mmap()
254 read ? s->read_size : s->write_size); in usb_stream_hwdep_mmap()
256 if (size > PAGE_ALIGN(read ? s->read_size : s->write_size)) { in usb_stream_hwdep_mmap()
258 read ? s->read_size : s->write_size); in usb_stream_hwdep_mmap()
Dusb_stream.c155 free_pages((unsigned long)s, get_order(s->read_size)); in usb_stream_free()
167 int read_size = sizeof(struct usb_stream); in usb_stream_new() local
189 read_size += packets * USB_STREAM_URBDEPTH * in usb_stream_new()
195 if (read_size >= 256*PAGE_SIZE || write_size >= 256*PAGE_SIZE) { in usb_stream_new()
200 pg = get_order(read_size); in usb_stream_new()
209 sk->s->read_size = read_size; in usb_stream_new()
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/core/
Ddc_link_ddc.c556 uint32_t read_size) in dal_ddc_service_query_ddc_data() argument
567 (read_size + payload_size - 1) / payload_size; in dal_ddc_service_query_ddc_data()
571 if (write_size > EDID_SEGMENT_SIZE || read_size > EDID_SEGMENT_SIZE) in dal_ddc_service_query_ddc_data()
591 payloads, address, read_size, read_buf, false); in dal_ddc_service_query_ddc_data()
617 payloads, address, read_size, read_buf, false); in dal_ddc_service_query_ddc_data()
/Linux-v4.19/tools/iio/
Diio_generic_buffer.c347 ssize_t read_size; in main() local
661 read_size = read(fp, data, toread * scan_size); in main()
662 if (read_size < 0) { in main()
670 for (i = 0; i < read_size / scan_size; i++) in main()
/Linux-v4.19/include/linux/
Damifd.h35 unsigned int read_size; /* raw read size for one track */ member
/Linux-v4.19/include/uapi/sound/
Dusb_stream.h43 unsigned read_size; member
/Linux-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_nvm.c370 u16 read_size; in i40e_read_nvm_buffer_aq() local
381 read_size = min(*words, in i40e_read_nvm_buffer_aq()
385 read_size = min((*words - words_read), in i40e_read_nvm_buffer_aq()
389 if ((words_read + read_size) >= *words) in i40e_read_nvm_buffer_aq()
392 ret_code = i40e_read_nvm_aq(hw, 0x0, offset, read_size, in i40e_read_nvm_buffer_aq()
400 words_read += read_size; in i40e_read_nvm_buffer_aq()
401 offset += read_size; in i40e_read_nvm_buffer_aq()
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/inc/
Ddc_link_ddc.h103 uint32_t read_size);
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/falcon/
Dmsgqueue.c137 u32 read_size = hdr->size - HDR_SIZE; in msg_queue_read() local
139 err = msg_queue_pop(priv, queue, (hdr + 1), read_size); in msg_queue_read()
140 if (err >= 0 && err != read_size) in msg_queue_read()
/Linux-v4.19/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_minidump.c772 u32 temp, dma_base_addr, size = 0, read_size = 0; in qlcnic_read_memory_pexdma() local
818 while (read_size < mem->size) { in qlcnic_read_memory_pexdma()
819 if (mem->size - read_size >= QLC_PEX_DMA_READ_SIZE) in qlcnic_read_memory_pexdma()
822 size = mem->size - read_size; in qlcnic_read_memory_pexdma()
824 dma_descr->src_addr_low = mem->addr + read_size; in qlcnic_read_memory_pexdma()
845 read_size += size; in qlcnic_read_memory_pexdma()
851 return read_size; in qlcnic_read_memory_pexdma()
/Linux-v4.19/tools/perf/util/
Dtrace-event.h52 unsigned long long read_size(struct event_format *event, void *ptr, int size);
Dtrace-event-parse.c111 unsigned long long read_size(struct event_format *event, void *ptr, int size) in read_size() function
/Linux-v4.19/drivers/block/
Damiflop.c587 custom.dsklen = unit[drive].type->read_size/sizeof(short) | DSKLEN_DMAEN; in raw_read()
588 custom.dsklen = unit[drive].type->read_size/sizeof(short) | DSKLEN_DMAEN; in raw_read()
727 end = raw + unit[drive].type->read_size; in amiga_read()
1042 end = raw + unit[drive].type->read_size; in dos_read()
1530 if (copy_to_user(argp, raw_buf, p->type->read_size)) in fd_locked_ioctl()
1533 return p->type->read_size; in fd_locked_ioctl()
/Linux-v4.19/include/uapi/linux/android/
Dbinder.h172 binder_size_t read_size; /* bytes to read */ member

12