/illumos-gate/usr/src/uts/common/os/ |
H A D | sleepq.c | 98 sleepq_unlink(kthread_t **tpp, kthread_t *tp) in sleepq_unlink() argument 100 ASSERT(*tpp == tp); in sleepq_unlink() 104 *tpp = tp->t_link; in sleepq_unlink() 134 kthread_t **tpp; in sleepq_insert() local 141 tpp = &spq->sq_first; in sleepq_insert() 143 while ((next_tp = *tpp) != NULL) { in sleepq_insert() 149 tpp = &last_tp->t_link; in sleepq_insert() 151 *tpp = t; in sleepq_insert() 221 kthread_t **tpp; in sleepq_wakeone_chan() local 223 tpp = &spq->sq_first; in sleepq_wakeone_chan() [all …]
|
H A D | semaphore.c | 70 kthread_t **tpp; \ 89 tpp = &s->s_slpq; \ 90 while ((tp = *tpp) != NULL) { \ 93 tpp = &tp->t_link; \ 95 *tpp = curthread; \ 120 kthread_t **tpp; in sema_queue() local 127 tpp = &s->s_slpq; in sema_queue() 129 while ((tp = *tpp) != NULL) { in sema_queue() 132 tpp = &tp->t_link; in sema_queue() 134 *tpp = t; in sema_queue() [all …]
|
H A D | waitq.c | 123 kthread_t **tpp; in waitq_link() local 129 tpp = &wq->wq_first; in waitq_link() 130 while ((next_tp = *tpp) != NULL) { in waitq_link() 136 tpp = &last_tp->t_link; in waitq_link() 138 *tpp = t; in waitq_link()
|
H A D | sched.c | 513 kthread_id_t *tpp; in swapdeq() local 518 tpp = &tswap_queue; in swapdeq() 520 ASSERT(*tpp != NULL); in swapdeq() 521 if (*tpp == tp) in swapdeq() 523 tpp = &(*tpp)->t_link; in swapdeq() 525 *tpp = tp->t_link; in swapdeq()
|
H A D | mem_config.c | 1813 page_t *pp, *tpp, *tpp_targ; in delete_memory_thread() local 2235 tpp = pp; in delete_memory_thread() 2236 page_sub(&pp, tpp); in delete_memory_thread() 2237 pfn = page_pptonum(tpp); in delete_memory_thread() 2239 ASSERT(PAGE_EXCL(tpp)); in delete_memory_thread() 2240 ASSERT(tpp->p_vnode == NULL); in delete_memory_thread() 2241 ASSERT(!hat_page_is_mapped(tpp)); in delete_memory_thread() 2242 ASSERT(tpp->p_szc == szc); in delete_memory_thread() 2243 tpp->p_szc = 0; in delete_memory_thread() 2244 page_delete_collect(tpp, mhp); in delete_memory_thread()
|
H A D | mem_cage.c | 1572 page_t *tpp; in kcage_relocate_page() local 1575 tpp = rpp; in kcage_relocate_page() 1576 page_sub(&rpp, tpp); in kcage_relocate_page() 1577 page_unlock(tpp); in kcage_relocate_page()
|
/illumos-gate/usr/src/lib/libnsl/netselect/ |
H A D | netselect.c | 220 struct netconfig **tpp; in getnetconfigent() local 229 for (tpp = netpp; *tpp; tpp++) { in getnetconfigent() 230 if (strcmp((*tpp)->nc_netid, netid) == 0) { in getnetconfigent() 231 if (*tpp && (strcmp((*tpp)->nc_netid, "udp6") == 0 || in getnetconfigent() 232 strcmp((*tpp)->nc_netid, "tcp6") == 0)) { in getnetconfigent() 239 return (netconfig_dup(*tpp)); in getnetconfigent() 269 struct netconfig **tpp; /* used to traverse the netconfig list */ in getnetlist() local 306 for (tpp = listpp; *tpp = fgetnetconfig(fp, NULL); tpp++) in getnetlist() 396 struct netconfig **tpp; /* scans the list from netconfig file */ in setnetpath() local 440 for (tpp = netpp; *tpp; tpp++) { in setnetpath() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | suntpi.c | 147 tpi_provinfo_t **tpp; in tpi_findprov() local 166 for (tpp = &tpi_provinfo_table[TPI_HASH(key)]; *tpp != NULL; in tpi_findprov() 167 tpp = &(*tpp)->tpi_next) { in tpi_findprov() 168 if ((*tpp)->tpi_keylen == keylen && in tpi_findprov() 169 bcmp((*tpp)->tpi_key, key, keylen) == 0) { in tpi_findprov() 171 return (*tpp); in tpi_findprov() 178 *tpp = kmem_zalloc(sizeof (tpi_provinfo_t), KM_SLEEP); in tpi_findprov() 179 (*tpp)->tpi_key = kmem_alloc(keylen, KM_SLEEP); in tpi_findprov() 180 bcopy(key, (*tpp)->tpi_key, keylen); in tpi_findprov() 181 (*tpp)->tpi_keylen = keylen; in tpi_findprov() [all …]
|
/illumos-gate/usr/src/cmd/geniconvtbl/ |
H A D | itm_util.c | 519 itmc_data_pair_t **tpp; in map_table() local 731 tpp = malloc_vital((sizeof (itmc_data_pair_t *)) * num); in map_table() 735 *(tpp + num) = &(ml->data_pair); in map_table() 749 (void) qsort(tpp, num, sizeof (itmc_data_pair_t *), in map_table() 753 for (n = 0, dp1 = tpp; n < (num-1); n++, dp1++) { in map_table() 792 source_start = data_to_long(&((*(tpp + 0))->data0)); in map_table() 793 source_end = data_to_long(&((*(tpp + num - 1))->data0)); in map_table() 794 if (0 < (*(tpp + num - 1))->range.size) { in map_table() 795 source_end = data_to_long(&((*(tpp + num - 1))->range)); in map_table() 894 tpp, num, default_data, in map_table() [all …]
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | vm_page.c | 2615 page_t *tpp; in page_free_toxic_pages() local 2619 for (i = 0, tpp = rootpp; i < pgcnt; i++, tpp = tpp->p_next) { in page_free_toxic_pages() 2620 ASSERT(tpp->p_szc == szc); in page_free_toxic_pages() 2621 ASSERT((PAGE_EXCL(tpp) && in page_free_toxic_pages() 2622 !page_iolock_assert(tpp)) || panicstr); in page_free_toxic_pages() 2623 tpp->p_szc = 0; in page_free_toxic_pages() 2627 tpp = rootpp; in page_free_toxic_pages() 2628 page_sub(&rootpp, tpp); in page_free_toxic_pages() 2629 ASSERT(PP_ISFREE(tpp)); in page_free_toxic_pages() 2630 PP_CLRFREE(tpp); in page_free_toxic_pages() [all …]
|
H A D | vm_pagelist.c | 1968 page_t *pp, *pplist, *tpp, *start_pp; in page_promote() local 2085 tpp = pp; in page_promote() 2087 tpp->p_szc = new_szc; in page_promote() 2088 tpp = tpp->p_next; in page_promote() 2657 page_t *tpp, *first_pp = pp; in page_trylock_cons() local 2676 tpp = pp->p_next; in page_trylock_cons() 2677 while (tpp != pp) { in page_trylock_cons() 2678 if (!page_trylock(tpp, se)) { in page_trylock_cons() 2685 while (first_pp != tpp) { in page_trylock_cons() 2691 tpp = tpp->p_next; in page_trylock_cons()
|
/illumos-gate/usr/src/lib/libnsl/nis/gen/ |
H A D | nis_sec_mechs.c | 121 void **tpp = mpp; in list_free_all() local 123 if (tpp) { in list_free_all() 124 for (; *tpp; tpp++) in list_free_all() 125 (*free_ent)(*tpp); in list_free_all() 149 void **tpp; in list_copy() local 156 for (tpp = mpp; *tpp; tpp++) in list_copy() 159 diff = tpp - mpp; in list_copy() 164 for (tpp = tpp_h; *mpp; mpp++) { in list_copy() 169 *tpp++ = tp; in list_copy() 274 char **tpp = cpp; in free_fields() local [all …]
|
/illumos-gate/usr/src/uts/common/io/aggr/ |
H A D | aggr_lacp.c | 1243 aggr_port_t *tpp; in lacp_selection_logic() local 1294 for (tpp = aggrp->lg_ports; tpp; tpp = tpp->lp_next) { in lacp_selection_logic() 1295 if (ether_cmp(&tpp->lp_lacp.PartnerOperSystem, in lacp_selection_logic() 1297 (tpp->lp_lacp.PartnerOperKey != 0)) in lacp_selection_logic() 1305 if (tpp == NULL) { in lacp_selection_logic() 1325 for (tpp = aggrp->lg_ports; tpp; tpp = tpp->lp_next) { in lacp_selection_logic() 1326 if (ether_cmp(&tpp->lp_lacp.PartnerOperSystem, in lacp_selection_logic() 1328 (tpp->lp_lacp.PartnerOperKey == in lacp_selection_logic() 1339 if (tpp == NULL) { in lacp_selection_logic() 1388 for (tpp = aggrp->lg_ports; tpp; tpp = in lacp_selection_logic() [all …]
|
/illumos-gate/usr/src/cmd/krb5/kadmin/server/ |
H A D | ovsec_kadmd.c | 242 char **tpp; in freedomnames() local 245 tpp = npp; in freedomnames() 246 while (*tpp++) { in freedomnames() 247 free(*(tpp-1)); in freedomnames() 267 char **npp = NULL, **tpp=NULL; in getdomnames() local 302 tpp = npp; in getdomnames() 304 while (tpp && *tpp++) { in getdomnames() 305 if (strcasecmp(*(tpp-1), hp->h_name) == 0) { in getdomnames() 339 tpp = npp; in getdomnames() 340 while (tpp && *tpp++) { in getdomnames() [all …]
|
/illumos-gate/usr/src/uts/intel/io/intel_nhm/ |
H A D | nhm_init.c | 71 nhm_dimm_t **dimmpp, **tpp; in check_serial_number() local 82 for (tpp = dimmpp + 1; tpp < end; tpp++) { in check_serial_number() 83 tp = *tpp; in check_serial_number()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/ |
H A D | in.rdisc.c | 2015 struct table **tpp, *tp; in age_table() local 2019 tpp = &table; in age_table() 2020 while (*tpp != NULL) { in age_table() 2021 tp = *tpp; in age_table() 2024 *tpp = tp->next; in age_table() 2036 tpp = &tp->next; in age_table() 2061 struct table **tpp, *tp; in flush_unreachable_routers() local 2065 tpp = &table; in flush_unreachable_routers() 2066 while (*tpp != NULL) { in flush_unreachable_routers() 2067 tp = *tpp; in flush_unreachable_routers() [all …]
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vsw_switching.c | 792 mfdb_ent_t *tpp = NULL; in vsw_forward_grp() local 835 for (tpp = entp; tpp != NULL; tpp = tpp->nextp) { in vsw_forward_grp() 839 (tpp->d_addr == (void *)arg)) { in vsw_forward_grp() 840 port = (vsw_port_t *)tpp->d_addr; in vsw_forward_grp() 846 (tpp->d_type == VSW_LOCALDEV)) { in vsw_forward_grp() 852 if (tpp->d_type == VSW_VNETPORT) { in vsw_forward_grp() 853 port = (vsw_port_t *)tpp->d_addr; in vsw_forward_grp()
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | lwp_sobj.c | 1416 kthread_t **tpp; in lwp_release() local 1420 tpp = &sqh->sq_queue.sq_first; in lwp_release() 1421 while ((tp = *tpp) != NULL) { in lwp_release() 1446 sleepq_unlink(tpp, tp); in lwp_release() 1457 tpp = &tp->t_link; in lwp_release() 1469 kthread_t **tpp; in lwp_release_all() local 1473 tpp = &sqh->sq_queue.sq_first; in lwp_release_all() 1474 while ((tp = *tpp) != NULL) { in lwp_release_all() 1477 sleepq_unlink(tpp, tp); in lwp_release_all() 1485 tpp = &tp->t_link; in lwp_release_all() [all …]
|
/illumos-gate/usr/src/cmd/tsol/tnd/ |
H A D | tnd.c | 581 tsol_tpent_t *tpp; in nss_get_tp() local 585 tpp = &tp; in nss_get_tp() 589 while ((tpp = (tsol_tpent_t *)tsol_gettpent()) != NULL) { in nss_get_tp() 593 (void) memcpy(&new->tp_ent, tpp, sizeof (tp)); in nss_get_tp() 617 struct tnd_tnrhtp_c *tpp; in load_tp_entry() local 622 tpp = *tppp; in load_tp_entry() 623 if (tnrhtp(TNDB_LOAD, &tpp->tp_ent)) { in load_tp_entry() 631 tpp->tp_ent.name); in load_tp_entry()
|
/illumos-gate/usr/src/uts/common/fs/tmpfs/ |
H A D | tmp_dir.c | 242 struct tmpnode **tpp, /* return tmpnode, if create/mkdir */ in tdirenter() argument 396 if (tpp) { in tdirenter() 397 *tpp = found; in tdirenter() 462 } else if (tpp) { in tdirenter() 463 *tpp = tp; in tdirenter()
|
/illumos-gate/usr/src/uts/sun4u/sunfire/io/ |
H A D | ac.c | 1471 page_t *tpp; in ac_mem_exercise() local 1474 tpp = pp_repl; in ac_mem_exercise() 1475 page_sub(&pp_repl, tpp); in ac_mem_exercise() 1476 page_unlock(tpp); in ac_mem_exercise()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | txg.c | 228 txg_thread_exit(tx_state_t *tx, callb_cpr_t *cpr, kthread_t **tpp) in txg_thread_exit() argument 230 ASSERT(*tpp != NULL); in txg_thread_exit() 231 *tpp = NULL; in txg_thread_exit()
|
/illumos-gate/usr/src/uts/sfmmu/vm/ |
H A D | hat_sfmmu.c | 6750 page_t *tpp, *rpp; in hat_page_relocate() local 6780 tpp = targ; in hat_page_relocate() 6782 (void) hat_pageunload(tpp, SFMMU_KERNEL_RELOC); in hat_page_relocate() 6783 tpp++; in hat_page_relocate() 6821 tpp = targ; in hat_page_relocate() 6823 sfmmu_mlist_reloc_enter(tpp, rpp, &low, &high); in hat_page_relocate() 6875 for (i = 0; i < npages; i++, tpp++, rpp++) { in hat_page_relocate() 6884 (tpp->p_vcolor != rpp->p_vcolor) && in hat_page_relocate() 6894 ppcopy_kernel(tpp, rpp); in hat_page_relocate() 6897 tpp = targ; in hat_page_relocate() [all …]
|
/illumos-gate/usr/src/cmd/ps/ |
H A D | ps.c | 1294 prfind(int found, psinfo_t *psinfo, char **tpp) in prfind() argument 1301 *tpp = "?"; in prfind() 1314 *tpp = tp; in prfind() 1347 *tpp = tp; in prfind() 1351 *tpp = tp; in prfind()
|
/illumos-gate/usr/src/uts/i86pc/vm/ |
H A D | hat_i86.c | 3712 page_t *tpp; in hati_page_clrwrt() local 3714 tpp = PP_GROUPLEADER(pp, pszc); in hati_page_clrwrt() 3715 if (pp != tpp) { in hati_page_clrwrt() 3716 pp = tpp; in hati_page_clrwrt() 4230 page_t *tpp; in hat_pagesync() local 4232 tpp = PP_GROUPLEADER(pp, pszc); in hat_pagesync() 4233 if (pp != tpp) { in hat_pagesync() 4234 pp = tpp; in hat_pagesync()
|