Home
last modified time | relevance | path

Searched refs:hdr_size (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/contrib/tcpdump/
H A Dprint-geonet.c106 int hdr_size = -1; in geonet_print() local
177 hdr_size = 0; in geonet_print()
180 hdr_size = 0; in geonet_print()
204 hdr_size = 0; in geonet_print()
207 hdr_size = 68 - 36; in geonet_print()
221 if (hdr_size >= 0) { in geonet_print()
222 if (length < (u_int)hdr_size) { in geonet_print()
223 ND_PRINT(" (header size %d > %u)", hdr_size, length); in geonet_print()
226 ND_TCHECK_LEN(bp, hdr_size); in geonet_print()
227 length -= hdr_size; in geonet_print()
[all …]
/freebsd/sys/dev/sfxge/common/
H A Def10_image.c64 uint32_t hdr_size; member
96 cursor->hdr_size = 2; in efx_asn1_parse_header_match_tag()
118 cursor->hdr_size = 2 + nbytes; in efx_asn1_parse_header_match_tag()
120 for (offset = 2; offset < cursor->hdr_size; offset++) { in efx_asn1_parse_header_match_tag()
126 if ((cursor->hdr_size + cursor->val_size) > cursor->length) { in efx_asn1_parse_header_match_tag()
177 cursor->buffer += cursor->hdr_size; in efx_asn1_enter_tag()
219 if (memcmp(cursor->buffer + cursor->hdr_size, valp, val_size) != 0) { in efx_asn1_match_tag_value()
224 cursor->buffer += cursor->hdr_size + cursor->val_size; in efx_asn1_match_tag_value()
225 cursor->length -= cursor->hdr_size + cursor->val_size; in efx_asn1_match_tag_value()
259 cursor->buffer += cursor->hdr_size + cursor->val_size; in efx_asn1_skip_tag()
[all …]
/freebsd/stand/libsa/
H A Dgpt.c81 hdr->hdr_size); in gptupdate()
83 bcopy(hdr, secbuf, hdr->hdr_size); in gptupdate()
202 if (crc32(hdr->hdr_crc_self, (const Bytef *)hdr, hdr->hdr_size) != in gptread_hdr()
274 hdr->hdr_size); in gptbootconv()
276 bcopy(hdr, secbuf, hdr->hdr_size); in gptbootconv()
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_user_mad.c152 static int hdr_size(struct ib_umad_file *file) in hdr_size() function
232 packet->mad.hdr.length = hdr_size(file) + mad_recv_wc->mad_len; in recv_handler()
278 count < hdr_size(file) + packet->length) || in copy_recv_mad()
280 count < hdr_size(file) + seg_size)) in copy_recv_mad()
283 if (copy_to_user(buf, &packet->mad, hdr_size(file))) in copy_recv_mad()
286 buf += hdr_size(file); in copy_recv_mad()
296 if (count < hdr_size(file) + packet->length) { in copy_recv_mad()
316 return hdr_size(file) + packet->length; in copy_recv_mad()
322 ssize_t size = hdr_size(file) + packet->length; in copy_send_mad()
327 if (copy_to_user(buf, &packet->mad, hdr_size(file))) in copy_send_mad()
[all …]
H A Dib_mad_rmpp.c441 int hdr_size, data_size, pad; in get_mad_len() local
447 hdr_size = ib_get_mad_data_offset(rmpp_mad->mad_hdr.mgmt_class); in get_mad_len()
449 data_size = sizeof(struct opa_rmpp_mad) - hdr_size; in get_mad_len()
454 data_size = sizeof(struct ib_rmpp_mad) - hdr_size; in get_mad_len()
460 return hdr_size + rmpp_recv->seg_num * data_size - pad; in get_mad_len()
/freebsd/sys/geom/part/
H A Dg_part_gpt.c473 sz = le32toh(buf->hdr_size); in gpt_read_hdr()
479 hdr->hdr_size = sz; in gpt_read_hdr()
618 pri->hdr_size == sec->hdr_size && in gpt_matched_hdrs()
720 table->hdr->hdr_size = offsetof(struct gpt_hdr, padding); in g_part_gpt_create()
1248 le32enc(buf + 12, table->hdr->hdr_size); in g_part_gpt_write()
1279 crc = crc32(buf, table->hdr->hdr_size); in g_part_gpt_write()
1301 crc = crc32(buf, table->hdr->hdr_size); in g_part_gpt_write()
/freebsd/sys/sys/disk/
H A Dgpt.h60 uint32_t hdr_size; member
/freebsd/sys/contrib/dev/iwlwifi/fw/
H A Dacpi.c793 u32 hdr_size = 1 + !!rev_data[idx].min_profiles; in iwl_acpi_get_wgds_table() local
796 u32 max_size = hdr_size + profile_size * rev_data[idx].profiles; in iwl_acpi_get_wgds_table()
802 min_size = hdr_size + in iwl_acpi_get_wgds_table()
834 hdr_size + profile_size * num_profiles) { in iwl_acpi_get_wgds_table()
/freebsd/stand/common/
H A Dpart.c156 sz = le32toh(hdr->hdr_size); in gpt_checkhdr()
285 hdr.hdr_size != phdr->hdr_size || in ptable_gptread()
/freebsd/sys/dev/qlxge/
H A Dqls_dump.h46 uint32_t hdr_size; member
/freebsd/sys/contrib/dev/iwlwifi/
H A Diwl-drv.c618 u32 api_ver, hdr_size, build; in iwl_parse_v1_v2_firmware() local
627 hdr_size = 28; in iwl_parse_v1_v2_firmware()
628 if (ucode_raw->size < hdr_size) { in iwl_parse_v1_v2_firmware()
646 hdr_size = 24; in iwl_parse_v1_v2_firmware()
647 if (ucode_raw->size < hdr_size) { in iwl_parse_v1_v2_firmware()
680 if (ucode_raw->size != hdr_size + in iwl_parse_v1_v2_firmware()
/freebsd/sys/contrib/openzfs/cmd/
H A Dzarcsummary567 hdr_size = arc_stats['hdr_size']
583 f_perc(hdr_size, arc_size), f_bytes(hdr_size))
/freebsd/usr.bin/mkimg/
H A Dgpt.c273 le32enc(&hdr->hdr_size, offsetof(struct gpt_hdr, padding)); in gpt_write()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_support_format_rar5.c2284 size_t raw_hdr_size = 0, hdr_size_len, hdr_size; in process_base_block() local
2311 hdr_size = raw_hdr_size + hdr_size_len; in process_base_block()
2314 if(hdr_size > (2 * 1024 * 1024)) { in process_base_block()
2323 hdr_size < SMALLEST_RAR5_BLOCK_SIZE) in process_base_block()
2334 if(!read_ahead(a, hdr_size, &p)) { in process_base_block()
2339 computed_crc = (uint32_t) crc32(0, p, (int) hdr_size); in process_base_block()
2362 rar->generic.size = (int)hdr_size; in process_base_block()
/freebsd/sys/dev/ixl/
H A Dvirtchnl.h309 u16 hdr_size; member
H A Dixl_pf_iov.c624 if (info->hdr_size > IXL_VF_MAX_HDR_BUFFER) in ixl_vf_config_rx_queue()
632 rxq.hbuff = info->hdr_size >> I40E_RXQ_CTX_HBUFF_SHIFT; in ixl_vf_config_rx_queue()
/freebsd/sbin/camcontrol/
H A Dcamcontrol.c3962 size_t hdr_size = 0, entry_size = 0; in readdefects() local
4120 hdr_size = sizeof(*hdr10); in readdefects()
4123 if (valid_len >= hdr_size) { in readdefects()
4132 hdr_size = sizeof(*hdr12); in readdefects()
4135 if (valid_len >= hdr_size) { in readdefects()
4169 num_valid = min(returned_length, valid_len - hdr_size); in readdefects()
4198 dlist_length = returned_length + hdr_size; in readdefects()
4213 dlist_length = returned_length + hdr_size; in readdefects()
4227 dlist_length = returned_length + hdr_size; in readdefects()
4243 hdr_size; in readdefects()
[all …]
/freebsd/contrib/file/magic/Magdir/
H A Dluks80 # hdr_size; size including JSON area called Metadata area by cryptsetup with value like: 16384
/freebsd/sys/dev/iavf/
H A Dvirtchnl.h338 u16 hdr_size; member
/freebsd/usr.sbin/fstyp/
H A Dhammer_disk.h582 uint32_t hdr_size; /* Aligned size of the whole mess */ member
/freebsd/sys/dev/qat/qat_common/
H A Dqat_uclo.c847 int hdr_size; in qat_uclo_map_str_table() local
852 hdr_size = (char *)&str_table->strings - (char *)str_table; in qat_uclo_map_str_table()
854 chunk_hdr->offset + hdr_size; in qat_uclo_map_str_table()
/freebsd/sys/dev/qat_c2xxx/
H A Dqat_ae.c2203 size_t size, uof_size, hdr_size; in qat_aefw_uof_parse() local
2275 hdr_size = offsetof(struct uof_str_tab, ust_strings); in qat_aefw_uof_parse()
2277 (void *)(base + uch->uch_offset + hdr_size); in qat_aefw_uof_parse()
2278 sc->sc_aefw_uof.qafu_str_tab_size = uch->uch_size - hdr_size; in qat_aefw_uof_parse()
/freebsd/sys/dev/ice/
H A Dvirtchnl.h558 u16 hdr_size; member
/freebsd/sys/dev/ixgbe/
H A Dixgbe_common.c4680 u32 hdr_size = sizeof(struct ixgbe_hic_hdr); in ixgbe_host_interface_command() local
4707 dword_len = hdr_size >> 2; in ixgbe_host_interface_command()
4729 hdr_size += (2 << 2); in ixgbe_host_interface_command()
4736 if (length < buf_len + hdr_size) { in ixgbe_host_interface_command()
/freebsd/sys/dev/qlnx/qlnxe/
H A Decore_iwarp.c2786 u32 hdr_size; in ecore_iwarp_ll2_comp_syn_pkt() local
2874 hdr_size = ((cm_info.ip_version == ECORE_TCP_IPV4) ? 40 : 60) + in ecore_iwarp_ll2_comp_syn_pkt()
2876 ep->mss = p_hwfn->p_rdma_info->iwarp.max_mtu - hdr_size; in ecore_iwarp_ll2_comp_syn_pkt()

12