/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_fmri.c | 549 int topo_fmri_getprop(topo_hdl_t *thp, nvlist_t *nvl, const char *pg, argument 555 return (fmri_prop(thp, nvl, pg, pname, args, prop, err)); 558 int topo_fmri_setprop(topo_hdl_t *thp, nvlist_t *nvl, const char *pg, argument 579 rv |= nvlist_add_string(in, TOPO_PROP_GROUP, pg);
|
H A D | topo_prop.c | 78 topo_pgroup_t *pg; local 82 for (pg = topo_list_next(&node->tn_pgroups); pg != NULL; 83 pg = topo_list_next(pg)) { 84 if (strcmp(pg->tpg_info->tpi_name, pgname) == 0) { 85 return (pg); 93 propval_get(topo_pgroup_t *pg, const char *pname) argument 97 if (pg == NULL) 100 for (pvl = topo_list_next(&pg 519 topo_pgroup_t *pg; local 977 topo_pgroup_t *pg; local 1074 topo_pgroup_t *pg; local 1126 topo_pgroup_t *pg; local 1161 pgroup_seterr(tnode_t *node, topo_pgroup_t *pg, topo_ipgroup_info_t *pip, int *err) argument 1183 topo_pgroup_t *pg; local 1232 topo_pgroup_t *pg; local 1272 topo_pgroup_t *pg; local 1415 topo_pgroup_t *pg; local 1486 topo_pgroup_t *pg; local [all...] |
/illumos-gate/usr/src/lib/libscf/common/ |
H A D | notify_params.c | 188 * Get the pg from the running snapshot of the instance (composed or not) 192 scf_propertygroup_t *pg, int composed) 214 if (scf_instance_get_pg_composed(i, snap, n, pg) != 0) 218 scf_snaplevel_get_pg(slvl, n, pg) != 0) 222 if (scf_service_get_pg(s, n, pg) != 0) 235 * Add a pg if it does not exist, or get it if it exists. 242 uint32_t flags, scf_propertygroup_t *pg) 247 r = scf_instance_add_pg(i, n, t, flags, pg); 249 r = scf_service_add_pg(s, n, t, flags, pg); 257 r = scf_instance_get_pg(i, n, pg); 191 get_pg(scf_service_t *s, scf_instance_t *i, const char *n, scf_propertygroup_t *pg, int composed) argument 241 get_or_add_pg(scf_service_t *s, scf_instance_t *i, const char *n, const char *t, uint32_t flags, scf_propertygroup_t *pg) argument 283 del_pg(scf_service_t *s, scf_instance_t *i, const char *n, scf_propertygroup_t *pg) argument 675 notify_set_params(scf_propertygroup_t *pg, nvlist_t *params) argument 1272 scf_propertygroup_t *pg = scf_pg_create(h); local 1394 _scf_notify_get_params(scf_propertygroup_t *pg, nvlist_t *params) argument 1508 get_stn_pg(scf_service_t *s, scf_instance_t *i, scf_instance_t *g, const char *pgname, scf_propertygroup_t *pg) argument 1528 get_pg_source(scf_propertygroup_t *pg, nvlist_t *params) argument 1584 scf_propertygroup_t *pg = scf_pg_create(h); local 1707 scf_propertygroup_t *pg = scf_pg_create(h); local 1883 scf_propertygroup_t *pg = scf_pg_create(h); local [all...] |
H A D | midlevel.c | 75 assemble_fmri(scf_handle_t *h, const char *base, const char *pg, argument 87 if (pg == NULL) 90 pglen = strlen(pg); 119 if (pg == NULL) 122 (void) strcat(fmri_buf, pg); 434 * SCF_ERROR_DELETED - the pg tx was started on was deleted 717 scf_propertygroup_t *pg = NULL; local 725 (pg = scf_pg_create(h)) == NULL || 733 if (scf_instance_get_pg(inst, SCF_PG_RESTARTER_ACTIONS, pg) == -1) { 754 SCF_PG_RESTARTER_ACTIONS_FLAGS, pg) 964 scf_propertygroup_t *pg = NULL; local 1789 scf_propertygroup_t *pg = NULL; local 2232 struct scf_simple_pg *pg; local 2597 scf_propertygroup_t *pg = scf_pg_create(h); local 2763 scf_propertygroup_t *pg = scf_pg_create(h); local 2923 scf_propertygroup_t *pg; local [all...] |
/illumos-gate/usr/src/lib/libscf/inc/ |
H A D | libscf_priv.h | 312 scf_propertygroup_t *pg; member in struct:scf_walkinfo 527 * Given a property group (pg) and a property name (pn), this function 528 * retrives an astring value from pg/pn. 593 * Specialized function to get notification parametes from a pg into an
|
/illumos-gate/usr/src/lib/fm/libdiskstatus/common/ |
H A D | ds_scsi.c | 305 struct mode_page *pg; local 313 pg = (struct mode_page *)&pgdata[i]; 315 if (pg->code == pagecode) { 320 i += MODESENSE_PAGE_LEN(pg);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/ |
H A D | mpd_probe.c | 70 static boolean_t check_pg_crtt_improved(struct phyint_group *pg); 623 struct phyint_group *pg; local 649 pg = pii->pii_phyint->pi_group; 650 if ((pii->pii_state != PI_RUNNING) || GROUP_FAILED(pg)) 666 if ((target->tg_crtt < (pg->pg_probeint / LOWER_FDT_TRIGGER)) && 667 (user_failure_detection_time < pg->pg_fdt) && 674 if (check_pg_crtt_improved(pg)) { 675 pg->pg_fdt = MAX(pg->pg_fdt / NEXT_FDT_MULTIPLE, 677 pg 717 struct phyint_group *pg = pii->pii_phyint->pi_group; local 1022 check_pg_crtt_improved(struct phyint_group *pg) argument 2148 struct phyint_group *pg; local [all...] |
H A D | mpd_main.c | 271 struct phyint_group *pg, *next_pg; local 306 for (pg = phyint_groups; pg != NULL; pg = pg->pg_next) { 307 pg->pg_in_use = _B_FALSE; 308 addrlist_free(&pg->pg_addrs); 391 pg = phyint_group_lookup(lifreq.lifr_groupname); 392 if (pg == NULL) { 393 pg 481 struct phyint_group *pg; local 862 struct phyint_group *pg; local 1820 struct phyint_group *pg; local [all...] |
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; local 301 for (pg = phyint_groups; pg != NULL; pg 313 phyint_insert(struct phyint *pi, struct phyint_group *pg) argument 370 phyint_create(char *pi_name, struct phyint_group *pg, uint_t ifindex, uint64_t flags) argument 489 phyint_group_insert(struct phyint_group *pg) argument 507 struct phyint_group *pg; local 538 phyint_group_chstate(struct phyint_group *pg, enum pg_state state) argument 606 struct phyint_group *pg; local 819 struct phyint_group *pg; local 1098 phyint_group_delete(struct phyint_group *pg) argument 1138 phyint_group_refresh_state(struct phyint_group *pg) argument 1331 struct phyint_group *pg = pi->pi_group; local 1421 struct phyint_group *pg = pi->pi_group; local 2511 target_flush_hosts(struct phyint_group *pg) argument 2869 groupstate(struct phyint_group *pg) argument 2992 phyint_group_state_event(struct phyint_group *pg) argument 3026 phyint_group_change_event(struct phyint_group *pg, ipmp_group_op_t op) argument 3065 phyint_group_member_event(struct phyint_group *pg, struct phyint *pi, ipmp_if_op_t op) argument 3113 phyint_state_event(struct phyint_group *pg, struct phyint *pi) argument 3179 struct phyint_group *pg; local 3340 struct phyint_group *pg; local 3377 struct phyint_group *pg; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/inetconv/ |
H A D | inetconv.c | 1104 const char *pg, const char *prop, const char *value) 1118 if (scf_instance_get_pg(inst, pg, gpg) == -1) { 1125 (scf_service_get_pg(svc, pg, gpg) == -1)) { 1103 modify_sprop(scf_handle_t *h, const scf_instance_t *inst, const char *pg, const char *prop, const char *value) argument
|
/illumos-gate/usr/src/cmd/mdb/intel/modules/generic_cpu/ |
H A D | gcpu.c | 160 void *pg; local 205 pg = mdb_alloc(sz, UM_SLEEP); 206 if (mdb_vread(pg, sz, (uintptr_t)awsp->chip_tab[i]) != sz) { 209 mdb_free(pg, sz); 213 awsp->chip_tab[i] = pg;
|
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | restarter.c | 322 scf_propertygroup_t *pg; local 369 pg = safe_scf_pg_create(h); 444 r = scf_instance_get_pg(scf_inst, SCF_PG_RESTARTER, pg); 458 * there was no restarter pg. In case somebody 469 r = libscf_read_states(pg, &state, &next_state); 664 scf_pg_destroy(pg); 693 scf_pg_destroy(pg);
|
/illumos-gate/usr/src/cmd/svc/svcadm/ |
H A D | svcadm.c | 239 * Returns 0, ECANCELED if pg is deleted, ENOENT if propname doesn't exist, 244 get_bool_prop(scf_propertygroup_t *pg, const char *propname, uint8_t *bp) argument 254 if (scf_pg_get_property(pg, propname, prop) != 0) { 318 set_bool_prop(scf_propertygroup_t *pg, const char *propname, boolean_t b) argument 333 if (scf_transaction_start(tx, pg) == -1) { 382 if (scf_pg_update(pg) == -1) 394 * Gets the single astring value of the propname property of pg. prop & v are 396 * -ENOENT - pg has no property named propname 401 get_astring_prop(const scf_propertygroup_t *pg, const char *propname, argument 406 if (scf_pg_get_property(pg, propnam 439 pg_get_or_add(const scf_instance_t *inst, const char *pgname, const char *pgtype, uint32_t pgflags, scf_propertygroup_t *pg) argument 505 scf_propertygroup_t *pg = NULL; local 587 scf_propertygroup_t *pg; local 922 dep_get_astring(const char *fmri, const char *pgname, const scf_propertygroup_t *pg, const char *propname, scf_property_t *prop, scf_value_t *v, char *buf, size_t bufsz) argument 1028 scf_propertygroup_t *pg; local 1332 scf_propertygroup_t *pg; local 1490 scf_propertygroup_t *pg; local 1565 scf_propertygroup_t *pg; local 1741 scf_propertygroup_t *pg = NULL; local 1811 scf_propertygroup_t *pg = NULL; local 1981 scf_propertygroup_t *pg; local [all...] |
/illumos-gate/usr/src/uts/common/disp/ |
H A D | cmt.c | 89 cmt_lgrp_t *cmt_root = NULL; /* Reference to root cmt pg */ 134 #define IS_CMT_PG(pg) (((pg_t *)(pg))->pg_class->pgc_id == pg_cmt_class_id) 228 pg_cmt_free(pg_t *pg) argument 230 ASSERT(pg != NULL); 231 ASSERT(IS_CMT_PG(pg)); 233 kmem_free((pg_cmt_t *)pg, sizeof (pg_cmt_t)); 300 cmt_callback_init(pg_t *pg) argument 306 if (((pg_cmt_t *)pg)->cmt_policy == CMT_NO_POLICY) 309 switch (((pghw_t *)pg) 331 cmt_hier_promote(pg_cmt_t *pg, cpu_pg_t *pgdata) argument 502 pg_cmt_t *pg; local 772 pg_cmt_t *pg; local 887 pg_t *pg; local 920 pg_t *pg; local 976 pg_cmt_t *pg; local 1046 pg_cmt_t *pg; local 1128 pg_cmt_cpu_belongs(pg_t *pg, cpu_t *cp) argument 1261 pg_cmt_t *pg; local 1313 pg_cmt_t *pg; local 1355 cmt_ev_thread_swtch(pg_t *pg, cpu_t *cp, hrtime_t now, kthread_t *old, kthread_t *new) argument 1377 cmt_ev_thread_swtch_pwr(pg_t *pg, cpu_t *cp, hrtime_t now, kthread_t *old, kthread_t *new) argument 1418 cmt_ev_thread_remain_pwr(pg_t *pg, cpu_t *cp, kthread_t *t) argument 1432 pg_cmt_policy_name(pg_t *pg) argument 1471 pg_cmt_t *pg, *child; local 1744 pg_cmt_t *pg, *pg_next, *pg_bad, *pg_tmp, *parent; local [all...] |
/illumos-gate/usr/src/uts/common/vm/ |
H A D | seg_kmem.c | 445 spgcnt_t pg; local 469 for (pg = 0; pg < npages; pg++) { 479 while (--pg >= 0) { 683 spgcnt_t pg; local 703 for (pg = 0; pg < npages; pg++) { 704 pp = pplist[pg]; [all...] |
/illumos-gate/usr/src/uts/i86pc/io/amd_iommu/ |
H A D | amd_iommu_page_tables.c | 1450 uint64_t pg; local 1548 pg = pg_start; 1549 for (pfn = pfn_start; pfn <= pfn_end; pfn++, pg++) { 1555 (void *)(uintptr_t)(pg << MMU_PAGESHIFT), path); 1560 ASSERT(pfn == pg); 1564 pg << MMU_PAGESHIFT, 1575 (void *)(uintptr_t)pg, path); 1579 ASSERT(pg == pg_end + 1); 1601 uint64_t pg; local 1670 for (pg [all...] |
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/ |
H A D | btree.h | 145 #define GETBINTERNAL(pg, indx) \ 146 ((BINTERNAL *)((char *)(pg) + (pg)->linp[indx])) 172 #define GETRINTERNAL(pg, indx) \ 173 ((RINTERNAL *)((char *)(pg) + (pg)->linp[indx])) 195 #define GETBLEAF(pg, indx) \ 196 ((BLEAF *)((char *)(pg) + (pg)->linp[indx])) 227 #define GETRLEAF(pg, ind 291 EPGNO pg; /* B: Saved tree reference. */ member in struct:_cursor [all...] |
/illumos-gate/usr/src/cmd/lp/filter/postscript/dpost/ |
H A D | dpost.c | 1765 t_page(int pg) argument 1775 * about what's done. The first time through (up to the redirect(pg) call) output 1797 redirect(pg); 1799 fprintf(tf, "%s %d %d\n", PAGE, pg, printed+1); 1806 lastpg = pg; /* for the next ENDPAGE comment */ 2807 redirect(int pg) argument 2815 * If we're not supposed to print page pg, tf will be directed to /dev/null, 2821 if ( pg >= 0 && in_olist(pg) == ON )
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_cfg.c | 372 char *pg; local 402 pg = (cfg->sc_flags & SMB_CF_EXEC) ? SMBD_EXEC_PG_NAME : 404 rc = smb_smf_create_service_pgroup(handle, pg); 581 char *pg; local 594 pg = SMBD_PROTECTED_PG_NAME; 597 pg = SMBD_EXEC_PG_NAME; 600 pg = SMBD_PG_NAME; 608 rc = smb_smf_create_service_pgroup(handle, pg);
|
/illumos-gate/usr/src/cmd/halt/ |
H A D | halt.c | 275 scf_propertygroup_t *pg = NULL; local 305 (pg = scf_pg_create(h)) == NULL || 332 SCF_PG_GENERAL, pg) != 0) 335 if (scf_pg_get_property(pg, SCF_PROPERTY_RESTARTER, 368 scf_pg_destroy(pg);
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | drive.c | 1417 struct mode_page *pg; local 1485 pg = (struct mode_page *)((ulong_t)mode_sense_buf + 1487 if (pg->code != page_code) { 1499 if (((int)pg->length) > maximum) { 1504 (void) memcpy(page_data, (caddr_t)pg, MODESENSE_PAGE_LEN(pg));
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdlwlan.c | 1595 scf_propertygroup_t *pg; local 1597 pg = scf_pg_create(handle); 1598 if (pg == NULL) 1601 if (scf_instance_add_pg(instance, pg_name, pg_type, 0, pg) != 0) { 1602 scf_pg_destroy(pg); 1606 return (pg); 1652 scf_propertygroup_t *pg; local 1654 pg = add_property_group_to_instance(handle, instance, 1656 if (pg == NULL) 1672 if (scf_transaction_start(tran, pg) ! [all...] |
/illumos-gate/usr/src/lib/libstmf/common/ |
H A D | store.c | 293 scf_propertygroup_t *pg = NULL; local 321 if (((pg = scf_pg_create(handle)) == NULL) || 335 if (scf_service_get_pg(svc, pgName, pg) == -1) { 341 syslog(LOG_ERR, "get pg %s failed - %s", 350 if (scf_transaction_start(tran, pg) == -1) { 380 if (scf_pg_get_property(pg, groupName, prop) == -1) { 579 if (pg != NULL) { 580 scf_pg_destroy(pg); 637 scf_propertygroup_t *pg = NULL; local 662 if (((pg 926 scf_propertygroup_t *pg = NULL; local 1290 scf_propertygroup_t *pg = NULL; local 1385 scf_propertygroup_t *pg = NULL; local 1692 scf_propertygroup_t *pg = NULL; local 1865 scf_propertygroup_t *pg = NULL; local 2072 scf_propertygroup_t *pg = NULL; local 2289 scf_propertygroup_t *pg = NULL; local 2644 scf_propertygroup_t *pg = NULL; local 2842 scf_propertygroup_t *pg = NULL; local 3048 scf_propertygroup_t *pg = NULL; local 3247 scf_propertygroup_t *pg = NULL; local 3495 scf_propertygroup_t *pg = NULL; local 3688 scf_propertygroup_t *pg = NULL; local 4002 scf_propertygroup_t *pg = NULL; local 4238 scf_propertygroup_t *pg = NULL; local 4425 scf_propertygroup_t *pg = NULL; local 5043 scf_propertygroup_t *pg = NULL; local 5131 scf_propertygroup_t *pg = NULL; local [all...] |
/illumos-gate/usr/src/lib/libinetsvc/common/ |
H A D | inetsvc.c | 1427 scf_propertygroup_t *pg = NULL; local 1438 if ((pg = scf_pg_create(h)) == NULL || 1444 if (scf_instance_get_pg(inst, HASH_PG, pg) == -1) { 1447 0, pg) == -1) 1458 if (scf_transaction_start(tx, pg) == -1) 1476 if (scf_pg_update(pg) == -1) 1492 scf_pg_destroy(pg);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/ |
H A D | ilbd_scf.c | 196 logerr("ilbd_name_to_scfpgname: invalid pg type %d for pg %s", 206 scf_propertygroup_t *pg) 208 if (pg != NULL) 209 scf_pg_destroy(pg); 256 * The created or found entry is returned as *pg. 257 * Caller frees *pg and its handle scf_pg_handle(pg) 260 ilbd_scf_retrieve_pg(const char *pgname, scf_propertygroup_t **pg, argument 272 *pg 205 ilbd_scf_destroy(scf_handle_t *h, scf_service_t *s, scf_instance_t *inst, scf_propertygroup_t *pg) argument 741 scf_propertygroup_t *pg = NULL; local 829 ilbd_scf_delete_pg(scf_propertygroup_t *pg) argument 841 scf_propertygroup_t *pg; local 854 ilbd_scf_destroy(scf_pg_handle(pg), NULL, NULL, pg); local 863 ilbd_scf_set_prop(scf_propertygroup_t *pg, const char *propname, scf_type_t proptype, scf_value_t *val) argument 954 ilbd_scf_get_prop_val(scf_propertygroup_t *pg, const char *propname, scf_value_t **val) argument 1256 ilbd_scf_load_prop(scf_propertygroup_t *pg, const char *prop_name, void *arg) argument 1291 ilbd_scf_pg_walk_props(scf_propertygroup_t *pg, ilb_status_t (*cb)(scf_propertygroup_t *, const char *, void *), void *arg) argument 1627 scf_propertygroup_t *pg; local 1683 scf_propertygroup_t *pg; local [all...] |