Home
last modified time | relevance | path

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

12345678910>>...31

/linux-6.3-rc2/lib/
A Dasn1_encoder.c44 data_len -= 2; in asn1_encode_integer()
70 data_len--; in asn1_encode_integer()
78 data_len--; in asn1_encode_integer()
101 (*data_len)--; in asn1_encode_oid_digit()
116 (*data_len)--; in asn1_encode_oid_digit()
121 (*data_len)--; in asn1_encode_oid_digit()
165 data_len -= 3; in asn1_encode_oid()
300 data_len--; in asn1_encode_tag()
343 data_len--; in asn1_encode_octet_string()
400 data_len--; in asn1_encode_sequence()
[all …]
A 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()
/linux-6.3-rc2/drivers/nfc/st-nci/
A Dvendor_cmds.c45 if (data_len != 1) in st_nci_factory_mode()
73 size_t data_len) in st_nci_hci_dm_put_data() argument
79 data_len, NULL); in st_nci_hci_dm_put_data()
92 size_t data_len) in st_nci_hci_dm_get_info() argument
124 size_t data_len) in st_nci_hci_dm_get_data() argument
205 size_t data_len) in st_nci_hci_get_param() argument
240 size_t data_len) in st_nci_hci_dm_field_generator() argument
255 if (data_len != 4) in st_nci_hci_dm_vdc_measurement_value()
291 if (data_len != 2) in st_nci_hci_dm_vdc_value_comparison()
327 if (data_len <= 0) in st_nci_loopback()
[all …]
/linux-6.3-rc2/net/bluetooth/
A Deir.h19 u8 data_len);
23 return sizeof(u8) * 2 + data_len; in eir_precalc_len()
27 u8 *data, u8 data_len) in eir_append_data() argument
31 memcpy(&eir[eir_len], data, data_len); in eir_append_data()
32 eir_len += data_len; in eir_append_data()
52 eir_len = eir_precalc_len(data_len); in eir_skb_put_data()
55 eir[0] = sizeof(type) + data_len; in eir_skb_put_data()
57 memcpy(&eir[2], data, data_len); in eir_skb_put_data()
63 size_t *data_len) in eir_get_data() argument
90 if (data_len) in eir_get_data()
[all …]
A Dmgmt_config.h8 u16 data_len);
11 u16 data_len);
14 u16 data_len);
17 u16 data_len);
/linux-6.3-rc2/drivers/nfc/st21nfca/
A Dvendor_cmds.c36 size_t data_len) in st21nfca_factory_mode() argument
40 if (data_len != 1) in st21nfca_factory_mode()
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
87 size_t data_len) in st21nfca_hci_dm_get_info() argument
157 size_t data_len) in st21nfca_hci_dm_load() argument
166 size_t data_len) in st21nfca_hci_dm_reset() argument
184 size_t data_len) in st21nfca_hci_get_param() argument
248 size_t data_len) in st21nfca_hci_loopback() argument
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
A Dtest_xdp_adjust_tail_grow.c10 int data_len = bpf_xdp_get_buff_len(xdp); in _xdp_adjust_tail_grow() local
21 if (data_len == 54) { /* sizeof(pkt_v4) */ in _xdp_adjust_tail_grow()
23 } else if (data_len == 74) { /* sizeof(pkt_v6) */ in _xdp_adjust_tail_grow()
25 } else if (data_len == 64) { in _xdp_adjust_tail_grow()
27 } else if (data_len == 128) { in _xdp_adjust_tail_grow()
29 offset = 4096 - 256 - tailroom - data_len; in _xdp_adjust_tail_grow()
30 } else if (data_len == 9000) { in _xdp_adjust_tail_grow()
32 } else if (data_len == 9001) { in _xdp_adjust_tail_grow()
A Dprofiler.inc.h603 data_len = data_len > sizeof(struct var_sysctl_data_t) in BPF_KPROBE()
605 : data_len; in BPF_KPROBE()
682 data_len = data_len > sizeof(struct var_kill_data_t) in raw_tracepoint__sched_process_exit()
684 : data_len; in raw_tracepoint__sched_process_exit()
766 data_len = data_len > sizeof(struct var_exec_data_t) in raw_tracepoint__sched_process_exec()
768 : data_len; in raw_tracepoint__sched_process_exec()
833 data_len = data_len > sizeof(*filemod_data) ? sizeof(*filemod_data) : data_len; in kprobe_ret__do_filp_open()
897 data_len = data_len > sizeof(*filemod_data) ? sizeof(*filemod_data) : data_len; in BPF_KPROBE()
955 data_len = data_len > sizeof(*filemod_data) ? sizeof(*filemod_data) : data_len; in BPF_KPROBE()
984 unsigned long data_len = payload - (void*)fork_data; in raw_tracepoint__sched_process_fork() local
[all …]
A Dtest_check_mtu.c64 __u32 data_len = data_end - data; in xdp_exceed_mtu() local
71 delta = GLOBAL_USER_MTU - (data_len - ETH_HLEN) + 1; in xdp_exceed_mtu()
91 __u32 data_len = data_end - data; in xdp_minus_delta() local
96 delta = -((data_len - ETH_HLEN) + 1); in xdp_minus_delta()
115 __u32 data_len = data_end - data; in xdp_input_len() local
123 __u32 mtu_len = data_len - ETH_HLEN; in xdp_input_len()
206 __u32 data_len = data_end - data; in tc_exceed_mtu_da() local
213 delta = GLOBAL_USER_MTU - (data_len - ETH_HLEN) + 1; in tc_exceed_mtu_da()
/linux-6.3-rc2/drivers/i3c/master/mipi-i3c-hci/
A 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()
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()
265 unsigned int data_len = xfer->data_len; in hci_cmd_v1_prep_i2c_xfer() local
270 if (!rnw && data_len <= 4) { in hci_cmd_v1_prep_i2c_xfer()
[all …]
A 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 …]
/linux-6.3-rc2/drivers/usb/gadget/
A 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()
/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_ras_eeprom.c936 size_t data_len; in amdgpu_ras_debugfs_table_read() local
945 data_len -= *pos; in amdgpu_ras_debugfs_table_read()
946 data_len = min_t(size_t, data_len, size); in amdgpu_ras_debugfs_table_read()
949 buf += data_len; in amdgpu_ras_debugfs_table_read()
950 size -= data_len; in amdgpu_ras_debugfs_table_read()
951 *pos += data_len; in amdgpu_ras_debugfs_table_read()
966 data_len -= *pos; in amdgpu_ras_debugfs_table_read()
967 data_len = min_t(size_t, data_len, size); in amdgpu_ras_debugfs_table_read()
971 buf += data_len; in amdgpu_ras_debugfs_table_read()
981 data_len = min_t(size_t, data_len, size); in amdgpu_ras_debugfs_table_read()
[all …]
/linux-6.3-rc2/drivers/i2c/busses/
A 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 …]
/linux-6.3-rc2/net/mac80211/
A Daes_cmac.c26 const u8 *data, size_t data_len, u8 *mic) in ieee80211_aes_cmac() argument
40 crypto_shash_update(desc, data + 8, data_len - 8 - CMAC_TLEN); in ieee80211_aes_cmac()
42 crypto_shash_update(desc, data, data_len - CMAC_TLEN); in ieee80211_aes_cmac()
50 const u8 *data, size_t data_len, u8 *mic) in ieee80211_aes_cmac_256() argument
64 data_len - 8 - CMAC_TLEN_256); in ieee80211_aes_cmac_256()
66 crypto_shash_update(desc, data, data_len - CMAC_TLEN_256); in ieee80211_aes_cmac_256()
A 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()
A 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()
A 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()
A 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()
/linux-6.3-rc2/drivers/crypto/nx/
A 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 …]
A 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()
/linux-6.3-rc2/drivers/spi/
A 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()
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()
478 if (le16_to_cpu(rx->size) != data_len) in dln2_spi_read_one()
508 if (data_len > DLN2_SPI_MAX_XFER_SIZE) in dln2_spi_read_write_one()
520 tx->size = cpu_to_le16(data_len); in dln2_spi_read_write_one()
552 u16 remaining = data_len; in dln2_spi_rdwr()
[all …]
/linux-6.3-rc2/crypto/asymmetric_keys/
A 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()
/linux-6.3-rc2/drivers/firmware/efi/
A 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()
/linux-6.3-rc2/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
A 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()
411 while (nvp.pos < data_len) { in brcmf_fw_nvram_strip()
492 unsigned long data_len = 0; in brcmf_fw_nvram_from_efi() local
503 data = kmalloc(data_len, GFP_KERNEL); in brcmf_fw_nvram_from_efi()
511 brcmf_fw_fix_efi_nvram_ccode(data, data_len); in brcmf_fw_nvram_from_efi()
514 *data_len_ret = data_len; in brcmf_fw_nvram_from_efi()
547 size_t data_len; in brcmf_fw_request_nvram_done() local
555 data_len = fw->size; in brcmf_fw_request_nvram_done()
[all …]

Completed in 33 milliseconds

12345678910>>...31