/titanic_44/usr/src/cmd/nscd/ |
H A D | nscd_frontend.h | 39 #define NSCD_PHDR_LEN(hdrp) ((hdrp)->data_off) argument 40 #define NSCD_DATA_LEN(hdrp) ((hdrp)->data_len) argument 45 #define NSCD_ALLOC_LOOKUP_BUFFER(bufp, bufsiz, hdrp, space, spsiz) \ argument 46 if ((hdrp)->pbufsiz <= spsiz) { \ 47 (void) memcpy(space, (hdrp), NSCD_PHDR_LEN((hdrp))); \ 50 hdrp = (nss_pheader_t *)(void *)space; \ 51 (hdrp)->pbufsiz = bufsiz; \ 52 (hdrp)->data_len = bufsiz - (hdrp)->data_off; \ 55 bufsiz = (hdrp)->pbufsiz; \ 60 (void) memcpy((bufp), (hdrp), NSCD_PHDR_LEN(hdrp)); \ [all …]
|
/titanic_44/usr/src/cmd/audio/utilities/ |
H A D | filehdr.c | 81 audio_write_filehdr(int fd, Audio_hdr *hdrp, int file_type, char *infop, in audio_write_filehdr() argument 103 err = audio_encode_au(hdrp, infop, ilen, buf, &blen); in audio_write_filehdr() 106 err = audio_encode_wav(hdrp, buf, &blen); in audio_write_filehdr() 109 err = audio_encode_aiff(hdrp, buf, &blen); in audio_write_filehdr() 318 audio_read_filehdr(int fd, Audio_hdr *hdrp, int *file_type, char *infop, in audio_read_filehdr() argument 334 if ((err = audio_decode_filehdr(fd, buf, file_type, hdrp, &isize)) != in audio_read_filehdr() 349 if (*file_type == FILE_AU && hdrp->data_size != AUDIO_UNKNOWN_SIZE) { in audio_read_filehdr() 352 dsize = isize + hdrp->data_size + sizeof (au_filehdr_t); in audio_read_filehdr() 508 decode_aiff(int fd, unsigned char *buf, Audio_hdr *hdrp, int *isize) in decode_aiff() argument 579 hdrp->sample_rate = sr; in decode_aiff() [all …]
|
H A D | device_ctl.c | 78 audio__setplayhdr(int fd, Audio_hdr *hdrp, unsigned int which) in audio__setplayhdr() argument 93 thdr = *hdrp; /* save original hdr */ in audio__setplayhdr() 95 prinfo->sample_rate = hdrp->sample_rate; in audio__setplayhdr() 96 prinfo->channels = hdrp->channels; in audio__setplayhdr() 97 prinfo->encoding = hdrp->encoding; in audio__setplayhdr() 98 prinfo->precision = hdrp->bytes_per_unit * 8; in audio__setplayhdr() 109 hdrp->sample_rate = prinfo->sample_rate; in audio__setplayhdr() 110 hdrp->channels = prinfo->channels; in audio__setplayhdr() 111 hdrp->data_size = AUDIO_UNKNOWN_SIZE; in audio__setplayhdr() 112 hdrp->encoding = prinfo->encoding; in audio__setplayhdr() [all …]
|
H A D | hdr_misc.c | 213 audio_enc_to_str(Audio_hdr *hdrp, char *str) in audio_enc_to_str() argument 225 switch (hdrp->channels) { in audio_enc_to_str() 238 (void) sprintf(cbuf, "%u-channel", hdrp->channels); break; in audio_enc_to_str() 241 switch (hdrp->encoding) { in audio_enc_to_str() 254 if (hdrp->samples_per_unit != 1) in audio_enc_to_str() 257 (void) sprintf(pbuf, "%u-bit", hdrp->bytes_per_unit * 8); in audio_enc_to_str() 264 if (hdrp->samples_per_unit != 0) { in audio_enc_to_str() 267 (double)(hdrp->bytes_per_unit * 8) / in audio_enc_to_str() 268 (double)hdrp->samples_per_unit); in audio_enc_to_str() 275 (void) sprintf(sbuf, "%.3fkHz", ((double)hdrp->sample_rate / 1000.)); in audio_enc_to_str()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_capture.c | 327 volatile struct sb_hdr *hdrp; in scan() local 362 hdrp = (struct sb_hdr *)bp; in scan() 363 nhdrp = hdrp; in scan() 364 pktp = (char *)hdrp + sizeof (*hdrp); in scan() 377 convert_old((struct ohdr *)hdrp); in scan() 382 nhdrp->sbh_origlen = ntohl(hdrp->sbh_origlen); in scan() 383 nhdrp->sbh_msglen = ntohl(hdrp->sbh_msglen); in scan() 384 nhdrp->sbh_totlen = ntohl(hdrp->sbh_totlen); in scan() 385 nhdrp->sbh_drops = ntohl(hdrp->sbh_drops); in scan() 387 ntohl(hdrp->sbh_timestamp.tv_sec); in scan() [all …]
|
H A D | snoop_display.c | 75 process_pkt(struct sb_hdr *hdrp, char *pktp, int num, int flags) in process_pkt() argument 85 if (hdrp == NULL) in process_pkt() 88 tvp = &hdrp->sbh_timestamp; in process_pkt() 91 drops = hdrp->sbh_drops; in process_pkt() 92 pktlen = hdrp->sbh_msglen; in process_pkt() 108 click(hdrp->sbh_origlen); in process_pkt() 110 (*interface->interpreter)(flags, dlc_header, hdrp->sbh_msglen, in process_pkt() 111 hdrp->sbh_origlen); in process_pkt() 114 hdrp->sbh_origlen); in process_pkt() 117 offset = MIN(x_offset, hdrp->sbh_msglen); in process_pkt() [all …]
|
/titanic_44/usr/src/lib/libc/port/gen/ |
H A D | mon.c | 199 struct hdr *hdrp; in monitor() local 294 hdrp = (struct hdr *)(uintptr_t)buffer; /* initialize 1st region */ in monitor() 295 hdrp->lpc = lowpc; in monitor() 296 hdrp->hpc = highpc; in monitor() 297 hdrp->nfns = nfunc; in monitor() 310 newanchp->monBuffer = hdrp; /* new, down. */ in monitor() 448 struct hdr *hdrp; in _mnewblock() local 460 hdrp = (struct hdr *)(p + 1); in _mnewblock() 463 hdrp->lpc = 0; in _mnewblock() 464 hdrp->hpc = 0; in _mnewblock() [all …]
|
/titanic_44/usr/src/uts/i86pc/os/ |
H A D | pci_bios.c | 71 uchar_t *hdrp; in pci_bios_get_irq_routing() local 84 hdrp = (uchar_t *)BIOS_IRQ_ROUTING_HDR; in pci_bios_get_irq_routing() 90 ((pci_irq_route_hdr_t *)hdrp)->pir_size = n; in pci_bios_get_irq_routing() 91 ((pci_irq_route_hdr_t *)hdrp)->pir_addr = (uint32_t)(uintptr_t)bufp; in pci_bios_get_irq_routing() 97 regs.es = FP_SEG((uint_t)(uintptr_t)hdrp); in pci_bios_get_irq_routing() 98 regs.edi.word.di = FP_OFF((uint_t)(uintptr_t)hdrp); in pci_bios_get_irq_routing() 102 n = (int)(((pci_irq_route_hdr_t *)hdrp)->pir_size / in pci_bios_get_irq_routing()
|
/titanic_44/usr/src/cmd/fm/modules/sun4v/etm/ |
H A D | etm.c | 1014 uint8_t *hdrp; /* ptr to header to return */ in etm_hdr_read() local 1026 hdrp = NULL; hdr_sz = 0; in etm_hdr_read() 1218 hdrp = fmd_hdl_zalloc(hdl, hdr_sz, FMD_SLEEP); in etm_hdr_read() 1219 (void) memcpy(hdrp, misc_buf, hdr_sz); in etm_hdr_read() 1223 etm_hexdump(hdl, hdrp, hdr_sz); in etm_hdr_read() 1226 return (hdrp); in etm_hdr_read() 1242 etm_proto_v1_ev_hdr_t *hdrp; /* for FMA_EVENT msg */ in etm_hdr_write() local 1250 hdr_sz = sizeof (*hdrp) + (1 * sizeof (hdrp->ev_lens[0])); in etm_hdr_write() 1252 hdrp = fmd_hdl_zalloc(hdl, hdr_sz, FMD_SLEEP); in etm_hdr_write() 1260 hdrp->ev_pp.pp_magic_num = ETM_PROTO_MAGIC_NUM; in etm_hdr_write() [all …]
|
/titanic_44/usr/src/uts/i86pc/io/ |
H A D | mp_platform_common.c | 89 static void apic_set_pwroff_method_from_mpcnfhdr(struct apic_mp_cnf_hdr *hdrp); 338 struct apic_mp_cnf_hdr *hdrp; in apic_probe_common() local 456 hdrp = (struct apic_mp_cnf_hdr *)psm_map_phys(mpct_addr, in apic_probe_common() 458 if (!hdrp) in apic_probe_common() 462 if (hdrp->mpcnf_sig != 0x504d4350) { in apic_probe_common() 463 psm_unmap_phys((caddr_t)hdrp, sizeof (struct apic_mp_cnf_hdr)); in apic_probe_common() 466 mpct_size = (int)hdrp->mpcnf_tbl_length; in apic_probe_common() 468 apic_set_pwroff_method_from_mpcnfhdr(hdrp); in apic_probe_common() 470 psm_unmap_phys((caddr_t)hdrp, sizeof (struct apic_mp_cnf_hdr)); in apic_probe_common() 490 hdrp = (struct apic_mp_cnf_hdr *)mpct; in apic_probe_common() [all …]
|
/titanic_44/usr/src/lib/libpcp/common/ |
H A D | libpcp.c | 949 pcp_req_msg_hdr_t *hdrp; in pcp_send_req_msg_hdr() local 954 if ((hdrp = (pcp_req_msg_hdr_t *)umem_zalloc(hdr_sz, in pcp_send_req_msg_hdr() 959 hdrp->magic_num = htonl(req_hdr->magic_num); in pcp_send_req_msg_hdr() 960 hdrp->proto_ver = req_hdr->proto_ver; in pcp_send_req_msg_hdr() 961 hdrp->msg_type = req_hdr->msg_type; in pcp_send_req_msg_hdr() 962 hdrp->sub_type = req_hdr->sub_type; in pcp_send_req_msg_hdr() 963 hdrp->rsvd_pad = htons(req_hdr->rsvd_pad); in pcp_send_req_msg_hdr() 964 hdrp->xid = htonl(req_hdr->xid); in pcp_send_req_msg_hdr() 965 hdrp->timeout = htonl(req_hdr->timeout); in pcp_send_req_msg_hdr() 966 hdrp->msg_len = htonl(req_hdr->msg_len); in pcp_send_req_msg_hdr() [all …]
|
/titanic_44/usr/src/uts/sun4v/io/ |
H A D | vnet_txdring.c | 135 vio_dring_entry_hdr_t *hdrp; in vgen_create_tx_dring() local 251 hdrp = &txdp->hdr; in vgen_create_tx_dring() 252 hdrp->dstate = VIO_DESC_FREE; in vgen_create_tx_dring() 253 hdrp->ack = B_FALSE; in vgen_create_tx_dring() 595 vio_dring_entry_hdr_t *hdrp; in vgen_dringsend() local 683 hdrp = &txdp->hdr; in vgen_dringsend() 700 hdrp->dstate = VIO_DESC_READY; in vgen_dringsend() 971 vio_dring_entry_hdr_t *hdrp; in vgen_process_dringdata() local 1018 hdrp = &rxd.hdr; in vgen_process_dringdata() 1020 if (hdrp->dstate != VIO_DESC_READY) { in vgen_process_dringdata() [all …]
|
/titanic_44/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/ |
H A D | hash.c | 1072 HASHHDR *hdrp; local 1075 hdrp = &hashp->hdr; 1077 M_32_SWAP(hdrp->magic); 1078 M_32_SWAP(hdrp->version); 1079 M_32_SWAP(hdrp->lorder); 1080 M_32_SWAP(hdrp->bsize); 1081 M_32_SWAP(hdrp->bshift); 1082 M_32_SWAP(hdrp->ovfl_point); 1083 M_32_SWAP(hdrp->last_freed); 1084 M_32_SWAP(hdrp->max_bucket); [all …]
|
/titanic_44/usr/src/uts/common/io/hxge/ |
H A D | hxge_send.c | 99 p_tx_pkt_header_t hdrp; in hxge_start() local 327 hdrp = (p_tx_pkt_header_t)kaddr; in hxge_start() 389 hdrp = (p_tx_pkt_header_t)kaddr; in hxge_start() 394 pkt_len, pack_len, hdrp)); in hxge_start() 615 pkthdrp = (p_tx_pkt_hdr_all_t)hdrp; in hxge_start() 617 hdrp->value = 0; in hxge_start() 664 hdrp->value |= (tmp_len << TX_PKT_HEADER_L4START_SHIFT); in hxge_start() 666 hdrp->value |= (tmp_len << TX_PKT_HEADER_L4STUFF_SHIFT); in hxge_start() 685 tmp_len = hdrp->value | in hxge_start() 692 tot_xfer_len, tot_xfer_len, pkt_len, tmp_len, hdrp->value)); in hxge_start() [all …]
|
H A D | hxge_txdma.c | 254 p_tx_pkt_header_t hdrp; in hxge_fill_tx_hdr() local 272 hdrp = (p_tx_pkt_header_t)&pkthdrp->pkthdr; in hxge_fill_tx_hdr() 279 hdrp->value |= (tmp << TX_PKT_HEADER_TOT_XFER_LEN_SHIFT); in hxge_fill_tx_hdr() 284 hdrp->value |= (tmp << TX_PKT_HEADER_PAD_SHIFT); in hxge_fill_tx_hdr() 300 eth_type, hdrp->value)); in hxge_fill_tx_hdr() 304 hdrp->value |= (tmp << TX_PKT_HEADER_LLC_SHIFT); in hxge_fill_tx_hdr() 306 "==> hxge_tx_pkt_hdr_init: LLC value 0x%llx", hdrp->value)); in hxge_fill_tx_hdr() 319 hdrp->value |= (tmp << TX_PKT_HEADER_VLAN__SHIFT); in hxge_fill_tx_hdr() 326 hdrp->value)); in hxge_fill_tx_hdr() 369 hdrp->value |= (tmp << TX_PKT_HEADER_IHL_SHIFT); in hxge_fill_tx_hdr() [all …]
|
/titanic_44/usr/src/uts/sun4v/ontario/io/ |
H A D | tsalarm.c | 1351 tsal_pcp_req_msg_hdr_t *hdrp; in tsal_pcp_send_req_msg_hdr() local 1356 if ((hdrp = (tsal_pcp_req_msg_hdr_t *)kmem_zalloc(hdr_sz, in tsal_pcp_send_req_msg_hdr() 1361 hdrp->magic_num = htonl(req_hdr->magic_num); in tsal_pcp_send_req_msg_hdr() 1362 hdrp->proto_ver = req_hdr->proto_ver; in tsal_pcp_send_req_msg_hdr() 1363 hdrp->msg_type = req_hdr->msg_type; in tsal_pcp_send_req_msg_hdr() 1364 hdrp->sub_type = req_hdr->sub_type; in tsal_pcp_send_req_msg_hdr() 1365 hdrp->rsvd_pad = htons(req_hdr->rsvd_pad); in tsal_pcp_send_req_msg_hdr() 1366 hdrp->xid = htonl(req_hdr->xid); in tsal_pcp_send_req_msg_hdr() 1367 hdrp->timeout = htonl(req_hdr->timeout); in tsal_pcp_send_req_msg_hdr() 1368 hdrp->msg_len = htonl(req_hdr->msg_len); in tsal_pcp_send_req_msg_hdr() [all …]
|
/titanic_44/usr/src/uts/common/io/nxge/ |
H A D | nxge_txdma.c | 459 p_tx_pkt_header_t hdrp; in nxge_fill_tx_hdr() local 479 hdrp = (p_tx_pkt_header_t)&pkthdrp->pkthdr; in nxge_fill_tx_hdr() 486 hdrp->value |= (tmp << TX_PKT_HEADER_TOT_XFER_LEN_SHIFT); in nxge_fill_tx_hdr() 490 hdrp->value |= (((uint64_t)npads) << TX_PKT_HEADER_PAD_SHIFT); in nxge_fill_tx_hdr() 518 "ether type 0x%x", eth_type, hdrp->value)); in nxge_fill_tx_hdr() 522 hdrp->value |= (tmp << TX_PKT_HEADER_LLC_SHIFT); in nxge_fill_tx_hdr() 524 "value 0x%llx", hdrp->value)); in nxge_fill_tx_hdr() 537 hdrp->value |= (tmp << TX_PKT_HEADER_VLAN__SHIFT); in nxge_fill_tx_hdr() 543 "value 0x%llx", hdrp->value)); in nxge_fill_tx_hdr() 590 hdrp->value |= (tmp << TX_PKT_HEADER_IHL_SHIFT); in nxge_fill_tx_hdr() [all …]
|
H A D | nxge_send.c | 147 p_tx_pkt_header_t hdrp; in nxge_start() local 499 hdrp = (p_tx_pkt_header_t)kaddr; in nxge_start() 565 hdrp = (p_tx_pkt_header_t)kaddr; in nxge_start() 570 pkt_len, pack_len, hdrp)); in nxge_start() 843 pkthdrp = (p_tx_pkt_hdr_all_t)hdrp; in nxge_start() 845 hdrp->value = 0; in nxge_start() 846 bcopy(&tmp_hdrp, hdrp, sizeof (tx_pkt_header_t)); in nxge_start() 882 tmp_len = hdrp->value | in nxge_start() 890 tmp_len, hdrp->value)); in nxge_start() 892 hdrp->value = ddi_swap64(tmp_len); in nxge_start() [all …]
|
/titanic_44/usr/src/uts/common/io/ |
H A D | dedump.c | 71 char *hdrp = hdr; in dedump_raw() local 85 (void) printf("%s %s %s\n", hdrp, hex, asc); in dedump_raw() 96 hdrp = hdrpad; in dedump_raw()
|
/titanic_44/usr/src/uts/common/io/nxge/npi/ |
H A D | npi_txdma.c | 1953 npi_txdma_dump_hdr(npi_handle_t handle, p_tx_pkt_header_t hdrp) in npi_txdma_dump_hdr() argument 1962 hdrp->value, in npi_txdma_dump_hdr() 1963 hdrp->bits.hdw.cksum_en_pkt_type, in npi_txdma_dump_hdr() 1964 hdrp->bits.hdw.ip_ver, in npi_txdma_dump_hdr() 1965 hdrp->bits.hdw.llc, in npi_txdma_dump_hdr() 1966 hdrp->bits.hdw.vlan, in npi_txdma_dump_hdr() 1967 hdrp->bits.hdw.ihl, in npi_txdma_dump_hdr() 1968 hdrp->bits.hdw.l3start, in npi_txdma_dump_hdr() 1969 hdrp->bits.hdw.l4start, in npi_txdma_dump_hdr() 1970 hdrp->bits.hdw.l4stuff, in npi_txdma_dump_hdr() [all …]
|
/titanic_44/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_signing.c | 218 uchar_t *hdrp; in smb_sign_calc() local 259 hdrp = (unsigned char *)&smbhdr.r.raw; in smb_sign_calc() 261 if (smb_mbc_peek(mbc, offset, "#c", size, hdrp) != 0) in smb_sign_calc()
|
/titanic_44/usr/src/cmd/gencat/ |
H A D | gencat.c | 1040 struct _cat_hdr *hdrp; local 1068 hdrp = (struct _cat_hdr *) cat; 1069 hdrp->__hdr_magic = _CAT_MAGIC; 1070 hdrp->__nsets = nsets; 1071 hdrp->__mem = mem; 1072 hdrp->__msg_hdr_offset = nsets * _CAT_SET_HDR_SIZE; 1073 hdrp->__msg_text_offset = nsets * _CAT_SET_HDR_SIZE +
|
/titanic_44/usr/src/uts/sun4v/os/ |
H A D | mach_descrip.c | 743 md_header_t *hdrp; in mach_descrip_find_md_gen() local 751 hdrp = (md_header_t *)ptr; in mach_descrip_find_md_gen() 753 namep = (char *)(ptr + MD_HEADER_SIZE + hdrp->node_blk_sz); in mach_descrip_find_md_gen() 762 if (mdtoh32(hdrp->transport_version) != MD_TRANSPORT_VERSION) { in mach_descrip_find_md_gen()
|
/titanic_44/usr/src/uts/sun4u/io/ |
H A D | opl_cfg.c | 182 hwd_header_t *hdrp; in opl_dump_hwd() local 192 hdrp = probe->pr_hdr; in opl_dump_hwd() 198 printf("HWD:magic = 0x%x\n", hdrp->hdr_magic); in opl_dump_hwd() 199 printf("HWD:version = 0x%x.%x\n", hdrp->hdr_version.major, in opl_dump_hwd() 200 hdrp->hdr_version.minor); in opl_dump_hwd() 204 hdrp->hdr_sb_status_offset); in opl_dump_hwd() 206 hdrp->hdr_domain_info_offset); in opl_dump_hwd() 207 printf("HWD:board offset = 0x%x\n", hdrp->hdr_sb_info_offset); in opl_dump_hwd() 308 opl_read_hwd(int board, hwd_header_t **hdrp, hwd_sb_status_t **statp, in opl_read_hwd() argument 386 if (hdrp != NULL) in opl_read_hwd() [all …]
|
/titanic_44/usr/src/cmd/sendmail/src/ |
H A D | headers.c | 71 dochompheader(line, pflag, hdrp, e) in dochompheader() argument 74 HDR **hdrp; 91 headeronly = hdrp != NULL; 93 hdrp = &e->e_header; 394 for (hp = hdrp; (h = *hp) != NULL; hp = &h->h_link) 476 chompheader(line, pflag, hdrp, e) in chompheader() argument 479 HDR **hdrp; 506 rval = dochompheader(xbp, pflag, hdrp, e); 511 rval = dochompheader(line, pflag, hdrp, e);
|