Home
last modified time | relevance | path

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

123

/linux-6.1.9/drivers/sbus/char/
Dflash.c28 unsigned long read_size; /* Size of read area */ member
42 size = flash.read_size; in flash_mmap()
51 size = flash.read_size; in flash_mmap()
87 if (file->f_pos > flash.read_size) in flash_llseek()
88 file->f_pos = flash.read_size; in flash_llseek()
91 file->f_pos = flash.read_size; in flash_llseek()
108 if (count > flash.read_size - p) in flash_read()
109 count = flash.read_size - p; in flash_read()
172 flash.read_size = resource_size(&op->resource[0]); in flash_probe()
184 flash.read_base, flash.read_size, in flash_probe()
/linux-6.1.9/drivers/iio/chemical/
Dvz89x.c59 u8 read_size; member
155 return !!(data->buffer[data->chip->read_size - 1] > 0); in vz89x_measurement_is_valid()
164 for (i = 0; i < (data->chip->read_size - 1); i++) { in vz89te_measurement_is_valid()
170 return !((0xff - crc) == data->buffer[data->chip->read_size - 1]); in vz89te_measurement_is_valid()
188 msg[1].len = chip->read_size; in vz89x_i2c_xfer()
206 for (i = 0; i < data->chip->read_size; i++) { in vz89x_smbus_xfer()
326 .read_size = VZ89X_REG_MEASUREMENT_RD_SIZE,
336 .read_size = VZ89TE_REG_MEASUREMENT_RD_SIZE,
/linux-6.1.9/drivers/nvdimm/
Dlabel.c436 size_t config_size, read_size, max_xfer, offset; in nd_label_data_init() local
462 read_size = sizeof_namespace_index(ndd) * 2; in nd_label_data_init()
463 if (!read_size) in nd_label_data_init()
480 if (read_size < max_xfer) { in nd_label_data_init()
485 if (max_xfer < read_size) in nd_label_data_init()
486 max_xfer = read_size; in nd_label_data_init()
490 read_size = min(DIV_ROUND_UP(read_size, max_xfer) * max_xfer, in nd_label_data_init()
494 rc = nvdimm_get_config_data(ndd, ndd->data, 0, read_size); in nd_label_data_init()
525 if (offset + ndd->nslabel_size <= read_size) in nd_label_data_init()
529 if (read_size < offset) in nd_label_data_init()
[all …]
/linux-6.1.9/tools/testing/selftests/net/
Drxtimestamp.c175 bool do_recv(int rcv, int read_size, struct tstamps expected) in do_recv() argument
192 recv_iov.iov_base = malloc(read_size); in do_recv()
193 recv_iov.iov_len = read_size; in do_recv()
201 if (r != read_size) in do_recv()
285 int read_size = op_size; in run_test_case() local
298 read_size += 20; /* for IPv4 header */ in run_test_case()
338 failed = do_recv(rcv, read_size, test_cases[test_num].expected); in run_test_case()
/linux-6.1.9/drivers/iio/temperature/
Dmaxim_thermocouple.c99 u8 read_size; member
109 .read_size = 2,
115 .read_size = 4,
132 unsigned int storage_bytes = data->chip->read_size; in maxim_thermocouple_read()
170 ret = spi_read(data->spi, data->buffer, data->chip->read_size); in maxim_thermocouple_trigger_handler()
Dmax31865.c62 unsigned int read_size) in max31865_read() argument
64 return spi_write_then_read(data->spi, &reg, 1, data->buf, read_size); in max31865_read()
Dmax31856.c88 u8 val[], unsigned int read_size) in max31856_read() argument
90 return spi_write_then_read(data->spi, &reg, 1, val, read_size); in max31856_read()
/linux-6.1.9/drivers/iio/adc/
Dti-adc161s626.c71 u8 read_size; member
82 switch (data->read_size) { in ti_adc_read_measurement()
199 data->read_size = 2; in ti_adc_probe()
205 data->read_size = 3; in ti_adc_probe()
/linux-6.1.9/arch/powerpc/platforms/pseries/
Ddtl.c263 long int rc, n_read, n_req, read_size; in dtl_file_read() local
301 read_size = dtl->buf_entries - i; in dtl_file_read()
304 read_size * sizeof(struct dtl_entry)); in dtl_file_read()
309 n_req -= read_size; in dtl_file_read()
310 n_read += read_size; in dtl_file_read()
311 buf += read_size * sizeof(struct dtl_entry); in dtl_file_read()
/linux-6.1.9/tools/iio/
Diio_generic_buffer.c348 ssize_t read_size; in main() local
690 read_size = read(fd, data, 1); in main()
691 if (read_size > -1 || errno != EBUSY) { in main()
724 read_size = read(buf_fd, data, toread * scan_size); in main()
725 if (read_size < 0) { in main()
733 for (i = 0; i < read_size / scan_size; i++) in main()
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/core/
Ddc_link_ddc.c528 uint32_t read_size) in dal_ddc_service_query_ddc_data() argument
539 (read_size + payload_size - 1) / payload_size; in dal_ddc_service_query_ddc_data()
560 payload.mot = !(read_size == 0); in dal_ddc_service_query_ddc_data()
567 if (read_size != 0 && success) { in dal_ddc_service_query_ddc_data()
573 payload.length = read_size; in dal_ddc_service_query_ddc_data()
594 &payloads, address, read_size, read_buf, false); in dal_ddc_service_query_ddc_data()
/linux-6.1.9/sound/soc/mediatek/common/
Dmtk-btcvsd.c702 ssize_t read_size = 0, read_count = 0, cur_read_idx, cont; in mtk_btcvsd_snd_read() local
737 read_size = avail; in mtk_btcvsd_snd_read()
739 read_size = count; in mtk_btcvsd_snd_read()
743 if (read_size > cont) in mtk_btcvsd_snd_read()
744 read_size = cont; in mtk_btcvsd_snd_read()
748 read_size)) { in mtk_btcvsd_snd_read()
755 bt->rx->packet_r += read_size / packet_size; in mtk_btcvsd_snd_read()
758 read_count += read_size; in mtk_btcvsd_snd_read()
759 cur_buf_ofs += read_size; in mtk_btcvsd_snd_read()
760 count -= read_size; in mtk_btcvsd_snd_read()
/linux-6.1.9/drivers/usb/serial/
Df81534.c407 size_t read_size; in f81534_read_flash() local
435 read_size = min_t(size_t, F81534_MAX_DATA_BLOCK, size); in f81534_read_flash()
437 for (count = 0; count < read_size; ++count) { in f81534_read_flash()
440 read_size == count + 1) in f81534_read_flash()
464 size -= read_size; in f81534_read_flash()
1146 size_t read_size = 0; in f81534_process_per_serial_block() local
1179 read_size = data[2]; in f81534_process_per_serial_block()
1180 if (read_size > F81534_MAX_RX_SIZE) { in f81534_process_per_serial_block()
1183 __func__, phy_num, read_size, in f81534_process_per_serial_block()
1196 for (i = 4; i < 4 + read_size; i += 2) { in f81534_process_per_serial_block()
/linux-6.1.9/sound/usb/usx2y/
Dus122l.c117 if (offset < PAGE_ALIGN(s->read_size)) { in usb_stream_hwdep_vm_fault()
120 offset -= PAGE_ALIGN(s->read_size); in usb_stream_hwdep_vm_fault()
211 read = offset < s->read_size; in usb_stream_hwdep_mmap()
217 read ? s->read_size : s->write_size); in usb_stream_hwdep_mmap()
219 if (size > PAGE_ALIGN(read ? s->read_size : s->write_size)) { in usb_stream_hwdep_mmap()
221 read ? s->read_size : s->write_size); in usb_stream_hwdep_mmap()
Dusb_stream.c151 free_pages_exact(s, s->read_size); in usb_stream_free()
166 int read_size = sizeof(struct usb_stream); in usb_stream_new() local
187 read_size += packets * USB_STREAM_URBDEPTH * in usb_stream_new()
193 if (read_size >= 256*PAGE_SIZE || write_size >= 256*PAGE_SIZE) { in usb_stream_new()
198 sk->s = alloc_pages_exact(read_size, in usb_stream_new()
206 sk->s->read_size = read_size; in usb_stream_new()
/linux-6.1.9/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()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dcore_env.c299 unsigned int read_size; in mlxsw_env_get_module_info() local
316 &read_size); in mlxsw_env_get_module_info()
320 if (read_size < offset) in mlxsw_env_get_module_info()
348 &read_size); in mlxsw_env_get_module_info()
352 if (read_size < 1) in mlxsw_env_get_module_info()
393 unsigned int read_size; in mlxsw_env_get_module_eeprom() local
417 qsfp, &read_size); in mlxsw_env_get_module_eeprom()
423 i += read_size; in mlxsw_env_get_module_eeprom()
424 offset += read_size; in mlxsw_env_get_module_eeprom()
/linux-6.1.9/include/uapi/sound/
Dusb_stream.h29 unsigned read_size; member
/linux-6.1.9/drivers/mfd/
Dmt6360-core.c409 int read_size = val_size; in mt6360_regmap_read() local
423 read_size += MT6360_CRC_CRC8_SIZE; in mt6360_regmap_read()
433 ret = i2c_smbus_read_i2c_block_data(i2c, reg_addr, read_size, in mt6360_regmap_read()
437 else if (ret != read_size) { in mt6360_regmap_read()
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_nvm.c83 u32 read_size, sector_offset; in ice_read_flat_nvm() local
91 read_size = min_t(u32, ICE_AQ_MAX_BUF_LEN - sector_offset, in ice_read_flat_nvm()
94 last_cmd = !(bytes_read + read_size < inlen); in ice_read_flat_nvm()
97 offset, read_size, in ice_read_flat_nvm()
103 bytes_read += read_size; in ice_read_flat_nvm()
104 offset += read_size; in ice_read_flat_nvm()
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/falcon/
Dmsgq.c99 u32 read_size = hdr->size - HDR_SIZE; in nvkm_falcon_msgq_read() local
101 ret = nvkm_falcon_msgq_pop(msgq, (hdr + 1), read_size); in nvkm_falcon_msgq_read()
/linux-6.1.9/drivers/scsi/lpfc/
Dlpfc_bsg.h315 uint32_t read_size; member
380 uint32_t read_size; member
/linux-6.1.9/drivers/net/ethernet/intel/i40e/
Di40e_nvm.c444 u16 read_size; in i40e_read_nvm_buffer_aq() local
455 read_size = min(*words, in i40e_read_nvm_buffer_aq()
459 read_size = min((*words - words_read), in i40e_read_nvm_buffer_aq()
463 if ((words_read + read_size) >= *words) in i40e_read_nvm_buffer_aq()
466 ret_code = i40e_read_nvm_aq(hw, 0x0, offset, read_size, in i40e_read_nvm_buffer_aq()
474 words_read += read_size; in i40e_read_nvm_buffer_aq()
475 offset += read_size; in i40e_read_nvm_buffer_aq()
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/inc/
Ddc_link_ddc.h98 uint32_t read_size);
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/diag/
Drsc_dump.c59 int read_size, int start_idx) in mlx5_rsc_dump_read_menu_sgmt() argument
81 if (size >= read_size) in mlx5_rsc_dump_read_menu_sgmt()

123