Home
last modified time | relevance | path

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

12345678910>>...31

/linux-6.1.9/lib/
Dasn1_encoder.c27 int data_len = end_data - data; in asn1_encode_integer() local
40 if (data_len < 3) in asn1_encode_integer()
44 data_len -= 2; in asn1_encode_integer()
70 data_len--; in asn1_encode_integer()
74 if (data_len == 0) in asn1_encode_integer()
78 data_len--; in asn1_encode_integer()
89 static int asn1_encode_oid_digit(unsigned char **_data, int *data_len, u32 oid) in asn1_encode_oid_digit() argument
95 if (*data_len < 1) in asn1_encode_oid_digit()
101 (*data_len)--; in asn1_encode_oid_digit()
108 while (start > 0 && *data_len > 0) { in asn1_encode_oid_digit()
[all …]
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.1.9/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 …]
/linux-6.1.9/net/bluetooth/
Deir.h19 u8 data_len);
21 static inline u16 eir_precalc_len(u8 data_len) in eir_precalc_len() argument
23 return sizeof(u8) * 2 + data_len; in eir_precalc_len()
27 u8 *data, u8 data_len) in eir_append_data() argument
29 eir[eir_len++] = sizeof(type) + data_len; in eir_append_data()
31 memcpy(&eir[eir_len], data, data_len); in eir_append_data()
32 eir_len += data_len; in eir_append_data()
47 static inline u16 eir_skb_put_data(struct sk_buff *skb, u8 type, u8 *data, u8 data_len) in eir_skb_put_data() argument
52 eir_len = eir_precalc_len(data_len); in eir_skb_put_data()
54 WARN_ON(sizeof(type) + data_len > U8_MAX); in eir_skb_put_data()
[all …]
Dmgmt_config.h8 u16 data_len);
11 u16 data_len);
14 u16 data_len);
17 u16 data_len);
/linux-6.1.9/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 …]
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_xdp_adjust_tail_grow.c10 int data_len = bpf_xdp_get_buff_len(xdp); in _xdp_adjust_tail_grow() local
15 if (data_len == 54) { /* sizeof(pkt_v4) */ in _xdp_adjust_tail_grow()
17 } else if (data_len == 74) { /* sizeof(pkt_v6) */ in _xdp_adjust_tail_grow()
19 } else if (data_len == 64) { in _xdp_adjust_tail_grow()
21 } else if (data_len == 128) { in _xdp_adjust_tail_grow()
23 offset = 4096 - 256 - 320 - data_len; in _xdp_adjust_tail_grow()
24 } else if (data_len == 9000) { in _xdp_adjust_tail_grow()
26 } else if (data_len == 9001) { 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 …]
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.1.9/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 …]
/linux-6.1.9/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()
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ras_eeprom.c879 size_t data_len; in amdgpu_ras_debugfs_table_read() local
886 data_len = strlen(tbl_hdr_str); in amdgpu_ras_debugfs_table_read()
887 if (*pos < data_len) { in amdgpu_ras_debugfs_table_read()
888 data_len -= *pos; in amdgpu_ras_debugfs_table_read()
889 data_len = min_t(size_t, data_len, size); in amdgpu_ras_debugfs_table_read()
890 if (copy_to_user(buf, &tbl_hdr_str[*pos], data_len)) in amdgpu_ras_debugfs_table_read()
892 buf += data_len; in amdgpu_ras_debugfs_table_read()
893 size -= data_len; in amdgpu_ras_debugfs_table_read()
894 *pos += data_len; in amdgpu_ras_debugfs_table_read()
897 data_len = strlen(tbl_hdr_str) + tbl_hdr_fmt_size; in amdgpu_ras_debugfs_table_read()
[all …]
/linux-6.1.9/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 …]
/linux-6.1.9/net/mac80211/
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()
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_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_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_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.1.9/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()
/linux-6.1.9/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 …]
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/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 …]

12345678910>>...31