/titanic_41/usr/src/uts/common/os/ |
H A D | pghw.c | 226 pghw_init(pghw_t *pg, cpu_t *cp, pghw_type_t hw) in pghw_init() argument 237 pghw_set_add(hwset, pg); in pghw_init() 238 pg->pghw_hw = hw; in pghw_init() 239 pg->pghw_generation = 0; in pghw_init() 240 pg->pghw_instance = in pghw_init() 242 pghw_kstat_create(pg); in pghw_init() 247 switch (pg->pghw_hw) { in pghw_init() 249 pg->pghw_handle = in pghw_init() 253 pg->pghw_handle = in pghw_init() 257 pg->pghw_handle = (pghw_handle_t)NULL; in pghw_init() [all …]
|
H A D | pg.c | 149 #define PG_FREE(pg) \ argument 150 ((pg)->pg_class->pgc_ops->free ? \ 151 (pg)->pg_class->pgc_ops->free(pg) : \ 152 pg_classes[pg_default_cid].pgc_ops->free(pg)) \ 158 #define PG_POLICY_NAME(pg) \ argument 159 ((pg)->pg_class->pgc_ops->policy_name ? \ 160 (pg)->pg_class->pgc_ops->policy_name(pg) : NULL) \ 165 #define PG_CPU_BELONGS(pg, cp) \ argument 166 ((pg)->pg_class->pgc_ops->cpu_belongs ? \ 167 (pg)->pg_class->pgc_ops->cpu_belongs(pg, cp) : 0) \ [all …]
|
/titanic_41/usr/src/uts/common/disp/ |
H A D | cmt.c | 134 #define IS_CMT_PG(pg) (((pg_t *)(pg))->pg_class->pgc_id == pg_cmt_class_id) argument 228 pg_cmt_free(pg_t *pg) in pg_cmt_free() argument 230 ASSERT(pg != NULL); in pg_cmt_free() 231 ASSERT(IS_CMT_PG(pg)); in pg_cmt_free() 233 kmem_free((pg_cmt_t *)pg, sizeof (pg_cmt_t)); in pg_cmt_free() 300 cmt_callback_init(pg_t *pg) in cmt_callback_init() argument 306 if (((pg_cmt_t *)pg)->cmt_policy == CMT_NO_POLICY) in cmt_callback_init() 309 switch (((pghw_t *)pg)->pghw_hw) { in cmt_callback_init() 311 pg->pg_cb.thread_swtch = cmt_ev_thread_swtch_pwr; in cmt_callback_init() 312 pg->pg_cb.thread_remain = cmt_ev_thread_remain_pwr; in cmt_callback_init() [all …]
|
/titanic_41/usr/src/cmd/pgstat/ |
H A D | pgstat.pl | 385 foreach my $pg (@pgs) { 386 my $name = $p->sh_name ($pg) || "unknown"; 387 my $level = $p->level($pg) || 0 if $do_levels; 390 my $tags = $p->tags($pg); 392 $name_of_pg{$pg} = $name; 395 $name_of_pg{$pg} = $name; 505 foreach my $pg (@pgs) { 507 get_load($p, $p_dup, $pg); 508 my @cpus = $p->cpus ($pg); 510 $p->sw_utilization($p_dup, $pg); [all …]
|
/titanic_41/usr/src/cmd/perl/contrib/Sun/Solaris/Pg/ |
H A D | Pg.pm | 195 my $pg = _pg_get(shift, shift) or return; 196 my @cpus = @{$pg->{cpus}}; 208 my $pg = _pg_get(shift, shift) or return; 209 my $parent = $pg->{parent}; 221 my $pg = _pg_get(shift, shift) or return; 223 my $children = $pg->{children} or return; 235 my $pg = _pg_get(shift, shift) or return; 236 return ($pg->{sh_name}); 245 my $pg = _pg_get(shift, shift) or return; 246 return ($pg->{is_leaf}); [all …]
|
/titanic_41/usr/src/cmd/sendmail/db/include/ |
H A D | db_page.h | 202 #define P_INIT(pg, pg_size, n, pg_prev, pg_next, btl, pg_type) do { \ argument 203 PGNO(pg) = n; \ 204 PREV_PGNO(pg) = pg_prev; \ 205 NEXT_PGNO(pg) = pg_next; \ 206 NUM_ENT(pg) = 0; \ 207 HOFFSET(pg) = pg_size; \ 208 LEVEL(pg) = btl; \ 209 TYPE(pg) = pg_type; \ 216 #define LOFFSET(pg) (P_OVERHEAD + NUM_ENT(pg) * sizeof(db_indx_t)) argument 219 #define P_FREESPACE(pg) (HOFFSET(pg) - LOFFSET(pg)) argument [all …]
|
/titanic_41/usr/src/cmd/pginfo/ |
H A D | pginfo.pl | 333 foreach my $pg (@pgs) { 334 my $name = $p->sh_name ($pg) || "unknown"; 335 my $level = $p->level($pg) || 0; 338 my $tags = $p->tags($pg); 404 foreach my $pg (@top_level) { 405 my $children = $pg_tree->{$pg}->{children}; 408 pg_print_tree($p, $pg_tree, $pg, '', '', scalar @children); 426 my $pg = shift; 427 my $sharing = $p->sh_name($pg); 429 my $tags = $p->tags($pg); [all …]
|
/titanic_41/usr/src/cmd/svc/lsvcrun/ |
H A D | lsvcrun.c | 198 scf_propertygroup_t *pg = NULL; in get_start_pg() local 204 if ((pg = scf_pg_create(h)) == NULL) { in get_start_pg() 211 SCF_PG_FLAG_NONPERSISTENT, pg) == 0) { in get_start_pg() 214 return (pg); in get_start_pg() 234 scf_pg_destroy(pg); in get_start_pg() 235 pg = NULL; in get_start_pg() 239 if (scf_service_get_pg(svc, pg_name, pg) != 0) { in get_start_pg() 251 scf_pg_destroy(pg); in get_start_pg() 252 pg = NULL; in get_start_pg() 259 scf_pg_destroy(pg); in get_start_pg() [all …]
|
/titanic_41/usr/src/cmd/sendmail/db/hash/ |
H A D | hash_conv.c | 38 __ham_pgin(pg, pp, cookie) in __ham_pgin() argument 39 db_pgno_t pg; in __ham_pgin() 51 if (pg != PGNO_METADATA && pg != tpgno) { 53 pg, PGNO_INVALID, PGNO_INVALID, 0, P_HASH); 59 return (pg == PGNO_METADATA ? 60 __ham_mswap(pp) : __db_pgin(pg, pginfo->db_pagesize, pp)); 71 __ham_pgout(pg, pp, cookie) in __ham_pgout() argument 72 db_pgno_t pg; in __ham_pgout() 81 return (pg == PGNO_METADATA ? 82 __ham_mswap(pp) : __db_pgout(pg, pginfo->db_pagesize, pp)); [all …]
|
/titanic_41/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/ |
H A D | bt_delete.c | 102 if ((h = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL) 113 status = __bt_dleaf(t, NULL, h, c->pg.index); 171 if (h->pgno == c->pg.pgno) 180 while (h->pgno != c->pg.pgno) { 220 if (h->pgno == c->pg.pgno) 235 while (h->pgno != c->pg.pgno) { 278 return ((*hp = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL); 385 PAGE *pg; local 405 if ((pg = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL) 409 bi = GETBINTERNAL(pg, idx); [all …]
|
H A D | bt_seq.c | 191 db_pgno_t pg; local 213 for (pg = P_ROOT;;) { 214 if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) 225 pg = GETBINTERNAL(h, 0)->pgno; 234 for (pg = P_ROOT;;) { 235 if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) 246 pg = GETBINTERNAL(h, NEXTINDEX(h) - 1)->pgno; 280 db_pgno_t pg; local 325 c->pg.pgno = ep->page->pgno; 326 c->pg.index = ep->index; [all …]
|
H A D | bt_overflow.c | 90 db_pgno_t pg; local 94 memmove(&pg, p, sizeof(db_pgno_t)); 99 if (pg == P_INVALID || sz == 0) 115 for (p = *buf;; p = (char *)p + nb, pg = h->nextpg) { 116 if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) 141 __ovfl_put(t, dbt, pg) in __ovfl_put() argument 144 db_pgno_t *pg; 174 *pg = h->pgno; 200 db_pgno_t pg; local 204 memmove(&pg, p, sizeof(db_pgno_t)); [all …]
|
/titanic_41/usr/src/cmd/svc/svccfg/ |
H A D | svccfg_xml.c | 835 pgroup_t *pg; in lxml_get_pgroup() local 846 pg = internal_pgroup_find_or_create(entity, (char *)name, (char *)type); in lxml_get_pgroup() 861 (void) lxml_get_pgroup_stability(pg, cursor); in lxml_get_pgroup() 864 (void) lxml_get_property(pg, cursor); in lxml_get_pgroup() 867 (void) lxml_get_propval(pg, cursor); in lxml_get_pgroup() 876 pg->sc_pgroup_delete = (xmlStrcmp(delete, (xmlChar *)true) == 0); in lxml_get_pgroup() 889 lxml_get_method_profile(pgroup_t *pg, xmlNodePtr profile) in lxml_get_method_profile() argument 895 if (internal_attach_property(pg, p) != 0) in lxml_get_method_profile() 898 return (new_str_prop_from_attr(pg, SCF_PROPERTY_PROFILE, in lxml_get_method_profile() 903 lxml_get_method_credential(pgroup_t *pg, xmlNodePtr cred) in lxml_get_method_credential() argument [all …]
|
H A D | svccfg_internal.c | 186 pgroup_t *pg = v; in internal_pgroup_dump() local 188 (void) printf("pgroup name = %s\n", pg->sc_pgroup_name); in internal_pgroup_dump() 189 (void) printf(" type = %s\n", pg->sc_pgroup_type); in internal_pgroup_dump() 191 (void) uu_list_walk(pg->sc_pgroup_props, internal_property_dump, in internal_pgroup_dump() 325 pgroup_t *pg; in internal_service_free() local 334 while ((pg = uu_list_teardown(s->sc_pgroups, &cookie)) != NULL) in internal_service_free() 335 internal_pgroup_free(pg); in internal_service_free() 338 while ((pg = uu_list_teardown(s->sc_dependents, &cookie)) != NULL) in internal_service_free() 339 internal_pgroup_free(pg); in internal_service_free() 370 pgroup_t *pg; in internal_instance_free() local [all …]
|
H A D | svccfg_tmpl.c | 587 pgroup_t *pg; in composed_pg_destroy() local 605 if ((pg = cpg->cpg_instance_pg) != NULL) { in composed_pg_destroy() 606 assert((pg->sc_pgroup_composed == NULL) || in composed_pg_destroy() 607 (pg->sc_pgroup_composed == cpg)); in composed_pg_destroy() 608 pg->sc_pgroup_composed = NULL; in composed_pg_destroy() 620 grow_props_tree(pgroup_t *pg, uu_avl_t *tree) in grow_props_tree() argument 625 for (prop = uu_list_first(pg->sc_pgroup_props); in grow_props_tree() 627 prop = uu_list_next(pg->sc_pgroup_props, prop)) { in grow_props_tree() 687 pgroup_t *pg; in build_composed_property_groups() local 691 for (pg = uu_list_first(inst->sc_pgroups); in build_composed_property_groups() [all …]
|
/titanic_41/usr/src/cmd/svc/svcprop/ |
H A D | svcprop.c | 77 #define scf_entity_get_pg(ent, name, pg) \ argument 78 (ent.type ? scf_service_get_pg(ent.u.svc, name, pg) : \ 79 scf_instance_get_pg(ent.u.inst, name, pg)) 224 display_prop(scf_propertygroup_t *pg, scf_property_t *prop) in display_prop() argument 251 if (scf_pg_get_name(pg, buf, buf_sz) < 0) in display_prop() 307 display_pg(scf_propertygroup_t *pg) in display_pg() argument 319 if (scf_iter_pg_properties(iter, pg) == -1) in display_pg() 323 display_prop(pg, prop); in display_pg() 416 scf_propertygroup_t *pg; in process_ent() local 426 if ((pg = scf_pg_create(hndl)) == NULL || in process_ent() [all …]
|
/titanic_41/usr/src/cmd/sendmail/db/btree/ |
H A D | bt_conv.c | 31 __bam_pgin(pg, pp, cookie) in __bam_pgin() argument 32 db_pgno_t pg; in __bam_pgin() 41 return (pg == PGNO_METADATA ? 42 __bam_mswap(pp) : __db_pgin(pg, pginfo->db_pagesize, pp)); 53 __bam_pgout(pg, pp, cookie) in __bam_pgout() argument 54 db_pgno_t pg; in __bam_pgout() 63 return (pg == PGNO_METADATA ? 64 __bam_mswap(pp) : __db_pgout(pg, pginfo->db_pagesize, pp)); 74 __bam_mswap(pg) in __bam_mswap() argument 75 PAGE *pg; in __bam_mswap() [all …]
|
/titanic_41/usr/src/cmd/svc/startd/ |
H A D | libscf.c | 429 scf_propertygroup_t *pg = scf_pg_create(h); in libscf_get_stn_tset() local 436 if (h == NULL || pg == NULL) { in libscf_get_stn_tset() 448 if (scf_instance_get_pg_composed(inst, NULL, pgname, pg) == in libscf_get_stn_tset() 461 if (scf_instance_get_pg_composed(inst, NULL, pgname, pg) == in libscf_get_stn_tset() 472 scf_pg_destroy(pg); in libscf_get_stn_tset() 507 libscf_read_state(const scf_propertygroup_t *pg, const char *prop_name, in libscf_read_state() argument 515 h = scf_pg_handle(pg); in libscf_read_state() 518 if (scf_pg_get_property(pg, prop_name, prop) == -1) { in libscf_read_state() 547 libscf_read_states(const scf_propertygroup_t *pg, in libscf_read_states() argument 552 state_ret = libscf_read_state(pg, SCF_PROPERTY_STATE, state); in libscf_read_states() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/ |
H A D | mpd_tables.c | 46 static void phyint_insert(struct phyint *pi, struct phyint_group *pg); 58 static void target_flush_hosts(struct phyint_group *pg); 65 static int phyint_state_event(struct phyint_group *pg, struct phyint *pi); 66 static int phyint_group_state_event(struct phyint_group *pg); 67 static int phyint_group_change_event(struct phyint_group *pg, ipmp_group_op_t); 68 static int phyint_group_member_event(struct phyint_group *pg, struct phyint *pi, 296 struct phyint_group *pg; in phyint_group_lookup() local 301 for (pg = phyint_groups; pg != NULL; pg = pg->pg_next) { in phyint_group_lookup() 302 if (strncmp(pg->pg_name, pg_name, sizeof (pg->pg_name)) == 0) in phyint_group_lookup() 305 return (pg); in phyint_group_lookup() [all …]
|
/titanic_41/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | pg.c | 70 pg(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) in pg() function 72 pg_t pg; in pg() local 105 if (mdb_vread(&pg, sizeof (struct pg), addr) == -1) { in pg() 119 (uintptr_t)pg.pg_class) == -1) { in pg() 120 mdb_warn("unable to read 'pg_class' at %p", pg.pg_class); in pg() 132 if (pg.pg_relation == PGR_PHYSICAL) { in pg() 141 pg.pg_id, addr, pghw.pghw_instance, in pg() 143 pg.pg_cpus.grp_size, in pg() 150 pg.pg_id, addr, pg_class.pgc_name, in pg() 151 pg.pg_cpus.grp_size); in pg()
|
/titanic_41/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_prop.c | 78 topo_pgroup_t *pg; in pgroup_get() local 82 for (pg = topo_list_next(&node->tn_pgroups); pg != NULL; in pgroup_get() 83 pg = topo_list_next(pg)) { in pgroup_get() 84 if (strcmp(pg->tpg_info->tpi_name, pgname) == 0) { in pgroup_get() 85 return (pg); in pgroup_get() 93 propval_get(topo_pgroup_t *pg, const char *pname) in propval_get() argument 97 if (pg == NULL) in propval_get() 100 for (pvl = topo_list_next(&pg->tpg_pvals); pvl != NULL; in propval_get() 521 topo_pgroup_t *pg; in prop_create() local 528 if ((pg = pgroup_get(node, pgname)) == NULL) { in prop_create() [all …]
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | pg.h | 49 struct pg; 65 void (*thread_swtch)(struct pg *, struct cpu *, hrtime_t, 67 void (*thread_remain)(struct pg *, struct cpu *, 74 typedef struct pg { struct 86 struct pg *(*alloc)(); 87 void (*free)(struct pg *); 96 int (*cpu_belongs)(struct pg *, struct cpu *); 97 char *(*policy_name)(struct pg *); 119 struct pg *cmt_lineage; /* Ascending lineage chain */ 126 pg_t *pg; member [all …]
|
/titanic_41/usr/src/cmd/svc/svcadm/ |
H A D | svcadm.c | 244 get_bool_prop(scf_propertygroup_t *pg, const char *propname, uint8_t *bp) in get_bool_prop() argument 254 if (scf_pg_get_property(pg, propname, prop) != 0) { in get_bool_prop() 318 set_bool_prop(scf_propertygroup_t *pg, const char *propname, boolean_t b) in set_bool_prop() argument 333 if (scf_transaction_start(tx, pg) == -1) { in set_bool_prop() 382 if (scf_pg_update(pg) == -1) in set_bool_prop() 401 get_astring_prop(const scf_propertygroup_t *pg, const char *propname, in get_astring_prop() argument 406 if (scf_pg_get_property(pg, propname, prop) != 0) { in get_astring_prop() 440 const char *pgtype, uint32_t pgflags, scf_propertygroup_t *pg) in pg_get_or_add() argument 443 if (scf_instance_get_pg(inst, pgname, pg) == 0) in pg_get_or_add() 449 if (scf_instance_add_pg(inst, pgname, pgtype, pgflags, pg) == 0) in pg_get_or_add() [all …]
|
H A D | synch.c | 73 scf_propertygroup_t *pg; in is_enabled() local 76 if ((pg = scf_pg_create(h)) == NULL) in is_enabled() 79 if (scf_instance_get_pg(inst, SCF_PG_GENERAL_OVR, pg) == 0 && in is_enabled() 80 get_bool_prop(pg, SCF_PROPERTY_ENABLED, &bp) == 0) { in is_enabled() 81 scf_pg_destroy(pg); in is_enabled() 85 if (scf_instance_get_pg(inst, SCF_PG_GENERAL, pg) == 0 && in is_enabled() 86 get_bool_prop(pg, SCF_PROPERTY_ENABLED, &bp) == 0) { in is_enabled() 87 scf_pg_destroy(pg); in is_enabled() 91 scf_pg_destroy(pg); in is_enabled() 101 read_astring_prop(scf_propertygroup_t *pg, scf_value_t *val, in read_astring_prop() argument [all …]
|
/titanic_41/usr/src/lib/libstmf/common/ |
H A D | store.c | 293 scf_propertygroup_t *pg = NULL; in iPsAddRemoveGroupMember() local 321 if (((pg = scf_pg_create(handle)) == NULL) || in iPsAddRemoveGroupMember() 335 if (scf_service_get_pg(svc, pgName, pg) == -1) { in iPsAddRemoveGroupMember() 350 if (scf_transaction_start(tran, pg) == -1) { in iPsAddRemoveGroupMember() 380 if (scf_pg_get_property(pg, groupName, prop) == -1) { in iPsAddRemoveGroupMember() 579 if (pg != NULL) { in iPsAddRemoveGroupMember() 580 scf_pg_destroy(pg); in iPsAddRemoveGroupMember() 637 scf_propertygroup_t *pg = NULL; in iPsAddRemoveLuViewEntry() local 662 if (((pg = scf_pg_create(handle)) == NULL) || in iPsAddRemoveLuViewEntry() 674 if (scf_service_get_pg(svc, luPgName, pg) == -1) { in iPsAddRemoveLuViewEntry() [all …]
|