Home
last modified time | relevance | path

Searched refs:read_len (Results 1 – 25 of 38) sorted by relevance

12

/Linux-v5.4/drivers/iio/imu/st_lsm6dsx/
Dst_lsm6dsx_buffer.c314 unsigned int word_len, read_len = 0; in st_lsm6dsx_read_block() local
317 while (read_len < data_len) { in st_lsm6dsx_read_block()
318 word_len = min_t(unsigned int, data_len - read_len, in st_lsm6dsx_read_block()
320 err = st_lsm6dsx_read_locked(hw, addr, data + read_len, in st_lsm6dsx_read_block()
324 read_len += word_len; in st_lsm6dsx_read_block()
343 int err, acc_sip, gyro_sip, ts_sip, read_len, offset; in st_lsm6dsx_read_fifo() local
370 for (read_len = 0; read_len < fifo_len; read_len += pattern_len) { in st_lsm6dsx_read_fifo()
456 return read_len; in st_lsm6dsx_read_fifo()
522 int i, err, read_len; in st_lsm6dsx_read_tagged_fifo() local
541 for (read_len = 0; read_len < fifo_len; read_len += pattern_len) { in st_lsm6dsx_read_tagged_fifo()
[all …]
/Linux-v5.4/drivers/net/wireless/st/cw1200/
Dbh.c241 size_t read_len = 0; in cw1200_bh_rx_helper() local
252 read_len = (*ctrl_reg & ST90TDS_CONT_NEXT_LEN_MASK) * 2; in cw1200_bh_rx_helper()
253 if (!read_len) in cw1200_bh_rx_helper()
256 if (WARN_ON((read_len < sizeof(struct wsm_hdr)) || in cw1200_bh_rx_helper()
257 (read_len > EFFECTIVE_BUF_SIZE))) { in cw1200_bh_rx_helper()
259 read_len, *ctrl_reg); in cw1200_bh_rx_helper()
266 read_len = read_len + 2; in cw1200_bh_rx_helper()
269 priv->hwbus_priv, read_len); in cw1200_bh_rx_helper()
282 skb_put(skb_rx, read_len); in cw1200_bh_rx_helper()
298 if (WARN_ON(wsm_len > read_len)) in cw1200_bh_rx_helper()
/Linux-v5.4/drivers/i2c/busses/
Di2c-pmcmsp.c105 u8 read_len; /* Number of bytes in the read buffer */ member
435 ((cmd->read_len - 1) & 0x7); in pmcmsptwi_cmd_to_reg()
471 u64 rmsk = ~(0xffffffffffffffffLL << (cmd->read_len * 8)); in pmcmsptwi_xfer_cmd()
474 if (cmd->read_len > 4) in pmcmsptwi_xfer_cmd()
480 for (i = 0; i < cmd->read_len; i++) in pmcmsptwi_xfer_cmd()
509 cmd.read_len = nextmsg->len; in pmcmsptwi_master_xfer()
513 cmd.read_len = msg->len; in pmcmsptwi_master_xfer()
519 cmd.read_len = 0; in pmcmsptwi_master_xfer()
/Linux-v5.4/drivers/fsi/
Dfsi-core.c552 size_t total_len, read_len; in fsi_slave_sysfs_raw_read() local
561 for (total_len = 0; total_len < count; total_len += read_len) { in fsi_slave_sysfs_raw_read()
562 read_len = min_t(size_t, count, 4); in fsi_slave_sysfs_raw_read()
563 read_len -= off & 0x3; in fsi_slave_sysfs_raw_read()
565 rc = fsi_slave_read(slave, off, buf + total_len, read_len); in fsi_slave_sysfs_raw_read()
569 off += read_len; in fsi_slave_sysfs_raw_read()
669 size_t total_len, read_len; in cfam_read() local
679 for (total_len = 0; total_len < count; total_len += read_len) { in cfam_read()
682 read_len = min_t(size_t, count, 4); in cfam_read()
683 read_len -= off & 0x3; in cfam_read()
[all …]
/Linux-v5.4/drivers/iio/adc/
Dbcm_iproc_adc.c228 int read_len = 0; in iproc_adc_do_read() local
309 read_len = -EIO; in iproc_adc_do_read()
320 read_len = sizeof(*p_adc_data); in iproc_adc_do_read()
329 read_len = -ETIMEDOUT; in iproc_adc_do_read()
334 return read_len; in iproc_adc_do_read()
349 return read_len; in iproc_adc_do_read()
Dmeson_saradc.c707 size_t read_len; in meson_sar_adc_temp_sensor_init() local
738 read_len = MESON_SAR_ADC_EFUSE_BYTES; in meson_sar_adc_temp_sensor_init()
739 buf = nvmem_cell_read(temperature_calib, &read_len); in meson_sar_adc_temp_sensor_init()
744 } else if (read_len != MESON_SAR_ADC_EFUSE_BYTES) { in meson_sar_adc_temp_sensor_init()
/Linux-v5.4/drivers/input/mouse/
Dcyapa_gen6.c561 u16 read_offset, u16 read_len, u8 data_id, in cyapa_pip_retrieve_data_structure() argument
580 put_unaligned_le16(read_len, &cmd.read_length); in cyapa_pip_retrieve_data_structure()
594 read_len = get_unaligned_le16(&resp_data[7]); in cyapa_pip_retrieve_data_structure()
595 if (*data_buf_lens < read_len) { in cyapa_pip_retrieve_data_structure()
596 *data_buf_lens = read_len; in cyapa_pip_retrieve_data_structure()
600 memcpy(data, &resp_data[10], read_len); in cyapa_pip_retrieve_data_structure()
601 *data_buf_lens = read_len; in cyapa_pip_retrieve_data_structure()
Dcyapa_gen5.c1940 int read_len; in cyapa_gen5_read_idac_data() local
2016 read_len = read_elements * (*data_size); in cyapa_gen5_read_idac_data()
2019 put_unaligned_le16(read_len, &cmd_head->parameter_data[2]); in cyapa_gen5_read_idac_data()
2021 resp_len = GEN5_RESP_DATA_STRUCTURE_OFFSET + read_len; in cyapa_gen5_read_idac_data()
2032 read_len = get_unaligned_le16(&resp_data[7]); in cyapa_gen5_read_idac_data()
2033 if (read_len == 0) in cyapa_gen5_read_idac_data()
2037 if (read_len < *data_size) in cyapa_gen5_read_idac_data()
2057 offset += read_len; in cyapa_gen5_read_idac_data()
2058 for (i = 10; i < (read_len + GEN5_RESP_DATA_STRUCTURE_OFFSET); in cyapa_gen5_read_idac_data()
2216 int read_len; in cyapa_gen5_read_panel_scan_raw_data() local
[all …]
/Linux-v5.4/drivers/media/usb/dvb-usb/
Dttusb2.c120 …0_ci_msg(struct dvb_usb_device *d, u8 cmd, u8 *data, unsigned int write_len, unsigned int read_len) in tt3650_ci_msg() argument
124 ret = ttusb2_msg(d, cmd, data, write_len, rx, read_len); in tt3650_ci_msg()
126 memcpy(data, rx, read_len); in tt3650_ci_msg()
130 …_locked(struct dvb_ca_en50221 *ca, u8 cmd, u8 *data, unsigned int write_len, unsigned int read_len) in tt3650_ci_msg_locked() argument
137 ret = tt3650_ci_msg(d, cmd, data, write_len, read_len); in tt3650_ci_msg_locked()
Dpctv452e.c99 unsigned int write_len, unsigned int read_len) in tt3650_ci_msg() argument
107 if (!data || (write_len > 64 - 4) || (read_len > 64 - 4)) { in tt3650_ci_msg()
125 rlen = (read_len > 0) ? 64 : 0; in tt3650_ci_msg()
135 memcpy(data, buf + 4, read_len); in tt3650_ci_msg()
150 unsigned int read_len) in tt3650_ci_msg_locked() argument
157 ret = tt3650_ci_msg(d, cmd, data, write_len, read_len); in tt3650_ci_msg_locked()
/Linux-v5.4/drivers/target/
Dtarget_core_user.c739 bool bidi, uint32_t read_len) in gather_data_area() argument
772 while (sg_remaining > 0 && read_len > 0) { in gather_data_area()
784 if (read_len < copy_bytes) in gather_data_area()
785 copy_bytes = read_len; in gather_data_area()
793 read_len -= copy_bytes; in gather_data_area()
796 if (read_len == 0) in gather_data_area()
1135 uint32_t read_len; in tcmu_handle_completion() local
1157 read_len = se_cmd->data_length; in tcmu_handle_completion()
1159 (entry->hdr.uflags & TCMU_UFLAG_READ_LEN) && entry->rsp.read_len) { in tcmu_handle_completion()
1161 if (entry->rsp.read_len < read_len) in tcmu_handle_completion()
[all …]
/Linux-v5.4/include/uapi/linux/
Dtarget_core_user.h124 __u32 read_len; member
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_nsp.c1065 unsigned int len, unsigned int *read_len) in nfp_nsp_read_module_eeprom() argument
1093 *read_len = min_t(unsigned int, len, le16_to_cpu(buf->readlen)); in nfp_nsp_read_module_eeprom()
1094 if (*read_len) in nfp_nsp_read_module_eeprom()
1095 memcpy(data, buf->data, *read_len); in nfp_nsp_read_module_eeprom()
1097 if (!ret && *read_len < len) in nfp_nsp_read_module_eeprom()
Dnfp_nsp.h31 unsigned int len, unsigned int *read_len);
/Linux-v5.4/drivers/mtd/spi-nor/
Dcadence-quadspi.c366 unsigned int read_len; in cqspi_command_read() local
392 read_len = (n_rx > 4) ? 4 : n_rx; in cqspi_command_read()
393 memcpy(rxbuf, &reg, read_len); in cqspi_command_read()
394 rxbuf += read_len; in cqspi_command_read()
399 read_len = n_rx - read_len; in cqspi_command_read()
400 memcpy(rxbuf, &reg, read_len); in cqspi_command_read()
/Linux-v5.4/fs/
Dsplice.c948 size_t read_len; in splice_direct_to_actor() local
952 read_len = min_t(size_t, len, in splice_direct_to_actor()
954 ret = do_splice_to(in, &pos, pipe, read_len, flags); in splice_direct_to_actor()
958 read_len = ret; in splice_direct_to_actor()
959 sd->total_len = read_len; in splice_direct_to_actor()
966 if (read_len < len) in splice_direct_to_actor()
985 if (ret < read_len) { in splice_direct_to_actor()
/Linux-v5.4/drivers/gpu/drm/sun4i/
Dsun4i_hdmi_i2c.c40 int read_len = RX_THRESHOLD + in fifo_transfer() local
47 len = min_t(int, len, read ? read_len : SUN4I_HDMI_DDC_FIFO_SIZE); in fifo_transfer()
/Linux-v5.4/arch/powerpc/mm/
Dnuma.c1599 int read_len; in topology_write() local
1601 read_len = count < 3 ? count : 3; in topology_write()
1602 if (copy_from_user(kbuf, buf, read_len)) in topology_write()
1605 kbuf[read_len] = '\0'; in topology_write()
/Linux-v5.4/drivers/media/usb/pvrusb2/
Dpvrusb2-hdw.h235 void *read_ptr,unsigned int read_len);
Dpvrusb2-hdw.c333 void *read_data,unsigned int read_len);
3577 void *read_data,unsigned int read_len) in pvr2_send_request_ex() argument
3605 if (!read_data) read_len = 0; in pvr2_send_request_ex()
3613 if (read_len > PVR2_CTL_BUFFSIZE) { in pvr2_send_request_ex()
3620 if ((!write_len) && (!read_len)) { in pvr2_send_request_ex()
3634 hdw->cmd_debug_read_len = read_len; in pvr2_send_request_ex()
3678 if (read_len) { in pvr2_send_request_ex()
3680 memset(hdw->ctl_read_buffer,0x43,read_len); in pvr2_send_request_ex()
3687 read_len, in pvr2_send_request_ex()
3761 if (read_len && read_data) { in pvr2_send_request_ex()
[all …]
/Linux-v5.4/include/linux/i3c/
Dccc.h92 __be16 read_len; member
/Linux-v5.4/drivers/pci/switch/
Dswitchtec.c63 size_t read_len; member
176 stuser->read_len = sizeof(stuser->data); in mrpc_queue_cmd()
220 stuser->read_len); in mrpc_complete_cmd()
223 stuser->read_len); in mrpc_complete_cmd()
492 stuser->read_len = size - sizeof(stuser->return_code); in switchtec_dev_read()
/Linux-v5.4/drivers/net/ethernet/emulex/benet/
Dbe_ethtool.c267 u32 read_len = 0, total_read_len = 0, chunk_size; in lancer_cmd_read_file() local
288 &read_len, &eof, &addn_status); in lancer_cmd_read_file()
290 memcpy(buf + total_read_len, read_cmd.va, read_len); in lancer_cmd_read_file()
291 total_read_len += read_len; in lancer_cmd_read_file()
/Linux-v5.4/drivers/base/regmap/
Dregmap.c2684 size_t read_len; in regmap_noinc_read() local
2707 read_len = map->max_raw_read; in regmap_noinc_read()
2709 read_len = val_len; in regmap_noinc_read()
2710 ret = _regmap_raw_read(map, reg, val, read_len); in regmap_noinc_read()
2713 val = ((u8 *)val) + read_len; in regmap_noinc_read()
2714 val_len -= read_len; in regmap_noinc_read()
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/
Dnfp_net_ethtool.c1122 unsigned int read_len; in nfp_port_get_module_info() local
1150 1, &read_len); in nfp_port_get_module_info()
1165 1, &read_len); in nfp_port_get_module_info()

12