Home
last modified time | relevance | path

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

12345678910>>...32

/linux-6.6.21/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.6.21/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.6.21/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.6.21/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.6.21/tools/testing/selftests/bpf/progs/
Dtest_xdp_adjust_tail_grow.c8 int data_len = bpf_xdp_get_buff_len(xdp); in _xdp_adjust_tail_grow() local
19 if (data_len == 54) { /* sizeof(pkt_v4) */ in _xdp_adjust_tail_grow()
21 } else if (data_len == 74) { /* sizeof(pkt_v6) */ in _xdp_adjust_tail_grow()
23 } else if (data_len == 64) { in _xdp_adjust_tail_grow()
25 } else if (data_len == 128) { in _xdp_adjust_tail_grow()
27 offset = 4096 - 256 - tailroom - data_len; in _xdp_adjust_tail_grow()
28 } else if (data_len == 9000) { in _xdp_adjust_tail_grow()
30 } else if (data_len == 9001) { in _xdp_adjust_tail_grow()
Dprofiler.inc.h601 unsigned long data_len = payload - (void*)sysctl_data; in BPF_KPROBE() local
602 data_len = data_len > sizeof(struct var_sysctl_data_t) in BPF_KPROBE()
604 : data_len; in BPF_KPROBE()
605 bpf_perf_event_output(ctx, &events, BPF_F_CURRENT_CPU, sysctl_data, data_len); in BPF_KPROBE()
680 unsigned long data_len = (void*)payload - (void*)kill_data; in raw_tracepoint__sched_process_exit() local
681 data_len = data_len > sizeof(struct var_kill_data_t) in raw_tracepoint__sched_process_exit()
683 : data_len; in raw_tracepoint__sched_process_exit()
684 bpf_perf_event_output(ctx, &events, BPF_F_CURRENT_CPU, kill_data, data_len); in raw_tracepoint__sched_process_exit()
764 unsigned long data_len = payload - (void*)proc_exec_data; in raw_tracepoint__sched_process_exec() local
765 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.6.21/include/linux/can/
Dlength.h182 intermission, data_len) \ argument
187 (data_len) * BITS_PER_BYTE + \
194 intermission, data_len) \ argument
199 (data_len) * BITS_PER_BYTE) + \
200 ((data_len) <= 16 ? \
228 intermission, data_len) \ argument
231 intermission, data_len) : \
233 intermission, data_len) \
240 #define can_frame_bytes(is_fd, is_eff, bitstuffing, data_len) \ argument
242 true, data_len), \
/linux-6.6.21/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.6.21/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.6.21/drivers/nvmem/layouts/
Donie-tlv.c25 __be16 data_len; member
99 size_t data_len, u8 *data) in onie_tlv_add_cells() argument
112 while (offset < data_len) { in onie_tlv_add_cells()
114 if (offset + tlv.len >= data_len) { in onie_tlv_add_cells()
189 size_t table_len, data_len, hdr_len; in onie_tlv_parse_table() local
202 hdr_len = sizeof(hdr.id) + sizeof(hdr.version) + sizeof(hdr.data_len); in onie_tlv_parse_table()
203 data_len = be16_to_cpu(hdr.data_len); in onie_tlv_parse_table()
204 table_len = hdr_len + data_len; in onie_tlv_parse_table()
222 ret = onie_tlv_add_cells(dev, nvmem, data_len, data); in onie_tlv_parse_table()
/linux-6.6.21/drivers/nvmem/
Dbrcm_nvram.c35 size_t data_len; member
55 if (offset + bytes > priv->data_len) in brcm_nvram_read()
56 to_copy = max_t(ssize_t, (ssize_t)priv->data_len - offset, 0); in brcm_nvram_read()
79 for (priv->data_len = priv->nvmem_size; in brcm_nvram_copy_data()
80 priv->data_len; in brcm_nvram_copy_data()
81 priv->data_len--) { in brcm_nvram_copy_data()
82 if (readb(base + priv->data_len - 1) != priv->padding_byte) in brcm_nvram_copy_data()
85 WARN(priv->data_len > SZ_128K, "Unexpected (big) NVRAM size: %zu B\n", priv->data_len); in brcm_nvram_copy_data()
87 priv->data = devm_kzalloc(priv->dev, priv->data_len, GFP_KERNEL); in brcm_nvram_copy_data()
91 memcpy_fromio(priv->data, base, priv->data_len); in brcm_nvram_copy_data()
[all …]
/linux-6.6.21/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.6.21/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()
/linux-6.6.21/tools/testing/selftests/iommu/
Diommufd_utils.h358 void *data, size_t data_len) in _test_cmd_get_hw_info() argument
364 .data_len = data_len, in _test_cmd_get_hw_info()
379 assert(cmd.data_len == sizeof(struct iommu_test_hw_info)); in _test_cmd_get_hw_info()
385 if (data_len > cmd.data_len) { in _test_cmd_get_hw_info()
386 char *ptr = (char *)(data + cmd.data_len); in _test_cmd_get_hw_info()
389 while (idx < data_len - cmd.data_len) { in _test_cmd_get_hw_info()
396 if (data_len >= offsetofend(struct iommu_test_hw_info, test_reg)) in _test_cmd_get_hw_info()
398 if (data_len >= offsetofend(struct iommu_test_hw_info, flags)) in _test_cmd_get_hw_info()
405 #define test_cmd_get_hw_info(device_id, data, data_len) \ argument
407 data, data_len))
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ras_eeprom.c1076 size_t data_len; in amdgpu_ras_debugfs_table_read() local
1083 data_len = strlen(tbl_hdr_str); in amdgpu_ras_debugfs_table_read()
1084 if (*pos < data_len) { in amdgpu_ras_debugfs_table_read()
1085 data_len -= *pos; in amdgpu_ras_debugfs_table_read()
1086 data_len = min_t(size_t, data_len, size); in amdgpu_ras_debugfs_table_read()
1087 if (copy_to_user(buf, &tbl_hdr_str[*pos], data_len)) in amdgpu_ras_debugfs_table_read()
1089 buf += data_len; in amdgpu_ras_debugfs_table_read()
1090 size -= data_len; in amdgpu_ras_debugfs_table_read()
1091 *pos += data_len; in amdgpu_ras_debugfs_table_read()
1094 data_len = strlen(tbl_hdr_str) + tbl_hdr_fmt_size; in amdgpu_ras_debugfs_table_read()
[all …]
/linux-6.6.21/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 …]
/linux-6.6.21/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.6.21/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.6.21/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()

12345678910>>...32