Searched refs:ddef_hdl (Results 1 - 9 of 9) sorted by relevance

/illumos-gate/usr/src/lib/libdevice/
H A Ddevctl.c983 devctl_bus_dev_create(devctl_hdl_t dcp, devctl_ddef_t ddef_hdl, argument
990 if (dcp == NULL || ddef_hdl == NULL) {
997 (nvlist_t *)ddef_hdl, devname);
1178 devctl_ddef_free(devctl_ddef_t ddef_hdl) argument
1181 (void) printf("devctl_ddef_free: nvp %p\n", (void *)ddef_hdl);
1183 if (ddef_hdl != NULL) {
1184 nvlist_free((nvlist_t *)ddef_hdl);
1192 devctl_ddef_int(devctl_ddef_t ddef_hdl, char *name, int32_t value) argument
1197 if (ddef_hdl == NULL || name == NULL || *name == '\0') {
1202 rv = nvlist_add_int32((nvlist_t *)ddef_hdl, nam
1215 devctl_ddef_int_array(devctl_ddef_t ddef_hdl, char *name, int nelements, int32_t *value) argument
1243 devctl_ddef_string(devctl_ddef_t ddef_hdl, char *name, char *value) argument
1265 devctl_ddef_string_array(devctl_ddef_t ddef_hdl, char *name, int nelements, char **value) argument
1291 devctl_ddef_byte_array(devctl_ddef_t ddef_hdl, char *name, int nelements, uchar_t *value) argument
[all...]
H A Dlibdevice.h171 devctl_ddef_string(devctl_ddef_t ddef_hdl, char *, char *);
/illumos-gate/usr/src/cmd/devctl/
H A Ddevctl.c396 add_prop(devctl_ddef_t ddef_hdl, char *prop_str) argument
412 (void) devctl_ddef_string(ddef_hdl, pname, tmp);
437 (void) devctl_ddef_string_array(ddef_hdl, pname, nstr, strs);
446 devctl_ddef_t ddef_hdl = NULL; local
449 ddef_hdl = devctl_ddef_alloc(dev_name, 0);
456 add_prop(ddef_hdl, *propp);
460 if (devctl_bus_dev_create(bus_dcp, ddef_hdl, 0, &dev_hdl)) {
474 devctl_ddef_free(ddef_hdl);
/illumos-gate/usr/src/cmd/zoneadmd/
H A Dzcons.c335 devctl_ddef_t ddef_hdl = NULL; local
368 if ((ddef_hdl = devctl_ddef_alloc("zcons", 0)) == NULL) {
380 if (devctl_ddef_string(ddef_hdl, "zonename", zone_name) == -1) {
384 if (devctl_ddef_int(ddef_hdl, "auto-assign-instance", 1) == -1) {
389 if (devctl_ddef_int(ddef_hdl, "ddi-no-autodetach", 1) == -1) {
394 if (devctl_bus_dev_create(bus_hdl, ddef_hdl, 0, &dev_hdl) == -1) {
450 if (ddef_hdl)
451 devctl_ddef_free(ddef_hdl);
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/littleneck/psvcpolicy/
H A Dpsvcpolicy.c548 devctl_ddef_t ddef_hdl; local
676 ddef_hdl = devctl_ddef_alloc("power-supply", 0);
677 (void) devctl_ddef_string(ddef_hdl, "compatible", "i2c-at24c64");
679 (void) devctl_ddef_int_array(ddef_hdl, "reg", 2, ps0_addr);
681 (void) devctl_ddef_int_array(ddef_hdl, "reg", 2, ps1_addr);
686 if (devctl_bus_dev_create(bus_handle, ddef_hdl, 0, &dev_handle)) {
693 devctl_ddef_free(ddef_hdl);
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_cs.c69 devctl_ddef_t ddef_hdl; local
75 if ((ddef_hdl = devctl_ddef_alloc(drvr_name, 0)) == NULL) {
81 devctl_ddef_free(ddef_hdl);
86 if (devctl_ddef_byte_array(ddef_hdl, PORT_WWN_PROP, FC_WWN_SIZE,
88 devctl_ddef_free(ddef_hdl);
95 devctl_ddef_free(ddef_hdl);
102 if (devctl_bus_dev_create(bus_hdl, ddef_hdl, 0, &dev_hdl)) {
103 devctl_ddef_free(ddef_hdl);
122 devctl_ddef_free(ddef_hdl);
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcpolicy/
H A Dpsvcpolicy.c230 devctl_ddef_t ddef_hdl = NULL; local
243 ddef_hdl = devctl_ddef_alloc(nd_name, 0);
244 (void) devctl_ddef_string(ddef_hdl, "compatible", nd_compat);
245 (void) devctl_ddef_int_array(ddef_hdl, "reg", 2, nd_reg);
248 if (devctl_bus_dev_create(bus_hdl, ddef_hdl, 0, &dev_hdl))
261 if (ddef_hdl) devctl_ddef_free(ddef_hdl);
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/daktari/psvcpolicy/
H A Dpsvcpolicy.c1535 devctl_ddef_t ddef_hdl; local
1765 ddef_hdl = devctl_ddef_alloc(devices[ps_instance][i].name, 0);
1766 if (ddef_hdl == NULL) {
1771 status = devctl_ddef_string(ddef_hdl, "compatible",
1778 status = devctl_ddef_int_array(ddef_hdl, "reg", 2,
1785 if (devctl_bus_dev_create(bus_handle, ddef_hdl, 0,
1792 devctl_ddef_free(ddef_hdl);
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/
H A Dpiclfrudr.c2851 devctl_ddef_t ddef_hdl; local
2881 ddef_hdl = devctl_ddef_alloc(PS_DEVICE_NAME, 0);
2882 (void) devctl_ddef_string(ddef_hdl, "compatible", compatible);
2883 (void) devctl_ddef_string(ddef_hdl, "device_type", "seeprom");
2884 (void) devctl_ddef_int_array(ddef_hdl, "reg", 2, nd_reg);
2887 if (devctl_bus_dev_create(bus_hdl, ddef_hdl, 0, &dev_hdl))
2894 devctl_ddef_free(ddef_hdl);

Completed in 98 milliseconds