/titanic_41/usr/src/uts/common/io/ppp/sppp/ |
H A D | sppp.c | 207 sppp_free_ppa(sppa_t *ppa) in sppp_free_ppa() argument 211 ASSERT(ppa->ppa_refcnt == 1); in sppp_free_ppa() 212 if (ppa->ppa_kstats != NULL) { in sppp_free_ppa() 213 kstat_delete(ppa->ppa_kstats); in sppp_free_ppa() 214 ppa->ppa_kstats = NULL; in sppp_free_ppa() 216 mutex_destroy(&ppa->ppa_sta_lock); in sppp_free_ppa() 217 mutex_destroy(&ppa->ppa_npmutex); in sppp_free_ppa() 218 rw_destroy(&ppa->ppa_sib_lock); in sppp_free_ppa() 221 if (*nextppa == ppa) { in sppp_free_ppa() 222 *nextppa = ppa->ppa_nextppa; in sppp_free_ppa() [all …]
|
H A D | sppp_dlpi.c | 406 sppa_t *ppa; in sppp_dl_attach_upper() local 426 ppa = sppp_find_ppa(dlp->attach_req.dl_ppa); in sppp_dl_attach_upper() 427 if (ppa == NULL) { in sppp_dl_attach_upper() 428 ppa = sppp_create_ppa(dlp->attach_req.dl_ppa, zoneid); in sppp_dl_attach_upper() 429 } else if (ppa->ppa_zoneid != zoneid) { in sppp_dl_attach_upper() 430 ppa = NULL; in sppp_dl_attach_upper() 438 if (ppa == NULL) { in sppp_dl_attach_upper() 454 sps->sps_ppa = ppa; in sppp_dl_attach_upper() 459 rw_enter(&ppa->ppa_sib_lock, RW_WRITER); in sppp_dl_attach_upper() 460 ppa->ppa_refcnt++; in sppp_dl_attach_upper() [all …]
|
/titanic_41/usr/src/cmd/mdb/common/modules/sppp/ |
H A D | sppp.c | 84 sppa_t ppa; in sps_format() local 95 } else if (mdb_vread(&ppa, sizeof (ppa), (uintptr_t)sps->sps_ppa) == in sps_format() 99 mdb_printf("%-6d sppp%-5d ", ppa.ppa_zoneid, ppa.ppa_ppa_id); in sps_format() 219 sppa_t ppa; in sppa_walk_step() local 225 if (mdb_vread(&ppa, sizeof (ppa), wsp->walk_addr) == -1) { in sppa_walk_step() 230 status = (wsp->walk_callback(wsp->walk_addr, &ppa, wsp->walk_cbdata)); in sppa_walk_step() 232 wsp->walk_addr = (uintptr_t)ppa.ppa_nextppa; in sppa_walk_step() 238 ppa_format(uintptr_t addr, const sppa_t *ppa, uint_t *qfmt) in ppa_format() argument 240 mdb_printf("%?p %-6d sppp%-5d %?p %?p\n", addr, ppa->ppa_zoneid, in ppa_format() 241 ppa->ppa_ppa_id, ppa->ppa_ctl, ppa->ppa_lower_wq); in ppa_format() [all …]
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | dls.h | 55 #define DLS_PPA2INST(ppa) ((int)((ppa) % 1000)) argument 56 #define DLS_PPA2VID(ppa) ((uint16_t)((ppa) / 1000)) argument 57 #define DLS_PPA2MINOR(ppa) ((minor_t)((DLS_PPA2INST(ppa)) + 1)) argument
|
/titanic_41/usr/src/uts/common/vm/ |
H A D | vm_anon.c | 1237 page_t **ppa = kmem_alloc(ppasize, KM_SLEEP); in anon_decref_pages() local 1247 ppa[0] = pp; in anon_decref_pages() 1261 ASSERT(pp->p_szc == ppa[0]->p_szc); in anon_decref_pages() 1263 page_pptonum(ppa[j - i - 1])); in anon_decref_pages() 1264 ppa[j - i] = pp; in anon_decref_pages() 1291 page_destroy_pages(ppa[0]); in anon_decref_pages() 1295 ASSERT(PAGE_EXCL(ppa[j])); in anon_decref_pages() 1296 ppa[j]->p_szc = 0; in anon_decref_pages() 1300 ppa[j])); in anon_decref_pages() 1302 VN_DISPOSE(ppa[j], B_INVAL, 0, in anon_decref_pages() [all …]
|
H A D | seg_spt.c | 180 page_t **ppa); 382 page_t **ppa; in segspt_create() local 414 if ((ppa = kmem_zalloc(((sizeof (page_t *)) * npages), in segspt_create() 502 if ((err = anon_map_createpages(amp, anon_index, ptob(npages), ppa, in segspt_create() 510 if (ppa[i]->p_lckcnt == 0) in segspt_create() 521 page_unlock(ppa[i]); in segspt_create() 533 if (page_pp_lock(ppa[i], 0, 1) == 0) { in segspt_create() 539 page_pp_unlock(ppa[j], 0, 1); in segspt_create() 541 page_unlock(ppa[i]); in segspt_create() 571 &ppa[pidx], sptd->spt_prot, hat_flags); in segspt_create() [all …]
|
H A D | seg_vn.c | 3230 segvn_full_szcpages(page_t **ppa, uint_t szc, int *upgrdfail, uint_t *pszc) in segvn_full_szcpages() argument 3248 pp = ppa[i]; in segvn_full_szcpages() 3293 if (pfn - 1 != page_pptonum(ppa[i - 1])) { in segvn_full_szcpages() 3304 ASSERT(ppa[i]->p_szc < szc); in segvn_full_szcpages() 3305 if (!page_tryupgrade(ppa[i])) { in segvn_full_szcpages() 3307 page_downgrade(ppa[j]); in segvn_full_szcpages() 3309 *pszc = ppa[i]->p_szc; in segvn_full_szcpages() 3327 (void) hat_pageunload(ppa[i], HAT_FORCE_PGUNLOAD); in segvn_full_szcpages() 3330 ppa[i]->p_szc = szc; in segvn_full_szcpages() 3333 ASSERT(PAGE_EXCL(ppa[i])); in segvn_full_szcpages() [all …]
|
H A D | vm_page.c | 1066 page_exists_physcontig(vnode_t *vp, u_offset_t off, uint_t szc, page_t *ppa[]) in page_exists_physcontig() argument 1109 if ((pszc = pp->p_szc) >= szc && ppa != NULL) { in page_exists_physcontig() 1134 ppa[0] = pp; in page_exists_physcontig() 1146 ppa[0] = NULL; in page_exists_physcontig() 1157 ppa[0] = NULL; in page_exists_physcontig() 1173 ppa[i] = pp; in page_exists_physcontig() 1177 ppa[pages] = NULL; in page_exists_physcontig() 1284 if (ppa == NULL) { in page_exists_physcontig() 1287 ppa[i] = pp; in page_exists_physcontig() 1288 page_downgrade(ppa[i]); in page_exists_physcontig() [all …]
|
H A D | seg_kmem.c | 1140 page_t *pp, *rootpp, **ppa, *pplist = NULL; in segkmem_xalloc_lp() local 1154 if ((ppa = vmem_alloc(segkmem_ppa_arena, ppasize, vmflag)) == NULL) { in segkmem_xalloc_lp() 1178 ppa[i] = pp; in segkmem_xalloc_lp() 1186 ppa, (PROT_ALL & ~PROT_USER) | HAT_NOSYNC | attr, in segkmem_xalloc_lp() 1190 ppa[i]->p_lckcnt = 1; in segkmem_xalloc_lp() 1191 page_unlock(ppa[i]); in segkmem_xalloc_lp() 1195 vmem_free(segkmem_ppa_arena, ppa, ppasize); in segkmem_xalloc_lp() 1213 vmem_free(segkmem_ppa_arena, ppa, ppasize); in segkmem_xalloc_lp()
|
/titanic_41/usr/src/uts/sun4v/vm/ |
H A D | mach_vm_dep.c | 408 page_t **ppa; in contig_mem_span_alloc() local 443 ppa = kmem_zalloc(npages * sizeof (page_t *), KM_SLEEP); in contig_mem_span_alloc() 446 ppa[i++] = pp; in contig_mem_span_alloc() 458 ppa, (PROT_ALL & ~PROT_USER) | HAT_NOSYNC, HAT_LOAD_LOCK); in contig_mem_span_alloc() 460 ASSERT(i == page_get_pagecnt(ppa[0]->p_szc)); in contig_mem_span_alloc() 462 ASSERT(ppa[i]->p_szc == ppa[0]->p_szc); in contig_mem_span_alloc() 463 ASSERT(page_pptonum(ppa[i]) == page_pptonum(ppa[0]) + i); in contig_mem_span_alloc() 464 (void) page_pp_lock(ppa[i], 0, 1); in contig_mem_span_alloc() 470 page_downgrade(ppa[i]); in contig_mem_span_alloc() 473 kmem_free(ppa, npages * sizeof (page_t *)); in contig_mem_span_alloc()
|
/titanic_41/usr/src/uts/common/io/ |
H A D | net_dacf.c | 106 int ppa; in net_postattach() local 109 ppa = i_ddi_devi_get_ppa(dip); in net_postattach() 111 "for device %s%d (%d)", drvname, ppa, err); in net_postattach()
|
H A D | ramdisk.c | 311 page_t *pp, **ppa; in rd_phys_alloc() local 329 ppa = kmem_zalloc(ppalen, KM_NOSLEEP); in rd_phys_alloc() 330 if (ppa == NULL) { in rd_phys_alloc() 349 ppa[i] = pp; in rd_phys_alloc() 353 page_downgrade(ppa[i]); in rd_phys_alloc() 356 return (ppa); in rd_phys_alloc() 362 page_free(ppa[i], 0); in rd_phys_alloc() 363 kmem_free(ppa, ppalen); in rd_phys_alloc() 375 rd_phys_free(page_t **ppa, pgcnt_t npages) in rd_phys_free() argument 381 if (! page_tryupgrade(ppa[i])) { in rd_phys_free() [all …]
|
H A D | strplumb.c | 647 int rc, ppa; in getmacaddr() local 675 ppa = i_ddi_devi_get_ppa(dip); in getmacaddr() 676 if ((dl_attach(lh, ppa, NULL) != 0) || in getmacaddr() 681 drv_name, ppa, rc); in getmacaddr() 694 drv_name, ppa, rc); in getmacaddr()
|
/titanic_41/usr/src/uts/common/io/softmac/ |
H A D | softmac_main.c | 322 int ppa, err = 0; in softmac_create() local 357 ppa = DLS_MINOR2INST(minor); in softmac_create() 366 ppa = ddi_get_instance(dip); in softmac_create() 374 (void) snprintf(devname, MAXNAMELEN, "%s%d", ddi_driver_name(dip), ppa); in softmac_create() 406 softmac->smac_uppa = ppa; in softmac_create() 946 int ppa, err; in softmac_destroy() local 965 ppa = DLS_MINOR2INST(minor); in softmac_destroy() 967 ppa = ddi_get_instance(dip); in softmac_destroy() 970 (void) snprintf(devname, MAXNAMELEN, "%s%d", ddi_driver_name(dip), ppa); in softmac_destroy() 1524 int ppa, err = 0, inst; in softmac_hold_device() local [all …]
|
H A D | softmac_stat.c | 177 uint_t ppa; in softmac_hold_dev_kstat() local 180 if (ddi_parse(softmac->smac_devname, drv, &ppa) != DDI_SUCCESS) in softmac_hold_dev_kstat() 186 ksp = kstat_hold_byname(drv, ppa, softmac->smac_devname, ALL_ZONES); in softmac_hold_dev_kstat()
|
/titanic_41/usr/src/lib/libinetutil/common/ |
H A D | ifspec.c | 80 getppa(const char *bp, int bpsize, uint_t *ppa) in getppa() argument 98 *ppa = atoi(tp + 1); in getppa()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | syncstat.c | 65 uint_t ppa; in main() local 127 (void) dlpi_parselink(sername, serdevice, &ppa); in main() 128 (void) printf("syncstat: control device: %s, ppa=%u\n", serdevice, ppa); in main()
|
H A D | syncinit.c | 113 uint_t ppa; in main() local 147 (void) dlpi_parselink(cnambuf, device, &ppa); in main() 148 (void) printf("device: %s ppa: %u\n", device, ppa); in main()
|
H A D | syncloop.c | 104 uint_t ppa; in main() local 199 (void) dlpi_parselink(portname, device, &ppa); in main() 206 dnambuf, device, ppa); in main()
|
/titanic_41/usr/src/lib/libdladm/common/ |
H A D | libdllink.c | 898 parse_devname(const char *devname, char *driver, uint_t *ppa, size_t maxlen) in parse_devname() argument 917 *ppa = atoi(tp + 1); in parse_devname() 994 uint_t ppa; in dladm_linkid2legacyname() local 996 if (parse_devname(devname, drv, &ppa, MAXNAMELEN) != 0) { in dladm_linkid2legacyname() 1000 if (snprintf(dev, len, "%s%d", drv, vid * 1000 + ppa) >= len) in dladm_linkid2legacyname() 1012 dladm_parselink(const char *dev, char *provider, uint_t *ppa) in dladm_parselink() argument 1022 if (ppa != NULL) in dladm_parselink() 1023 *ppa = ifsp.ifsp_ppa; in dladm_parselink()
|
/titanic_41/usr/src/cmd/dlmgmtd/ |
H A D | dlmgmt_util.c | 669 uint_t start, ppa; in dlmgmt_advance_ppa() local 671 (void) dlpi_parselink(linkp->ll_link, prefix, &ppa); in dlmgmt_advance_ppa() 686 if (lpp == NULL || lpp->lp_nextppa != ppa) in dlmgmt_advance_ppa() 705 (void) dlpi_parselink(linkp->ll_link, prefix, &ppa); in dlmgmt_advance_ppa() 707 (ppa != lpp->lp_nextppa)) { in dlmgmt_advance_ppa()
|
/titanic_41/usr/src/uts/sun4/vm/ |
H A D | sfmmu.c | 1123 page_t **ppa; in sfmmu_tsb_xalloc() local 1151 ppa = kmem_zalloc(npages * sizeof (page_t *), KM_SLEEP); in sfmmu_tsb_xalloc() 1154 ppa[i++] = pp; in sfmmu_tsb_xalloc() 1165 ppa, (PROT_ALL & ~PROT_USER) | HAT_NOSYNC | attr, HAT_LOAD_LOCK); in sfmmu_tsb_xalloc() 1168 (void) page_pp_lock(ppa[i], 0, 1); in sfmmu_tsb_xalloc() 1169 page_unlock(ppa[i]); in sfmmu_tsb_xalloc() 1172 kmem_free(ppa, npages * sizeof (page_t *)); in sfmmu_tsb_xalloc()
|
/titanic_41/usr/src/lib/libdlpi/common/ |
H A D | libdlpi.c | 401 dlpi_parselink(const char *linkname, char *provider, uint_t *ppa) in dlpi_parselink() argument 405 status = dladm_parselink(linkname, provider, ppa); in dlpi_parselink() 419 dlpi_makelink(char *linkname, const char *provider, uint_t ppa) in dlpi_makelink() argument 428 ppa); in dlpi_makelink() 1063 uint_t ppa; in i_dlpi_open() local 1070 if (dlpi_parselink(provider, driver, &ppa) != DLPI_SUCCESS) in i_dlpi_open() 1096 ppa >= 1000 ? ppa % 1000 : ppa); in i_dlpi_open()
|
/titanic_41/usr/src/lib/libast/common/port/ |
H A D | lc.c | 402 const Lc_charset_t* ppa; in lcmake() local 509 cp = ppa = 0; in lcmake() 652 ppa = cp; in lcmake() 690 cp = ppa ? ppa : lp->charset; in lcmake()
|
/titanic_41/usr/src/lib/libipadm/common/ |
H A D | ipadm_if.c | 569 int ppa; in i_ipadm_slifname() local 599 for (ppa = 0; ppa < UINT_MAX; ppa++) { in i_ipadm_slifname() 601 ifname, ppa); in i_ipadm_slifname() 611 lifr.lifr_ppa = ppa; in i_ipadm_slifname() 627 ppa) >= LIFNAMSIZ) in i_ipadm_slifname()
|