Home
last modified time | relevance | path

Searched refs:data_size (Results 1 – 25 of 449) sorted by relevance

12345678910>>...18

/linux/drivers/md/
A Ddm-log-userspace-transfer.c49 size_t *data_size; member
109 *(pkg->data_size) = 0; in fill_pkg()
110 } else if (tfr->data_size > *(pkg->data_size)) { in fill_pkg()
113 tfr->data_size, *(pkg->data_size)); in fill_pkg()
115 *(pkg->data_size) = 0; in fill_pkg()
120 *(pkg->data_size) = tfr->data_size; in fill_pkg()
171 char *data, size_t data_size, in dm_consult_userspace() argument
213 tfr->data_size = data_size; in dm_consult_userspace()
214 if (data && data_size) in dm_consult_userspace()
215 memcpy(tfr->data, data, data_size); in dm_consult_userspace()
[all …]
/linux/drivers/misc/ibmasm/
A Devent.c43 void ibmasm_receive_event(struct service_processor *sp, void *data, unsigned int data_size) in ibmasm_receive_event() argument
49 data_size = min(data_size, IBMASM_EVENT_MAX_SIZE); in ibmasm_receive_event()
54 memcpy_fromio(event->data, data, data_size); in ibmasm_receive_event()
55 event->data_size = data_size; in ibmasm_receive_event()
101 memcpy(reader->data, event->data, event->data_size); in ibmasm_get_next_event()
102 reader->data_size = event->data_size; in ibmasm_get_next_event()
107 return event->data_size; in ibmasm_get_next_event()
A Di2o.h42 static inline unsigned short outgoing_message_size(unsigned int data_size) in outgoing_message_size() argument
47 if (data_size > I2O_COMMAND_SIZE) in outgoing_message_size()
48 data_size = I2O_COMMAND_SIZE; in outgoing_message_size()
50 size = sizeof(struct i2o_header) + data_size; in outgoing_message_size()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dmapping.c22 size_t data_size; member
51 hash_key = jhash(data, ctx->data_size, 0); in mapping_add()
53 if (!memcmp(data, mi->data, ctx->data_size)) in mapping_add()
57 mi = kzalloc(sizeof(*mi) + ctx->data_size, GFP_KERNEL); in mapping_add()
61 memcpy(mi->data, data, ctx->data_size); in mapping_add()
143 memcpy(data, mi->data, ctx->data_size); in mapping_find()
195 mapping_create(size_t data_size, u32 max_id, bool delayed_removal) in mapping_create() argument
204 ctx->data_size = data_size; in mapping_create()
223 mapping_create_for_id(u64 id, u8 type, size_t data_size, u32 max_id, bool delayed_removal) in mapping_create_for_id() argument
236 ctx = mapping_create(data_size, max_id, delayed_removal); in mapping_create_for_id()
/linux/arch/x86/kernel/
A Dumip.c206 unsigned char *data, int *data_size, bool x86_64) in emulate_umip_insn() argument
208 if (!data || !data_size || !insn) in emulate_umip_insn()
239 *data_size = UMIP_GDT_IDT_BASE_SIZE_64BIT; in emulate_umip_insn()
241 *data_size = UMIP_GDT_IDT_BASE_SIZE_32BIT; in emulate_umip_insn()
243 memcpy(data + 2, &dummy_base_addr, *data_size); in emulate_umip_insn()
245 *data_size += UMIP_GDT_IDT_LIMIT_SIZE; in emulate_umip_insn()
278 *data_size = insn->opnd_bytes; in emulate_umip_insn()
280 *data_size = 2; in emulate_umip_insn()
282 memcpy(data, &dummy_value, *data_size); in emulate_umip_insn()
/linux/drivers/remoteproc/
A Dremoteproc_coredump.c239 size_t data_size; in rproc_coredump() local
256 data_size = elf_size_of_hdr(class); in rproc_coredump()
263 data_size += elf_size_of_phdr(class); in rproc_coredump()
265 data_size += segment->size; in rproc_coredump()
270 data = vmalloc(data_size); in rproc_coredump()
312 dev_coredumpv(&rproc->dev, data, data_size, GFP_KERNEL); in rproc_coredump()
348 size_t data_size; in rproc_coredump_using_sections() local
380 data_size += elf_size_of_shdr(class); in rproc_coredump_using_sections()
383 data_size += segment->size; in rproc_coredump_using_sections()
387 data_size += strtbl_size; in rproc_coredump_using_sections()
[all …]
/linux/fs/btrfs/
A Ddir-item.c23 u32 data_size, in insert_with_overflow() argument
39 btrfs_extend_item(path, data_size); in insert_with_overflow()
46 BUG_ON(data_size > btrfs_item_size(leaf, item)); in insert_with_overflow()
47 ptr += btrfs_item_size(leaf, item) - data_size; in insert_with_overflow()
67 u32 data_size; in btrfs_insert_xattr_item() local
76 data_size = sizeof(*dir_item) + name_len + data_len; in btrfs_insert_xattr_item()
121 u32 data_size; in btrfs_insert_dir_item() local
133 data_size = sizeof(*dir_item) + name_len; in btrfs_insert_dir_item()
234 int data_size; in btrfs_check_dir_item_collision() local
271 data_size = sizeof(*di) + name_len; in btrfs_check_dir_item_collision()
[all …]
/linux/drivers/crypto/xilinx/
A Dzynqmp-aes-gcm.c85 unsigned int data_size; in zynqmp_aes_aead_cipher() local
109 data_size = req->cryptlen; in zynqmp_aes_aead_cipher()
111 memcpy(kbuf + data_size, req->iv, GCM_AES_IV_SIZE); in zynqmp_aes_aead_cipher()
115 hwreq->iv = hwreq->src + data_size; in zynqmp_aes_aead_cipher()
120 hwreq->size = data_size; in zynqmp_aes_aead_cipher()
122 hwreq->size = data_size - ZYNQMP_AES_AUTH_SIZE; in zynqmp_aes_aead_cipher()
125 memcpy(kbuf + data_size + GCM_AES_IV_SIZE, in zynqmp_aes_aead_cipher()
128 hwreq->key = hwreq->src + data_size + GCM_AES_IV_SIZE; in zynqmp_aes_aead_cipher()
156 data_size = data_size + ZYNQMP_AES_AUTH_SIZE; in zynqmp_aes_aead_cipher()
158 data_size = data_size - ZYNQMP_AES_AUTH_SIZE; in zynqmp_aes_aead_cipher()
[all …]
/linux/fs/ntfs3/
A Dattrib.c1067 u32 data_size; in attr_data_read_resident() local
1077 data_size = le32_to_cpu(attr->res.data_size); in attr_data_read_resident()
1104 u32 data_size; in attr_data_write_resident() local
1116 data_size = le32_to_cpu(attr->res.data_size); in attr_data_write_resident()
1475 data_size = le64_to_cpu(attr_b->nres.data_size); in attr_allocate_frame()
1699 data_size = le64_to_cpu(attr_b->nres.data_size); in attr_collapse_range()
1716 if (vbo > data_size) in attr_collapse_range()
1896 data_size -= bytes; in attr_collapse_range()
1904 attr_b->nres.data_size = cpu_to_le64(data_size); in attr_collapse_range()
1952 u32 data_size = le32_to_cpu(attr->res.data_size); in attr_punch_hole() local
[all …]
/linux/drivers/firmware/efi/
A Dmokvar-table.c161 if (mokvar_entry->data_size != 0) in efi_mokvar_table_init()
174 cur_offset = map_size_needed + mokvar_entry->data_size; in efi_mokvar_table_init()
224 size_cur = sizeof(*mokvar_cur) + mokvar_cur->data_size; in efi_mokvar_entry_next()
277 if (off >= mokvar_entry->data_size) in efi_mokvar_sysfs_read()
279 if (count > mokvar_entry->data_size - off) in efi_mokvar_sysfs_read()
280 count = mokvar_entry->data_size - off; in efi_mokvar_sysfs_read()
345 mokvar_sysfs->bin_attr.size = mokvar_entry->data_size; in efi_mokvar_sysfs_init()
/linux/tools/testing/selftests/arm64/fp/
A Dsve-ptrace.c278 size_t data_size; in ptrace_set_sve_get_sve_data() local
281 data_size = SVE_PT_SVE_OFFSET + SVE_PT_SVE_SIZE(vq, SVE_PT_REGS_SVE); in ptrace_set_sve_get_sve_data()
282 write_buf = malloc(data_size); in ptrace_set_sve_get_sve_data()
285 data_size, vl); in ptrace_set_sve_get_sve_data()
291 memset(write_sve, 0, data_size); in ptrace_set_sve_get_sve_data()
292 write_sve->size = data_size; in ptrace_set_sve_get_sve_data()
368 size_t data_size; in ptrace_set_sve_get_fpsimd_data() local
377 write_buf = malloc(data_size); in ptrace_set_sve_get_fpsimd_data()
380 data_size, vl); in ptrace_set_sve_get_fpsimd_data()
386 memset(write_sve, 0, data_size); in ptrace_set_sve_get_fpsimd_data()
[all …]
/linux/drivers/scsi/qla2xxx/
A Dqla_nx2.h306 uint32_t data_size; member
328 uint32_t data_size; member
349 uint32_t data_size; member
390 uint32_t data_size; member
406 uint32_t data_size; member
428 uint32_t data_size; member
442 uint32_t data_size; member
459 uint32_t data_size; member
471 uint32_t data_size; member
487 uint8_t data_size; member
[all …]
/linux/drivers/gpu/drm/nouveau/include/nvfw/
A Dflcn.h14 u32 data_size; member
34 u32 data_size; member
54 u32 data_size; member
73 u32 data_size; member
90 u32 data_size; member
/linux/drivers/platform/chrome/wilco_ec/
A Dmailbox.c98 rq->data_size = msg->request_size; in wilco_ec_prepare()
165 if (rs->data_size != EC_MAILBOX_DATA_SIZE) { in wilco_ec_transfer()
167 rs->data_size, EC_MAILBOX_DATA_SIZE); in wilco_ec_transfer()
171 if (rs->data_size < msg->response_size) { in wilco_ec_transfer()
173 rs->data_size, msg->response_size); in wilco_ec_transfer()
179 return rs->data_size; in wilco_ec_transfer()
/linux/drivers/net/can/spi/mcp251xfd/
A Dmcp251xfd-crc16.c73 u16 mcp251xfd_crc16_compute(const void *data, size_t data_size) in mcp251xfd_crc16_compute() argument
77 return mcp251xfd_crc16(crc, data, data_size); in mcp251xfd_crc16_compute()
81 const void *data, size_t data_size) in mcp251xfd_crc16_compute2() argument
86 crc = mcp251xfd_crc16(crc, data, data_size); in mcp251xfd_crc16_compute2()
/linux/drivers/crypto/bcm/
A Dspu.c463 unsigned int data_size) in spum_gcm_ccm_pad_len() argument
470 pad_len = ((data_size + m1) & ~m1) - data_size; in spum_gcm_ccm_pad_len()
591 unsigned int data_size) in spum_create_request() argument
616 data_size, in spum_create_request()
658 flow_log(" data_size:%u\n", data_size); in spum_create_request()
768 data_size -= hash_parms->digestsize; in spum_create_request()
926 unsigned int data_size) in spum_cipher_req_finish() argument
996 bd->size = cpu_to_be16(data_size); in spum_cipher_req_finish()
1002 bd->size = cpu_to_be16(data_size); in spum_cipher_req_finish()
1211 u32 spum_wordalign_padlen(u32 data_size) in spum_wordalign_padlen() argument
[all …]
A Dspu.h208 u32 data_size, in spu_real_db_size() argument
213 return assoc_size + aead_iv_buf_len + prebuf_len + data_size + in spu_real_db_size()
232 unsigned int data_size);
247 unsigned int data_size);
255 unsigned int data_size);
275 u32 spum_wordalign_padlen(u32 data_size);
/linux/kernel/bpf/
A Dlpm_trie.c36 size_t data_size; member
179 if (trie->data_size >= 8) { in longest_prefix_match()
192 while (trie->data_size >= i + 4) { in longest_prefix_match()
204 if (trie->data_size >= i + 2) { in longest_prefix_match()
216 if (trie->data_size >= i + 1) { in longest_prefix_match()
275 return found->data + trie->data_size; in trie_lookup_elem()
295 memcpy(node->data + trie->data_size, value, in lpm_trie_node_alloc()
340 memcpy(new_node->data, key->data, trie->data_size); in trie_update_elem()
566 trie->data_size = attr->key_size - in trie_alloc()
568 trie->max_prefixlen = trie->data_size * 8; in trie_alloc()
[all …]
/linux/net/rxrpc/
A Drxkad.c275 data_size |= (u32)check << 16; in rxkad_secure_packet_auth()
277 hdr.data_size = htonl(data_size); in rxkad_secure_packet_auth()
305 u32 data_size, in rxkad_secure_packet_encrypt() argument
324 rxkhdr.data_size = htonl(data_size | (u32)check << 16); in rxkad_secure_packet_encrypt()
371 size_t data_size) in rxkad_secure_packet() argument
450 u32 data_size, buf; in rxkad_verify_packet_1() local
488 data_size = buf & 0xffff; in rxkad_verify_packet_1()
499 if (data_size > len) { in rxkad_verify_packet_1()
527 u32 data_size, buf; in rxkad_verify_packet_2() local
581 data_size = buf & 0xffff; in rxkad_verify_packet_2()
[all …]
/linux/drivers/mtd/ubi/
A Deba.c850 data_size = offset + len; in try_recover_peb()
854 vid_hdr->data_size = cpu_to_be32(data_size); in try_recover_peb()
1123 len = ALIGN(data_size, ubi->min_io_size); in ubi_eba_write_leb_st()
1145 vid_hdr->data_size = cpu_to_be32(data_size); in ubi_eba_write_leb_st()
1229 vid_hdr->data_size = cpu_to_be32(len); in ubi_eba_atomic_leb_change()
1317 data_size = be32_to_cpu(vid_hdr->data_size); in ubi_eba_copy_leb()
1320 data_size = aldata_size = in ubi_eba_copy_leb()
1399 aldata_size = data_size = in ubi_eba_copy_leb()
1412 if (data_size > 0) { in ubi_eba_copy_leb()
1414 vid_hdr->data_size = cpu_to_be32(data_size); in ubi_eba_copy_leb()
[all …]
/linux/drivers/net/ethernet/intel/i40e/
A Di40e_nvm.c839 if (!cmd->data_size) { in i40e_nvmupd_command()
846 if (cmd->data_size >= 4) { in i40e_nvmupd_command()
1290 if ((cmd->data_size < 1) || in i40e_nvmupd_validate_command()
1294 cmd->data_size); in i40e_nvmupd_validate_command()
1395 if (cmd->data_size < aq_desc_len) { in i40e_nvmupd_exec_aq()
1398 cmd->data_size, aq_desc_len); in i40e_nvmupd_exec_aq()
1484 cmd->data_size = new_len; in i40e_nvmupd_get_aq_result()
1487 remainder = cmd->data_size; in i40e_nvmupd_get_aq_result()
1491 len = min(len, cmd->data_size); in i40e_nvmupd_get_aq_result()
1538 if (cmd->data_size > aq_total_len) { in i40e_nvmupd_get_aq_event()
[all …]
/linux/drivers/staging/media/atomisp/i2c/
A Datomisp-libmsrlisthelper.c45 u16 data_size; member
109 header->data_size > endptr8) in parse_and_apply()
116 if (header->data_size && (header->flags & 1)) { in parse_and_apply()
121 dataset, header->data_size); in parse_and_apply()
124 header->data_size); in parse_and_apply()
/linux/arch/x86/kernel/cpu/microcode/
A Dintel.c182 unsigned long total_size, data_size, ext_table_size; in microcode_sanity_check() local
189 data_size = get_datasize(mc_header); in microcode_sanity_check()
191 if (data_size + MC_HEADER_SIZE > total_size) { in microcode_sanity_check()
215 ext_header = mc + MC_HEADER_SIZE + data_size; in microcode_sanity_check()
247 i = (MC_HEADER_SIZE + data_size) / sizeof(u32); in microcode_sanity_check()
410 data_size = get_datasize(mc_saved_header); in show_saved_mc()
419 if (total_size <= data_size + MC_HEADER_SIZE) in show_saved_mc()
837 unsigned int mc_size, data_size; in generic_load_microcode() local
850 data_size = mc_size - sizeof(mc_header); in generic_load_microcode()
851 if (data_size > iov_iter_count(iter)) { in generic_load_microcode()
[all …]
/linux/kernel/printk/
A Dprintk_ringbuffer.c1204 unsigned int *data_size) in get_data() argument
1211 *data_size = 0; in get_data()
1221 *data_size = blk_lpos->next - blk_lpos->begin; in get_data()
1242 if (WARN_ON_ONCE(*data_size < sizeof(db->id))) in get_data()
1246 *data_size -= sizeof(db->id); in get_data()
1352 unsigned int data_size; in prb_reserve_in_last() local
1410 info->text_len, data_size); in prb_reserve_in_last()
1411 info->text_len = data_size; in prb_reserve_in_last()
1698 unsigned int data_size; in copy_data() local
1716 if (data_size < (unsigned int)len) in copy_data()
[all …]
/linux/drivers/scsi/qla4xxx/
A Dql4_83xx.h235 uint32_t data_size; member
249 uint32_t data_size; member
266 uint32_t data_size; member
278 uint32_t data_size; member
294 uint8_t data_size; member
308 uint32_t data_size; member

Completed in 85 milliseconds

12345678910>>...18