/linux/drivers/sbus/char/ |
A D | flash.c | 28 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/drivers/iio/chemical/ |
A D | vz89x.c | 59 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/arch/powerpc/platforms/pseries/ |
A D | dtl.c | 253 long int rc, n_read, n_req, read_size; in dtl_file_read() local 291 read_size = dtl->buf_entries - i; in dtl_file_read() 294 read_size * sizeof(struct dtl_entry)); in dtl_file_read() 299 n_req -= read_size; in dtl_file_read() 300 n_read += read_size; in dtl_file_read() 301 buf += read_size * sizeof(struct dtl_entry); in dtl_file_read()
|
/linux/tools/testing/selftests/net/ |
A D | rxtimestamp.c | 175 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/drivers/iio/temperature/ |
A D | maxim_thermocouple.c | 100 u8 read_size; member 110 .read_size = 2, 116 .read_size = 4, 133 unsigned int storage_bytes = data->chip->read_size; in maxim_thermocouple_read() 171 ret = spi_read(data->spi, data->buffer, data->chip->read_size); in maxim_thermocouple_trigger_handler()
|
A D | max31865.c | 60 unsigned int read_size) in max31865_read() argument 62 return spi_write_then_read(data->spi, ®, 1, data->buf, read_size); in max31865_read()
|
/linux/drivers/nvdimm/ |
A D | label.c | 466 read_size = sizeof_namespace_index(ndd) * 2; in nd_label_data_init() 467 if (!read_size) in nd_label_data_init() 484 if (read_size < max_xfer) { in nd_label_data_init() 489 if (max_xfer < read_size) in nd_label_data_init() 490 max_xfer = read_size; in nd_label_data_init() 494 read_size = min(DIV_ROUND_UP(read_size, max_xfer) * max_xfer, in nd_label_data_init() 533 if (read_size < offset) in nd_label_data_init() 534 read_size = offset; in nd_label_data_init() 543 label_read_size = config_size - read_size; in nd_label_data_init() 547 read_size, label_read_size); in nd_label_data_init() [all …]
|
/linux/drivers/iio/adc/ |
A D | ti-adc161s626.c | 71 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/drivers/gpu/drm/amd/display/dc/core/ |
A D | dc_link_ddc.c | 526 uint32_t read_size) in dal_ddc_service_query_ddc_data() argument 537 (read_size + payload_size - 1) / payload_size; in dal_ddc_service_query_ddc_data() 542 if (write_size > EDID_SEGMENT_SIZE || read_size > EDID_SEGMENT_SIZE) in dal_ddc_service_query_ddc_data() 564 payload.mot = !(read_size == 0); in dal_ddc_service_query_ddc_data() 571 if (read_size != 0 && success) { in dal_ddc_service_query_ddc_data() 577 payload.length = read_size; in dal_ddc_service_query_ddc_data() 598 &payloads, address, read_size, read_buf, false); in dal_ddc_service_query_ddc_data()
|
/linux/tools/iio/ |
A D | iio_generic_buffer.c | 348 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/drivers/net/ethernet/mellanox/mlxsw/ |
A D | core_env.c | 215 unsigned int read_size; in mlxsw_env_get_module_info() local 219 module_info, false, &read_size); in mlxsw_env_get_module_info() 223 if (read_size < offset) in mlxsw_env_get_module_info() 250 false, &read_size); in mlxsw_env_get_module_info() 254 if (read_size < 1) in mlxsw_env_get_module_info() 292 unsigned int read_size; in mlxsw_env_get_module_eeprom() local 309 qsfp, &read_size); in mlxsw_env_get_module_eeprom() 315 i += read_size; in mlxsw_env_get_module_eeprom() 316 offset += read_size; in mlxsw_env_get_module_eeprom()
|
/linux/drivers/usb/serial/ |
A D | f81534.c | 407 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() 1158 size_t read_size = 0; in f81534_process_per_serial_block() local 1191 read_size = data[2]; in f81534_process_per_serial_block() 1192 if (read_size > F81534_MAX_RX_SIZE) { in f81534_process_per_serial_block() 1195 __func__, phy_num, read_size, in f81534_process_per_serial_block() 1208 for (i = 4; i < 4 + read_size; i += 2) { in f81534_process_per_serial_block()
|
/linux/sound/soc/mediatek/common/ |
A D | mtk-btcvsd.c | 702 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/sound/usb/usx2y/ |
A D | us122l.c | 117 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()
|
A D | usb_stream.c | 151 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/drivers/rtc/ |
A D | rtc-meson.c | 262 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/drivers/mfd/ |
A D | mt6360-core.c | 409 int read_size = val_size; in mt6360_regmap_read() local 418 read_size += MT6360_CRC_CRC8_SIZE; in mt6360_regmap_read() 428 ret = i2c_smbus_read_i2c_block_data(i2c, reg_addr, read_size, in mt6360_regmap_read() 432 else if (ret != read_size) { in mt6360_regmap_read()
|
/linux/drivers/net/ethernet/intel/ice/ |
A D | ice_nvm.c | 81 u32 read_size, sector_offset; in ice_read_flat_nvm() local 89 read_size = min_t(u32, ICE_AQ_MAX_BUF_LEN - sector_offset, in ice_read_flat_nvm() 92 last_cmd = !(bytes_read + read_size < inlen); in ice_read_flat_nvm() 95 offset, read_size, in ice_read_flat_nvm() 101 bytes_read += read_size; in ice_read_flat_nvm() 102 offset += read_size; in ice_read_flat_nvm()
|
/linux/drivers/gpu/drm/nouveau/nvkm/falcon/ |
A D | msgq.c | 99 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/include/uapi/sound/ |
A D | usb_stream.h | 43 unsigned read_size; member
|
/linux/drivers/net/ethernet/intel/i40e/ |
A D | i40e_nvm.c | 444 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/drivers/scsi/lpfc/ |
A D | lpfc_bsg.h | 327 uint32_t read_size; member 392 uint32_t read_size; member
|
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
A D | amdgpu_dm_debugfs.c | 410 uint32_t read_size = 1; in dp_lttpr_status_show() local 413 data = kzalloc(read_size, GFP_KERNEL); in dp_lttpr_status_show() 417 dm_helpers_dp_read_dpcd(link->ctx, link, 0xF0002, data, read_size); in dp_lttpr_status_show() 454 dm_helpers_dp_read_dpcd(link->ctx, link, 0xF0003, data, read_size); in dp_lttpr_status_show() 1091 uint32_t read_size = connector->debugfs_dpcd_size; in dp_dpcd_data_read() local 1093 if (!read_size || size < read_size) in dp_dpcd_data_read() 1096 data = kzalloc(read_size, GFP_KERNEL); in dp_dpcd_data_read() 1101 connector->debugfs_dpcd_address, data, read_size); in dp_dpcd_data_read() 1103 r = copy_to_user(buf, data, read_size); in dp_dpcd_data_read() 1106 return read_size - r; in dp_dpcd_data_read()
|
/linux/drivers/block/ |
A D | amiflop.c | 180 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()
|
/linux/drivers/net/ethernet/qlogic/qlcnic/ |
A D | qlcnic_minidump.c | 772 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()
|