/linux-5.19.10/drivers/iio/imu/st_lsm6dsx/ |
D | st_lsm6dsx_buffer.c | 326 unsigned int word_len, read_len = 0; in st_lsm6dsx_read_block() local 329 while (read_len < data_len) { in st_lsm6dsx_read_block() 330 word_len = min_t(unsigned int, data_len - read_len, in st_lsm6dsx_read_block() 332 err = st_lsm6dsx_read_locked(hw, addr, data + read_len, in st_lsm6dsx_read_block() 336 read_len += word_len; in st_lsm6dsx_read_block() 354 int err, sip, acc_sip, gyro_sip, ts_sip, ext_sip, read_len, offset; in st_lsm6dsx_read_fifo() local 382 for (read_len = 0; read_len < fifo_len; read_len += pattern_len) { in st_lsm6dsx_read_fifo() 492 return read_len; in st_lsm6dsx_read_fifo() 571 int i, err, read_len; in st_lsm6dsx_read_tagged_fifo() local 590 for (read_len = 0; read_len < fifo_len; read_len += pattern_len) { in st_lsm6dsx_read_tagged_fifo() [all …]
|
/linux-5.19.10/drivers/net/wireless/st/cw1200/ |
D | bh.c | 236 size_t read_len = 0; in cw1200_bh_rx_helper() local 247 read_len = (*ctrl_reg & ST90TDS_CONT_NEXT_LEN_MASK) * 2; in cw1200_bh_rx_helper() 248 if (!read_len) in cw1200_bh_rx_helper() 251 if (WARN_ON((read_len < sizeof(struct wsm_hdr)) || in cw1200_bh_rx_helper() 252 (read_len > EFFECTIVE_BUF_SIZE))) { in cw1200_bh_rx_helper() 254 read_len, *ctrl_reg); in cw1200_bh_rx_helper() 261 read_len = read_len + 2; in cw1200_bh_rx_helper() 264 priv->hwbus_priv, read_len); in cw1200_bh_rx_helper() 277 skb_put(skb_rx, read_len); in cw1200_bh_rx_helper() 293 if (WARN_ON(wsm_len > read_len)) in cw1200_bh_rx_helper()
|
/linux-5.19.10/drivers/net/wireless/silabs/wfx/ |
D | bh.c | 63 static int rx_helper(struct wfx_dev *wdev, size_t read_len, int *is_cnf) in rx_helper() argument 72 WARN(read_len > round_down(0xFFF, 2) * sizeof(u16), "request exceed the chip capability"); in rx_helper() 75 alloc_len = wdev->hwbus_ops->align_size(wdev->hwbus_priv, read_len + 2); in rx_helper() 88 if (WARN(read_len < sizeof(struct wfx_hif_msg), "corrupted read")) in rx_helper() 92 if (computed_len != read_len) { in rx_helper() 94 computed_len, read_len); in rx_helper() 96 hif, read_len, true); in rx_helper()
|
/linux-5.19.10/drivers/i2c/busses/ |
D | i2c-cp2615.c | 53 u8 tag, i2caddr, read_len, write_len; member 75 u8 read_len; member 165 memcpy(buf, &i2c_r->data, i2c_r->read_len); in cp2615_i2c_recv() 229 i2c_w.read_len = msg->len; in cp2615_i2c_master_xfer() 232 i2c_w.read_len = 0; in cp2615_i2c_master_xfer()
|
D | i2c-mlxbf.c | 694 u8 op_idx, data_idx, data_len, write_len, read_len; in mlxbf_i2c_smbus_start_transaction() local 709 read_len = 0; in mlxbf_i2c_smbus_start_transaction() 754 read_len = operation->length - 1; in mlxbf_i2c_smbus_start_transaction() 779 ret = mlxbf_i2c_smbus_enable(priv, slave, read_len, block_en, in mlxbf_i2c_smbus_start_transaction() 783 mlxbf_i2c_smbus_read_data(priv, data_desc, read_len + 1, in mlxbf_i2c_smbus_start_transaction() 787 memcpy(read_buf, data_desc, read_len + 1); in mlxbf_i2c_smbus_start_transaction()
|
/linux-5.19.10/drivers/iio/adc/ |
D | bcm_iproc_adc.c | 228 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()
|
D | meson_saradc.c | 705 size_t read_len; in meson_sar_adc_temp_sensor_init() local 733 read_len = MESON_SAR_ADC_EFUSE_BYTES; in meson_sar_adc_temp_sensor_init() 734 buf = nvmem_cell_read(temperature_calib, &read_len); in meson_sar_adc_temp_sensor_init() 739 } else if (read_len != MESON_SAR_ADC_EFUSE_BYTES) { in meson_sar_adc_temp_sensor_init()
|
/linux-5.19.10/drivers/input/mouse/ |
D | cyapa_gen6.c | 561 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()
|
D | cyapa_gen5.c | 1941 int read_len; in cyapa_gen5_read_idac_data() local 2017 read_len = read_elements * (*data_size); in cyapa_gen5_read_idac_data() 2020 put_unaligned_le16(read_len, &cmd_head->parameter_data[2]); in cyapa_gen5_read_idac_data() 2022 resp_len = GEN5_RESP_DATA_STRUCTURE_OFFSET + read_len; in cyapa_gen5_read_idac_data() 2033 read_len = get_unaligned_le16(&resp_data[7]); in cyapa_gen5_read_idac_data() 2034 if (read_len == 0) in cyapa_gen5_read_idac_data() 2038 if (read_len < *data_size) in cyapa_gen5_read_idac_data() 2058 offset += read_len; in cyapa_gen5_read_idac_data() 2059 for (i = 10; i < (read_len + GEN5_RESP_DATA_STRUCTURE_OFFSET); in cyapa_gen5_read_idac_data() 2217 int read_len; in cyapa_gen5_read_panel_scan_raw_data() local [all …]
|
/linux-5.19.10/kernel/kcsan/ |
D | debugfs.c | 228 int read_len = count < (sizeof(kbuf) - 1) ? count : (sizeof(kbuf) - 1); in debugfs_write() local 230 if (copy_from_user(kbuf, buf, read_len)) in debugfs_write() 232 kbuf[read_len] = '\0'; in debugfs_write()
|
/linux-5.19.10/drivers/fsi/ |
D | fsi-core.c | 585 size_t total_len, read_len; in fsi_slave_sysfs_raw_read() local 594 for (total_len = 0; total_len < count; total_len += read_len) { in fsi_slave_sysfs_raw_read() 595 read_len = aligned_access_size(off, count - total_len); in fsi_slave_sysfs_raw_read() 597 rc = fsi_slave_read(slave, off, buf + total_len, read_len); in fsi_slave_sysfs_raw_read() 601 off += read_len; in fsi_slave_sysfs_raw_read() 700 size_t total_len, read_len; in cfam_read() local 710 for (total_len = 0; total_len < count; total_len += read_len) { in cfam_read() 713 read_len = min_t(size_t, count, 4); in cfam_read() 714 read_len -= off & 0x3; in cfam_read() 716 rc = fsi_slave_read(slave, off, &data, read_len); in cfam_read() [all …]
|
/linux-5.19.10/drivers/i3c/master/ |
D | svc-i3c-master.c | 135 unsigned int read_len; member 993 unsigned int *read_len, bool continued) in svc_i3c_master_xfer() argument 1003 SVC_I3C_MCTRL_RDTERM(*read_len), in svc_i3c_master_xfer() 1019 *read_len = ret; in svc_i3c_master_xfer() 1107 cmd->len, &cmd->read_len, in svc_i3c_master_start_xfer_locked() 1186 cmd->read_len = 0; in svc_i3c_master_send_bdcast_ccc_cmd() 1204 unsigned int read_len = ccc->rnw ? xfer_len : 0; in svc_i3c_master_send_direct_ccc_cmd() local 1222 cmd->read_len = 0; in svc_i3c_master_send_direct_ccc_cmd() 1232 cmd->read_len = read_len; in svc_i3c_master_send_direct_ccc_cmd() 1239 if (cmd->read_len != xfer_len) in svc_i3c_master_send_direct_ccc_cmd() [all …]
|
/linux-5.19.10/drivers/media/usb/dvb-usb/ |
D | ttusb2.c | 120 …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()
|
D | pctv452e.c | 107 unsigned int write_len, unsigned int read_len) in tt3650_ci_msg() argument 115 if (!data || (write_len > 64 - 4) || (read_len > 64 - 4)) { in tt3650_ci_msg() 133 rlen = (read_len > 0) ? 64 : 0; in tt3650_ci_msg() 143 memcpy(data, buf + 4, read_len); in tt3650_ci_msg() 158 unsigned int read_len) in tt3650_ci_msg_locked() argument 165 ret = tt3650_ci_msg(d, cmd, data, write_len, read_len); in tt3650_ci_msg_locked()
|
/linux-5.19.10/drivers/input/touchscreen/ |
D | ilitek_ts_i2c.c | 94 u8 *data, int read_len) in ilitek_i2c_write_and_read() argument 108 .len = read_len, in ilitek_i2c_write_and_read() 113 if (delay == 0 && write_len > 0 && read_len > 0) { in ilitek_i2c_write_and_read() 126 if (read_len > 0) { in ilitek_i2c_write_and_read()
|
/linux-5.19.10/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_nsp.c | 1065 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()
|
D | nfp_nsp.h | 31 unsigned int len, unsigned int *read_len);
|
/linux-5.19.10/include/uapi/linux/ |
D | target_core_user.h | 128 __u32 read_len; member
|
/linux-5.19.10/drivers/gpu/drm/sun4i/ |
D | sun4i_hdmi_i2c.c | 40 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-5.19.10/drivers/spi/ |
D | spi-cadence-quadspi.c | 492 size_t read_len; in cqspi_command_read() local 536 read_len = (n_rx > 4) ? 4 : n_rx; in cqspi_command_read() 537 memcpy(rxbuf, ®, read_len); in cqspi_command_read() 538 rxbuf += read_len; in cqspi_command_read() 543 read_len = n_rx - read_len; in cqspi_command_read() 544 memcpy(rxbuf, ®, read_len); in cqspi_command_read()
|
/linux-5.19.10/drivers/target/ |
D | target_core_user.c | 783 bool bidi, uint32_t read_len) in gather_data_area() argument 806 data_nents, NULL, read_len); in gather_data_area() 1326 uint32_t read_len; in tcmu_handle_completion() local 1355 read_len = se_cmd->data_length; in tcmu_handle_completion() 1357 (entry->hdr.uflags & TCMU_UFLAG_READ_LEN) && entry->rsp.read_len) { in tcmu_handle_completion() 1359 if (entry->rsp.read_len < read_len) in tcmu_handle_completion() 1360 read_len = entry->rsp.read_len; in tcmu_handle_completion() 1372 gather_data_area(udev, cmd, true, read_len); in tcmu_handle_completion() 1374 gather_data_area(udev, cmd, false, read_len); in tcmu_handle_completion() 1385 pr_debug("read_len = %d\n", read_len); in tcmu_handle_completion() [all …]
|
/linux-5.19.10/drivers/media/usb/pvrusb2/ |
D | pvrusb2-hdw.h | 235 void *read_ptr,unsigned int read_len);
|
D | pvrusb2-hdw.c | 333 void *read_data,unsigned int read_len); 3583 void *read_data,unsigned int read_len) in pvr2_send_request_ex() argument 3611 if (!read_data) read_len = 0; in pvr2_send_request_ex() 3619 if (read_len > PVR2_CTL_BUFFSIZE) { in pvr2_send_request_ex() 3626 if ((!write_len) && (!read_len)) { in pvr2_send_request_ex() 3640 hdw->cmd_debug_read_len = read_len; in pvr2_send_request_ex() 3684 if (read_len) { in pvr2_send_request_ex() 3686 memset(hdw->ctl_read_buffer,0x43,read_len); in pvr2_send_request_ex() 3693 read_len, in pvr2_send_request_ex() 3767 if (read_len && read_data) { in pvr2_send_request_ex() [all …]
|
/linux-5.19.10/fs/ |
D | splice.c | 865 size_t read_len; in splice_direct_to_actor() local 872 read_len = ret; in splice_direct_to_actor() 873 sd->total_len = read_len; in splice_direct_to_actor() 880 if (read_len < len) in splice_direct_to_actor() 899 if (ret < read_len) { in splice_direct_to_actor()
|
/linux-5.19.10/include/linux/i3c/ |
D | ccc.h | 92 __be16 read_len; member
|