/illumos-gate/usr/src/lib/libdevice/ |
H A D | devctl.c | 981 devctl_bus_dev_create(devctl_hdl_t dcp, devctl_ddef_t ddef_hdl, in devctl_bus_dev_create() argument 988 if (dcp == NULL || ddef_hdl == NULL) { in devctl_bus_dev_create() 995 (nvlist_t *)ddef_hdl, devname); in devctl_bus_dev_create() 1176 devctl_ddef_free(devctl_ddef_t ddef_hdl) in devctl_ddef_free() argument 1179 (void) printf("devctl_ddef_free: nvp %p\n", (void *)ddef_hdl); in devctl_ddef_free() 1181 if (ddef_hdl != NULL) { in devctl_ddef_free() 1182 nvlist_free((nvlist_t *)ddef_hdl); in devctl_ddef_free() 1190 devctl_ddef_int(devctl_ddef_t ddef_hdl, char *name, int32_t value) in devctl_ddef_int() argument 1195 if (ddef_hdl == NULL || name == NULL || *name == '\0') { in devctl_ddef_int() 1200 rv = nvlist_add_int32((nvlist_t *)ddef_hdl, name, value); in devctl_ddef_int() [all …]
|
H A D | libdevice.h | 169 devctl_ddef_string(devctl_ddef_t ddef_hdl, char *, char *);
|
/illumos-gate/usr/src/cmd/devctl/ |
H A D | devctl.c | 396 add_prop(devctl_ddef_t ddef_hdl, char *prop_str) in add_prop() argument 412 (void) devctl_ddef_string(ddef_hdl, pname, tmp); in add_prop() 437 (void) devctl_ddef_string_array(ddef_hdl, pname, nstr, strs); in add_prop() 446 devctl_ddef_t ddef_hdl = NULL; in bus_devcreate() local 449 ddef_hdl = devctl_ddef_alloc(dev_name, 0); in bus_devcreate() 456 add_prop(ddef_hdl, *propp); in bus_devcreate() 460 if (devctl_bus_dev_create(bus_dcp, ddef_hdl, 0, &dev_hdl)) { in bus_devcreate() 474 devctl_ddef_free(ddef_hdl); in bus_devcreate()
|
/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | zcons.c | 336 devctl_ddef_t ddef_hdl = NULL; in init_console_dev() local 369 if ((ddef_hdl = devctl_ddef_alloc("zcons", 0)) == NULL) { in init_console_dev() 381 if (devctl_ddef_string(ddef_hdl, "zonename", zone_name) == -1) { in init_console_dev() 385 if (devctl_ddef_int(ddef_hdl, "auto-assign-instance", 1) == -1) { in init_console_dev() 390 if (devctl_ddef_int(ddef_hdl, "ddi-no-autodetach", 1) == -1) { in init_console_dev() 395 if (devctl_bus_dev_create(bus_hdl, ddef_hdl, 0, &dev_hdl) == -1) { in init_console_dev() 454 if (ddef_hdl) in init_console_dev() 455 devctl_ddef_free(ddef_hdl); in init_console_dev()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/littleneck/psvcpolicy/ |
H A D | psvcpolicy.c | 546 devctl_ddef_t ddef_hdl; in psvc_ps_hotplug_policy_0() local 674 ddef_hdl = devctl_ddef_alloc("power-supply", 0); in psvc_ps_hotplug_policy_0() 675 (void) devctl_ddef_string(ddef_hdl, "compatible", "i2c-at24c64"); in psvc_ps_hotplug_policy_0() 677 (void) devctl_ddef_int_array(ddef_hdl, "reg", 2, ps0_addr); in psvc_ps_hotplug_policy_0() 679 (void) devctl_ddef_int_array(ddef_hdl, "reg", 2, ps1_addr); in psvc_ps_hotplug_policy_0() 684 if (devctl_bus_dev_create(bus_handle, ddef_hdl, 0, &dev_handle)) { in psvc_ps_hotplug_policy_0() 691 devctl_ddef_free(ddef_hdl); in psvc_ps_hotplug_policy_0()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_cs.c | 69 devctl_ddef_t ddef_hdl; in do_devctl_dev_create() local 75 if ((ddef_hdl = devctl_ddef_alloc(drvr_name, 0)) == NULL) { in do_devctl_dev_create() 81 devctl_ddef_free(ddef_hdl); in do_devctl_dev_create() 86 if (devctl_ddef_byte_array(ddef_hdl, PORT_WWN_PROP, FC_WWN_SIZE, in do_devctl_dev_create() 88 devctl_ddef_free(ddef_hdl); in do_devctl_dev_create() 95 devctl_ddef_free(ddef_hdl); in do_devctl_dev_create() 102 if (devctl_bus_dev_create(bus_hdl, ddef_hdl, 0, &dev_hdl)) { in do_devctl_dev_create() 103 devctl_ddef_free(ddef_hdl); in do_devctl_dev_create() 122 devctl_ddef_free(ddef_hdl); in do_devctl_dev_create()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcpolicy/ |
H A D | psvcpolicy.c | 228 devctl_ddef_t ddef_hdl = NULL; in create_i2c_node() local 241 ddef_hdl = devctl_ddef_alloc(nd_name, 0); in create_i2c_node() 242 (void) devctl_ddef_string(ddef_hdl, "compatible", nd_compat); in create_i2c_node() 243 (void) devctl_ddef_int_array(ddef_hdl, "reg", 2, nd_reg); in create_i2c_node() 246 if (devctl_bus_dev_create(bus_hdl, ddef_hdl, 0, &dev_hdl)) in create_i2c_node() 259 if (ddef_hdl) devctl_ddef_free(ddef_hdl); in create_i2c_node()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/daktari/psvcpolicy/ |
H A D | psvcpolicy.c | 1533 devctl_ddef_t ddef_hdl; in psvc_ps_hotplug_policy_0() local 1763 ddef_hdl = devctl_ddef_alloc(devices[ps_instance][i].name, 0); in psvc_ps_hotplug_policy_0() 1764 if (ddef_hdl == NULL) { in psvc_ps_hotplug_policy_0() 1769 status = devctl_ddef_string(ddef_hdl, "compatible", in psvc_ps_hotplug_policy_0() 1776 status = devctl_ddef_int_array(ddef_hdl, "reg", 2, in psvc_ps_hotplug_policy_0() 1783 if (devctl_bus_dev_create(bus_handle, ddef_hdl, 0, in psvc_ps_hotplug_policy_0() 1790 devctl_ddef_free(ddef_hdl); in psvc_ps_hotplug_policy_0()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/ |
H A D | piclfrudr.c | 2849 devctl_ddef_t ddef_hdl; in create_i2c_node() local 2879 ddef_hdl = devctl_ddef_alloc(PS_DEVICE_NAME, 0); in create_i2c_node() 2880 (void) devctl_ddef_string(ddef_hdl, "compatible", compatible); in create_i2c_node() 2881 (void) devctl_ddef_string(ddef_hdl, "device_type", "seeprom"); in create_i2c_node() 2882 (void) devctl_ddef_int_array(ddef_hdl, "reg", 2, nd_reg); in create_i2c_node() 2885 if (devctl_bus_dev_create(bus_hdl, ddef_hdl, 0, &dev_hdl)) in create_i2c_node() 2892 devctl_ddef_free(ddef_hdl); in create_i2c_node()
|