Home
last modified time | relevance | path

Searched refs:header_size (Results 1 – 25 of 115) sorted by relevance

12345

/linux-6.6.21/drivers/fpga/
Dmicrochip-spi.c109 u8 header_size, blocks_num, block_id; in mpf_ops_parse_header() local
118 header_size = *(buf + MPF_HEADER_SIZE_OFFSET); in mpf_ops_parse_header()
119 if (header_size > count) { in mpf_ops_parse_header()
120 info->header_size = header_size; in mpf_ops_parse_header()
128 blocks_num = *(buf + header_size - 1); in mpf_ops_parse_header()
129 block_id_offset = header_size + MPF_LOOKUP_TABLE_BLOCK_ID_OFFSET; in mpf_ops_parse_header()
130 block_start_offset = header_size + MPF_LOOKUP_TABLE_BLOCK_START_OFFSET; in mpf_ops_parse_header()
132 header_size += blocks_num * MPF_LOOKUP_TABLE_RECORD_SIZE; in mpf_ops_parse_header()
133 if (header_size > count) { in mpf_ops_parse_header()
134 info->header_size = header_size; in mpf_ops_parse_header()
[all …]
Dfpga-mgr.c160 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.6.21/arch/um/drivers/
Dvector_transports.c259 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 …]
Dvector_kern.c305 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()
854 if (vp->header_size > 0) { in vector_legacy_rx()
[all …]
/linux-6.6.21/crypto/asymmetric_keys/
Dverify_pefile.c62 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()
266 ret = crypto_shash_update(desc, pebuf + tmp, ctx->header_size - tmp); in pefile_digest_pe_contents()
290 hashed_bytes = ctx->header_size; in pefile_digest_pe_contents()
/linux-6.6.21/drivers/net/wireless/rsi/
Drsi_91x_hal.c68 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.6.21/drivers/accel/ivpu/
Divpu_fw_log.c42 if (log->header_size < sizeof(*log) || log->header_size > 1024) { in fw_log_ptr()
43 ivpu_dbg(vdev, FW_BOOT, "Invalid header size 0x%x\n", log->header_size); in fw_log_ptr()
57 log->header_size, log->format, log->alignment); in fw_log_ptr()
96 char *log_buffer = (void *)log + log->header_size; in fw_log_print_buffer()
97 u32 log_size = log->size - log->header_size; in fw_log_print_buffer()
/linux-6.6.21/net/batman-adv/
Dfragmentation.c410 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.6.21/drivers/hid/intel-ish-hid/
Dishtp-hid.c61 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.6.21/arch/powerpc/platforms/ps3/
Dgelic_udbg.c70 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.6.21/drivers/nvmem/
Drave-sp-eeprom.c71 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.6.21/drivers/net/ethernet/netronome/nfp/
Dnfp_net_debugdump.c453 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.6.21/drivers/media/usb/uvc/
Duvc_video.c474 unsigned int header_size; in uvc_video_clock_decode() local
484 header_size = 12; in uvc_video_clock_decode()
489 header_size = 6; in uvc_video_clock_decode()
493 header_size = 8; in uvc_video_clock_decode()
497 header_size = 2; in uvc_video_clock_decode()
502 if (len < header_size) in uvc_video_clock_decode()
525 dev_sof = get_unaligned_le16(&data[header_size - 2]); in uvc_video_clock_decode()
567 sample->dev_stc = get_unaligned_le32(&data[header_size - 6]); in uvc_video_clock_decode()
813 unsigned int header_size; in uvc_video_stats_decode() local
826 header_size = 12; in uvc_video_stats_decode()
[all …]
/linux-6.6.21/sound/soc/sof/
Dsof-client-ipc-msg-injector.c79 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.6.21/drivers/media/platform/verisilicon/
Dhantro_h1_jpeg_enc.c49 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()
Drockchip_vpu2_hw_jpeg_enc.c76 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.6.21/drivers/mtd/
Drfd_ftl.c79 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.6.21/drivers/net/wireless/silabs/wfx/
Dfwio.c228 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.6.21/fs/pstore/
Dplatform.c306 int header_size; in pstore_dump() local
322 header_size = snprintf(dst, dst_size, "%s#%d Part%u\n", why, in pstore_dump()
324 dst_size -= header_size; in pstore_dump()
327 if (!kmsg_dump_get_buffer(&iter, true, dst + header_size, in pstore_dump()
333 header_size + dump_size, in pstore_dump()
351 record.size = header_size + dump_size; in pstore_dump()
/linux-6.6.21/fs/smb/server/
Dsmb2ops.c27 .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.6.21/drivers/firewire/
Dcore-iso.c133 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.6.21/block/partitions/
Defi.c356 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.6.21/Documentation/driver-api/fpga/
Dfpga-mgr.rst87 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.6.21/drivers/mmc/host/
Dvub300.c61 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.6.21/drivers/net/ipa/
Dipa_endpoint.c699 u32 header_size = sizeof(struct rmnet_map_header); in ipa_qmap_header_size() local
703 return header_size; in ipa_qmap_header_size()
708 header_size += sizeof(struct rmnet_map_ul_csum_header); in ipa_qmap_header_size()
711 header_size += sizeof(struct rmnet_map_v5_csum_header); in ipa_qmap_header_size()
714 return header_size; in ipa_qmap_header_size()
719 const struct reg *reg, u32 header_size) in ipa_header_size_encode() argument
725 val = reg_encode(reg, HDR_LEN, header_size & field_max); in ipa_header_size_encode()
727 WARN_ON(header_size > field_max); in ipa_header_size_encode()
732 header_size >>= hweight32(field_max); in ipa_header_size_encode()
733 WARN_ON(header_size > reg_field_max(reg, HDR_LEN_MSB)); in ipa_header_size_encode()
[all …]

12345