Home
last modified time | relevance | path

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

/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()
/drivers/iio/chemical/
Dvz89x.c69 u8 read_size; member
165 return !!(data->buffer[data->chip->read_size - 1] > 0); in vz89x_measurement_is_valid()
174 for (i = 0; i < (data->chip->read_size - 1); i++) { in vz89te_measurement_is_valid()
180 return !((0xff - crc) == data->buffer[data->chip->read_size - 1]); in vz89te_measurement_is_valid()
198 msg[1].len = chip->read_size; in vz89x_i2c_xfer()
216 for (i = 0; i < data->chip->read_size; i++) { in vz89x_smbus_xfer()
337 .read_size = VZ89X_REG_MEASUREMENT_RD_SIZE,
347 .read_size = VZ89TE_REG_MEASUREMENT_RD_SIZE,
/drivers/iio/temperature/
Dmaxim_thermocouple.c92 u8 read_size; member
102 .read_size = 2,
108 .read_size = 4,
124 unsigned int storage_bytes = data->chip->read_size; in maxim_thermocouple_read()
162 ret = spi_read(data->spi, data->buffer, data->chip->read_size); in maxim_thermocouple_trigger_handler()
/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()
279 rx_size, read_size, rx_skb->len, in i2400mu_rx()
/drivers/iio/adc/
Dti-adc161s626.c78 u8 read_size; member
89 switch (data->read_size) { in ti_adc_read_measurement()
205 data->read_size = 2; in ti_adc_probe()
211 data->read_size = 3; in ti_adc_probe()
/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()
/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()
Dscif_api.c1008 int read_size; in _scif_recv() local
1028 read_size = scif_rb_get_next(&qp->inbound_q, in _scif_recv()
/drivers/usb/serial/
Df81534.c322 size_t read_size; in f81534_read_flash() local
350 read_size = min_t(size_t, F81534_MAX_DATA_BLOCK, size); in f81534_read_flash()
352 for (count = 0; count < read_size; ++count) { in f81534_read_flash()
355 read_size == count + 1) in f81534_read_flash()
379 size -= read_size; in f81534_read_flash()
946 size_t read_size = 0; in f81534_process_per_serial_block() local
979 read_size = data[2]; in f81534_process_per_serial_block()
980 if (read_size > F81534_MAX_RX_SIZE) { in f81534_process_per_serial_block()
983 __func__, phy_num, read_size, in f81534_process_per_serial_block()
996 for (i = 4; i < 4 + read_size; i += 2) { in f81534_process_per_serial_block()
/drivers/net/ethernet/intel/i40e/
Di40e_nvm.c393 u16 read_size = *words; in i40e_read_nvm_buffer_aq() local
404 read_size = min(*words, in i40e_read_nvm_buffer_aq()
408 read_size = min((*words - words_read), in i40e_read_nvm_buffer_aq()
412 if ((words_read + read_size) >= *words) in i40e_read_nvm_buffer_aq()
415 ret_code = i40e_read_nvm_aq(hw, 0x0, offset, read_size, in i40e_read_nvm_buffer_aq()
423 words_read += read_size; in i40e_read_nvm_buffer_aq()
424 offset += read_size; in i40e_read_nvm_buffer_aq()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_minidump.c773 u32 temp, dma_base_addr, size = 0, read_size = 0; in qlcnic_read_memory_pexdma() local
819 while (read_size < mem->size) { in qlcnic_read_memory_pexdma()
820 if (mem->size - read_size >= QLC_PEX_DMA_READ_SIZE) in qlcnic_read_memory_pexdma()
823 size = mem->size - read_size; in qlcnic_read_memory_pexdma()
825 dma_descr->src_addr_low = mem->addr + read_size; in qlcnic_read_memory_pexdma()
846 read_size += size; in qlcnic_read_memory_pexdma()
852 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/block/
Damiflop.c592 custom.dsklen = unit[drive].type->read_size/sizeof(short) | DSKLEN_DMAEN; in raw_read()
593 custom.dsklen = unit[drive].type->read_size/sizeof(short) | DSKLEN_DMAEN; in raw_read()
728 end = raw + unit[drive].type->read_size; in amiga_read()
1043 end = raw + unit[drive].type->read_size; in dos_read()
1527 if (copy_to_user(argp, raw_buf, p->type->read_size)) in fd_locked_ioctl()
1530 return p->type->read_size; in fd_locked_ioctl()
/drivers/staging/media/atomisp/i2c/ov5693/
Dov5693.c836 u32 read_size = priv->size; in ov5693_g_priv_int_data() local
840 if (!read_size) in ov5693_g_priv_int_data()
849 if (read_size > OV5693_OTP_DATA_SIZE) in ov5693_g_priv_int_data()
850 read_size = OV5693_OTP_DATA_SIZE; in ov5693_g_priv_int_data()
852 ret = copy_to_user(to, dev->otp_data, read_size); in ov5693_g_priv_int_data()
859 pr_debug("%s read_size:%d\n", __func__, read_size); in ov5693_g_priv_int_data()
/drivers/staging/media/atomisp/i2c/imx/
Dimx.c517 u32 read_size = priv->size; in imx_g_priv_int_data() local
521 if (!read_size) in imx_g_priv_int_data()
529 if (read_size > dev->otp_driver->size) in imx_g_priv_int_data()
530 read_size = dev->otp_driver->size; in imx_g_priv_int_data()
532 ret = copy_to_user(to, dev->otp_data, read_size); in imx_g_priv_int_data()
/drivers/scsi/qla2xxx/
Dqla_nx2.c2917 uint32_t chunk_size, read_size; in qla8044_minidump_pex_dma_read() local
2954 read_size = 0; in qla8044_minidump_pex_dma_read()
2960 while (read_size < m_hdr->read_data_size) { in qla8044_minidump_pex_dma_read()
2961 if (m_hdr->read_data_size - read_size < in qla8044_minidump_pex_dma_read()
2963 chunk_size = (m_hdr->read_data_size - read_size); in qla8044_minidump_pex_dma_read()
2967 dma_desc.src_addr = m_hdr->read_addr + read_size; in qla8044_minidump_pex_dma_read()
2990 read_size += chunk_size; in qla8044_minidump_pex_dma_read()
/drivers/scsi/qla4xxx/
Dql4_nx.c2033 uint32_t size, read_size; in qla4_8xxx_minidump_pex_dma_read() local
2071 read_size = 0; in qla4_8xxx_minidump_pex_dma_read()
2076 while (read_size < m_hdr->read_data_size) { in qla4_8xxx_minidump_pex_dma_read()
2077 if (m_hdr->read_data_size - read_size >= in qla4_8xxx_minidump_pex_dma_read()
2081 size = (m_hdr->read_data_size - read_size); in qla4_8xxx_minidump_pex_dma_read()
2100 dma_desc.src_addr = m_hdr->read_addr + read_size; in qla4_8xxx_minidump_pex_dma_read()
2129 read_size += size; in qla4_8xxx_minidump_pex_dma_read()
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum.c2635 unsigned int read_size; in mlxsw_sp_get_module_info() local
2640 module_info, &read_size); in mlxsw_sp_get_module_info()
2644 if (read_size < MLXSW_SP_EEPROM_MODULE_INFO_SIZE) in mlxsw_sp_get_module_info()
2683 unsigned int read_size; in mlxsw_sp_get_module_eeprom() local
2695 &read_size); in mlxsw_sp_get_module_eeprom()
2701 i += read_size; in mlxsw_sp_get_module_eeprom()
2702 offset += read_size; in mlxsw_sp_get_module_eeprom()
/drivers/android/
Dbinder.c2247 size_t read_size; in binder_get_object() local
2251 read_size = min_t(size_t, sizeof(*object), buffer->data_size - offset); in binder_get_object()
2252 if (offset > buffer->data_size || read_size < sizeof(*hdr) || in binder_get_object()
2256 offset, read_size); in binder_get_object()
4841 (u64)bwr.read_size, (u64)bwr.read_buffer); in binder_ioctl_write_read()
4856 if (bwr.read_size > 0) { in binder_ioctl_write_read()
4858 bwr.read_size, in binder_ioctl_write_read()
4876 (u64)bwr.read_consumed, (u64)bwr.read_size); in binder_ioctl_write_read()