Home
last modified time | relevance | path

Searched refs:data_len (Results 1 – 25 of 498) sorted by relevance

12345678910>>...20

/drivers/nfc/st-nci/
Dvendor_cmds.c40 size_t data_len) in st_nci_factory_mode() argument
45 if (data_len != 1) in st_nci_factory_mode()
65 size_t data_len) in st_nci_hci_clear_all_pipes() argument
73 size_t data_len) in st_nci_hci_dm_put_data() argument
79 data_len, NULL); in st_nci_hci_dm_put_data()
83 size_t data_len) in st_nci_hci_dm_update_aid() argument
88 ST_NCI_HCI_DM_UPDATE_AID, data, data_len, NULL); in st_nci_hci_dm_update_aid()
92 size_t data_len) in st_nci_hci_dm_get_info() argument
99 data, data_len, &skb); in st_nci_hci_dm_get_info()
124 size_t data_len) in st_nci_hci_dm_get_data() argument
[all …]
/drivers/nfc/st21nfca/
Dvendor_cmds.c36 size_t data_len) in st21nfca_factory_mode() argument
40 if (data_len != 1) in st21nfca_factory_mode()
60 size_t data_len) in st21nfca_hci_clear_all_pipes() argument
68 size_t data_len) in st21nfca_hci_dm_put_data() argument
74 data_len, NULL); in st21nfca_hci_dm_put_data()
78 size_t data_len) in st21nfca_hci_dm_update_aid() argument
83 ST21NFCA_HCI_DM_UPDATE_AID, data, data_len, NULL); in st21nfca_hci_dm_update_aid()
87 size_t data_len) in st21nfca_hci_dm_get_info() argument
96 data, data_len, &skb); in st21nfca_hci_dm_get_info()
122 size_t data_len) in st21nfca_hci_dm_get_data() argument
[all …]
/drivers/i3c/master/mipi-i3c-hci/
Dcmd_v1.c149 unsigned int data_len) in fill_data_bytes() argument
152 switch (data_len) { in fill_data_bytes()
179 unsigned int data_len = xfer->data_len; in hci_cmd_v1_prep_ccc() local
196 if (!rnw && data_len <= 4) { in hci_cmd_v1_prep_ccc()
203 CMD_I0_DTT(data_len) | in hci_cmd_v1_prep_ccc()
205 fill_data_bytes(xfer, data, data_len); in hci_cmd_v1_prep_ccc()
216 CMD_R1_DATA_LENGTH(data_len); in hci_cmd_v1_prep_ccc()
230 unsigned int data_len = xfer->data_len; in hci_cmd_v1_prep_i3c_xfer() local
235 if (!rnw && data_len <= 4) { in hci_cmd_v1_prep_i3c_xfer()
241 CMD_I0_DTT(data_len) | in hci_cmd_v1_prep_i3c_xfer()
[all …]
Dcmd_v2.c98 unsigned int data_len = xfer->data_len; in hci_cmd_v2_prep_private_xfer() local
103 if (!rnw && data_len <= 5) { in hci_cmd_v2_prep_private_xfer()
110 CMD_U0_IDB_COUNT(data_len); in hci_cmd_v2_prep_private_xfer()
115 switch (data_len) { in hci_cmd_v2_prep_private_xfer()
145 CMD_U1_DATA_LENGTH(data_len); in hci_cmd_v2_prep_private_xfer()
157 unsigned int data_len = xfer->data_len; in hci_cmd_v2_prep_ccc() local
167 if (!rnw && data_len <= 4) { in hci_cmd_v2_prep_ccc()
174 CMD_U0_IDB_COUNT(data_len + (!raw ? 0 : 1)); in hci_cmd_v2_prep_ccc()
180 switch (data_len) { in hci_cmd_v2_prep_ccc()
208 CMD_U1_DATA_LENGTH(data_len); in hci_cmd_v2_prep_ccc()
[all …]
/drivers/usb/gadget/
Du_os_desc.h97 int data_len) in usb_ext_prop_put_binary() argument
99 put_unaligned_le32(data_len, usb_ext_prop_data_len_ptr(buf, pnl)); in usb_ext_prop_put_binary()
100 memcpy(usb_ext_prop_data_ptr(buf, pnl), data, data_len); in usb_ext_prop_put_binary()
104 int data_len) in usb_ext_prop_put_unicode() argument
107 put_unaligned_le32(data_len, usb_ext_prop_data_len_ptr(buf, pnl)); in usb_ext_prop_put_unicode()
108 result = utf8s_to_utf16s(string, data_len >> 1, UTF16_LITTLE_ENDIAN, in usb_ext_prop_put_unicode()
110 data_len - 2); in usb_ext_prop_put_unicode()
115 &buf[USB_EXT_PROP_B_PROPERTY_DATA + pnl + data_len - 2]); in usb_ext_prop_put_unicode()
117 return data_len; in usb_ext_prop_put_unicode()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ras_eeprom.c892 size_t data_len; in amdgpu_ras_debugfs_table_read() local
899 data_len = strlen(tbl_hdr_str); in amdgpu_ras_debugfs_table_read()
900 if (*pos < data_len) { in amdgpu_ras_debugfs_table_read()
901 data_len -= *pos; in amdgpu_ras_debugfs_table_read()
902 data_len = min_t(size_t, data_len, size); in amdgpu_ras_debugfs_table_read()
903 if (copy_to_user(buf, &tbl_hdr_str[*pos], data_len)) in amdgpu_ras_debugfs_table_read()
905 buf += data_len; in amdgpu_ras_debugfs_table_read()
906 size -= data_len; in amdgpu_ras_debugfs_table_read()
907 *pos += data_len; in amdgpu_ras_debugfs_table_read()
910 data_len = strlen(tbl_hdr_str) + tbl_hdr_fmt_size; in amdgpu_ras_debugfs_table_read()
[all …]
/drivers/i2c/busses/
Di2c-dln2.c71 u8 *data, u16 data_len) in dln2_i2c_write() argument
90 tx->buf_len = cpu_to_le16(data_len); in dln2_i2c_write()
91 memcpy(tx->buf, data, data_len); in dln2_i2c_write()
93 len = sizeof(*tx) + data_len - DLN2_I2C_MAX_XFER_SIZE; in dln2_i2c_write()
98 return data_len; in dln2_i2c_write()
102 u16 data_len) in dln2_i2c_read() argument
124 tx.buf_len = cpu_to_le16(data_len); in dln2_i2c_read()
130 if (rx_len < sizeof(rx->buf_len) + data_len) in dln2_i2c_read()
132 if (le16_to_cpu(rx->buf_len) != data_len) in dln2_i2c_read()
135 memcpy(data, rx->buf, data_len); in dln2_i2c_read()
[all …]
/drivers/spi/
Dspi-dln2.c420 u16 data_len, u8 attr) in dln2_spi_write_one() argument
432 if (data_len > DLN2_SPI_MAX_XFER_SIZE) in dln2_spi_write_one()
436 tx->size = cpu_to_le16(data_len); in dln2_spi_write_one()
439 dln2_spi_copy_to_buf(tx->buf, data, data_len, dln2->bpw); in dln2_spi_write_one()
441 tx_len = sizeof(*tx) + data_len - DLN2_SPI_MAX_XFER_SIZE; in dln2_spi_write_one()
449 u16 data_len, u8 attr) in dln2_spi_read_one() argument
465 if (data_len > DLN2_SPI_MAX_XFER_SIZE) in dln2_spi_read_one()
469 tx.size = cpu_to_le16(data_len); in dln2_spi_read_one()
476 if (rx_len < sizeof(rx->size) + data_len) in dln2_spi_read_one()
478 if (le16_to_cpu(rx->size) != data_len) in dln2_spi_read_one()
[all …]
/drivers/crypto/nx/
Dnx-sha512.c71 int data_len; in nx_sha512_update() local
97 data_len = SHA512_DIGEST_SIZE; in nx_sha512_update()
99 &data_len, max_sg_len); in nx_sha512_update()
102 if (data_len != SHA512_DIGEST_SIZE) { in nx_sha512_update()
112 data_len = buf_len; in nx_sha512_update()
115 &data_len, max_sg_len); in nx_sha512_update()
117 if (data_len != buf_len) { in nx_sha512_update()
135 data_len = to_process - buf_len; in nx_sha512_update()
137 &data_len, max_sg_len); in nx_sha512_update()
141 if (data_len != (to_process - buf_len)) { in nx_sha512_update()
[all …]
Dnx-sha256.c71 int data_len; in nx_sha256_update() local
97 data_len = SHA256_DIGEST_SIZE; in nx_sha256_update()
99 &data_len, max_sg_len); in nx_sha256_update()
102 if (data_len != SHA256_DIGEST_SIZE) { in nx_sha256_update()
112 data_len = buf_len; in nx_sha256_update()
115 &data_len, in nx_sha256_update()
118 if (data_len != buf_len) { in nx_sha256_update()
136 data_len = to_process - buf_len; in nx_sha256_update()
138 &data_len, max_sg_len); in nx_sha256_update()
142 to_process = data_len + buf_len; in nx_sha256_update()
Dnx-aes-xcbc.c178 int data_len; in nx_xcbc_update() local
201 data_len = AES_BLOCK_SIZE; in nx_xcbc_update()
205 if (data_len != AES_BLOCK_SIZE) { in nx_xcbc_update()
229 data_len = sctx->count; in nx_xcbc_update()
232 &data_len, in nx_xcbc_update()
234 if (data_len != sctx->count) { in nx_xcbc_update()
240 data_len = to_process - sctx->count; in nx_xcbc_update()
243 &data_len, in nx_xcbc_update()
246 if (data_len != to_process - sctx->count) { in nx_xcbc_update()
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dfirmware.c207 const u8 *data, size_t data_len) in brcmf_init_nvram_parser() argument
214 if (data_len > BRCMF_FW_MAX_NVRAM_SIZE) in brcmf_init_nvram_parser()
217 size = data_len; in brcmf_init_nvram_parser()
395 static void *brcmf_fw_nvram_strip(const u8 *data, size_t data_len, in brcmf_fw_nvram_strip() argument
405 if (brcmf_init_nvram_parser(&nvp, data, data_len) < 0) in brcmf_fw_nvram_strip()
411 while (nvp.pos < data_len) { in brcmf_fw_nvram_strip()
473 static void brcmf_fw_fix_efi_nvram_ccode(char *data, unsigned long data_len) in brcmf_fw_fix_efi_nvram_ccode() argument
477 ccode = strnstr((char *)data, "ccode=ALL", data_len); in brcmf_fw_fix_efi_nvram_ccode()
479 ccode = strnstr((char *)data, "ccode=XV\r", data_len); in brcmf_fw_fix_efi_nvram_ccode()
492 unsigned long data_len = 0; in brcmf_fw_nvram_from_efi() local
[all …]
/drivers/firmware/efi/
Dapple-properties.c180 u32 data_len; in map_properties() local
201 data_len = data->len; in map_properties()
204 data = memremap(pa_data, sizeof(*data) + data_len, MEMREMAP_WB); in map_properties()
214 16, 1, properties, data_len, true); in map_properties()
216 } else if (properties->len != data_len) { in map_properties()
217 pr_err("length mismatch, expected %u\n", data_len); in map_properties()
219 16, 1, properties, data_len, true); in map_properties()
230 memblock_free_late(pa_data + sizeof(*data), data_len); in map_properties()
/drivers/char/ipmi/
Dipmi_devintf.c157 msg.data_len = req->msg.data_len; in handle_send_req()
170 if (req->msg.data_len > IPMI_MAX_MSG_LENGTH) { in handle_send_req()
177 req->msg.data_len)) { in handle_send_req()
182 msg.data_len = 0; in handle_send_req()
248 if (msg->msg.data_len > 0) { in handle_recv()
249 if (rsp->msg.data_len < msg->msg.data_len) { in handle_recv()
252 msg->msg.data_len = rsp->msg.data_len; in handle_recv()
261 msg->msg.data_len)) { in handle_recv()
265 rsp->msg.data_len = msg->msg.data_len; in handle_recv()
267 rsp->msg.data_len = 0; in handle_recv()
[all …]
Dipmi_poweroff.c197 send_msg.data_len = 3; in pps_poweroff_atca()
228 send_msg.data_len = sizeof(data); in ipmi_atca_detect()
268 send_msg.data_len = sizeof(data); in ipmi_poweroff_atca()
339 send_msg.data_len = 0; in ipmi_poweroff_cpi1()
354 send_msg.data_len = 0; in ipmi_poweroff_cpi1()
377 send_msg.data_len = 1; in ipmi_poweroff_cpi1()
389 send_msg.data_len = 1; in ipmi_poweroff_cpi1()
403 send_msg.data_len = 1; in ipmi_poweroff_cpi1()
492 send_msg.data_len = sizeof(data); in ipmi_poweroff_chassis()
585 send_msg.data_len = 0; in ipmi_po_new_smi()
[all …]
/drivers/net/ethernet/intel/ice/
Dice_gnss.c113 unsigned int i, bytes_read, data_len; in ice_gnss_read() local
154 data_len = be16_to_cpu(data_len_b); in ice_gnss_read()
155 if (data_len != 0 && data_len != U16_MAX) in ice_gnss_read()
161 data_len = min_t(typeof(data_len), data_len, PAGE_SIZE); in ice_gnss_read()
162 data_len = tty_buffer_request_room(port, data_len); in ice_gnss_read()
163 if (!data_len) { in ice_gnss_read()
169 for (i = 0; i < data_len; i += bytes_read) { in ice_gnss_read()
170 unsigned int bytes_left = data_len - i; in ice_gnss_read()
/drivers/infiniband/sw/siw/
Dsiw_qp_tx.c440 unsigned int data_len = c_tx->bytes_unsent, hdr_len = 0, trl_len = 0, in siw_tx_hdt() local
461 wqe->processed += data_len; in siw_tx_hdt()
463 while (data_len) { /* walk the list of SGE's */ in siw_tx_hdt()
464 unsigned int sge_len = min(sge->length - sge_off, data_len); in siw_tx_hdt()
488 data_len -= sge_len; in siw_tx_hdt()
558 data_len -= plen; in siw_tx_hdt()
572 (data_len != 0 || wqe->processed < wqe->bytes)) { in siw_tx_hdt()
599 data_len = c_tx->bytes_unsent; in siw_tx_hdt()
603 c_tx->sge_off, data_len); in siw_tx_hdt()
604 if (rv == data_len) { in siw_tx_hdt()
[all …]
/drivers/nvmem/
Drave-sp-eeprom.c159 size_t data_len) in rave_sp_eeprom_page_access() argument
172 if (WARN_ON(data_len > sizeof(page.data) - page_offset)) in rave_sp_eeprom_page_access()
180 if (data_len < RAVE_SP_EEPROM_PAGE_SIZE) { in rave_sp_eeprom_page_access()
187 memcpy(&page.data[page_offset], data, data_len); in rave_sp_eeprom_page_access()
199 memcpy(data, &page.data[page_offset], data_len); in rave_sp_eeprom_page_access()
223 unsigned int data_len) in rave_sp_eeprom_access() argument
233 residue = data_len; in rave_sp_eeprom_access()
/drivers/media/usb/dvb-usb-v2/
Dce6230.c44 buf = kmalloc(req->data_len, GFP_KERNEL); in ce6230_ctrl_msg()
52 memcpy(buf, req->data, req->data_len); in ce6230_ctrl_msg()
62 buf, req->data_len, CE6230_USB_TIMEOUT); in ce6230_ctrl_msg()
65 buf, req->data_len); in ce6230_ctrl_msg()
75 memcpy(req->data, buf, req->data_len); in ce6230_ctrl_msg()
111 req.data_len = msg[i+1].len; in ce6230_i2c_master_xfer()
131 req.data_len = msg[i].len-1; in ce6230_i2c_master_xfer()
138 req.data_len = msg[i].len; in ce6230_i2c_master_xfer()
/drivers/platform/chrome/
Dcros_ec_ishtp.c220 size_t data_len = rb_in_proc->buf_idx; in process_recv() local
246 if (data_len < sizeof(struct header)) { in process_recv()
248 data_len, sizeof(struct header)); in process_recv()
279 if (data_len > client_data->response.max_size) { in process_recv()
282 data_len, client_data->response.max_size); in process_recv()
295 client_data->response.size = data_len; in process_recv()
302 rb_in_proc->buffer.data, data_len); in process_recv()
462 if (in_msg->ec_response.data_len > msg->insize) { in prepare_cros_ec_rx()
464 in_msg->ec_response.data_len, msg->insize); in prepare_cros_ec_rx()
473 for (i = 0; i < in_msg->ec_response.data_len; i++) in prepare_cros_ec_rx()
[all …]
/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
Dchcr_ktls.c1103 bool is_last_wr, u32 data_len, in chcr_ktls_xmit_wr_complete() argument
1184 cpl->pldlen = htonl(data_len); in chcr_ktls_xmit_wr_complete()
1226 tx_data->len = htonl(TX_DATA_MSS_V(mss) | TX_LENGTH_V(data_len)); in chcr_ktls_xmit_wr_complete()
1247 skb_offset, data_len); in chcr_ktls_xmit_wr_complete()
1279 u32 prior_data_len, u32 data_len, in chcr_ktls_xmit_wr_short() argument
1296 nfrags = chcr_get_nfrags_to_send(skb, skb_offset, data_len); in chcr_ktls_xmit_wr_short()
1372 cpl->pldlen = htonl(data_len + AES_BLOCK_LEN + prior_data_len); in chcr_ktls_xmit_wr_short()
1403 TX_LENGTH_V(data_len + prior_data_len)); in chcr_ktls_xmit_wr_short()
1437 skb_offset, data_len); in chcr_ktls_xmit_wr_short()
1465 u32 data_len, u32 skb_offset, in chcr_ktls_tx_plaintxt() argument
[all …]
/drivers/nfc/s3fwrn5/
Di2c.c84 size_t data_len; in s3fwrn5_i2c_read() local
97 data_len = (phy->common.mode == S3FWRN5_MODE_NCI) ? in s3fwrn5_i2c_read()
101 skb = alloc_skb(hdr_size + data_len, GFP_KERNEL); in s3fwrn5_i2c_read()
107 if (data_len == 0) in s3fwrn5_i2c_read()
110 ret = i2c_master_recv(phy->i2c_dev, skb_put(skb, data_len), data_len); in s3fwrn5_i2c_read()
111 if (ret != data_len) { in s3fwrn5_i2c_read()
/drivers/media/usb/gspca/
Dsq905c.c126 int data_len; /* size to use for the next read. */ in sq905c_dostream() local
163 data_len = bytes_left > SQ905C_MAX_TRANSFER ? in sq905c_dostream()
167 buffer, data_len, &act_len, in sq905c_dostream()
169 if (ret < 0 || act_len < data_len) in sq905c_dostream()
173 data_len, bytes_left); in sq905c_dostream()
174 bytes_left -= data_len; in sq905c_dostream()
180 buffer, data_len); in sq905c_dostream()
/drivers/net/wireless/intel/iwlwifi/
Diwl-devtrace-data.h19 u8 *data_src, dma_addr_t phys, size_t data_len),
20 TP_ARGS(dev, skb, data_src, phys, data_len),
26 iwl_trace_data(skb) ? data_len : 0)
32 memcpy(__get_dynamic_array(data), data_src, data_len);
/drivers/thunderbolt/
Dproperty.c310 bool recurse, size_t *data_len) in tb_property_dir_length() argument
327 property->value.dir, recurse, data_len); in tb_property_dir_length()
330 if (data_len) in tb_property_dir_length()
331 *data_len += 1; in tb_property_dir_length()
336 if (data_len) in tb_property_dir_length()
337 *data_len += property->length; in tb_property_dir_length()
354 size_t dir_len, data_len = 0; in __tb_property_format_dir() local
402 dir_len = tb_property_dir_length(dir, false, &data_len); in __tb_property_format_dir()
404 dir_end = start_offset + data_len + dir_len; in __tb_property_format_dir()
494 size_t dir_len, data_len = 0; in tb_property_format_dir() local
[all …]

12345678910>>...20