Home
last modified time | relevance | path

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

1234567

/openbmc/linux/drivers/fpga/
H A 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 …]
H A Dfpga-mgr.c221 new_header_size = info->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()
245 header_size = new_header_size; in fpga_mgr_parse_header_sg()
256 *ret_size = header_size; in fpga_mgr_parse_header_sg()
272 size_t header_size = info->header_size; in fpga_mgr_write_init_buf() local
277 if (header_size > count) in fpga_mgr_write_init_buf()
279 else if (!header_size) in fpga_mgr_write_init_buf()
429 buf += info->header_size; in fpga_mgr_buf_load_mapped()
[all …]
/openbmc/linux/arch/um/drivers/
H A 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 …]
H A Dvector_kern.c305 if (vp->header_size > 0) { in prep_msg()
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()
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()
879 if (vp->header_size > 0) { in vector_legacy_rx()
995 if (vp->header_size > 0) { in vector_mmsg_rx()
1250 vp->header_size, in vector_net_open()
[all …]
/openbmc/linux/crypto/asymmetric_keys/
H A 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()
/openbmc/linux/drivers/net/wireless/rsi/
H A Drsi_91x_hal.c68 u8 header_size; in rsi_prepare_mgmt_desc() local
88 skb_push(skb, header_size); in rsi_prepare_mgmt_desc()
96 header_size += dword_align_bytes; in rsi_prepare_mgmt_desc()
162 u8 header_size; in rsi_prepare_data_desc() local
180 skb_push(skb, header_size); in rsi_prepare_data_desc()
187 header_size += dword_align_bytes; in rsi_prepare_data_desc()
191 memset(data_desc, 0, header_size); in rsi_prepare_data_desc()
347 u8 header_size; in rsi_send_mgmt_pkt() local
391 u8 header_size = 0; in rsi_send_bt_pkt() local
402 header_size = FRAME_DESC_SZ; in rsi_send_bt_pkt()
[all …]
/openbmc/linux/drivers/accel/ivpu/
H A 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()
/openbmc/linux/drivers/hid/intel-ish-hid/
H A 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()
/openbmc/linux/net/batman-adv/
H A 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()
/openbmc/linux/arch/powerpc/platforms/ps3/
H A 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()
/openbmc/u-boot/tools/
H A Dmtk_image.c395 tparams->header_size = sizeof(union lk_hdr); in mtk_image_vrec_header()
397 memset(&hdr_tmp, 0xff, tparams->header_size); in mtk_image_vrec_header()
402 tparams->header_size = 2 * le16_to_cpu(hdr_nand->pagesize); in mtk_image_vrec_header()
404 tparams->header_size = sizeof(struct gen_device_header); in mtk_image_vrec_header()
406 tparams->header_size += sizeof(struct gfh_header); in mtk_image_vrec_header()
409 memset(&hdr_tmp, 0xff, tparams->header_size); in mtk_image_vrec_header()
448 gfh = (struct gfh_header *)(ptr + le32_to_cpu(bh->header_size)); in mtk_image_verify_gen_header()
665 hdr->brlyt.header_size = cpu_to_le32(sizeof(struct gen_device_header)); in mtk_image_set_gen_header()
667 hdr->brlyt.header_size_2 = hdr->brlyt.header_size; in mtk_image_set_gen_header()
699 brlyt->header_size = cpu_to_le32(2); in mtk_image_set_nand_header()
[all …]
H A Dimximage.c835 uint32_t header_size; in imximage_set_header() local
852 header_size = sizeof(flash_header_v1_t); in imximage_set_header()
856 header_size += sizeof(dcd_v2_t); in imximage_set_header()
858 header_size += MAX_PLUGIN_CODE_SIZE; in imximage_set_header()
862 imximage_init_loadsize = imximage_ivt_offset + header_size; in imximage_set_header()
914 uint32_t pad_len, header_size; in imximage_generate() local
933 header_size = sizeof(imx_header_v1_t); in imximage_generate()
937 header_size += sizeof(dcd_v2_t); in imximage_generate()
939 header_size += MAX_PLUGIN_CODE_SIZE; in imximage_generate()
947 if (alloc_len < header_size) { in imximage_generate()
[all …]
H A Dmkimage.c349 params.ep += tparams->header_size; in main()
391 if ((unsigned)sbuf.st_size < tparams->header_size) { in main()
437 params.file_size = sbuf.st_size + tparams->header_size; in main()
450 memset(tparams->hdr, 0, tparams->header_size); in main()
452 if (write(ifd, tparams->hdr, tparams->header_size) in main()
453 != tparams->header_size) { in main()
550 - tparams->header_size, in main()
552 - tparams->header_size in main()
687 if ((unsigned)sbuf.st_size < tparams->header_size) { in copy_file()
694 for (p = ptr; p < ptr + tparams->header_size; p++) { in copy_file()
[all …]
H A Drkcommon.c359 tparams->header_size = RK_SPL_HDR_START; in rkcommon_vrec_header()
362 tparams->hdr = malloc(tparams->header_size); in rkcommon_vrec_header()
365 memset(tparams->hdr, 0, tparams->header_size); in rkcommon_vrec_header()
374 unpadded_size = tparams->header_size + params->file_size; in rkcommon_vrec_header()
/openbmc/linux/drivers/nvmem/
H A 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()
/openbmc/linux/drivers/media/usb/uvc/
H A Duvc_video.c485 header_size = 12; in uvc_video_clock_decode()
490 header_size = 6; in uvc_video_clock_decode()
494 header_size = 8; in uvc_video_clock_decode()
498 header_size = 2; in uvc_video_clock_decode()
503 if (len < header_size) in uvc_video_clock_decode()
866 header_size = 12; in uvc_video_stats_decode()
871 header_size = 6; in uvc_video_stats_decode()
875 header_size = 8; in uvc_video_stats_decode()
879 header_size = 2; in uvc_video_stats_decode()
884 if (len < header_size || data[0] < header_size) { in uvc_video_stats_decode()
[all …]
/openbmc/linux/drivers/net/ethernet/netronome/nfp/
H A 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()
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()
622 total_size = header_size + ALIGN8(sym_size); in nfp_dump_single_rtsym()
[all …]
/openbmc/linux/sound/soc/sof/
H A 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()
/openbmc/linux/drivers/media/platform/verisilicon/
H A 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()
H A 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()
/openbmc/u-boot/lib/efi_loader/
H A Defi_net.c381 (struct efi_simple_network *this, size_t header_size, in efi_net_transmit() argument
389 (unsigned long)header_size, (unsigned long)buffer_size, in efi_net_transmit()
406 if (header_size) { in efi_net_transmit()
452 (struct efi_simple_network *this, size_t *header_size, in efi_net_receive() argument
462 EFI_ENTRY("%p, %p, %p, %p, %p, %p, %p", this, header_size, in efi_net_receive()
502 if (header_size) in efi_net_receive()
503 *header_size = hdr_size; in efi_net_receive()
/openbmc/qemu/block/
H A Dqed.h91 uint32_t header_size; /* in clusters */ member
274 uint64_t header_size = (uint64_t)s->header.header_size * in qed_check_cluster_offset() local
280 return offset >= header_size && offset < s->file_size; in qed_check_cluster_offset()
/openbmc/qemu/io/
H A Dchannel-websock.c616 size_t header_size; in qio_channel_websock_encode() local
629 header_size = QIO_CHANNEL_WEBSOCK_HEADER_LEN_7_BIT; in qio_channel_websock_encode()
633 header_size = QIO_CHANNEL_WEBSOCK_HEADER_LEN_16_BIT; in qio_channel_websock_encode()
637 header_size = QIO_CHANNEL_WEBSOCK_HEADER_LEN_64_BIT; in qio_channel_websock_encode()
639 header_size -= QIO_CHANNEL_WEBSOCK_HEADER_LEN_MASK; in qio_channel_websock_encode()
642 buffer_reserve(&ioc->encoutput, header_size + size); in qio_channel_websock_encode()
643 buffer_append(&ioc->encoutput, header.buf, header_size); in qio_channel_websock_encode()
686 size_t header_size; in qio_channel_websock_decode_header() local
761 header_size = QIO_CHANNEL_WEBSOCK_HEADER_LEN_7_BIT; in qio_channel_websock_decode_header()
772 header_size = QIO_CHANNEL_WEBSOCK_HEADER_LEN_16_BIT; in qio_channel_websock_decode_header()
[all …]
/openbmc/linux/drivers/mtd/
H A 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()
/openbmc/linux/drivers/net/wireless/silabs/wfx/
H A 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()

1234567