Home
last modified time | relevance | path

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

12345678910>>...29

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dtest_xdp_adjust_tail_grow.c10 unsigned int data_len; in _xdp_adjust_tail_grow() local
14 data_len = data_end - data; in _xdp_adjust_tail_grow()
16 if (data_len == 54) { /* sizeof(pkt_v4) */ in _xdp_adjust_tail_grow()
18 } else if (data_len == 74) { /* sizeof(pkt_v6) */ in _xdp_adjust_tail_grow()
20 } else if (data_len == 64) { in _xdp_adjust_tail_grow()
22 } else if (data_len == 128) { in _xdp_adjust_tail_grow()
23 offset = 4096 - 256 - 320 - data_len; /* Max tail grow 3520 */ in _xdp_adjust_tail_grow()
Dprofiler.inc.h593 unsigned long data_len = payload - (void*)sysctl_data; in BPF_KPROBE() local
594 data_len = data_len > sizeof(struct var_sysctl_data_t) in BPF_KPROBE()
596 : data_len; in BPF_KPROBE()
597 bpf_perf_event_output(ctx, &events, BPF_F_CURRENT_CPU, sysctl_data, data_len); in BPF_KPROBE()
669 unsigned long data_len = (void*)payload - (void*)kill_data; in raw_tracepoint__sched_process_exit() local
670 data_len = data_len > sizeof(struct var_kill_data_t) in raw_tracepoint__sched_process_exit()
672 : data_len; in raw_tracepoint__sched_process_exit()
673 bpf_perf_event_output(ctx, &events, BPF_F_CURRENT_CPU, kill_data, data_len); in raw_tracepoint__sched_process_exit()
752 unsigned long data_len = payload - (void*)proc_exec_data; in raw_tracepoint__sched_process_exec() local
753 data_len = data_len > sizeof(struct var_exec_data_t) in raw_tracepoint__sched_process_exec()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/lib/
Dtest_blackhole_dev.c34 int data_len; in test_blackholedev_init() local
45 data_len = SKB_SIZE - (HEAD_SIZE + TAIL_SIZE); in test_blackholedev_init()
46 memset(__skb_put(skb, data_len), 0xf, data_len); in test_blackholedev_init()
53 uh->len = htons(data_len); in test_blackholedev_init()
59 ip6h->payload_len = data_len + sizeof(struct udphdr); in test_blackholedev_init()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/net/mac80211/
Daes_cmac.c25 const u8 *data, size_t data_len, u8 *mic) in ieee80211_aes_cmac() argument
39 crypto_shash_update(desc, data + 8, data_len - 8 - CMAC_TLEN); in ieee80211_aes_cmac()
41 crypto_shash_update(desc, data, data_len - CMAC_TLEN); in ieee80211_aes_cmac()
49 const u8 *data, size_t data_len, u8 *mic) in ieee80211_aes_cmac_256() argument
63 data_len - 8 - CMAC_TLEN_256); in ieee80211_aes_cmac_256()
65 crypto_shash_update(desc, data, data_len - CMAC_TLEN_256); in ieee80211_aes_cmac_256()
Daead_api.c19 u8 *data, size_t data_len, u8 *mic) in aead_encrypt() argument
37 sg_set_buf(&sg[1], data, data_len); in aead_encrypt()
41 aead_request_set_crypt(aead_req, sg, sg, data_len, b_0); in aead_encrypt()
51 u8 *data, size_t data_len, u8 *mic) in aead_decrypt() argument
60 if (data_len == 0) in aead_decrypt()
72 sg_set_buf(&sg[1], data, data_len); in aead_decrypt()
76 aead_request_set_crypt(aead_req, sg, sg, data_len + mic_len, b_0); in aead_decrypt()
Daes_gcm.h15 size_t data_len, u8 *mic) in ieee80211_aes_gcm_encrypt() argument
19 data, data_len, mic); in ieee80211_aes_gcm_encrypt()
24 size_t data_len, u8 *mic) in ieee80211_aes_gcm_decrypt() argument
28 data, data_len, mic); in ieee80211_aes_gcm_decrypt()
Daes_ccm.h23 size_t data_len, u8 *mic) in ieee80211_aes_ccm_encrypt() argument
27 data, data_len, mic); in ieee80211_aes_ccm_encrypt()
33 size_t data_len, u8 *mic) in ieee80211_aes_ccm_decrypt() argument
37 data, data_len, mic); in ieee80211_aes_ccm_decrypt()
Daes_gmac.c18 const u8 *data, size_t data_len, u8 *mic) in ieee80211_aes_gmac() argument
27 if (data_len < GMAC_MIC_LEN) in ieee80211_aes_gmac()
44 sg_set_buf(&sg[2], data + 8, data_len - 8 - GMAC_MIC_LEN); in ieee80211_aes_gmac()
50 sg_set_buf(&sg[1], data, data_len - GMAC_MIC_LEN); in ieee80211_aes_gmac()
61 aead_request_set_ad(aead_req, GMAC_AAD_LEN + data_len); in ieee80211_aes_gmac()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/net/bluetooth/
Dmgmt_config.h8 u16 data_len);
11 u16 data_len);
14 u16 data_len);
17 u16 data_len);
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
376 static void *brcmf_fw_nvram_strip(const u8 *data, size_t data_len, in brcmf_fw_nvram_strip() argument
384 if (brcmf_init_nvram_parser(&nvp, data, data_len) < 0) in brcmf_fw_nvram_strip()
387 while (nvp.pos < data_len) { in brcmf_fw_nvram_strip()
447 static void brcmf_fw_fix_efi_nvram_ccode(char *data, unsigned long data_len) in brcmf_fw_fix_efi_nvram_ccode() argument
451 ccode = strnstr((char *)data, "ccode=ALL", data_len); in brcmf_fw_fix_efi_nvram_ccode()
453 ccode = strnstr((char *)data, "ccode=XV\r", data_len); in brcmf_fw_fix_efi_nvram_ccode()
466 unsigned long data_len = 0; in brcmf_fw_nvram_from_efi() local
[all …]
/kernel/linux/linux-5.10/crypto/asymmetric_keys/
Dmscode_parser.c20 int mscode_parse(void *_ctx, const void *content_data, size_t data_len, in mscode_parse() argument
26 data_len += asn1hdrlen; in mscode_parse()
27 pr_devel("Data: %zu [%*ph]\n", data_len, (unsigned)(data_len), in mscode_parse()
30 return asn1_ber_decoder(&mscode_decoder, ctx, content_data, data_len); in mscode_parse()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/include/linux/
Dipmi_smi.h181 unsigned int data_len, in ipmi_demangle_device_id() argument
184 if (data_len < 7) in ipmi_demangle_device_id()
194 data_len--; in ipmi_demangle_device_id()
202 if (data_len >= 11) { in ipmi_demangle_device_id()
210 if (data_len >= 15) { in ipmi_demangle_device_id()
/kernel/linux/linux-5.10/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);
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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 …]

12345678910>>...29