/kernel/linux/linux-5.10/tools/testing/selftests/arm64/mte/ |
D | check_user_mem.c | 26 size_t len, read_len; in check_usermem_access_fault() local 45 read_len = read(fd, ptr, len); in check_usermem_access_fault() 47 if (cur_mte_cxt.fault_valid || read_len < len) in check_usermem_access_fault() 63 read_len = read(fd, ptr, len); in check_usermem_access_fault() 71 !cur_mte_cxt.fault_valid && read_len < len) { in check_usermem_access_fault() 74 !cur_mte_cxt.fault_valid && read_len == len) { in check_usermem_access_fault()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/st/cw1200/ |
D | bh.c | 241 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()
|
/kernel/linux/linux-5.10/fs/epfs/ |
D | file.c | 265 unsigned long read_len = current_begin - pos; in epfs_read() local 267 read_len = read_len < count ? read_len : count; in epfs_read() 271 pos, read_len); in epfs_read() 272 ret = vfs_read(origin_file, buf, read_len, &pos); in epfs_read() 273 if (ret < 0 || ret < read_len) { in epfs_read()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
D | i2c-pmcmsp.c | 105 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()
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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 | 1940 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 …]
|
/kernel/linux/linux-5.10/kernel/kcsan/ |
D | debugfs.c | 223 int read_len = count < (sizeof(kbuf) - 1) ? count : (sizeof(kbuf) - 1); in debugfs_write() local 225 if (copy_from_user(kbuf, buf, read_len)) in debugfs_write() 227 kbuf[read_len] = '\0'; in debugfs_write()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/fs/hmdfs/ |
D | hmdfs_server.c | 713 size_t read_len; in hmdfs_server_readpage() local 727 read_len = (size_t)le32_to_cpu(readpage_recv->size); in hmdfs_server_readpage() 728 if (read_len == 0) in hmdfs_server_readpage() 731 readpage = kmalloc(read_len, GFP_KERNEL); in hmdfs_server_readpage() 738 ret = kernel_read(file, readpage->buf, read_len, &pos); in hmdfs_server_readpage() 742 if (ret != read_len) in hmdfs_server_readpage() 743 memset(readpage->buf + ret, 0, read_len - ret); in hmdfs_server_readpage() 744 hmdfs_sendmessage_response(con, cmd, read_len, readpage, 0); in hmdfs_server_readpage() 788 size_t read_len; in hmdfs_server_readpages() local 798 read_len = (size_t)le32_to_cpu(req->size); in hmdfs_server_readpages() [all …]
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.10/drivers/target/ |
D | target_core_user.c | 739 bool bidi, uint32_t read_len) in gather_data_area() argument 771 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() 792 read_len -= copy_bytes; in gather_data_area() 795 if (read_len == 0) in gather_data_area() 1299 uint32_t read_len; in tcmu_handle_completion() local 1321 read_len = se_cmd->data_length; in tcmu_handle_completion() 1323 (entry->hdr.uflags & TCMU_UFLAG_READ_LEN) && entry->rsp.read_len) { in tcmu_handle_completion() 1325 if (entry->rsp.read_len < read_len) in tcmu_handle_completion() [all …]
|
/kernel/linux/linux-5.10/drivers/spi/ |
D | spi-cadence-quadspi.c | 358 size_t read_len; in cqspi_command_read() local 385 read_len = (n_rx > 4) ? 4 : n_rx; in cqspi_command_read() 386 memcpy(rxbuf, ®, read_len); in cqspi_command_read() 387 rxbuf += read_len; in cqspi_command_read() 392 read_len = n_rx - read_len; in cqspi_command_read() 393 memcpy(rxbuf, ®, read_len); in cqspi_command_read()
|
/kernel/linux/linux-5.10/fs/ |
D | splice.c | 860 size_t read_len; in splice_direct_to_actor() local 866 read_len = min_t(size_t, len, p_space << PAGE_SHIFT); in splice_direct_to_actor() 867 ret = do_splice_to(in, &pos, pipe, read_len, flags); in splice_direct_to_actor() 871 read_len = ret; in splice_direct_to_actor() 872 sd->total_len = read_len; in splice_direct_to_actor() 879 if (read_len < len) in splice_direct_to_actor() 898 if (ret < read_len) { in splice_direct_to_actor()
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | target_core_user.h | 72 __u32 read_len; member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | target_core_user.h | 68 __u32 read_len; member
|
/kernel/linux/linux-5.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);
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | target_core_user.h | 126 __u32 read_len; member
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/ |
D | pvrusb2-hdw.h | 235 void *read_ptr,unsigned int read_len);
|
/kernel/linux/linux-5.10/include/linux/i3c/ |
D | ccc.h | 92 __be16 read_len; member
|