Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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,
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
Ddtl.c253 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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/iio/temperature/
Dmaxim_thermocouple.c100 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()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dcore_env.c201 unsigned int read_size; in mlxsw_env_get_module_info() local
205 module_info, false, &read_size); in mlxsw_env_get_module_info()
209 if (read_size < offset) in mlxsw_env_get_module_info()
236 false, &read_size); in mlxsw_env_get_module_info()
240 if (read_size < 1) in mlxsw_env_get_module_info()
278 unsigned int read_size; in mlxsw_env_get_module_eeprom() local
295 qsfp, &read_size); in mlxsw_env_get_module_eeprom()
301 i += read_size; in mlxsw_env_get_module_eeprom()
302 offset += read_size; in mlxsw_env_get_module_eeprom()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/iio/adc/
Dti-adc161s626.c71 u8 read_size; member
82 switch (data->read_size) { in ti_adc_read_measurement()
195 data->read_size = 2; in ti_adc_probe()
201 data->read_size = 3; in ti_adc_probe()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/core/
Ddc_link_ddc.c496 uint32_t read_size) in dal_ddc_service_query_ddc_data() argument
507 (read_size + payload_size - 1) / payload_size; in dal_ddc_service_query_ddc_data()
512 if (write_size > EDID_SEGMENT_SIZE || read_size > EDID_SEGMENT_SIZE) in dal_ddc_service_query_ddc_data()
533 payload.mot = read_size == 0 ? false : true; in dal_ddc_service_query_ddc_data()
540 if (read_size != 0 && success) { in dal_ddc_service_query_ddc_data()
546 payload.length = read_size; in dal_ddc_service_query_ddc_data()
567 &payloads, address, read_size, read_buf, false); in dal_ddc_service_query_ddc_data()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_nvm.c82 u32 read_size, sector_offset; in ice_read_flat_nvm() local
90 read_size = min_t(u32, ICE_AQ_MAX_BUF_LEN - sector_offset, in ice_read_flat_nvm()
93 last_cmd = !(bytes_read + read_size < inlen); in ice_read_flat_nvm()
96 offset, read_size, in ice_read_flat_nvm()
102 bytes_read += read_size; in ice_read_flat_nvm()
103 offset += read_size; in ice_read_flat_nvm()
/kernel/linux/linux-5.10/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()
1167 size_t read_size = 0; in f81534_process_per_serial_block() local
1200 read_size = data[2]; in f81534_process_per_serial_block()
1201 if (read_size > F81534_MAX_RX_SIZE) { in f81534_process_per_serial_block()
1204 __func__, phy_num, read_size, in f81534_process_per_serial_block()
1217 for (i = 4; i < 4 + read_size; i += 2) { in f81534_process_per_serial_block()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/sound/usb/usx2y/
Dus122l.c116 if (offset < PAGE_ALIGN(s->read_size)) in usb_stream_hwdep_vm_fault()
119 offset -= PAGE_ALIGN(s->read_size); in usb_stream_hwdep_vm_fault()
208 read = offset < s->read_size; in usb_stream_hwdep_mmap()
214 read ? s->read_size : s->write_size); in usb_stream_hwdep_mmap()
216 if (size > PAGE_ALIGN(read ? s->read_size : s->write_size)) { in usb_stream_hwdep_mmap()
218 read ? s->read_size : s->write_size); in usb_stream_hwdep_mmap()
Dusb_stream.c150 free_pages_exact(s, s->read_size); in usb_stream_free()
162 int read_size = sizeof(struct usb_stream); in usb_stream_new() local
183 read_size += packets * USB_STREAM_URBDEPTH * in usb_stream_new()
189 if (read_size >= 256*PAGE_SIZE || write_size >= 256*PAGE_SIZE) { in usb_stream_new()
194 sk->s = alloc_pages_exact(read_size, in usb_stream_new()
202 sk->s->read_size = read_size; in usb_stream_new()
/kernel/linux/linux-5.10/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()
/kernel/linux/common_modules/xpm/validator/
Delf_code_segment_info.c31 static int read_elf_info(struct file *file, void *buffer, size_t read_size, loff_t pos) in read_elf_info() argument
35 len = kernel_read(file, buffer, read_size, &pos); in read_elf_info()
36 if (unlikely(len != read_size)) in read_elf_info()
/kernel/linux/linux-5.10/tools/iio/
Diio_generic_buffer.c343 ssize_t read_size; in main() local
657 read_size = read(fp, data, toread * scan_size); in main()
658 if (read_size < 0) { in main()
666 for (i = 0; i < read_size / scan_size; i++) in main()
/kernel/linux/linux-5.10/include/uapi/sound/
Dusb_stream.h43 unsigned read_size; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/sound/
Dusb_stream.h35 unsigned read_size; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/sound/
Dusb_stream.h23 unsigned read_size; member
/kernel/linux/linux-5.10/mm/
Dzswapd.c86 u64 read_size = 0; in swapin_memcg() local
94 read_size += gsdev->ops->group_read(memcg->id.id, req_size - read_size, in swapin_memcg()
96 if (read_size >= req_size) in swapin_memcg()
101 return read_size; in swapin_memcg()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/block/zram/zram_group/
Dgroup_writeback.c444 u64 read_size = 0; in read_group_objs() local
456 while (!req_size || req_size > read_size) { in read_group_objs()
460 read_size += read_one_extent(zram, eid, gid); in read_group_objs()
463 return read_size; in read_group_objs()
632 return atomic64_read(&zram->zgrp->stats[gid].read_size); in group_obj_stats()

123