Home
last modified time | relevance | path

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

12

/drivers/sbus/char/
Dflash.c29 unsigned long read_size; /* Size of read area */ member
45 size = flash.read_size; in flash_mmap()
54 size = flash.read_size; in flash_mmap()
90 if (file->f_pos > flash.read_size) in flash_llseek()
91 file->f_pos = flash.read_size; in flash_llseek()
94 file->f_pos = flash.read_size; in flash_llseek()
111 if (count > flash.read_size - p) in flash_read()
112 count = flash.read_size - p; in flash_read()
175 flash.read_size = resource_size(&op->resource[0]); in flash_probe()
187 flash.read_base, flash.read_size, in flash_probe()
/drivers/net/ethernet/mellanox/mlxsw/
Dcore_env.c154 unsigned int read_size; in mlxsw_env_get_module_info() local
158 module_info, &read_size); in mlxsw_env_get_module_info()
162 if (read_size < offset) in mlxsw_env_get_module_info()
189 &read_size); in mlxsw_env_get_module_info()
193 if (read_size < 1) in mlxsw_env_get_module_info()
215 unsigned int read_size; in mlxsw_env_get_module_eeprom() local
227 &read_size); in mlxsw_env_get_module_eeprom()
233 i += read_size; in mlxsw_env_get_module_eeprom()
234 offset += read_size; in mlxsw_env_get_module_eeprom()
/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,
/drivers/net/ethernet/intel/ice/
Dice_nvm.c147 u16 read_size, off_w; in ice_read_sr_buf_aq() local
154 read_size = off_w ? in ice_read_sr_buf_aq()
161 if ((words_read + read_size) >= *words) in ice_read_sr_buf_aq()
164 status = ice_read_sr_aq(hw, offset, read_size, in ice_read_sr_buf_aq()
172 words_read += read_size; in ice_read_sr_buf_aq()
173 offset += read_size; in ice_read_sr_buf_aq()
/drivers/iio/temperature/
Dmaxim_thermocouple.c86 u8 read_size; member
96 .read_size = 2,
102 .read_size = 4,
118 unsigned int storage_bytes = data->chip->read_size; in maxim_thermocouple_read()
156 ret = spi_read(data->spi, data->buffer, data->chip->read_size); in maxim_thermocouple_trigger_handler()
Dmax31856.c69 u8 val[], unsigned int read_size) in max31856_read() argument
71 return spi_write_then_read(data->spi, &reg, 1, val, read_size); in max31856_read()
/drivers/nvdimm/
Dlabel.c415 size_t config_size, read_size, max_xfer, offset; in nd_label_data_init() local
441 read_size = sizeof_namespace_index(ndd) * 2; in nd_label_data_init()
442 if (!read_size) in nd_label_data_init()
459 if (read_size < max_xfer) { in nd_label_data_init()
464 if (max_xfer < read_size) in nd_label_data_init()
465 max_xfer = read_size; in nd_label_data_init()
469 read_size = min(DIV_ROUND_UP(read_size, max_xfer) * max_xfer, in nd_label_data_init()
473 rc = nvdimm_get_config_data(ndd, ndd->data, 0, read_size); in nd_label_data_init()
504 if (offset + ndd->nslabel_size <= read_size) in nd_label_data_init()
508 if (read_size < offset) in nd_label_data_init()
[all …]
/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()
/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()
/drivers/staging/uwb/i1480/dfu/
Dusb.c139 size_t itr, read_size = i1480->buf_size; in i1480_usb_read() local
144 BUG_ON(read_size > 512); in i1480_usb_read()
147 read_size = 4; in i1480_usb_read()
149 for (itr = 0; itr < size; itr += read_size) { in i1480_usb_read()
151 size_t itr_size = min(read_size, size - itr); in i1480_usb_read()
/drivers/misc/mic/scif/
Dscif_rb.c174 int read_size = 0; in scif_rb_get_next() local
181 read_size = size; in scif_rb_get_next()
185 return read_size; in scif_rb_get_next()
Dscif_nodeqp.c1101 int read_size; in scif_nodeqp_intrhandler() local
1104 read_size = scif_rb_get_next(&qp->inbound_q, &msg, sizeof(msg)); in scif_nodeqp_intrhandler()
1105 if (!read_size) in scif_nodeqp_intrhandler()
1187 int read_size; in scif_loopb_msg_handler() local
1194 read_size = scif_rb_get_next(&qp->inbound_q, &msg->msg, in scif_loopb_msg_handler()
1196 if (read_size != sizeof(struct scifmsg)) { in scif_loopb_msg_handler()
1206 } while (read_size == sizeof(struct scifmsg)); in scif_loopb_msg_handler()
1207 return read_size; in scif_loopb_msg_handler()
/drivers/gpu/drm/amd/display/dc/core/
Ddc_link_ddc.c509 uint32_t read_size) in dal_ddc_service_query_ddc_data() argument
520 (read_size + payload_size - 1) / payload_size; in dal_ddc_service_query_ddc_data()
524 if (write_size > EDID_SEGMENT_SIZE || read_size > EDID_SEGMENT_SIZE) in dal_ddc_service_query_ddc_data()
546 .length = read_size, in dal_ddc_service_query_ddc_data()
572 payloads, address, read_size, read_buf, false); in dal_ddc_service_query_ddc_data()
/drivers/usb/serial/
Df81534.c409 size_t read_size; in f81534_read_flash() local
437 read_size = min_t(size_t, F81534_MAX_DATA_BLOCK, size); in f81534_read_flash()
439 for (count = 0; count < read_size; ++count) { in f81534_read_flash()
442 read_size == count + 1) in f81534_read_flash()
466 size -= read_size; in f81534_read_flash()
1165 size_t read_size = 0; in f81534_process_per_serial_block() local
1198 read_size = data[2]; in f81534_process_per_serial_block()
1199 if (read_size > F81534_MAX_RX_SIZE) { in f81534_process_per_serial_block()
1202 __func__, phy_num, read_size, in f81534_process_per_serial_block()
1215 for (i = 4; i < 4 + read_size; i += 2) { in f81534_process_per_serial_block()
/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_debugfs.c864 uint32_t read_size = connector->debugfs_dpcd_size; in dp_dpcd_data_read() local
866 if (size < read_size) in dp_dpcd_data_read()
869 data = kzalloc(read_size, GFP_KERNEL); in dp_dpcd_data_read()
874 connector->debugfs_dpcd_address, data, read_size); in dp_dpcd_data_read()
876 r = copy_to_user(buf, data, read_size); in dp_dpcd_data_read()
879 return read_size - r; in dp_dpcd_data_read()
/drivers/rtc/
Drtc-meson.c262 unsigned int read_offset, read_size; in meson_rtc_regmem_read() local
265 read_size = bytes / 4; in meson_rtc_regmem_read()
267 return regmap_bulk_read(rtc->serial, read_offset, buf, read_size); in meson_rtc_regmem_read()
/drivers/net/ethernet/intel/i40e/
Di40e_nvm.c441 u16 read_size; in i40e_read_nvm_buffer_aq() local
452 read_size = min(*words, in i40e_read_nvm_buffer_aq()
456 read_size = min((*words - words_read), in i40e_read_nvm_buffer_aq()
460 if ((words_read + read_size) >= *words) in i40e_read_nvm_buffer_aq()
463 ret_code = i40e_read_nvm_aq(hw, 0x0, offset, read_size, in i40e_read_nvm_buffer_aq()
471 words_read += read_size; in i40e_read_nvm_buffer_aq()
472 offset += read_size; in i40e_read_nvm_buffer_aq()
/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()
/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()
/drivers/gpu/drm/amd/display/dc/inc/
Ddc_link_ddc.h96 uint32_t read_size);
/drivers/block/
Damiflop.c180 unsigned int read_size; /* raw read size for one track */ member
705 custom.dsklen = unit[drive].type->read_size/sizeof(short) | DSKLEN_DMAEN; in raw_read()
706 custom.dsklen = unit[drive].type->read_size/sizeof(short) | DSKLEN_DMAEN; in raw_read()
845 end = raw + unit[drive].type->read_size; in amiga_read()
1160 end = raw + unit[drive].type->read_size; in dos_read()
1599 if (copy_to_user(argp, raw_buf, p->type->read_size)) in fd_locked_ioctl()
1602 return p->type->read_size; in fd_locked_ioctl()
/drivers/scsi/lpfc/
Dlpfc_bsg.h312 uint32_t read_size; member
/drivers/infiniband/sw/siw/
Diwarp.h162 __be32 read_size; member
/drivers/spi/
Dspi-sprd.c406 int ret, write_size = 0, read_size = 0; in sprd_spi_txrx_bufs() local
442 read_size += ss->read_bufs(ss, len); in sprd_spi_txrx_bufs()
450 ret = read_size; in sprd_spi_txrx_bufs()
/drivers/scsi/pm8001/
Dpm8001_ctl.c496 u32 read_size = in pm8001_ctl_iop_log_show() local
500 u32 max_count = (read_size * 1024) / (max_read_times * 4); in pm8001_ctl_iop_log_show()

12