| /illumos-gate/usr/src/cmd/audio/utilities/ |
| H A D | AudioFile.cc | 66 hdrsize(0), seekpos(0), origlen(0.), mapaddr(0), maplen(0), in AudioFile() 77 hdrsize(0), seekpos(0), origlen(0.), mapaddr(0), maplen(0), in AudioFile() 181 hdrsize = lseek(desc, (off_t)0, SEEK_CUR); in createfile() 182 if (hdrsize < 0) { in createfile() 326 hdrsize = (off_t)lseek(desc, (off_t)0, SEEK_CUR); in tryopen() 327 if (hdrsize < 0) { in tryopen() 394 (lseek(getfd(), (off_t)0, SEEK_END) - hdrsize)) { in Close() 415 hdrsize = 0; in Close() 460 if ((offset + hdrsize) >= maplen) { in ReadData() 465 } else if ((offset + hdrsize + cnt) > maplen) { in ReadData() [all …]
|
| H A D | filehdr.c | 978 int hdrsize; in audio_encode_au() local 991 hdrsize = sizeof (fhdr) + ilen; in audio_encode_au() 992 offset = ROUND_DBL(hdrsize); in audio_encode_au() 1108 if (offset > hdrsize) { in audio_encode_au() 1109 (void) memset(&buf[hdrsize], '\0', (size_t)(offset - hdrsize)); in audio_encode_au()
|
| /illumos-gate/usr/src/uts/common/io/1394/adapters/ |
| H A D | hci1394_q.c | 63 uint_t hdrsize); 66 uint_t hdrsize); 536 hci1394_basic_pkt_t *hdr, uint_t hdrsize, int *result) in hci1394_q_at() argument 577 hci1394_q_at_write_OLI(q_handle, &q_handle->q_desc, cmd, hdr, hdrsize); in hci1394_q_at() 619 hci1394_basic_pkt_t *hdr, uint_t hdrsize, uint8_t *data, uint_t datasize, in hci1394_q_at_with_data() argument 676 hci1394_q_at_write_OMI(q_handle, &q_handle->q_desc, cmd, hdr, hdrsize); in hci1394_q_at_with_data() 703 hci1394_basic_pkt_t *hdr, uint_t hdrsize, h1394_mblk_t *mblk, int *result) in hci1394_q_at_with_mblk() argument 760 hci1394_q_at_write_OMI(q_handle, &q_handle->q_desc, cmd, hdr, hdrsize); in hci1394_q_at_with_mblk() 869 hci1394_q_cmd_t *cmd, hci1394_basic_pkt_t *hdr, uint_t hdrsize) in hci1394_q_at_write_OMI() argument 881 ASSERT((hdrsize == 8) || (hdrsize == 16)); in hci1394_q_at_write_OMI() [all …]
|
| /illumos-gate/usr/src/uts/common/syscall/ |
| H A D | acctctl.c | 155 size_t hdrsize; in ac_file_set() local 237 hdr = exacct_create_header(&hdrsize); in ac_file_set() 248 kmem_free(hdr, hdrsize); in ac_file_set() 256 kmem_free(hdr, hdrsize); in ac_file_set() 284 kmem_free(hdr, hdrsize); in ac_file_set() 301 error = exacct_write_header(info, hdr, hdrsize); in ac_file_set() 304 kmem_free(hdr, hdrsize); in ac_file_set()
|
| /illumos-gate/usr/src/uts/common/fs/smbsrv/ |
| H A D | smb_dfs.c | 536 uint16_t entsize, rep_bufsize, hdrsize; in smb_dfs_encode_refv3x() 544 hdrsize = (ver == DFS_REFERRAL_V3) ? DFS_REFV3_ENTSZ : DFS_REFV4_ENTSZ; in smb_dfs_encode_refv3x() 547 entsize = hdrsize + dfs_pathsz + dfs_pathsz + in smb_dfs_encode_refv3x() 561 path_offs = (referrals->i_ntargets - r) * hdrsize; in smb_dfs_encode_refv3x() 567 entsize = hdrsize + targetsz; in smb_dfs_encode_refv3x() 578 ver, hdrsize, server_type, flags, in smb_dfs_encode_refv3x()
|
| /illumos-gate/usr/src/uts/common/sys/1394/adapters/ |
| H A D | hci1394_q.h | 358 hci1394_basic_pkt_t *hdr, uint_t hdrsize, int *result); 360 hci1394_basic_pkt_t *hdr, uint_t hdrsize, uint8_t *data, uint_t datasize, 363 hci1394_basic_pkt_t *hdr, uint_t hdrsize, h1394_mblk_t *mblk, int *result);
|
| /illumos-gate/usr/src/uts/common/fs/zfs/ |
| H A D | sa.c | 553 int hdrsize; in sa_find_sizes() local 568 hdrsize = (SA_BONUSTYPE_FROM_DB(db) == DMU_OT_ZNODE) ? 0 : in sa_find_sizes() 592 P2ROUNDUP(hdrsize + sizeof (uint16_t), 8) + in sa_find_sizes() 601 hdrsize += sizeof (uint16_t); in sa_find_sizes() 620 *total + P2ROUNDUP(hdrsize, 8) > in sa_find_sizes() 625 if (*total + P2ROUNDUP(hdrsize, 8) > full_space && in sa_find_sizes() 631 hdrsize -= extra_hdrsize; in sa_find_sizes() 633 hdrsize = P2ROUNDUP(hdrsize, 8); in sa_find_sizes() 634 return (hdrsize); in sa_find_sizes() 657 int hdrsize; in sa_build_layouts() local [all …]
|
| H A D | zfs_vfsops.c | 606 int hdrsize; in zfs_space_delta_cb() local 652 hdrsize = sa_hdrsize(&sa); in zfs_space_delta_cb() 653 VERIFY3U(hdrsize, >=, sizeof (sa_hdr_phys_t)); in zfs_space_delta_cb() 655 *userp = *((uint64_t *)((uintptr_t)data + hdrsize + SA_UID_OFFSET)); in zfs_space_delta_cb() 656 *groupp = *((uint64_t *)((uintptr_t)data + hdrsize + SA_GID_OFFSET)); in zfs_space_delta_cb() 657 flags = *((uint64_t *)((uintptr_t)data + hdrsize + SA_FLAGS_OFFSET)); in zfs_space_delta_cb() 662 *projectp = *((uint64_t *)((uintptr_t)data + hdrsize + in zfs_space_delta_cb()
|
| /illumos-gate/usr/src/uts/common/fs/dcfs/ |
| H A D | dc_vnops.c | 931 size_t hdrsize, bsize; in decompvp() local 963 hdrsize = hdr->ch_blkmap[0] + sizeof (uint64_t); in decompvp() 964 hdr = kmem_alloc(hdrsize, KM_SLEEP); in decompvp() 965 error = vn_rdwr(UIO_READ, vp, (caddr_t)hdr, hdrsize, 0, UIO_SYSSPACE, in decompvp() 968 kmem_free(hdr, hdrsize); in decompvp() 983 ndp->dc_hdrsize = hdrsize; in decompvp()
|
| /illumos-gate/usr/src/cmd/audio/include/ |
| H A D | AudioFile.h | 72 off_t hdrsize; // length of file header variable
|
| /illumos-gate/usr/src/cmd/sgs/gprof/common/ |
| H A D | gprof.c | 1572 size_t hdrsize; in openpfile() local 1630 hdrsize = Bflag ? sizeof (struct hdr) : sizeof (struct hdr32); in openpfile() 1656 tmp.ncnt = hdrsize + l_hdr64.hd_psize; in openpfile() 1680 tmp.ncnt = hdrsize + l_hdr.hd_psize; in openpfile() 1732 sampbytes = h.ncnt > hdrsize ? h.ncnt - hdrsize : 0; in openpfile()
|
| /illumos-gate/usr/src/uts/common/io/mac/ |
| H A D | mac_protect.c | 1614 get_l3_info(mblk_t *mp, size_t hdrsize, uchar_t **start, uchar_t **end, in get_l3_info() argument 1624 s = mp->b_rptr + hdrsize; in get_l3_info() 1637 mp->b_rptr += hdrsize; in get_l3_info() 1639 mp->b_rptr -= hdrsize; in get_l3_info() 1933 size_t hdrsize = mhip->mhi_hdrsize; in ipnospoof_check() local 1939 err = get_l3_info(mp, hdrsize, &start, &end, &nmp); in ipnospoof_check() 2120 size_t hdrsize = mhip->mhi_hdrsize; in dhcpnospoof_check() local 2126 err = get_l3_info(mp, hdrsize, &start, &end, &nmp); in dhcpnospoof_check()
|
| H A D | mac_provider.c | 1972 uint16_t hdrsize = sizeof (struct ether_header); in mac_mmc_parse_ether() local 1987 hdrsize = sizeof (struct ether_vlan_header); in mac_mmc_parse_ether() 1998 *hdr_sizep = hdrsize; in mac_mmc_parse_ether()
|
| H A D | mac_sched.c | 1886 uint32_t sap, size_t hdrsize, pkt_type_t *type, uint_t *indx) in mac_rx_srs_long_fanout() argument 1899 ASSERT(MBLKL(mp) >= hdrsize); in mac_rx_srs_long_fanout() 1913 ip6h = (ip6_t *)(mp->b_rptr + hdrsize); in mac_rx_srs_long_fanout()
|
| /illumos-gate/usr/src/lib/libsip/common/ |
| H A D | sip_dialog.c | 809 int hdrsize; in sip_dlg_xchg_from_to() local 820 hdrsize = len + strlen(SIP_TO) + SIP_SPACE_LEN + sizeof (char) + in sip_dlg_xchg_from_to() 823 hdrsize = len + strlen(SIP_FROM) + SIP_SPACE_LEN + in sip_dlg_xchg_from_to() 826 newhdr = sip_new_header(hdrsize); in sip_dlg_xchg_from_to() 830 cnt = snprintf(newhdr->sip_hdr_current, hdrsize + 1, in sip_dlg_xchg_from_to() 833 cnt = snprintf(newhdr->sip_hdr_current, hdrsize + 1, in sip_dlg_xchg_from_to()
|
| /illumos-gate/usr/src/uts/sun4/os/ |
| H A D | ddi_impl.c | 1084 size_t hdrsize = 4 * sizeof (size_t); /* must be power of 2 */ in kalloca() local 1086 align = MAX(align, hdrsize); in kalloca() 1101 rsize = size + hdrsize + align; in kalloca() 1114 addr = (size_t *)P2ROUNDUP((uintptr_t)raddr + hdrsize, align); in kalloca()
|
| /illumos-gate/usr/src/lib/gss_mechs/mech_spnego/mech/ |
| H A D | spnego_mech.c | 3723 int hdrsize; in g_token_size() local 3732 hdrsize = 1 + gssint_der_length_size(mech->length) + mech->length; in g_token_size() 3739 hdrsize += 1 + gssint_der_length_size(body_size + hdrsize); in g_token_size() 3741 return (hdrsize + body_size); in g_token_size() 3758 unsigned int hdrsize; in g_make_token_header() local 3761 hdrsize = 1 + gssint_der_length_size(mech->length) + mech->length; in g_make_token_header() 3764 if ((ret = gssint_put_der_length(hdrsize + body_size, buf, totallen))) in g_make_token_header()
|
| /illumos-gate/usr/src/boot/libsa/zfs/ |
| H A D | zfsimpl.c | 3540 int hdrsize; in zfs_dnode_stat() local 3567 hdrsize = SA_HDR_SIZE(sahdrp); in zfs_dnode_stat() 3568 sb->st_mode = *(uint64_t *)((char *)sahdrp + hdrsize + in zfs_dnode_stat() 3570 sb->st_uid = *(uint64_t *)((char *)sahdrp + hdrsize + in zfs_dnode_stat() 3572 sb->st_gid = *(uint64_t *)((char *)sahdrp + hdrsize + in zfs_dnode_stat() 3574 sb->st_size = *(uint64_t *)((char *)sahdrp + hdrsize + in zfs_dnode_stat() 3591 int hdrsize; in zfs_dnode_readlink() local 3615 hdrsize = SA_HDR_SIZE(sahdrp); in zfs_dnode_readlink() 3616 p = (char *)((uintptr_t)sahdrp + hdrsize + SA_SYMLINK_OFFSET); in zfs_dnode_readlink()
|
| /illumos-gate/usr/src/cmd/sgs/ar/common/ |
| H A D | file.c | 1557 size_t hdrsize = sizeof (struct ar_hdr); in sizeofmembers() local 1564 sum += hdrsize; in sizeofmembers() 1579 fptr->ar_padding = pad(psum + sum + hdrsize, PADSZ); in sizeofmembers()
|
| /illumos-gate/usr/src/grub/grub-0.97/stage2/ |
| H A D | fsys_zfs.c | 1782 int hdrsize; in zfs_open() local 1805 hdrsize = SA_HDR_SIZE(sahdrp); in zfs_open() 1806 filemax = *(uint64_t *)((char *)sahdrp + hdrsize + in zfs_open()
|
| /illumos-gate/usr/src/uts/common/inet/ip/ |
| H A D | igmp.c | 1894 size_t hdrsize, size, rsize; in igmpv3_sendrpt() local 1906 hdrsize = sizeof (ipha_t) + RTRALERT_LEN; in igmpv3_sendrpt() 1908 size = hdrsize + sizeof (igmp3ra_t); in igmpv3_sendrpt() 2008 igmp3ra->igmp3ra_cksum = IP_CSUM(mp, hdrsize, 0); in igmpv3_sendrpt()
|
| /illumos-gate/usr/src/uts/i86pc/os/ |
| H A D | ddi_impl.c | 1401 size_t hdrsize = 4 * sizeof (size_t); /* must be power of 2 */ in kalloca() local 1409 align = MAX(align, hdrsize); in kalloca() 1481 addr = (size_t *)P2ROUNDUP((uintptr_t)raddr + hdrsize, align); in kalloca()
|
| /illumos-gate/usr/src/uts/common/os/ |
| H A D | exacct.c | 282 exacct_write_header(ac_info_t *info, void *hdr, size_t hdrsize) in exacct_write_header() argument 285 return (exacct_vn_write_impl(info, hdr, hdrsize)); in exacct_write_header()
|
| /illumos-gate/usr/src/cmd/sendmail/src/ |
| H A D | queue.c | 3927 long hdrsize = 0; local 4296 hdrsize += strlen(bp) - 3; 4578 e->e_msgsize = st.st_size + hdrsize;
|