/linux/lib/ |
A D | asn1_encoder.c | 44 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() 302 data_len--; in asn1_encode_tag() 345 data_len--; in asn1_encode_octet_string() 402 data_len--; in asn1_encode_sequence() [all …]
|
A D | test_blackhole_dev.c | 34 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/drivers/nfc/st-nci/ |
A D | vendor_cmds.c | 45 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/drivers/nfc/st21nfca/ |
A D | vendor_cmds.c | 36 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/drivers/i3c/master/mipi-i3c-hci/ |
A D | cmd_v1.c | 149 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 D | cmd_v2.c | 98 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/tools/testing/selftests/bpf/progs/ |
A D | test_xdp_adjust_tail_grow.c | 10 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()
|
A D | profiler.inc.h | 594 data_len = data_len > sizeof(struct var_sysctl_data_t) in BPF_KPROBE() 596 : data_len; in BPF_KPROBE() 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() 753 data_len = data_len > sizeof(struct var_exec_data_t) in raw_tracepoint__sched_process_exec() 755 : data_len; in raw_tracepoint__sched_process_exec() 820 data_len = data_len > sizeof(*filemod_data) ? sizeof(*filemod_data) : data_len; in kprobe_ret__do_filp_open() 883 data_len = data_len > sizeof(*filemod_data) ? sizeof(*filemod_data) : data_len; in BPF_KPROBE() 940 data_len = data_len > sizeof(*filemod_data) ? sizeof(*filemod_data) : data_len; in BPF_KPROBE() 969 unsigned long data_len = payload - (void*)fork_data; in raw_tracepoint__sched_process_fork() local [all …]
|
A D | test_check_mtu.c | 64 __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/drivers/usb/gadget/ |
A D | u_os_desc.h | 97 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/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_ras_eeprom.c | 843 size_t data_len; in amdgpu_ras_debugfs_table_read() local 852 data_len -= *pos; in amdgpu_ras_debugfs_table_read() 853 data_len = min_t(size_t, data_len, size); in amdgpu_ras_debugfs_table_read() 856 buf += data_len; in amdgpu_ras_debugfs_table_read() 857 size -= data_len; in amdgpu_ras_debugfs_table_read() 858 *pos += data_len; in amdgpu_ras_debugfs_table_read() 873 data_len -= *pos; in amdgpu_ras_debugfs_table_read() 874 data_len = min_t(size_t, data_len, size); in amdgpu_ras_debugfs_table_read() 878 buf += data_len; in amdgpu_ras_debugfs_table_read() 888 data_len = min_t(size_t, data_len, size); in amdgpu_ras_debugfs_table_read() [all …]
|
/linux/net/bluetooth/ |
A D | eir.h | 17 u8 *data, u8 data_len) in eir_append_data() argument 19 eir[eir_len++] = sizeof(type) + data_len; in eir_append_data() 21 memcpy(&eir[eir_len], data, data_len); in eir_append_data() 22 eir_len += data_len; in eir_append_data() 38 size_t *data_len) in eir_get_data() argument 65 if (data_len) in eir_get_data() 66 *data_len = field_len - 1; in eir_get_data()
|
A D | mgmt_config.h | 8 u16 data_len); 11 u16 data_len); 14 u16 data_len); 17 u16 data_len);
|
/linux/drivers/i2c/busses/ |
A D | i2c-dln2.c | 71 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/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
A D | firmware.c | 199 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() 385 while (nvp.pos < data_len) { in brcmf_fw_nvram_strip() 462 unsigned long data_len = 0; in brcmf_fw_nvram_from_efi() local 475 err = efivar_entry_size(nvram_efivar, &data_len); in brcmf_fw_nvram_from_efi() 479 data = kmalloc(data_len, GFP_KERNEL); in brcmf_fw_nvram_from_efi() 487 brcmf_fw_fix_efi_nvram_ccode(data, data_len); in brcmf_fw_nvram_from_efi() 491 *data_len_ret = data_len; in brcmf_fw_nvram_from_efi() 526 size_t data_len; in brcmf_fw_request_nvram_done() local [all …]
|
/linux/net/mac80211/ |
A D | aead_api.c | 19 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 D | aes_cmac.c | 26 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 D | aes_gmac.c | 18 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/drivers/spi/ |
A D | spi-dln2.c | 419 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() 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() 477 if (le16_to_cpu(rx->size) != data_len) in dln2_spi_read_one() 507 if (data_len > DLN2_SPI_MAX_XFER_SIZE) in dln2_spi_read_write_one() 519 tx->size = cpu_to_le16(data_len); in dln2_spi_read_write_one() 551 u16 remaining = data_len; in dln2_spi_rdwr() [all …]
|
/linux/drivers/crypto/nx/ |
A D | nx-sha512.c | 71 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 D | nx-sha256.c | 71 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/drivers/firmware/efi/ |
A D | apple-properties.c | 180 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/crypto/asymmetric_keys/ |
A D | mscode_parser.c | 20 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/drivers/char/ipmi/ |
A D | ipmi_devintf.c | 157 msg.data_len = req->msg.data_len; in handle_send_req() 177 req->msg.data_len)) { in handle_send_req() 182 msg.data_len = 0; in handle_send_req() 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() 261 msg->msg.data_len)) { in handle_recv() 265 rsp->msg.data_len = msg->msg.data_len; in handle_recv() 267 rsp->msg.data_len = 0; in handle_recv() 636 u16 data_len; member 669 p64->data_len = p32->data_len; in get_compat_ipmi_msg() [all …]
|
/linux/net/openvswitch/ |
A D | openvswitch_trace.h | 25 __field( unsigned int, data_len ) 50 __entry->data_len = skb->data_len; 71 __entry->skbaddr, __entry->len, __entry->data_len, 96 __field( unsigned int, data_len ) 120 __entry->data_len = skb->data_len; 140 __entry->skbaddr, __entry->len, __entry->data_len,
|