/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_capture.c | 328 volatile struct sb_hdr nhdr, *nhdrp; in scan() local 380 nhdrp = &nhdr; in scan() 482 nhdrp = &nhdr; in scan() 697 struct sb_hdr nhdr; in cap_write() local 715 nhdr.sbh_origlen = htonl(hdrp->sbh_origlen); in cap_write() 716 nhdr.sbh_msglen = htonl(hdrp->sbh_msglen); in cap_write() 717 nhdr.sbh_totlen = htonl(hdrp->sbh_totlen); in cap_write() 718 nhdr.sbh_drops = htonl(hdrp->sbh_drops); in cap_write() 719 nhdr.sbh_timestamp.tv_sec = htonl(hdrp->sbh_timestamp.tv_sec); in cap_write() 720 nhdr.sbh_timestamp.tv_usec = htonl(hdrp->sbh_timestamp.tv_usec); in cap_write() [all …]
|
/titanic_50/usr/src/psm/stand/boot/common/ |
H A D | readfile.c | 329 Elf32_Nhdr *nhdr; /* note header */ in read_elf32() local 348 nhdr = NULL; in read_elf32() 401 phdr->p_filesz, (void *)nhdr); in read_elf32() 403 nhdr = (Elf32_Nhdr *)note_buf; in read_elf32() 404 if (xread(fd, (caddr_t)nhdr, phdr->p_filesz) != phdr->p_filesz) in read_elf32() 408 nhdr->n_namesz, nhdr->n_descsz, nhdr->n_type); in read_elf32() 417 namep = (caddr_t)(nhdr + 1); in read_elf32() 419 if (nhdr->n_namesz == strlen(ELF_NOTE_SOLARIS) + 1 && in read_elf32() 421 nhdr->n_type == ELF_NOTE_PAGESIZE_HINT) { in read_elf32() 422 descp = namep + roundup(nhdr->n_namesz, 4); in read_elf32() [all …]
|
/titanic_50/usr/src/cmd/file/ |
H A D | elf_read.c | 168 xlatetom_nhdr(Elf_Nhdr *nhdr) in xlatetom_nhdr() argument 172 r |= file_xlatetom(ELF_T_WORD, (char *)&nhdr->n_namesz); in xlatetom_nhdr() 173 r |= file_xlatetom(ELF_T_WORD, (char *)&nhdr->n_descsz); in xlatetom_nhdr() 174 r |= file_xlatetom(ELF_T_WORD, (char *)&nhdr->n_type); in xlatetom_nhdr() 311 Elf_Nhdr Nhdr, *nhdr; /* note header just read */ in process_phdr() local 321 nhdr = &Nhdr; in process_phdr() 341 if (pread64(EI->elffd, (void *)nhdr, nsz, offset) in process_phdr() 346 if (xlatetom_nhdr(nhdr) == ELF_READ_FAIL) in process_phdr() 349 ntype = nhdr->n_type; in process_phdr() 350 nmsz = nhdr->n_namesz; in process_phdr() [all …]
|
/titanic_50/usr/src/cmd/mdb/intel/modules/mdb_kb/ |
H A D | mdb_kb.c | 282 Elf64_Nhdr *nhdr = (Elf64_Nhdr *)pos; in xkb_identify() local 286 name = pos + sizeof (*nhdr); in xkb_identify() 287 desc = (char *)P2ROUNDUP((uintptr_t)name + nhdr->n_namesz, 4); in xkb_identify() 289 pos = desc + nhdr->n_descsz; in xkb_identify() 291 if (nhdr->n_type != XEN_ELFNOTE_DUMPCORE_XEN_VERSION) in xkb_identify() 1170 Elf64_Nhdr *nhdr = (Elf64_Nhdr *)pos; in xkb_open_elf() local 1175 name = pos + sizeof (*nhdr); in xkb_open_elf() 1176 desc = (char *)P2ROUNDUP((uintptr_t)name + nhdr->n_namesz, 4); in xkb_open_elf() 1178 pos = desc + nhdr->n_descsz; in xkb_open_elf() 1180 switch (nhdr->n_type) { in xkb_open_elf() [all …]
|
/titanic_50/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_subr2.c | 721 smbfs_node_hdr_t nhdr; in sn_hashfind() local 727 bzero(&nhdr, sizeof (nhdr)); in sn_hashfind() 728 nhdr.hdr_n_rpath = (char *)rpath; in sn_hashfind() 729 nhdr.hdr_n_rplen = rplen; in sn_hashfind() 732 np = avl_find(&mi->smi_hash_avl, &nhdr, pwhere); in sn_hashfind()
|
/titanic_50/usr/src/lib/libproc/common/ |
H A D | Pcore.c | 2419 Elf64_Nhdr nhdr; local 2427 if (read(P->asfd, &nhdr, sizeof (nhdr)) != sizeof (nhdr)) { 2442 namesz = P2ROUNDUP((off64_t)nhdr.n_namesz, (off64_t)4); 2451 nhdr.n_type, nhdr.n_namesz, nhdr.n_descsz); 2458 if (nhdr.n_type < sizeof (nhdlrs) / sizeof (nhdlrs[0])) { 2459 if (nhdlrs[nhdr.n_type](P, nhdr.n_descsz) < 0) { 2461 nhdr.n_type); 2470 if (nhdr.n_type == NT_PRSTATUS || 2471 nhdr.n_type == NT_PRPSINFO) 2475 (void) note_notsup(P, nhdr.n_descsz); [all …]
|
H A D | Pgcore.c | 433 Elf64_Nhdr nhdr; in write_note() member 439 n.nhdr.n_type = type; in write_note() 440 n.nhdr.n_namesz = 5; in write_note() 441 n.nhdr.n_descsz = roundup(descsz, 4); in write_note() 448 if (gc_pwrite64(fd, desc, n.nhdr.n_descsz, *offp) != 0) in write_note() 451 *offp += n.nhdr.n_descsz; in write_note()
|
/titanic_50/usr/src/uts/common/exec/elf/ |
H A D | elf_impl.h | 70 Nhdr nhdr; member
|
H A D | elf.c | 1396 note.nhdr.n_type = type; in elfnote() 1407 note.nhdr.n_namesz = 5; in elfnote() 1408 note.nhdr.n_descsz = roundup(descsz, sizeof (Word)); in elfnote() 1417 note.nhdr.n_descsz, rlimit, credp)) in elfnote() 1420 *offsetp += note.nhdr.n_descsz; in elfnote()
|
/titanic_50/usr/src/uts/common/fs/zfs/ |
H A D | arc.c | 1578 arc_buf_hdr_t *nhdr; in arc_hdr_realloc() local 1584 nhdr = kmem_cache_alloc(new, KM_PUSHPAGE); in arc_hdr_realloc() 1589 bcopy(hdr, nhdr, HDR_L2ONLY_SIZE); in arc_hdr_realloc() 1592 nhdr->b_flags |= ARC_FLAG_HAS_L1HDR; in arc_hdr_realloc() 1598 nhdr->b_l1hdr.b_state = arc_l2c_only; in arc_hdr_realloc() 1601 ASSERT3P(nhdr->b_l1hdr.b_tmp_cdata, ==, NULL); in arc_hdr_realloc() 1631 nhdr->b_flags &= ~ARC_FLAG_HAS_L1HDR; in arc_hdr_realloc() 1637 (void) buf_hash_insert(nhdr, NULL); in arc_hdr_realloc() 1649 list_insert_after(&dev->l2ad_buflist, hdr, nhdr); in arc_hdr_realloc() 1666 nhdr->b_l2hdr.b_asize, nhdr); in arc_hdr_realloc() [all …]
|
/titanic_50/usr/src/uts/common/io/fibre-channel/ulp/ |
H A D | fcip.c | 155 fcph_network_hdr_t *nhdr, int type); 2824 fcph_network_hdr_t *nhdr; in fcip_data_cb() local 2876 nhdr = (fcph_network_hdr_t *)buf->ub_buffer; in fcip_data_cb() 2927 if ((fcip_wwn_compare(&nhdr->net_dest_addr, &fport->fcipp_pwwn, in fcip_data_cb() 2929 (!IS_BROADCAST_ADDR(&nhdr->net_dest_addr))) { in fcip_data_cb() 2933 IS_BROADCAST_ADDR(&nhdr->net_dest_addr)) { in fcip_data_cb() 3126 fcph_network_hdr_t *nhdr; in fcip_cache_arp_broadcast() local 3136 nhdr = (fcph_network_hdr_t *)buf->ub_buffer; in fcip_cache_arp_broadcast() 3139 frp = fcip_lookup_rtable(fptr, &nhdr->net_src_addr, FCIP_COMPARE_NWWN); in fcip_cache_arp_broadcast() 3148 bcopy((void *)&nhdr->net_src_addr, (void *)&map.map_pwwn, in fcip_cache_arp_broadcast() [all …]
|
/titanic_50/usr/src/lib/libsip/common/ |
H A D | sip_dialog.c | 1863 sip_header_t nhdr = NULL; in sip_dialog_add_new_contact() local 1879 if (((nhdr = sip_dup_header(chdr)) != NULL)) { in sip_dialog_add_new_contact() 1882 dialog->sip_dlg_new_local_contact = nhdr; in sip_dialog_add_new_contact()
|
/titanic_50/usr/src/uts/common/pcmcia/sys/ |
H A D | cis_handlers.h | 200 uint32_t nhdr; /* number of copies of CIS present on device */ member
|
/titanic_50/usr/src/cmd/sgs/libelf/common/ |
H A D | xlate64.m4 | 1672 Elf64_Nhdr *nhdr; 1691 nhdr = dst; 1696 field_sz = S_ROUND(nhdr->n_namesz, sizeof (Elf64_Word)); 1707 field_sz = nhdr->n_descsz;
|
H A D | xlate.m4 | 1634 Elf32_Nhdr *nhdr; 1653 nhdr = dst; 1658 field_sz = S_ROUND(nhdr->n_namesz, sizeof (Elf32_Word)); 1669 field_sz = nhdr->n_descsz;
|
/titanic_50/usr/src/uts/common/pcmcia/cis/ |
H A D | cis_handlers.c | 1251 cs->nhdr = GET_BYTE(tp);
|