/linux-6.6.21/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() 506 return read_len; in st_lsm6dsx_read_fifo() 585 int i, err, read_len; in st_lsm6dsx_read_tagged_fifo() local 604 for (read_len = 0; read_len < fifo_len; read_len += pattern_len) { in st_lsm6dsx_read_tagged_fifo() [all …]
|
/linux-6.6.21/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-6.6.21/drivers/crypto/caam/ |
D | caamrng.c | 179 int read_len; in test_len() local 186 read_len = rng->read(rng, buf, len, wait); in test_len() 188 if (read_len < 0 || (read_len == 0 && wait)) { in test_len() 190 read_len); in test_len() 197 buf, read_len, 1); in test_len() 199 len = len - read_len; in test_len()
|
/linux-6.6.21/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-6.6.21/tools/testing/selftests/cachestat/ |
D | test_cachestat.c | 59 ssize_t read_len = read(random_fd, cursor, remained); in write_exactly() local 61 if (read_len <= 0) { in write_exactly() 67 remained -= read_len; in write_exactly() 68 cursor += read_len; in write_exactly()
|
/linux-6.6.21/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()
|
/linux-6.6.21/mm/ |
D | shrinker_debug.c | 113 unsigned long nr_to_scan = 0, ino, read_len; in shrinker_debugfs_scan_write() local 122 read_len = size < (sizeof(kbuf) - 1) ? size : (sizeof(kbuf) - 1); in shrinker_debugfs_scan_write() 123 if (copy_from_user(kbuf, buf, read_len)) in shrinker_debugfs_scan_write() 125 kbuf[read_len] = '\0'; in shrinker_debugfs_scan_write()
|
/linux-6.6.21/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()
|
/linux-6.6.21/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-6.6.21/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-6.6.21/drivers/fsi/ |
D | fsi-core.c | 561 size_t total_len, read_len; in fsi_slave_sysfs_raw_read() local 570 for (total_len = 0; total_len < count; total_len += read_len) { in fsi_slave_sysfs_raw_read() 571 read_len = aligned_access_size(off, count - total_len); in fsi_slave_sysfs_raw_read() 573 rc = fsi_slave_read(slave, off, buf + total_len, read_len); in fsi_slave_sysfs_raw_read() 577 off += read_len; in fsi_slave_sysfs_raw_read() 664 size_t total_len, read_len; in cfam_read() local 674 for (total_len = 0; total_len < count; total_len += read_len) { in cfam_read() 677 read_len = min_t(size_t, count, 4); in cfam_read() 678 read_len -= off & 0x3; in cfam_read() 680 rc = fsi_slave_read(slave, off, &data, read_len); in cfam_read() [all …]
|
/linux-6.6.21/drivers/i3c/master/ |
D | svc-i3c-master.c | 137 unsigned int read_len; member 1027 unsigned int *read_len, bool continued) in svc_i3c_master_xfer() argument 1040 SVC_I3C_MCTRL_RDTERM(*read_len), in svc_i3c_master_xfer() 1078 *read_len = ret; in svc_i3c_master_xfer() 1160 cmd->len, &cmd->read_len, in svc_i3c_master_start_xfer_locked() 1246 cmd->read_len = 0; in svc_i3c_master_send_bdcast_ccc_cmd() 1266 unsigned int read_len = ccc->rnw ? xfer_len : 0; in svc_i3c_master_send_direct_ccc_cmd() local 1284 cmd->read_len = 0; in svc_i3c_master_send_direct_ccc_cmd() 1294 cmd->read_len = read_len; in svc_i3c_master_send_direct_ccc_cmd() 1303 if (cmd->read_len != xfer_len) in svc_i3c_master_send_direct_ccc_cmd() [all …]
|
/linux-6.6.21/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 | 109 unsigned int write_len, unsigned int read_len) in tt3650_ci_msg() argument 117 if (!data || (write_len > 64 - 4) || (read_len > 64 - 4)) { in tt3650_ci_msg() 135 rlen = (read_len > 0) ? 64 : 0; in tt3650_ci_msg() 145 memcpy(data, buf + 4, read_len); in tt3650_ci_msg() 160 unsigned int read_len) in tt3650_ci_msg_locked() argument 167 ret = tt3650_ci_msg(d, cmd, data, write_len, read_len); in tt3650_ci_msg_locked()
|
/linux-6.6.21/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-6.6.21/include/uapi/linux/ |
D | target_core_user.h | 128 __u32 read_len; member
|
/linux-6.6.21/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-6.6.21/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_nsp.c | 1066 unsigned int len, unsigned int *read_len) in nfp_nsp_read_module_eeprom() argument 1094 *read_len = min_t(unsigned int, len, le16_to_cpu(buf->readlen)); in nfp_nsp_read_module_eeprom() 1095 if (*read_len) in nfp_nsp_read_module_eeprom() 1096 memcpy(data, buf->data, *read_len); in nfp_nsp_read_module_eeprom() 1098 if (!ret && *read_len < len) in nfp_nsp_read_module_eeprom()
|
/linux-6.6.21/fs/ceph/ |
D | file.c | 1003 u64 read_len = len; in __ceph_sync_read() local 1006 ceph_fscrypt_adjust_off_and_len(inode, &read_off, &read_len); in __ceph_sync_read() 1009 off, len, read_off, read_len); in __ceph_sync_read() 1012 ci->i_vino, read_off, &read_len, 0, 1, in __ceph_sync_read() 1024 if (off + len > read_off + read_len) in __ceph_sync_read() 1025 len = read_off + read_len - off; in __ceph_sync_read() 1028 num_pages = calc_pages_for(read_off, read_len); in __ceph_sync_read() 1037 osd_req_op_extent_osd_data_pages(req, 0, pages, read_len, in __ceph_sync_read() 1056 read_len, ret); in __ceph_sync_read() 1692 u64 read_len = CEPH_FSCRYPT_BLOCK_SIZE; in ceph_sync_write() local [all …]
|
/linux-6.6.21/drivers/target/ |
D | target_core_user.c | 784 bool bidi, uint32_t read_len) in gather_data_area() argument 807 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 …]
|
/linux-6.6.21/drivers/spi/ |
D | spi-cadence-quadspi.c | 510 size_t read_len; in cqspi_command_read() local 565 read_len = (n_rx > 4) ? 4 : n_rx; in cqspi_command_read() 566 memcpy(rxbuf, ®, read_len); in cqspi_command_read() 567 rxbuf += read_len; in cqspi_command_read() 572 read_len = n_rx - read_len; in cqspi_command_read() 573 memcpy(rxbuf, ®, read_len); in cqspi_command_read()
|
/linux-6.6.21/drivers/media/usb/pvrusb2/ |
D | pvrusb2-hdw.h | 235 void *read_ptr,unsigned int read_len);
|
/linux-6.6.21/include/linux/i3c/ |
D | ccc.h | 92 __be16 read_len; member
|
/linux-6.6.21/drivers/hid/ |
D | hid-ft260.c | 245 u16 read_len; member 531 dev->read_len = rd_len; in ft260_i2c_read() 1077 (xfer->length > dev->read_len - dev->read_idx)) { in ft260_raw_event() 1087 if (dev->read_idx == dev->read_len) in ft260_raw_event()
|