/drivers/iio/imu/st_lsm6dsx/ |
D | st_lsm6dsx_buffer.c | 325 unsigned int word_len, read_len = 0; in st_lsm6dsx_read_block() local 328 while (read_len < data_len) { in st_lsm6dsx_read_block() 329 word_len = min_t(unsigned int, data_len - read_len, in st_lsm6dsx_read_block() 331 err = st_lsm6dsx_read_locked(hw, addr, data + read_len, in st_lsm6dsx_read_block() 335 read_len += word_len; in st_lsm6dsx_read_block() 353 int err, sip, acc_sip, gyro_sip, ts_sip, ext_sip, read_len, offset; in st_lsm6dsx_read_fifo() local 381 for (read_len = 0; read_len < fifo_len; read_len += pattern_len) { in st_lsm6dsx_read_fifo() 491 return read_len; in st_lsm6dsx_read_fifo() 570 int i, err, read_len; in st_lsm6dsx_read_tagged_fifo() local 589 for (read_len = 0; read_len < fifo_len; read_len += pattern_len) { in st_lsm6dsx_read_tagged_fifo() [all …]
|
/drivers/net/wireless/st/cw1200/ |
D | bh.c | 238 size_t read_len = 0; in cw1200_bh_rx_helper() local 249 read_len = (*ctrl_reg & ST90TDS_CONT_NEXT_LEN_MASK) * 2; in cw1200_bh_rx_helper() 250 if (!read_len) in cw1200_bh_rx_helper() 253 if (WARN_ON((read_len < sizeof(struct wsm_hdr)) || in cw1200_bh_rx_helper() 254 (read_len > EFFECTIVE_BUF_SIZE))) { in cw1200_bh_rx_helper() 256 read_len, *ctrl_reg); in cw1200_bh_rx_helper() 263 read_len = read_len + 2; in cw1200_bh_rx_helper() 266 priv->hwbus_priv, read_len); in cw1200_bh_rx_helper() 279 skb_put(skb_rx, read_len); in cw1200_bh_rx_helper() 295 if (WARN_ON(wsm_len > read_len)) in cw1200_bh_rx_helper()
|
/drivers/staging/wfx/ |
D | bh.c | 65 static int rx_helper(struct wfx_dev *wdev, size_t read_len, int *is_cnf) in rx_helper() argument 74 WARN(read_len > round_down(0xFFF, 2) * sizeof(u16), in rx_helper() 78 alloc_len = wdev->hwbus_ops->align_size(wdev->hwbus_priv, read_len + 2); in rx_helper() 91 if (WARN(read_len < sizeof(struct hif_msg), "corrupted read")) in rx_helper() 95 if (computed_len != read_len) { in rx_helper() 97 computed_len, read_len); in rx_helper() 99 hif, read_len, true); in rx_helper()
|
/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 | 707 u8 op_idx, data_idx, data_len, write_len, read_len; in mlxbf_i2c_smbus_start_transaction() local 722 read_len = 0; in mlxbf_i2c_smbus_start_transaction() 781 read_len = operation->length - 1; in mlxbf_i2c_smbus_start_transaction() 806 ret = mlxbf_i2c_smbus_enable(priv, slave, read_len, block_en, in mlxbf_i2c_smbus_start_transaction() 810 mlxbf_i2c_smbus_read_data(priv, data_desc, read_len + 1, in mlxbf_i2c_smbus_start_transaction() 814 memcpy(read_buf, data_desc, read_len + 1); in mlxbf_i2c_smbus_start_transaction()
|
/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()
|
/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 …]
|
/drivers/fsi/ |
D | fsi-core.c | 583 size_t total_len, read_len; in fsi_slave_sysfs_raw_read() local 592 for (total_len = 0; total_len < count; total_len += read_len) { in fsi_slave_sysfs_raw_read() 593 read_len = aligned_access_size(off, count - total_len); in fsi_slave_sysfs_raw_read() 595 rc = fsi_slave_read(slave, off, buf + total_len, read_len); in fsi_slave_sysfs_raw_read() 599 off += read_len; in fsi_slave_sysfs_raw_read() 698 size_t total_len, read_len; in cfam_read() local 708 for (total_len = 0; total_len < count; total_len += read_len) { in cfam_read() 711 read_len = min_t(size_t, count, 4); in cfam_read() 712 read_len -= off & 0x3; in cfam_read() 714 rc = fsi_slave_read(slave, off, &data, read_len); in cfam_read() [all …]
|
/drivers/i3c/master/ |
D | svc-i3c-master.c | 132 unsigned int read_len; member 937 unsigned int read_len, bool continued) in svc_i3c_master_xfer() argument 950 SVC_I3C_MCTRL_RDTERM(read_len), in svc_i3c_master_xfer() 1052 cmd->len, cmd->read_len, in svc_i3c_master_start_xfer_locked() 1128 cmd->read_len = 0; in svc_i3c_master_send_bdcast_ccc_cmd() 1148 unsigned int read_len = ccc->rnw ? xfer_len : 0; in svc_i3c_master_send_direct_ccc_cmd() local 1166 cmd->read_len = 0; in svc_i3c_master_send_direct_ccc_cmd() 1176 cmd->read_len = read_len; in svc_i3c_master_send_direct_ccc_cmd() 1233 cmd->read_len = xfers[i].rnw ? xfers[i].len : 0; in svc_i3c_master_priv_xfers() 1273 cmd->read_len = cmd->rnw ? xfers[i].len : 0; in svc_i3c_master_i2c_xfers()
|
/drivers/media/usb/dvb-usb/ |
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()
|
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()
|
/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()
|
/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);
|
/drivers/spi/ |
D | spi-cadence-quadspi.c | 497 size_t read_len; in cqspi_command_read() local 546 read_len = (n_rx > 4) ? 4 : n_rx; in cqspi_command_read() 547 memcpy(rxbuf, ®, read_len); in cqspi_command_read() 548 rxbuf += read_len; in cqspi_command_read() 553 read_len = n_rx - read_len; in cqspi_command_read() 554 memcpy(rxbuf, ®, read_len); in cqspi_command_read()
|
/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()
|
/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() 1327 uint32_t read_len; in tcmu_handle_completion() local 1356 read_len = se_cmd->data_length; in tcmu_handle_completion() 1358 (entry->hdr.uflags & TCMU_UFLAG_READ_LEN) && entry->rsp.read_len) { in tcmu_handle_completion() 1360 if (entry->rsp.read_len < read_len) in tcmu_handle_completion() 1361 read_len = entry->rsp.read_len; in tcmu_handle_completion() 1373 gather_data_area(udev, cmd, true, read_len); in tcmu_handle_completion() 1375 gather_data_area(udev, cmd, false, read_len); in tcmu_handle_completion() 1386 pr_debug("read_len = %d\n", read_len); in tcmu_handle_completion() [all …]
|
/drivers/media/usb/pvrusb2/ |
D | pvrusb2-hdw.c | 333 void *read_data,unsigned int read_len); 3580 void *read_data,unsigned int read_len) in pvr2_send_request_ex() argument 3608 if (!read_data) read_len = 0; in pvr2_send_request_ex() 3616 if (read_len > PVR2_CTL_BUFFSIZE) { in pvr2_send_request_ex() 3623 if ((!write_len) && (!read_len)) { in pvr2_send_request_ex() 3637 hdw->cmd_debug_read_len = read_len; in pvr2_send_request_ex() 3681 if (read_len) { in pvr2_send_request_ex() 3683 memset(hdw->ctl_read_buffer,0x43,read_len); in pvr2_send_request_ex() 3690 read_len, in pvr2_send_request_ex() 3764 if (read_len && read_data) { in pvr2_send_request_ex() [all …]
|
D | pvrusb2-hdw.h | 235 void *read_ptr,unsigned int read_len);
|
/drivers/hid/ |
D | hid-ft260.c | 235 u16 read_len; member 472 dev->read_len = len; in ft260_i2c_read() 1030 if (dev->read_idx == dev->read_len) in ft260_raw_event()
|
/drivers/net/ethernet/emulex/benet/ |
D | be_ethtool.c | 266 u32 read_len = 0, total_read_len = 0, chunk_size; in lancer_cmd_read_file() local 287 &read_len, &eof, &addn_status); in lancer_cmd_read_file() 289 memcpy(buf + total_read_len, read_cmd.va, read_len); in lancer_cmd_read_file() 290 total_read_len += read_len; in lancer_cmd_read_file()
|
/drivers/pci/switch/ |
D | switchtec.c | 64 size_t read_len; member 177 stuser->read_len = sizeof(stuser->data); in mrpc_queue_cmd() 221 stuser->read_len); in mrpc_complete_cmd() 224 stuser->read_len); in mrpc_complete_cmd() 529 stuser->read_len = size - sizeof(stuser->return_code); in switchtec_dev_read()
|
/drivers/base/regmap/ |
D | regmap.c | 2887 size_t read_len; in regmap_noinc_read() local 2910 read_len = map->max_raw_read; in regmap_noinc_read() 2912 read_len = val_len; in regmap_noinc_read() 2913 ret = _regmap_raw_read(map, reg, val, read_len, true); in regmap_noinc_read() 2916 val = ((u8 *)val) + read_len; in regmap_noinc_read() 2917 val_len -= read_len; in regmap_noinc_read()
|