Home
last modified time | relevance | path

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

12345678910>>...19

/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()
125 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/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/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/staging/rtl8188eu/os_dep/
Dmon.c41 int data_len, int iv_len, int icv_len) in mon_recv_decrypted() argument
45 skb = netdev_alloc_skb(dev, data_len); in mon_recv_decrypted()
48 skb_put_data(skb, data, data_len); in mon_recv_decrypted()
62 int data_len) in mon_recv_encrypted() argument
78 int data_len; in rtl88eu_mon_recv_hook() local
88 data_len = frame->pkt->len; in rtl88eu_mon_recv_hook()
94 mon_recv_decrypted(dev, data, data_len, iv_len, icv_len); in rtl88eu_mon_recv_hook()
96 mon_recv_encrypted(dev, data, data_len); in rtl88eu_mon_recv_hook()
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dfirmware.c199 const u8 *data, size_t data_len) in brcmf_init_nvram_parser() argument
206 if (data_len > BRCMF_FW_MAX_NVRAM_SIZE) in brcmf_init_nvram_parser()
209 size = data_len; in brcmf_init_nvram_parser()
378 static void *brcmf_fw_nvram_strip(const u8 *data, size_t data_len, in brcmf_fw_nvram_strip() argument
386 if (brcmf_init_nvram_parser(&nvp, data, data_len) < 0) in brcmf_fw_nvram_strip()
389 while (nvp.pos < data_len) { in brcmf_fw_nvram_strip()
449 static void brcmf_fw_fix_efi_nvram_ccode(char *data, unsigned long data_len) in brcmf_fw_fix_efi_nvram_ccode() argument
453 ccode = strnstr((char *)data, "ccode=ALL", data_len); in brcmf_fw_fix_efi_nvram_ccode()
455 ccode = strnstr((char *)data, "ccode=XV\r", data_len); in brcmf_fw_fix_efi_nvram_ccode()
468 unsigned long data_len = 0; in brcmf_fw_nvram_from_efi() local
[all …]
/drivers/crypto/nx/
Dnx-sha512.c66 int data_len; in nx_sha512_update() local
92 data_len = SHA512_DIGEST_SIZE; in nx_sha512_update()
94 &data_len, max_sg_len); in nx_sha512_update()
97 if (data_len != SHA512_DIGEST_SIZE) { in nx_sha512_update()
107 data_len = buf_len; in nx_sha512_update()
110 &data_len, max_sg_len); in nx_sha512_update()
112 if (data_len != buf_len) { in nx_sha512_update()
130 data_len = to_process - buf_len; in nx_sha512_update()
132 &data_len, max_sg_len); in nx_sha512_update()
136 if (data_len != (to_process - buf_len)) { in nx_sha512_update()
[all …]
Dnx-sha256.c66 int data_len; in nx_sha256_update() local
92 data_len = SHA256_DIGEST_SIZE; in nx_sha256_update()
94 &data_len, max_sg_len); in nx_sha256_update()
97 if (data_len != SHA256_DIGEST_SIZE) { in nx_sha256_update()
107 data_len = buf_len; in nx_sha256_update()
110 &data_len, in nx_sha256_update()
113 if (data_len != buf_len) { in nx_sha256_update()
131 data_len = to_process - buf_len; in nx_sha256_update()
133 &data_len, max_sg_len); in nx_sha256_update()
137 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/spi/
Dspi-dln2.c419 u16 data_len, u8 attr) in dln2_spi_write_one() argument
431 if (data_len > DLN2_SPI_MAX_XFER_SIZE) in dln2_spi_write_one()
435 tx->size = cpu_to_le16(data_len); in dln2_spi_write_one()
438 dln2_spi_copy_to_buf(tx->buf, data, data_len, dln2->bpw); in dln2_spi_write_one()
440 tx_len = sizeof(*tx) + data_len - DLN2_SPI_MAX_XFER_SIZE; in dln2_spi_write_one()
448 u16 data_len, u8 attr) in dln2_spi_read_one() argument
464 if (data_len > DLN2_SPI_MAX_XFER_SIZE) in dln2_spi_read_one()
468 tx.size = cpu_to_le16(data_len); in dln2_spi_read_one()
475 if (rx_len < sizeof(rx->size) + data_len) in dln2_spi_read_one()
477 if (le16_to_cpu(rx->size) != data_len) in dln2_spi_read_one()
[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()
259 msg->msg.data_len)) { in handle_recv()
263 rsp->msg.data_len = msg->msg.data_len; in handle_recv()
265 rsp->msg.data_len = 0; in handle_recv()
[all …]
Dipmi_poweroff.c201 send_msg.data_len = 3; in pps_poweroff_atca()
232 send_msg.data_len = sizeof(data); in ipmi_atca_detect()
272 send_msg.data_len = sizeof(data); in ipmi_poweroff_atca()
343 send_msg.data_len = 0; in ipmi_poweroff_cpi1()
358 send_msg.data_len = 0; in ipmi_poweroff_cpi1()
381 send_msg.data_len = 1; in ipmi_poweroff_cpi1()
393 send_msg.data_len = 1; in ipmi_poweroff_cpi1()
407 send_msg.data_len = 1; in ipmi_poweroff_cpi1()
496 send_msg.data_len = sizeof(data); in ipmi_poweroff_chassis()
589 send_msg.data_len = 0; in ipmi_po_new_smi()
[all …]
/drivers/infiniband/sw/siw/
Dsiw_qp_tx.c433 unsigned int data_len = c_tx->bytes_unsent, hdr_len = 0, trl_len = 0, in siw_tx_hdt() local
454 wqe->processed += data_len; in siw_tx_hdt()
456 while (data_len) { /* walk the list of SGE's */ in siw_tx_hdt()
457 unsigned int sge_len = min(sge->length - sge_off, data_len); in siw_tx_hdt()
481 data_len -= sge_len; in siw_tx_hdt()
548 data_len -= plen; in siw_tx_hdt()
562 (data_len != 0 || wqe->processed < wqe->bytes)) { in siw_tx_hdt()
589 data_len = c_tx->bytes_unsent; in siw_tx_hdt()
593 c_tx->sge_off, data_len); in siw_tx_hdt()
594 if (rv == data_len) { in siw_tx_hdt()
[all …]
/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 …]
/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.c221 size_t data_len = rb_in_proc->buf_idx; in process_recv() local
247 if (data_len < sizeof(struct header)) { in process_recv()
249 data_len, sizeof(struct header)); in process_recv()
280 if (data_len > client_data->response.max_size) { in process_recv()
283 data_len, client_data->response.max_size); in process_recv()
296 client_data->response.size = data_len; in process_recv()
303 rb_in_proc->buffer.data, data_len); in process_recv()
463 if (in_msg->ec_response.data_len > msg->insize) { in prepare_cros_ec_rx()
465 in_msg->ec_response.data_len, msg->insize); in prepare_cros_ec_rx()
474 for (i = 0; i < in_msg->ec_response.data_len; i++) in prepare_cros_ec_rx()
[all …]
/drivers/net/wireless/mediatek/mt76/
Dmcu.c10 int data_len) in mt76_mcu_msg_alloc() argument
13 int length = ops->headroom + data_len + ops->tailroom; in mt76_mcu_msg_alloc()
23 if (data && data_len) in mt76_mcu_msg_alloc()
24 skb_put_data(skb, data, data_len); in mt76_mcu_msg_alloc()
/drivers/net/wireless/intel/iwlwifi/
Diwl-devtrace-data.h24 u8 *data_src, dma_addr_t phys, size_t data_len),
25 TP_ARGS(dev, skb, data_src, phys, data_len),
31 iwl_trace_data(skb) ? data_len : 0)
37 memcpy(__get_dynamic_array(data), data_src, data_len);
/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
Dchcr_ktls.c1104 bool is_last_wr, u32 data_len, in chcr_ktls_xmit_wr_complete() argument
1185 cpl->pldlen = htonl(data_len); in chcr_ktls_xmit_wr_complete()
1227 tx_data->len = htonl(TX_DATA_MSS_V(mss) | TX_LENGTH_V(data_len)); in chcr_ktls_xmit_wr_complete()
1248 skb_offset, data_len); in chcr_ktls_xmit_wr_complete()
1280 u32 prior_data_len, u32 data_len, in chcr_ktls_xmit_wr_short() argument
1297 nfrags = chcr_get_nfrags_to_send(skb, skb_offset, data_len); in chcr_ktls_xmit_wr_short()
1373 cpl->pldlen = htonl(data_len + AES_BLOCK_LEN + prior_data_len); in chcr_ktls_xmit_wr_short()
1404 TX_LENGTH_V(data_len + prior_data_len)); in chcr_ktls_xmit_wr_short()
1438 skb_offset, data_len); in chcr_ktls_xmit_wr_short()
1466 u32 data_len, u32 skb_offset, in chcr_ktls_tx_plaintxt() argument
[all …]
/drivers/nfc/s3fwrn5/
Di2c.c128 size_t data_len; in s3fwrn5_i2c_read() local
141 data_len = (phy->mode == S3FWRN5_MODE_NCI) ? in s3fwrn5_i2c_read()
145 skb = alloc_skb(hdr_size + data_len, GFP_KERNEL); in s3fwrn5_i2c_read()
151 if (data_len == 0) in s3fwrn5_i2c_read()
154 ret = i2c_master_recv(phy->i2c_dev, skb_put(skb, data_len), data_len); in s3fwrn5_i2c_read()
155 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/media/usb/as102/
Das102_fw.c105 int read_bytes = 0, data_len = 0; in as102_firmware_upload() local
112 &data_len, in as102_firmware_upload()
136 data_len += sizeof(fw_pkt->u.request); in as102_firmware_upload()
137 data_len += sizeof(fw_pkt->raw.address); in as102_firmware_upload()
143 data_len, in as102_firmware_upload()
/drivers/net/wireless/intersil/p54/
Deeprom.c734 unsigned int data_len, entry_len; in p54_parse_eeprom() local
747 data_len = ((entry_len - 1) << 1); in p54_parse_eeprom()
750 if ((u8 *)entry + sizeof(*entry) + data_len > end) in p54_parse_eeprom()
755 if (data_len != ETH_ALEN) in p54_parse_eeprom()
763 data_len); in p54_parse_eeprom()
770 if (data_len < sizeof(*curve_data)) { in p54_parse_eeprom()
794 priv->iq_autocal = kmemdup(entry->data, data_len, in p54_parse_eeprom()
801 priv->iq_autocal_len = data_len / sizeof(struct pda_iq_autocal_entry); in p54_parse_eeprom()
804 p54_parse_default_country(dev, entry->data, data_len); in p54_parse_eeprom()
808 while ((u8 *)tmp < entry->data + data_len) { in p54_parse_eeprom()
[all …]

12345678910>>...19