| /freebsd/sys/kern/ |
| H A D | subr_hash.c | 91 hashalloc_sizes(struct hashalloc_args *args, size_t *hdrsize, size_t *loffset) in hashalloc_sizes() argument 119 *hdrsize = *loffset; in hashalloc_sizes() 122 *hdrsize = *loffset + sizeof(struct mtx); in hashalloc_sizes() 125 *hdrsize = *loffset + sizeof(struct rwlock); in hashalloc_sizes() 128 *hdrsize = *loffset + sizeof(struct sx); in hashalloc_sizes() 131 *hdrsize = *loffset + sizeof(struct rmlock); in hashalloc_sizes() 134 *hdrsize = *loffset + sizeof(struct rmslock); in hashalloc_sizes() 138 if (args->hdrsize > 0) { in hashalloc_sizes() 139 MPASS(args->hdrsize >= *hdrsize); in hashalloc_sizes() 140 *hdrsize = args->hdrsize; in hashalloc_sizes() [all …]
|
| H A D | imgact_elf.c | 1642 size_t hdrsize, notesz, coresize; in __elfN() local 1654 hdrsize = sizeof(Elf_Ehdr) + sizeof(Elf_Phdr) * (1 + seginfo.count); in __elfN() 1656 hdrsize += sizeof(Elf_Shdr); in __elfN() 1658 coresize = round_page(hdrsize + notesz) + seginfo.size; in __elfN() 1714 hdr = malloc(hdrsize, M_TEMP, M_WAITOK | M_ZERO); in __elfN() 1715 error = __elfN(corehdr)(¶ms, seginfo.count, hdr, hdrsize, ¬elst, in __elfN() 1725 offset = round_page(hdrsize + notesz); in __elfN() 1884 size_t hdrsize, struct note_info_list *notelst, size_t notesz, in __elfN() 1892 bzero(hdr, hdrsize); in __elfN() 1893 __elfN(puthdr)(p->td, hdr, hdrsize, numsegs, notesz, flags); in __elfN() [all …]
|
| /freebsd/contrib/openbsm/libbsm/ |
| H A D | bsm_audit.c | 224 size_t hdrsize; in au_assemble() local 251 hdrsize = (aia.ai_termid.at_addr[0] == INADDR_ANY) ? in au_assemble() 256 hdrsize = in au_assemble() 263 tot_rec_size = rec->len + hdrsize + AUDIT_TRAILER_SIZE; in au_assemble() 268 if (hdrsize > AUDIT_HEADER_SIZE) in au_assemble()
|
| /freebsd/sys/netipsec/ |
| H A D | ipsec_mod.c | 64 .hdrsize = ipsec_hdrsiz_inpcb, 86 .hdrsize = ipsec_hdrsiz_inpcb,
|
| H A D | ipsec_support.h | 86 size_t (*hdrsize)(struct inpcb *); member 169 (*(proto ## _ipsec_support)->methods->hdrsize)(inp)
|
| H A D | subr_ipsec.c | 373 hdrsize, METHOD_DECL(struct ipsec_support * const sc, struct inpcb *inp), in IPSEC_KMOD_METHOD()
|
| /freebsd/contrib/libpcap/ |
| H A D | sf-pcap.c | 209 size_t hdrsize; member 435 ps->hdrsize = sizeof(struct pcap_sf_patched_pkthdr); in pcap_check_header() 467 ps->hdrsize = sizeof(struct pcap_sf_pkthdr); in pcap_check_header() 533 amt_read = fread(&sf_hdr, 1, ps->hdrsize, fp); in pcap_next_packet() 534 if (amt_read != ps->hdrsize) { in pcap_next_packet() 543 ps->hdrsize, amt_read); in pcap_next_packet()
|
| /freebsd/usr.bin/gcore/ |
| H A D | elfcore.c | 183 size_t hdrsize, notesz, segoff; in elf_coredump() local 211 hdrsize = sizeof(Elf_Ehdr) + sizeof(Elf_Phdr) * (1 + seginfo.count); in elf_coredump() 213 hdrsize += sizeof(Elf_Shdr); in elf_coredump() 219 sbuf_end_section(sb, old_len, hdrsize, 0); in elf_coredump() 229 elf_puthdr(efd, pid, map, hdr, hdrsize, notesz, segoff, seginfo.count); in elf_coredump() 466 elf_puthdr(int efd, pid_t pid, struct map_entry *map, void *hdr, size_t hdrsize, in elf_puthdr() argument 538 phdr->p_offset = hdrsize; in elf_puthdr()
|
| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | sa.c | 552 int hdrsize; in sa_find_sizes() local 567 hdrsize = (SA_BONUSTYPE_FROM_DB(db) == DMU_OT_ZNODE) ? 0 : in sa_find_sizes() 589 tmp_hdrsize = hdrsize + ((is_var_sz && var_size_count > 1) ? in sa_find_sizes() 610 hdrsize = tmp_hdrsize; in sa_find_sizes() 630 if ((*total + P2ROUNDUP(hdrsize, 8)) > full_space && in sa_find_sizes() 636 hdrsize -= extra_hdrsize; in sa_find_sizes() 638 hdrsize = P2ROUNDUP(hdrsize, 8); in sa_find_sizes() 639 return (hdrsize); in sa_find_sizes() 662 int hdrsize; in sa_build_layouts() local 678 hdrsize = sa_find_sizes(sa, attr_desc, attr_count, hdl->sa_bonus, in sa_build_layouts() [all …]
|
| H A D | zfs_quota.c | 83 int hdrsize = sa_hdrsize(&sa); in zpl_get_file_info() local 85 if (unlikely(hdrsize < sizeof (sa_hdr_phys_t))) in zpl_get_file_info() 88 uintptr_t data_after_hdr = (uintptr_t)data + hdrsize; in zpl_get_file_info()
|
| H A D | zil.c | 2154 zil_max_log_data(zilog_t *zilog, size_t hdrsize) in zil_max_log_data() argument 2156 return (zilog->zl_max_block_size - sizeof (zil_chain_t) - hdrsize); in zil_max_log_data()
|
| /freebsd/usr.bin/genl/ |
| H A D | genl.c | 143 uint32_t hdrsize; member 168 .off = _OUT(hdrsize), 256 family->hdrsize, family->max_attr); in dump_family()
|
| /freebsd/sys/sys/ |
| H A D | hash.h | 128 size_t hdrsize; /* size of bucket header, 0 = auto */ member
|
| /freebsd/sys/net80211/ |
| H A D | ieee80211_output.c | 83 u_int hdrsize, u_int ciphdrsize, u_int mtu); 1337 ieee80211_mbuf_adjust(struct ieee80211vap *vap, int hdrsize, in ieee80211_mbuf_adjust() argument 1341 int needed_space = vap->iv_ic->ic_headroom + hdrsize; in ieee80211_mbuf_adjust() 1473 int hdrsize, hdrspace, datalen, addqos, txfrag, is4addr, is_mcast; in ieee80211_encap() local 1557 hdrsize = sizeof(struct ieee80211_qosframe); in ieee80211_encap() 1559 hdrsize = sizeof(struct ieee80211_frame); in ieee80211_encap() 1581 hdrsize += IEEE80211_ADDR_LEN; in ieee80211_encap() 1624 hdrsize += IEEE80211_ADDR_LEN; in ieee80211_encap() 1633 hdrspace = roundup(hdrsize, sizeof(uint32_t)); in ieee80211_encap() 1635 hdrspace = hdrsize; in ieee80211_encap() [all …]
|
| /freebsd/sys/netlink/ |
| H A D | netlink_ctl.h | 97 uint16_t genl_register_family(const char *family_name, size_t hdrsize,
|
| H A D | netlink_generic.c | 364 genl_register_family(const char *family_name, size_t hdrsize, in genl_register_family() argument 393 .family_hdrsize = hdrsize, in genl_register_family()
|
| /freebsd/lib/libc/db/hash/ |
| H A D | hash.c | 104 int bpages, hdrsize, new_table, nsegs, save_errno; in __hash_open() local 141 hdrsize = _read(hashp->fp, &hashp->hdr, sizeof(HASHHDR)); in __hash_open() 145 if (hdrsize == -1) in __hash_open() 147 if (hdrsize != sizeof(HASHHDR)) in __hash_open()
|
| /freebsd/sys/security/audit/ |
| H A D | audit_bsm.c | 122 size_t hdrsize; in kau_close() local 127 hdrsize = 0; in kau_close() 130 hdrsize = (ak.ai_termid.at_addr[0] == INADDR_ANY) ? in kau_close() 135 hdrsize = (IN6_IS_ADDR_UNSPECIFIED(ap)) ? AUDIT_HEADER_SIZE : in kau_close() 141 tot_rec_size = rec->len + hdrsize + AUDIT_TRAILER_SIZE; in kau_close() 146 if (hdrsize != AUDIT_HEADER_SIZE) in kau_close()
|
| /freebsd/stand/libsa/zfs/ |
| H A D | zfsimpl.c | 3736 int hdrsize; in zfs_dnode_stat() local 3763 hdrsize = SA_HDR_SIZE(sahdrp); in zfs_dnode_stat() 3764 sb->st_mode = *(uint64_t *)((char *)sahdrp + hdrsize + in zfs_dnode_stat() 3766 sb->st_uid = *(uint64_t *)((char *)sahdrp + hdrsize + in zfs_dnode_stat() 3768 sb->st_gid = *(uint64_t *)((char *)sahdrp + hdrsize + in zfs_dnode_stat() 3770 sb->st_size = *(uint64_t *)((char *)sahdrp + hdrsize + in zfs_dnode_stat() 3796 int hdrsize; in zfs_dnode_readlink() local 3820 hdrsize = SA_HDR_SIZE(sahdrp); in zfs_dnode_readlink() 3821 p = (char *)((uintptr_t)sahdrp + hdrsize + SA_SYMLINK_OFFSET); in zfs_dnode_readlink()
|
| /freebsd/sys/contrib/openzfs/include/sys/ |
| H A D | zil.h | 652 extern uint64_t zil_max_log_data(zilog_t *zilog, size_t hdrsize);
|
| /freebsd/contrib/file/magic/Magdir/ |
| H A D | os2 | 44 # int16 hdrsize; // total size of header
|
| /freebsd/contrib/sendmail/src/ |
| H A D | queue.c | 4026 long hdrsize = 0; local 4402 hdrsize += strlen(bp) - 3; 4679 e->e_msgsize = st.st_size + hdrsize;
|