| /linux/drivers/net/wireless/ath/wil6210/ |
| H A D | fw_inc.c | 603 size_t s, hdr_sz; in wil_fw_process() local 608 hdr_sz = le32_to_cpu(hdr->size); in wil_fw_process() 609 s = sizeof(*hdr) + hdr_sz; in wil_fw_process() 612 if (hdr_sz % 4) { in wil_fw_process() 614 hdr_sz); in wil_fw_process() 618 &hdr[1], hdr_sz, load); in wil_fw_process() 628 le16_to_cpu(hdr->type), hdr_sz); in wil_fw_process() 693 size_t s, hdr_sz = 0; in wil_brd_process() local 721 hdr_sz = le32_to_cpu(hdr->size); in wil_brd_process() 722 s = sizeof(*hdr) + hdr_sz; in wil_brd_process() [all …]
|
| /linux/drivers/media/platform/mediatek/vcodec/encoder/venc/ |
| H A D | venc_h264_if.c | 647 int hdr_sz; in h264_enc_encode() local 670 hdr_sz = bs_size_hdr; in h264_enc_encode() 671 hdr_sz_ext = (hdr_sz & (bs_alignment - 1)); in h264_enc_encode() 676 h264_encode_filler(inst, bs_buf->va + hdr_sz, in h264_enc_encode() 680 tmp_bs_buf.va = bs_buf->va + hdr_sz + filler_sz; in h264_enc_encode() 681 tmp_bs_buf.dma_addr = bs_buf->dma_addr + hdr_sz + filler_sz; in h264_enc_encode() 682 tmp_bs_buf.size = bs_buf->size - (hdr_sz + filler_sz); in h264_enc_encode() 689 result->bs_size = hdr_sz + filler_sz + bs_size_frm; in h264_enc_encode() 692 hdr_sz, filler_sz, bs_size_frm, result->bs_size); in h264_enc_encode()
|
| /linux/tools/perf/util/ |
| H A D | trace-event-info.c | 43 static int record_file(const char *file, ssize_t hdr_sz) in record_file() argument 58 if (hdr_sz) { in record_file() 59 if (write(output_fd, &size, hdr_sz) != hdr_sz) in record_file() 75 sizep += sizeof(u64) - hdr_sz; in record_file() 77 if (hdr_sz && pwrite(output_fd, sizep, hdr_sz, hdr_pos) < 0) { in record_file()
|
| H A D | session.c | 2709 size_t hdr_sz, rest; in perf_session__fprintf_dsos() 2742 hdr_sz = sizeof(struct perf_event_header); 2744 if (buf_sz < hdr_sz) in perf_session__dump_kmaps() 2748 readn(fd, buf, hdr_sz) != (ssize_t)hdr_sz) in perf_session__dump_kmaps() 2756 if (event->header.size < hdr_sz || event->header.size > buf_sz) in perf_session__find_first_evtype() 2759 buf += hdr_sz; in perf_session__find_first_evtype() 2760 rest = event->header.size - hdr_sz; in perf_session__find_first_evtype() 1756 size_t hdr_sz, rest; perf_session__peek_event() local
|
| H A D | header.c | 4728 * hdr_sz was used to encode endianness. But given that hdr_sz can vary based in perf_event__fprintf_event_update() 4732 static int try_all_file_abis(uint64_t hdr_sz, struct perf_header *ph) in perf_event__fprintf_event_update() 4740 if (hdr_sz != ref_size) { in perf_event__fprintf_event_update() 4741 attr_size = bswap_64(hdr_sz); in perf_event__fprintf_event_update() 4770 static int try_all_pipe_abis(uint64_t hdr_sz, struct perf_header *ph) in perf_event__process_attr() 4776 if (hdr_sz != attr_pipe_abi_sizes[i]) { in perf_event__process_attr() 4777 attr_size = bswap_64(hdr_sz); in perf_event__process_attr() 4778 if (attr_size != hdr_sz) in perf_event__process_attr() 4799 static int check_magic_endian(u64 magic, uint64_t hdr_sz, in perf_event__process_event_update() 4193 try_all_file_abis(uint64_t hdr_sz,struct perf_header * ph) try_all_file_abis() argument 4231 try_all_pipe_abis(uint64_t hdr_sz,struct perf_header * ph) try_all_pipe_abis() argument 4260 check_magic_endian(u64 magic,uint64_t hdr_sz,bool is_pipe,struct perf_header * ph) check_magic_endian() argument [all...] |
| H A D | arm-spe.c | 1591 int hdr_sz, per_cpu_sz, i; in arm_spe_free_events() 1605 hdr_sz = ptr[ARM_SPE_HEADER_SIZE]; in arm_spe_free() 1617 ptr += hdr_sz; in arm_spe_evsel_is_auxtrace() 1618 per_cpu_sz = (metadata_size - (hdr_sz * sizeof(u64))) / (*nr_cpu); in arm_spe_evsel_is_auxtrace() 1533 int hdr_sz, per_cpu_sz, i; arm_spe__alloc_metadata() local
|
| /linux/net/tipc/ |
| H A D | msg.c | 98 uint hdr_sz, uint data_sz, u32 dnode, in tipc_msg_create() argument 104 buf = tipc_buf_acquire(hdr_sz + data_sz, GFP_ATOMIC); in tipc_msg_create() 109 tipc_msg_init(onode, msg, user, type, hdr_sz, dnode); in tipc_msg_create() 110 msg_set_size(msg, hdr_sz + data_sz); in tipc_msg_create()
|
| H A D | msg.h | 1162 struct sk_buff *tipc_msg_create(uint user, uint type, uint hdr_sz,
|
| /linux/drivers/net/wireless/intel/iwlwifi/mei/ |
| H A D | main.c | 478 size_t hdr_sz; in iwl_mei_add_data_to_ring() local 515 hdr_sz = cb_tx ? sizeof(struct iwl_sap_cb_data) : in iwl_mei_add_data_to_ring() 517 tx_sz = skb->len + hdr_sz; in iwl_mei_add_data_to_ring() 534 if (skb_headroom(skb) < hdr_sz) { in iwl_mei_add_data_to_ring()
|
| /linux/tools/perf/ |
| H A D | builtin-inject.c | 1800 size_t hdr_sz = sizeof(*hdr); in guest_session__inject_events() 1812 ret = readn(gs->tmp_fd, buf, hdr_sz); in guest_session__inject_events() 1822 buf += hdr_sz; in guest_session__inject_events() 1824 ret = readn(gs->tmp_fd, buf, hdr->size - hdr_sz); in guest_session__inject_events() 1648 size_t hdr_sz = sizeof(*hdr); guest_session__fetch() local
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/cn20k/ |
| H A D | npc.c | 1644 size_t hdr_sz = sizeof(struct npc_cn20k_kpu_profile_fwdata); in npc_cn20k_apply_custom_kpu() local 1652 hdr_sz = sizeof(struct npc_cn20k_kpu_profile_fwdata); in npc_cn20k_apply_custom_kpu() 1654 if (rvu->kpu_fwdata_sz < hdr_sz) { in npc_cn20k_apply_custom_kpu() 1725 if (rvu->kpu_fwdata_sz < hdr_sz + offset) { in npc_cn20k_apply_custom_kpu()
|
| /linux/drivers/scsi/leapraid/ |
| H A D | leapraid_func.c | 5365 size_t hdr_sz; in leapraid_async_evt_validate() local 5367 hdr_sz = in leapraid_async_evt_validate() 5370 if (evt_sz < hdr_sz) in leapraid_async_evt_validate() 5374 (evt_sz - hdr_sz) / sizeof(evt_data->phy[0])) in leapraid_async_evt_validate()
|