/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/pcibus/ |
H A D | pci_i86pc.c | 73 tnode_t *ptp; in ba_is_2() local 77 ptp = did_gettnode(dp); in ba_is_2() 78 if (strcmp(topo_node_name(ptp), PCIEX_FUNCTION) != 0) in ba_is_2() 80 pdp = did_find(mod, topo_node_getspecific(ptp)); in ba_is_2() 88 if ((ptp = topo_node_parent(ptp)) == NULL) in ba_is_2() 90 pdp = did_find(mod, topo_node_getspecific(ptp)); in ba_is_2() 102 tnode_t *ptp; in ba_is_4() local 106 ptp = did_gettnode(dp); in ba_is_4() 107 if (strcmp(topo_node_name(ptp), PCIEX_FUNCTION) != 0) in ba_is_4() 109 pdp = did_find(mod, topo_node_getspecific(ptp)); in ba_is_4() [all …]
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | init_pair.c | 48 _Color_pair *ptp; /* pairs table pointer */ in init_pair() local 56 ptp = cur_term->_pairs_tbl + pair; in init_pair() 60 if (ptp->foreground == f && ptp->background == b) in init_pair() 63 ptp->foreground = f; in init_pair() 64 ptp->background = b; in init_pair() 74 if (ptp->init) { in init_pair() 120 if (ptp->init) in init_pair() 123 ptp->init = TRUE; in init_pair()
|
H A D | pair_cont.c | 48 _Color_pair *ptp; in pair_content() local 51 (ptp = cur_term->_pairs_tbl) == (_Color_pair *) NULL) in pair_content() 54 ptp += pair; in pair_content() 56 if (!ptp->init) in pair_content() 59 *f = ptp->foreground; in pair_content() 60 *b = ptp->background; in pair_content()
|
H A D | vidupdate.c | 312 _Color_pair *ptp = cur_term->_pairs_tbl; in _change_color() local 343 if (ptp[newcolor].background != cur_pair->background) { in _change_color() 346 ptp[newcolor].background), 1, outc); in _change_color() 349 Oldcolors[ptp[newcolor].background]), in _change_color() 351 cur_pair->background = ptp[newcolor].background; in _change_color() 353 if (ptp[newcolor].foreground != cur_pair->foreground) { in _change_color() 356 ptp[newcolor].foreground), 1, outc); in _change_color() 359 Oldcolors[ptp[newcolor].foreground]), in _change_color() 361 cur_pair->foreground = ptp[newcolor].foreground; in _change_color() 375 _Color_pair *ptp = cur_term->_pairs_tbl; in _change_color() [all …]
|
H A D | scr_reset.c | 209 _Color_pair *ptp, *save_ptp; in scr_reset() local 246 if ((save_ptp = (ptp = (_Color_pair *) in scr_reset() 250 if (fread(ptp, sizeof (_Color_pair), color_pairs, in scr_reset() 262 for (i = 1, ++ptp; i <= color_pairs; i++, ptp++) { in scr_reset() 263 if (ptp->init) in scr_reset() 266 ptp->foreground, ptp->background); in scr_reset()
|
H A D | init_color.c | 107 _Color_pair *ptp = cur_term->_pairs_tbl; in init_color() local 110 if (ptp[i].foreground == color || in init_color() 111 ptp[i].background == color) in init_color() 112 _init_HP_pair(i, ptp[i].foreground, in init_color() 113 ptp[i].background); in init_color()
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | mach_trap.c | 167 ptl1_trapregs_t *ptp = &rp->ptl1_trap_regs[i]; in ptl1_showtrap() local 168 uint64_t tstate = ptp->ptl1_tstate; in ptl1_showtrap() 178 " %03x\n", ptp->ptl1_tl, ptp->ptl1_tpc, in ptl1_showtrap() 179 ptp->ptl1_tnpc, tstate, ptp->ptl1_tt); in ptl1_showtrap() 272 ptl1_trapregs_t *ptp = &rp->ptl1_trap_regs[i]; in ptl1_savetrap() local 275 PANICNVADD(pnv, name, ptp->ptl1_tl); in ptl1_savetrap() 277 PANICNVADD(pnv, name, ptp->ptl1_tt); in ptl1_savetrap() 279 PANICNVADD(pnv, name, ptp->ptl1_tpc); in ptl1_savetrap() 281 PANICNVADD(pnv, name, ptp->ptl1_tnpc); in ptl1_savetrap() 283 PANICNVADD(pnv, name, ptp->ptl1_tstate); in ptl1_savetrap()
|
H A D | memseg.c | 75 memseg_alloc_meta(pfn_t base, pgcnt_t npgs, void **ptp, pgcnt_t *metap) in memseg_alloc_meta() argument 158 ASSERT(ptp); in memseg_alloc_meta() 161 *ptp = (void *)opp; in memseg_alloc_meta() 168 memseg_free_meta(void *ptp, pgcnt_t metapgs) in memseg_free_meta() argument 177 off = (u_offset_t)ptp; in memseg_free_meta() 198 memseg_get_metapfn(void *ptp, pgcnt_t metapg) in memseg_get_metapfn() argument 203 off = (u_offset_t)ptp + ptob(metapg); in memseg_get_metapfn()
|
/illumos-gate/usr/src/uts/intel/io/vmm/intel/ |
H A D | vtd.c | 120 uint64_t *ptp; /* first level page table page */ member 604 pt_paddr = vtophys(dom->ptp); in vtd_add_device() 675 uint64_t spsize, *ptp; in vtd_update_mapping() local 715 ptp = dom->ptp; in vtd_update_mapping() 732 if (ptp[ptpindex] == 0) { in vtd_update_mapping() 734 ptp[ptpindex] = vtophys(nlp)| VTD_PTE_RD | VTD_PTE_WR; in vtd_update_mapping() 737 ptp = (uint64_t *)PHYS_TO_DMAP(ptp[ptpindex] & VTD_PTE_ADDR_M); in vtd_update_mapping() 747 ptp[ptpindex] = 0; in vtd_update_mapping() 749 ptp[ptpindex] = hpa | VTD_PTE_RD | VTD_PTE_WR; in vtd_update_mapping() 752 ptp[ptpindex] |= VTD_PTE_SUPERPAGE; in vtd_update_mapping() [all …]
|
/illumos-gate/usr/src/uts/sun4u/os/ |
H A D | mach_trap.c | 193 ptl1_trapregs_t *ptp = &rp->ptl1_trap_regs[i]; in ptl1_showtrap() local 194 uint64_t tstate = ptp->ptl1_tstate; in ptl1_showtrap() 203 " %03x\n", ptp->ptl1_tl, ptp->ptl1_tpc, in ptl1_showtrap() 204 ptp->ptl1_tnpc, tstate, ptp->ptl1_tt); in ptl1_showtrap() 286 ptl1_trapregs_t *ptp = &rp->ptl1_trap_regs[i]; in ptl1_savetrap() local 289 PANICNVADD(pnv, name, ptp->ptl1_tl); in ptl1_savetrap() 291 PANICNVADD(pnv, name, ptp->ptl1_tt); in ptl1_savetrap() 293 PANICNVADD(pnv, name, ptp->ptl1_tpc); in ptl1_savetrap() 295 PANICNVADD(pnv, name, ptp->ptl1_tnpc); in ptl1_savetrap() 297 PANICNVADD(pnv, name, ptp->ptl1_tstate); in ptl1_savetrap()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/ |
H A D | pppoed.c | 88 struct ppptun_peer ptp; in open_tunnel_dev() local 99 (void) memset(&ptp, '\0', sizeof (ptp)); in open_tunnel_dev() 100 ptp.ptp_style = PTS_PPPOE; in open_tunnel_dev() 101 ptp.ptp_flags = PTPF_DAEMON; in open_tunnel_dev() 102 (void) memcpy(ptp.ptp_address.pta_pppoe.ptma_mac, ether_bcast, in open_tunnel_dev() 103 sizeof (ptp.ptp_address.pta_pppoe.ptma_mac)); in open_tunnel_dev() 104 if (strioctl(tunfd, PPPTUN_SPEER, &ptp, sizeof (ptp), sizeof (ptp)) < in open_tunnel_dev()
|
H A D | pppoec.c | 377 struct ppptun_peer ptp; in set_control() local 381 (void) memset(&ptp, '\0', sizeof (ptp)); in set_control() 382 ptp.ptp_style = PTS_PPPOE; in set_control() 383 if (strioctl(tunfd, PPPTUN_SPEER, &ptp, sizeof (ptp), sizeof (ptp)) < in set_control() 397 return (ptp.ptp_lsessid); in set_control() 1070 struct ppptun_peer ptp; in act_open() local 1085 (void) memset(&ptp, '\0', sizeof (ptp)); in act_open() 1086 ptp.ptp_lsessid = psm->poesm_localid; in act_open() 1087 ptp.ptp_rsessid = poe_session_id(pmsg->poemsg_data); in act_open() 1088 (void) memcpy(&ptp.ptp_address, &pmsg->poemsg_sender, in act_open() [all …]
|
H A D | options.c | 2082 struct ppptun_peer ptp; in launch_service() local 2102 (void) memset(&ptp, '\0', sizeof (ptp)); in launch_service() 2103 ptp.ptp_style = PTS_PPPOE; in launch_service() 2104 ptp.ptp_address = ptc->ptc_address; in launch_service() 2105 if (strioctl(newtun, PPPTUN_SPEER, &ptp, sizeof (ptp), sizeof (ptp)) < in launch_service() 2108 ptp.ptp_rsessid = ptp.ptp_lsessid; in launch_service() 2109 if (strioctl(newtun, PPPTUN_SPEER, &ptp, sizeof (ptp), sizeof (ptp)) < in launch_service() 2225 poep = poe_mkheader(pkt_output, POECODE_PADT, ptp.ptp_lsessid); in launch_service() 2226 poep->poep_session_id = htons(ptp.ptp_lsessid); in launch_service() 2243 poep->poep_session_id = htons(ptp.ptp_lsessid); in launch_service()
|
/illumos-gate/usr/src/uts/intel/io/vmm/amd/ |
H A D | amdvi_hw.c | 1016 dom->ptp = malloc(PAGE_SIZE, M_AMDVI, M_WAITOK | M_ZERO); in amdvi_create_domain() 1027 amdvi_free_ptp(uint64_t *ptp, int level) in amdvi_free_ptp() argument 1035 if ((ptp[i] & AMDVI_PT_PRESENT) == 0) in amdvi_free_ptp() 1040 if (AMDVI_PD_SUPER(ptp[i])) in amdvi_free_ptp() 1044 amdvi_free_ptp((uint64_t *)PHYS_TO_DMAP(ptp[i] in amdvi_free_ptp() 1048 free(ptp, M_AMDVI); in amdvi_free_ptp() 1061 if (domain->ptp) in amdvi_destroy_domain() 1062 amdvi_free_ptp(domain->ptp, domain->ptp_level); in amdvi_destroy_domain() 1131 uint64_t mapped, *ptp, len; in amdvi_update_mapping() local 1138 ptp = domain->ptp; in amdvi_update_mapping() [all …]
|
H A D | amdvi_priv.h | 354 uint64_t *ptp; /* Highest level page table */ member
|
/illumos-gate/usr/src/uts/common/io/ppp/sppptun/ |
H A D | sppptun.c | 1116 struct ppptun_peer *ptp; in sppptun_inner_ioctl() local 1284 iop->ioc_count != sizeof (*ptp)) { in sppptun_inner_ioctl() 1292 ptp = (struct ppptun_peer *)mp->b_cont->b_rptr; in sppptun_inner_ioctl() 1294 struct ppptun_peer *, ptp); in sppptun_inner_ioctl() 1297 tcl->tcl_style != ptp->ptp_style) { in sppptun_inner_ioctl() 1301 if (ptp->ptp_flags & PTPF_DAEMON) { in sppptun_inner_ioctl() 1304 ptp->ptp_ltunid != 0 || ptp->ptp_rtunid != 0 || in sppptun_inner_ioctl() 1305 ptp->ptp_lsessid != 0 || ptp->ptp_rsessid != 0) { in sppptun_inner_ioctl() 1316 if (ptp->ptp_lsessid != 0 && in sppptun_inner_ioctl() 1317 ptp->ptp_lsessid != tcl->tcl_lsessid) { in sppptun_inner_ioctl() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | hostconfig.c | 126 struct prototab *ptp; local 164 for (ptp = &prototab[0]; ptp->func; ptp++) 165 if (strcmp(optarg, ptp->name) == 0) { 166 protofunc = ptp->func;
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | iscsi_conn.c | 688 persistent_tunable_param_t ptp; in iscsi_conn_sync_params() local 810 if (persistent_get_tunable_param((char *)isp->sess_name, &ptp) == in iscsi_conn_sync_params() 812 if (ptp.p_bitmap & ISCSI_TUNABLE_PARAM_RX_TIMEOUT_VALUE) { in iscsi_conn_sync_params() 814 ptp.p_params.recv_login_rsp_timeout; in iscsi_conn_sync_params() 816 if (ptp.p_bitmap & ISCSI_TUNABLE_PARAM_CONN_LOGIN_MAX) { in iscsi_conn_sync_params() 818 ptp.p_params.conn_login_max; in iscsi_conn_sync_params() 820 if (ptp.p_bitmap & ISCSI_TUNABLE_PARAM_LOGIN_POLLING_DELAY) { in iscsi_conn_sync_params() 822 ptp.p_params.polling_login_delay; in iscsi_conn_sync_params()
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | did_props.c | 271 di_prom_handle_t ptp = DI_PROM_HANDLE_NIL; in promprop2uint() local 275 if ((ptp = topo_mod_prominfo(mod)) == DI_PROM_HANDLE_NIL) in promprop2uint() 278 while ((pp = di_prom_prop_next(ptp, n, pp)) != DI_PROM_PROP_NIL) { in promprop2uint() 329 di_prom_handle_t ptp = DI_PROM_HANDLE_NIL; in di_bytes_get() local 333 if ((ptp = topo_mod_prominfo(mod)) == DI_PROM_HANDLE_NIL) in di_bytes_get() 345 while ((pp = di_prom_prop_next(ptp, n, pp)) != in di_bytes_get()
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip6_if.c | 164 boolean_t ptp = B_FALSE; in ipif_lookup_addr_common_v6() local 195 if ((!ptp && (IN6_ARE_ADDR_EQUAL( in ipif_lookup_addr_common_v6() 198 (ptp && (ipif->ipif_flags & IPIF_POINTOPOINT) && in ipif_lookup_addr_common_v6() 213 if (ptp) { in ipif_lookup_addr_common_v6() 217 ptp = B_TRUE; in ipif_lookup_addr_common_v6() 279 boolean_t ptp = B_FALSE; in ipif_lookup_addr_zoneid_v6() local 299 if ((!ptp && (IN6_ARE_ADDR_EQUAL( in ipif_lookup_addr_zoneid_v6() 302 (ptp && (ipif->ipif_flags & IPIF_POINTOPOINT) && in ipif_lookup_addr_zoneid_v6() 323 if (ptp) { in ipif_lookup_addr_zoneid_v6() 327 ptp = B_TRUE; in ipif_lookup_addr_zoneid_v6()
|
/illumos-gate/usr/src/cmd/hal/fdi/ |
H A D | Makefile | 35 FDIS = information/10freedesktop/10-camera-ptp.fdi \
|
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_cvt.c | 207 pathm_t *ptp; in drv_to_hba_logid() local 210 ptp = (pathm_t *)arg; in drv_to_hba_logid() 222 ptp->ret = SCFGA_OK; in drv_to_hba_logid() 223 ptp->log = log; in drv_to_hba_logid()
|
/illumos-gate/usr/src/uts/i86pc/io/amd_iommu/ |
H A D | amd_iommu_page_tables.c | 770 const char *path, amd_iommu_page_table_t **ptp, int km_flags) in amd_iommu_alloc_pgtable() argument 780 *ptp = NULL; in amd_iommu_alloc_pgtable() 900 *ptp = pt; in amd_iommu_alloc_pgtable() 1096 amd_iommu_page_table_t **ptp, uint16_t *next_idxp, const char *path, in amd_iommu_setup_1_pgtable() argument 1105 *ptp = NULL; in amd_iommu_setup_1_pgtable() 1149 *ptp = pt; in amd_iommu_setup_1_pgtable()
|
/illumos-gate/usr/src/cmd/init/ |
H A D | init.c | 3805 struct PROC_TABLE *ptp; in st_sane() local 3818 for (i = 0, ptp = proc_table; i < num_proc; ++i, ++ptp) { in st_sane() 3820 if (!(ptp->p_flags & OCCUPIED)) in st_sane() 3824 if (ptp->p_flags & ~(PF_MASK)) in st_sane() 3828 if (ptp->p_pid < 5 || ptp->p_pid > MAXPID) in st_sane() 3832 if (ptp->p_count < 0) in st_sane() 3836 if (ptp->p_time < 0) in st_sane()
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | disp.c | 1610 kthread_t **ptp; in dispdeq() local 1629 ptp = &dq->dq_first; in dispdeq() 1630 rp = *ptp; in dispdeq() 1641 ptp = &trp->t_link; in dispdeq() 1654 if ((*ptp = rp->t_link) == NULL) in dispdeq()
|