Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/iio/imu/st_lsm6dsx/
Dst_lsm6dsx_buffer.c326 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/
Dbh.c236 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/
Dcaamrng.c179 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/
Dbh.c63 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/
Dtest_cachestat.c59 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/
Di2c-cp2615.c53 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/
Dshrinker_debug.c113 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/
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()
/linux-6.6.21/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.c1941 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/
Ddebugfs.c228 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/
Dfsi-core.c561 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/
Dsvc-i3c-master.c137 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/
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.c109 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/
Dilitek_ts_i2c.c94 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/
Dtarget_core_user.h128 __u32 read_len; member
/linux-6.6.21/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-6.6.21/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_nsp.c1066 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/
Dfile.c1003 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/
Dtarget_core_user.c784 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/
Dspi-cadence-quadspi.c510 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, &reg, 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, &reg, read_len); in cqspi_command_read()
/linux-6.6.21/drivers/media/usb/pvrusb2/
Dpvrusb2-hdw.h235 void *read_ptr,unsigned int read_len);
/linux-6.6.21/include/linux/i3c/
Dccc.h92 __be16 read_len; member
/linux-6.6.21/drivers/hid/
Dhid-ft260.c245 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()

12