/linux-6.1.9/drivers/fpga/ |
D | microchip-spi.c | 99 u8 header_size, blocks_num, block_id; in mpf_ops_parse_header() local 108 header_size = *(buf + MPF_HEADER_SIZE_OFFSET); in mpf_ops_parse_header() 109 if (header_size > count) { in mpf_ops_parse_header() 110 info->header_size = header_size; in mpf_ops_parse_header() 118 blocks_num = *(buf + header_size - 1); in mpf_ops_parse_header() 119 block_id_offset = header_size + MPF_LOOKUP_TABLE_BLOCK_ID_OFFSET; in mpf_ops_parse_header() 120 block_start_offset = header_size + MPF_LOOKUP_TABLE_BLOCK_START_OFFSET; in mpf_ops_parse_header() 122 header_size += blocks_num * MPF_LOOKUP_TABLE_RECORD_SIZE; in mpf_ops_parse_header() 123 if (header_size > count) { in mpf_ops_parse_header() 124 info->header_size = header_size; in mpf_ops_parse_header() [all …]
|
D | fpga-mgr.c | 160 if (info->header_size + info->data_size > count) { in fpga_mgr_parse_header_mapped() 191 miter.length >= info->header_size) in fpga_mgr_parse_header_sg_first() 216 size_t len, new_header_size, header_size = 0; in fpga_mgr_parse_header_sg() local 221 new_header_size = info->header_size; in fpga_mgr_parse_header_sg() 222 if (new_header_size <= header_size) { in fpga_mgr_parse_header_sg() 237 buf + header_size, in fpga_mgr_parse_header_sg() 238 new_header_size - header_size, in fpga_mgr_parse_header_sg() 239 header_size); in fpga_mgr_parse_header_sg() 240 if (len != new_header_size - header_size) { in fpga_mgr_parse_header_sg() 245 header_size = new_header_size; in fpga_mgr_parse_header_sg() [all …]
|
/linux-6.1.9/arch/um/drivers/ |
D | vector_transports.c | 259 vp->header_size = 4; in build_gre_transport_data() 276 vp->header_size += 4; in build_gre_transport_data() 286 vp->header_size += 4; in build_gre_transport_data() 296 vp->rx_header_size = vp->header_size; in build_gre_transport_data() 322 vp->header_size = 4; in build_l2tpv3_transport_data() 357 vp->header_size += 8; in build_l2tpv3_transport_data() 362 vp->header_size += 4; in build_l2tpv3_transport_data() 374 vp->header_size += 4; in build_l2tpv3_transport_data() 386 vp->header_size += 4; in build_l2tpv3_transport_data() 393 vp->rx_header_size = vp->header_size; in build_l2tpv3_transport_data() [all …]
|
D | vector_kern.c | 305 if (vp->header_size > 0) { in prep_msg() 306 iov[iov_index].iov_len = vp->header_size; in prep_msg() 505 if ((vp->header_size > 0) && in destroy_queue() 523 int header_size, in create_queue() argument 559 if (vp->header_size > 0) in create_queue() 578 if (vp->header_size > 0) { in create_queue() 579 iov->iov_base = kmalloc(header_size, GFP_KERNEL); in create_queue() 582 iov->iov_len = header_size; in create_queue() 637 if (vp->header_size > 0) in prep_skb() 853 if (vp->header_size > 0) { in vector_legacy_rx() [all …]
|
/linux-6.1.9/crypto/asymmetric_keys/ |
D | verify_pefile.c | 62 ctx->header_size = pe32->header_size; in pefile_parse_binary() 71 ctx->header_size = pe64->header_size; in pefile_parse_binary() 82 pr_debug("header size = %x\n", ctx->header_size); in pefile_parse_binary() 84 if (cursor >= ctx->header_size || ctx->header_size >= datalen) in pefile_parse_binary() 87 if (ctx->n_data_dirents > (ctx->header_size - cursor) / sizeof(*dde)) in pefile_parse_binary() 102 chkaddr(ctx->header_size, ddir->certs.virtual_address, in pefile_parse_binary() 111 if (ctx->n_sections > (ctx->header_size - cursor) / sizeof(*sec)) in pefile_parse_binary() 262 ret = crypto_shash_update(desc, pebuf + tmp, ctx->header_size - tmp); in pefile_digest_pe_contents() 286 hashed_bytes = ctx->header_size; in pefile_digest_pe_contents()
|
/linux-6.1.9/drivers/net/wireless/rsi/ |
D | rsi_91x_hal.c | 68 u8 header_size; in rsi_prepare_mgmt_desc() local 81 header_size = FRAME_DESC_SZ + sizeof(struct rsi_xtended_desc); in rsi_prepare_mgmt_desc() 82 if (header_size > skb_headroom(skb)) { in rsi_prepare_mgmt_desc() 88 skb_push(skb, header_size); in rsi_prepare_mgmt_desc() 96 header_size += dword_align_bytes; in rsi_prepare_mgmt_desc() 98 tx_params->internal_hdr_size = header_size; in rsi_prepare_mgmt_desc() 99 memset(&skb->data[0], 0, header_size); in rsi_prepare_mgmt_desc() 100 wh = (struct ieee80211_hdr *)&skb->data[header_size]; in rsi_prepare_mgmt_desc() 109 mgmt_desc->xtend_desc_size = header_size - FRAME_DESC_SZ; in rsi_prepare_mgmt_desc() 162 u8 header_size; in rsi_prepare_data_desc() local [all …]
|
/linux-6.1.9/net/batman-adv/ |
D | fragmentation.c | 410 unsigned int header_size = sizeof(*frag_head); in batadv_frag_create() local 411 unsigned int mtu = fragment_size + header_size; in batadv_frag_create() 420 skb_reserve(skb_fragment, ll_reserved + header_size); in batadv_frag_create() 424 skb_push(skb_fragment, header_size); in batadv_frag_create() 425 memcpy(skb_fragment->data, frag_head, header_size); in batadv_frag_create() 449 unsigned int header_size = sizeof(frag_header); in batadv_frag_send_packet() local 457 max_fragment_size = mtu - header_size; in batadv_frag_send_packet() 541 ret = skb_cow_head(skb, ETH_HLEN + header_size); in batadv_frag_send_packet() 545 skb_push(skb, header_size); in batadv_frag_send_packet() 546 memcpy(skb->data, &frag_header, header_size); in batadv_frag_send_packet()
|
/linux-6.1.9/drivers/hid/intel-ish-hid/ |
D | ishtp-hid.c | 61 unsigned int header_size = sizeof(struct hostif_msg); in ishtp_raw_request() local 80 ishtp_buf_len = len + header_size; in ishtp_raw_request() 85 memcpy(ishtp_buf + header_size, buf, len); in ishtp_raw_request() 111 unsigned int header_size = sizeof(struct hostif_msg); in ishtp_hid_request() local 113 len += header_size; in ishtp_hid_request() 130 hid_output_report(rep, buf + header_size); in ishtp_hid_request()
|
/linux-6.1.9/arch/powerpc/platforms/ps3/ |
D | gelic_udbg.c | 70 static int header_size; variable 149 header_size = sizeof(struct ethhdr); in gelic_debug_init() 158 header_size += sizeof(struct vlan_hdr); in gelic_debug_init() 168 header_size += sizeof(struct iphdr); in gelic_debug_init() 176 header_size += sizeof(struct udphdr); in gelic_debug_init() 198 dbg.descr.buf_size = header_size + msgsize; in gelic_sendbuf()
|
/linux-6.1.9/drivers/nvmem/ |
D | rave-sp-eeprom.c | 71 unsigned int header_size; member 97 const unsigned int cmd_size = eeprom->header_size + data_size; in rave_sp_eeprom_io() 117 if (offset < eeprom->header_size) in rave_sp_eeprom_io() 321 eeprom->header_size = RAVE_SP_EEPROM_HEADER_BIG; in rave_sp_eeprom_probe() 323 eeprom->header_size = RAVE_SP_EEPROM_HEADER_SMALL; in rave_sp_eeprom_probe()
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_debugdump.c | 453 u32 reg_sz, header_size, total_size; in nfp_dump_csr_range() local 464 header_size = ALIGN8(sizeof(*dump_header)); in nfp_dump_csr_range() 465 total_size = header_size + in nfp_dump_csr_range() 467 dest = dump->p + header_size; in nfp_dump_csr_range() 556 u32 reg_sz, header_size, total_size; in nfp_dump_indirect_csr_range() local 566 header_size = ALIGN8(sizeof(*dump_header)); in nfp_dump_indirect_csr_range() 569 total_size = header_size + ALIGN8(reg_data_length); in nfp_dump_indirect_csr_range() 570 dest = dump->p + header_size; in nfp_dump_indirect_csr_range() 603 u32 header_size, total_size, sym_size; in nfp_dump_single_rtsym() local 620 header_size = in nfp_dump_single_rtsym() [all …]
|
/linux-6.1.9/drivers/media/usb/uvc/ |
D | uvc_video.c | 472 unsigned int header_size; in uvc_video_clock_decode() local 482 header_size = 12; in uvc_video_clock_decode() 487 header_size = 6; in uvc_video_clock_decode() 491 header_size = 8; in uvc_video_clock_decode() 495 header_size = 2; in uvc_video_clock_decode() 500 if (len < header_size) in uvc_video_clock_decode() 521 dev_sof = get_unaligned_le16(&data[header_size - 2]); in uvc_video_clock_decode() 563 sample->dev_stc = get_unaligned_le32(&data[header_size - 6]); in uvc_video_clock_decode() 809 unsigned int header_size; in uvc_video_stats_decode() local 822 header_size = 12; in uvc_video_stats_decode() [all …]
|
/linux-6.1.9/sound/soc/sof/ |
D | sof-client-ipc-msg-injector.c | 79 size_t header_size = sizeof(ipc4_msg->header_u64); in sof_msg_inject_ipc4_dfs_read() local 86 if (count < header_size) in sof_msg_inject_ipc4_dfs_read() 89 remaining = header_size; in sof_msg_inject_ipc4_dfs_read() 102 if (copy_to_user(buffer, &ipc4_msg->header_u64, header_size)) in sof_msg_inject_ipc4_dfs_read() 105 *ppos += header_size; in sof_msg_inject_ipc4_dfs_read() 106 remaining -= header_size; in sof_msg_inject_ipc4_dfs_read()
|
/linux-6.1.9/drivers/media/platform/verisilicon/ |
D | hantro_h1_jpeg_enc.c | 49 size_left = vb2_plane_size(dst_buf, 0) - ctx->vpu_dst_fmt->header_size; in hantro_h1_jpeg_enc_set_buffers() 50 if (WARN_ON(vb2_plane_size(dst_buf, 0) < ctx->vpu_dst_fmt->header_size)) in hantro_h1_jpeg_enc_set_buffers() 56 ctx->vpu_dst_fmt->header_size, in hantro_h1_jpeg_enc_set_buffers() 165 ctx->vpu_dst_fmt->header_size + bytesused); in hantro_h1_jpeg_enc_done()
|
D | rockchip_vpu2_hw_jpeg_enc.c | 76 size_left = vb2_plane_size(dst_buf, 0) - ctx->vpu_dst_fmt->header_size; in rockchip_vpu2_jpeg_enc_set_buffers() 77 if (WARN_ON(vb2_plane_size(dst_buf, 0) < ctx->vpu_dst_fmt->header_size)) in rockchip_vpu2_jpeg_enc_set_buffers() 83 ctx->vpu_dst_fmt->header_size, in rockchip_vpu2_jpeg_enc_set_buffers() 196 ctx->vpu_dst_fmt->header_size + bytesused); in rockchip_vpu2_jpeg_enc_done()
|
/linux-6.1.9/drivers/mtd/ |
D | rfd_ftl.c | 79 u_int header_size; /* bytes in header sector */ member 172 part->header_size = (HEADER_MAP_OFFSET + in scan_header() 184 part->header_cache = kmalloc(part->header_size, GFP_KERNEL); in scan_header() 203 part->header_size, &retlen, in scan_header() 206 if (!rc && retlen != part->header_size) in scan_header() 332 map = kmalloc(part->header_size, GFP_KERNEL); in move_block_contents() 337 part->header_size, &retlen, (u_char *)map); in move_block_contents() 339 if (!rc && retlen != part->header_size) in move_block_contents() 526 part->header_size, &retlen, in find_writable_block() 529 if (!rc && retlen != part->header_size) in find_writable_block()
|
/linux-6.1.9/fs/pstore/ |
D | platform.c | 414 int header_size; in pstore_dump() local 435 header_size = snprintf(dst, dst_size, "%s#%d Part%u\n", why, in pstore_dump() 437 dst_size -= header_size; in pstore_dump() 440 if (!kmsg_dump_get_buffer(&iter, true, dst + header_size, in pstore_dump() 446 header_size + dump_size, in pstore_dump() 453 record.size = copy_kmsg_to_buffer(header_size, in pstore_dump() 457 record.size = header_size + dump_size; in pstore_dump()
|
/linux-6.1.9/drivers/net/wireless/silabs/wfx/ |
D | fwio.c | 228 int header_size; in load_firmware_secure() local 252 header_size = fw_offset + FW_SIGNATURE_SIZE + FW_HASH_SIZE; in load_firmware_secure() 265 wfx_sram_reg_write(wdev, WFX_DCA_IMAGE_SIZE, fw->size - header_size); in load_firmware_secure() 272 ret = upload_firmware(wdev, fw->data + header_size, fw->size - header_size); in load_firmware_secure()
|
/linux-6.1.9/fs/ksmbd/ |
D | smb2ops.c | 27 .header_size = sizeof(struct smb2_hdr), 53 .header_size = sizeof(struct smb2_hdr), 80 .header_size = sizeof(struct smb2_hdr), 107 .header_size = sizeof(struct smb2_hdr),
|
/linux-6.1.9/drivers/firewire/ |
D | core-iso.c | 133 int type, int channel, int speed, size_t header_size, in fw_iso_context_create() argument 139 type, channel, header_size); in fw_iso_context_create() 147 ctx->header_size = header_size; in fw_iso_context_create()
|
/linux-6.1.9/block/partitions/ |
D | efi.c | 356 if (le32_to_cpu((*gpt)->header_size) > in is_gpt_valid() 359 le32_to_cpu((*gpt)->header_size), in is_gpt_valid() 365 if (le32_to_cpu((*gpt)->header_size) < sizeof(gpt_header)) { in is_gpt_valid() 367 le32_to_cpu((*gpt)->header_size), in is_gpt_valid() 375 crc = efi_crc32((const unsigned char *) (*gpt), le32_to_cpu((*gpt)->header_size)); in is_gpt_valid()
|
/linux-6.1.9/Documentation/driver-api/fpga/ |
D | fpga-mgr.rst | 87 The .parse_header function will set header_size and data_size to 88 struct fpga_image_info. Before parse_header call, header_size is initialized 90 .write function will get image buffer starting at header_size offset from the 98 size into info->header_size and return -EAGAIN, then it will be called again 102 buffer passed into .write_init will be at least info->header_size bytes long;
|
/linux-6.1.9/drivers/net/ipa/ |
D | ipa_endpoint.c | 554 u32 header_size = sizeof(struct rmnet_map_header); in ipa_qmap_header_size() local 558 return header_size; in ipa_qmap_header_size() 563 header_size += sizeof(struct rmnet_map_ul_csum_header); in ipa_qmap_header_size() 566 header_size += sizeof(struct rmnet_map_v5_csum_header); in ipa_qmap_header_size() 569 return header_size; in ipa_qmap_header_size() 574 const struct ipa_reg *reg, u32 header_size) in ipa_header_size_encode() argument 580 val = ipa_reg_encode(reg, HDR_LEN, header_size & field_max); in ipa_header_size_encode() 582 WARN_ON(header_size > field_max); in ipa_header_size_encode() 587 header_size >>= hweight32(field_max); in ipa_header_size_encode() 588 WARN_ON(header_size > ipa_reg_field_max(reg, HDR_LEN_MSB)); in ipa_header_size_encode() [all …]
|
/linux-6.1.9/drivers/mmc/host/ |
D | vub300.c | 61 u8 header_size; member 76 u8 header_size; member 87 u8 header_size; member 93 u8 header_size; member 102 u8 header_size; member 113 u8 header_size; member 120 u8 header_size; member 132 u8 header_size; member 139 u8 header_size; member 482 vub300->cmnd.poll.header_size = 22; in send_irqpoll() [all …]
|
/linux-6.1.9/drivers/media/platform/st/sti/hva/ |
D | hva-h264.c | 419 u16 *header_size, in hva_h264_fill_slice_header() argument 446 *header_size = 56; in hva_h264_fill_slice_header() 457 *header_size += 4; in hva_h264_fill_slice_header() 463 *header_size += 2; in hva_h264_fill_slice_header() 470 *header_size += 1; in hva_h264_fill_slice_header() 484 pctx->name, __func__, frame_order, idr_pic_id, *header_size); in hva_h264_fill_slice_header()
|