/illumos-gate/usr/src/cmd/ldmad/ |
H A D | mdesc_lib.c | 39 static void md_free_prop(mmd_t *mdp, md_prop_t *propp); 172 md_prop_t *propp; in md_new_property() local 174 propp = calloc(1, sizeof (md_prop_t)); in md_new_property() 175 if (propp == NULL) in md_new_property() 177 propp->type = type; in md_new_property() 178 propp->sp = md_new_string(mdp, sp); in md_new_property() 179 if (propp->sp == NULL) { in md_new_property() 180 free(propp); in md_new_property() 184 CHAIN_ADD(nodep->prop_list, propp); in md_new_property() 186 return (propp); in md_new_property() [all …]
|
/illumos-gate/usr/src/uts/intel/promif/ |
H A D | prom_emul.c | 208 struct prom_prop *propp; in getproplen() local 210 for (propp = pnp->pn_propp; propp != NULL; propp = propp->pp_next) in getproplen() 211 if (strcmp(propp->pp_name, name) == 0) in getproplen() 212 return (propp->pp_len); in getproplen() 232 struct prom_prop *propp; in getprop() local 234 for (propp = pnp->pn_propp; propp != NULL; propp = propp->pp_next) in getprop() 235 if (strcmp(propp->pp_name, name) == 0) in getprop() 236 return (propp->pp_val); in getprop() 263 struct prom_prop *propp; in nextprop() local 272 for (propp = pnp->pn_propp; propp != NULL; propp = propp->pp_next) in nextprop() [all …]
|
/illumos-gate/usr/src/lib/libpicltree/ |
H A D | picltree.c | 719 picl_obj_t **propp) in lookup_and_lock_propnode() argument 737 *propp = pobj; /* return the prop */ in lookup_and_lock_propnode() 745 *propp = pobj; in lookup_and_lock_propnode() 860 check_propsize(int op, picl_obj_t *propp, size_t sz) in check_propsize() argument 862 if (propp->prop_mode & PICL_VOLATILE) { in check_propsize() 863 if (sz != propp->prop_size) in check_propsize() 872 switch (propp->prop_type) { in check_propsize() 875 (strlen(propp->prop_val) >= sz)) in check_propsize() 877 if ((op == PROP_WRITE) && (sz > propp->prop_size)) in check_propsize() 882 if (sz > propp->prop_size) in check_propsize() [all …]
|
/illumos-gate/usr/src/uts/sun4v/promif/ |
H A D | promif_stree.c | 231 struct prom_prop *propp; in getproplen() local 233 for (propp = pnp->pn_propp; propp != NULL; propp = propp->pp_next) in getproplen() 234 if (prom_strcmp(propp->pp_name, name) == 0) in getproplen() 235 return (propp->pp_len); in getproplen() 243 struct prom_prop *propp; in getprop() local 245 for (propp = np->pn_propp; propp != NULL; propp = propp->pp_next) in getprop() 246 if (prom_strcmp(propp->pp_name, name) == 0) in getprop() 247 return (propp->pp_val); in getprop() 255 struct prom_prop *propp; in nextprop() local 264 for (propp = pnp->pn_propp; propp != NULL; propp = propp->pp_next) in nextprop() [all …]
|
/illumos-gate/usr/src/psm/stand/cpr/sparcv9/sun4u/ |
H A D | util.c | 338 char *str, *name, **propp; in get_cpu_node() local 355 for (propp = props; *propp; propp++) { in get_cpu_node() 356 err = get_intprop(node, *propp, &cpu_id); in get_cpu_node() 359 node, *propp, (int)cpu_id)); in get_cpu_node()
|
/illumos-gate/usr/src/uts/common/io/cardbus/ |
H A D | cardbus.c | 143 static void cardbus_prop_free(ddi_prop_t *propp); 1530 ddi_prop_t *propp; in cardbus_add_prop() local 1533 propp = (ddi_prop_t *)kmem_zalloc(sizeof (ddi_prop_t), KM_SLEEP); in cardbus_add_prop() 1534 propp->prop_name = (char *)kmem_alloc(pnlen, KM_SLEEP); in cardbus_add_prop() 1535 propp->prop_val = vp; in cardbus_add_prop() 1536 bcopy(name, propp->prop_name, pnlen); in cardbus_add_prop() 1537 propp->prop_len = len; in cardbus_add_prop() 1538 propp->prop_flags = type; in cardbus_add_prop() 1539 propp->prop_next = cdsp->prop_list; in cardbus_add_prop() 1540 cdsp->prop_list = propp; in cardbus_add_prop() [all …]
|
H A D | cardbus_cfg.c | 2900 ddi_prop_t *propp; in cardbus_probe_children() local 2918 for (propp = cdsp->prop_list; propp; in cardbus_probe_children() 2919 propp = propp->prop_next) { in cardbus_probe_children() 2920 switch (propp->prop_flags) { in cardbus_probe_children() 2924 propp->prop_name, in cardbus_probe_children() 2925 (int *)propp->prop_val, in cardbus_probe_children() 2926 propp->prop_len); in cardbus_probe_children() 2931 propp->prop_name, in cardbus_probe_children() 2932 (char *)propp->prop_val); in cardbus_probe_children() 2937 propp->prop_name); in cardbus_probe_children()
|
/illumos-gate/usr/src/lib/fm/libdiagcode/common/ |
H A D | diagcode.c | 257 struct fm_dc_prop *propp; in fm_dc_opendict() local 268 propp = malloc(sizeof (*propp)); in fm_dc_opendict() 269 if (propp == NULL || in fm_dc_opendict() 270 (propp->lhs = strdup(lhsp)) == NULL || in fm_dc_opendict() 271 (propp->rhs = strdup(rhsp)) == NULL) { in fm_dc_opendict() 274 if (propp != NULL) { in fm_dc_opendict() 275 if (propp->lhs != NULL) in fm_dc_opendict() 276 free((void *) propp->lhs); in fm_dc_opendict() 277 free((void *) propp); in fm_dc_opendict() 283 propp->next = dhp->props; in fm_dc_opendict() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | sunddi.c | 1026 ddi_prop_t *propp; in i_ddi_prop_search() local 1039 for (propp = *list_head; propp != NULL; propp = propp->prop_next) { in i_ddi_prop_search() 1041 if (!DDI_STRSAME(propp->prop_name, name)) in i_ddi_prop_search() 1044 if ((dev != DDI_DEV_T_ANY) && (propp->prop_dev != dev)) in i_ddi_prop_search() 1047 if (((propp->prop_flags & flags) & DDI_PROP_TYPE_MASK) == 0) in i_ddi_prop_search() 1050 return (propp); in i_ddi_prop_search() 1064 ddi_prop_t *propp; in i_ddi_search_global_prop() local 1084 for (propp = dnp->dn_global_prop_ptr->prop_list; in i_ddi_search_global_prop() 1085 propp != NULL; in i_ddi_search_global_prop() 1086 propp = (ddi_prop_t *)propp->prop_next) { in i_ddi_search_global_prop() [all …]
|
H A D | cpu_event.c | 897 cpu_idle_prop_impl_t *prop, **propp; in cpu_idle_prop_destroy_property() local 909 for (propp = &cpu_idle_prop_busy; *propp != NULL; in cpu_idle_prop_destroy_property() 910 propp = &(*propp)->next) { in cpu_idle_prop_destroy_property() 911 if (*propp == prop) { in cpu_idle_prop_destroy_property() 914 *propp = prop->next; in cpu_idle_prop_destroy_property()
|
H A D | swapgeneric.c | 715 ddi_prop_t *propp; in load_boot_driver() local 759 ((propp = i_ddi_prop_search(DDI_DEV_T_ANY, in load_boot_driver() 763 module = (char *)propp->prop_val; in load_boot_driver() 764 plen = propp->prop_len; in load_boot_driver()
|
H A D | driver_lyr.c | 628 ddi_prop_t *propp; in ldi_devid_match() local 642 propp = i_ddi_prop_search(DDI_DEV_T_NONE, in ldi_devid_match() 644 if (propp != NULL) { in ldi_devid_match() 645 if (ddi_devid_str_compare(propp->prop_val, devidstr) == 0) { in ldi_devid_match() 659 propp = i_ddi_prop_search(dev, in ldi_devid_match() 661 if (propp != NULL) { in ldi_devid_match() 662 if (ddi_devid_str_compare(propp->prop_val, devidstr) == 0) { in ldi_devid_match()
|
H A D | sunmdi.c | 9067 ddi_prop_t *propp; in get_phci_driver_list() local 9081 (propp = i_ddi_prop_search(DDI_DEV_T_ANY, in get_phci_driver_list() 9084 strcmp(propp->prop_val, vhci_class) == 0) { in get_phci_driver_list()
|
/illumos-gate/usr/src/cmd/devctl/ |
H A D | devctl.c | 445 char **propp = dev_props; in bus_devcreate() local 455 while (*propp) { in bus_devcreate() 456 add_prop(ddef_hdl, *propp); in bus_devcreate() 457 propp++; in bus_devcreate()
|
/illumos-gate/usr/src/uts/common/io/ib/ibnex/ |
H A D | ibnex.c | 3430 ddi_prop_t *propp; in ibnex_lookup_named_prop() local 3433 for (propp = head; propp != NULL; propp = propp->prop_next) { in ibnex_lookup_named_prop() 3434 if (strcmp(propp->prop_name, name) != 0) in ibnex_lookup_named_prop() 3437 if (propp->prop_len <= 1) in ibnex_lookup_named_prop() 3439 return ((char *)propp->prop_val); in ibnex_lookup_named_prop()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/snmp/ |
H A D | snmpplugin.c | 265 int (*wrfunc)(ptree_warg_t *, const void *), picl_prophdl_t *propp); 1526 int (*wrfunc)(ptree_warg_t *, const void *), picl_prophdl_t *propp) in add_volatile_prop() argument 1545 if (propp) in add_volatile_prop() 1546 *propp = prop; in add_volatile_prop()
|
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/ |
H A D | ata_common.c | 3133 int *propp; in ata_check_pciide_blacklist() local 3147 "pci-ide-blacklist", &propp, &count); in ata_check_pciide_blacklist() 3151 blp = (pcibl_t *)propp; in ata_check_pciide_blacklist() 3167 ddi_prop_free(propp); in ata_check_pciide_blacklist() 3170 ddi_prop_free(propp); in ata_check_pciide_blacklist() 3174 ddi_prop_free(propp); in ata_check_pciide_blacklist()
|
/illumos-gate/usr/src/cmd/svc/svccfg/ |
H A D | svccfg_xml.c | 1793 property_t **propp) in lxml_get_cardinality_attribute() argument 1801 *propp = NULL; in lxml_get_cardinality_attribute() 1840 *propp = p; in lxml_get_cardinality_attribute()
|