/titanic_41/usr/src/lib/libdevice/ |
H A D | devctl.c | 983 devctl_bus_dev_create(devctl_hdl_t dcp, devctl_ddef_t ddef_hdl, in devctl_bus_dev_create() argument 990 if (dcp == NULL || ddef_hdl == NULL) { in devctl_bus_dev_create() 997 (nvlist_t *)ddef_hdl, devname); in devctl_bus_dev_create() 1178 devctl_ddef_free(devctl_ddef_t ddef_hdl) in devctl_ddef_free() argument 1181 (void) printf("devctl_ddef_free: nvp %p\n", (void *)ddef_hdl); in devctl_ddef_free() 1183 if (ddef_hdl != NULL) { in devctl_ddef_free() 1184 nvlist_free((nvlist_t *)ddef_hdl); in devctl_ddef_free() 1192 devctl_ddef_int(devctl_ddef_t ddef_hdl, char *name, int32_t value) in devctl_ddef_int() argument 1197 if (ddef_hdl == NULL || name == NULL || *name == '\0') { in devctl_ddef_int() 1202 rv = nvlist_add_int32((nvlist_t *)ddef_hdl, name, value); in devctl_ddef_int() [all …]
|
H A D | libdevice.h | 171 devctl_ddef_string(devctl_ddef_t ddef_hdl, char *, char *);
|
/titanic_41/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()
|
/titanic_41/usr/src/cmd/zoneadmd/ |
H A D | zcons.c | 335 devctl_ddef_t ddef_hdl = NULL; in init_console_dev() local 368 if ((ddef_hdl = devctl_ddef_alloc("zcons", 0)) == NULL) { in init_console_dev() 380 if (devctl_ddef_string(ddef_hdl, "zonename", zone_name) == -1) { in init_console_dev() 384 if (devctl_ddef_int(ddef_hdl, "auto-assign-instance", 1) == -1) { in init_console_dev() 389 if (devctl_ddef_int(ddef_hdl, "ddi-no-autodetach", 1) == -1) { in init_console_dev() 394 if (devctl_bus_dev_create(bus_hdl, ddef_hdl, 0, &dev_hdl) == -1) { in init_console_dev() 450 if (ddef_hdl) in init_console_dev() 451 devctl_ddef_free(ddef_hdl); in init_console_dev()
|
/titanic_41/usr/src/cmd/picl/plugins/sun4u/littleneck/psvcpolicy/ |
H A D | psvcpolicy.c | 548 devctl_ddef_t ddef_hdl; in psvc_ps_hotplug_policy_0() local 676 ddef_hdl = devctl_ddef_alloc("power-supply", 0); in psvc_ps_hotplug_policy_0() 677 (void) devctl_ddef_string(ddef_hdl, "compatible", "i2c-at24c64"); in psvc_ps_hotplug_policy_0() 679 (void) devctl_ddef_int_array(ddef_hdl, "reg", 2, ps0_addr); in psvc_ps_hotplug_policy_0() 681 (void) devctl_ddef_int_array(ddef_hdl, "reg", 2, ps1_addr); in psvc_ps_hotplug_policy_0() 686 if (devctl_bus_dev_create(bus_handle, ddef_hdl, 0, &dev_handle)) { in psvc_ps_hotplug_policy_0() 693 devctl_ddef_free(ddef_hdl); in psvc_ps_hotplug_policy_0()
|
/titanic_41/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()
|
/titanic_41/usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcpolicy/ |
H A D | psvcpolicy.c | 230 devctl_ddef_t ddef_hdl = NULL; in create_i2c_node() local 243 ddef_hdl = devctl_ddef_alloc(nd_name, 0); in create_i2c_node() 244 (void) devctl_ddef_string(ddef_hdl, "compatible", nd_compat); in create_i2c_node() 245 (void) devctl_ddef_int_array(ddef_hdl, "reg", 2, nd_reg); in create_i2c_node() 248 if (devctl_bus_dev_create(bus_hdl, ddef_hdl, 0, &dev_hdl)) in create_i2c_node() 261 if (ddef_hdl) devctl_ddef_free(ddef_hdl); in create_i2c_node()
|
/titanic_41/usr/src/cmd/picl/plugins/sun4u/daktari/psvcpolicy/ |
H A D | psvcpolicy.c | 1535 devctl_ddef_t ddef_hdl; in psvc_ps_hotplug_policy_0() local 1765 ddef_hdl = devctl_ddef_alloc(devices[ps_instance][i].name, 0); in psvc_ps_hotplug_policy_0() 1766 if (ddef_hdl == NULL) { in psvc_ps_hotplug_policy_0() 1771 status = devctl_ddef_string(ddef_hdl, "compatible", in psvc_ps_hotplug_policy_0() 1778 status = devctl_ddef_int_array(ddef_hdl, "reg", 2, in psvc_ps_hotplug_policy_0() 1785 if (devctl_bus_dev_create(bus_handle, ddef_hdl, 0, in psvc_ps_hotplug_policy_0() 1792 devctl_ddef_free(ddef_hdl); in psvc_ps_hotplug_policy_0()
|
/titanic_41/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/ |
H A D | piclfrudr.c | 2851 devctl_ddef_t ddef_hdl; in create_i2c_node() local 2881 ddef_hdl = devctl_ddef_alloc(PS_DEVICE_NAME, 0); in create_i2c_node() 2882 (void) devctl_ddef_string(ddef_hdl, "compatible", compatible); in create_i2c_node() 2883 (void) devctl_ddef_string(ddef_hdl, "device_type", "seeprom"); in create_i2c_node() 2884 (void) devctl_ddef_int_array(ddef_hdl, "reg", 2, nd_reg); in create_i2c_node() 2887 if (devctl_bus_dev_create(bus_hdl, ddef_hdl, 0, &dev_hdl)) in create_i2c_node() 2894 devctl_ddef_free(ddef_hdl); in create_i2c_node()
|