/titanic_44/usr/src/uts/common/io/ |
H A D | gen_drv.c | 225 gen_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in gen_attach() argument 227 int instance = ddi_get_instance(devi); in gen_attach() 259 ddi_get_name(devi), instance); in gen_attach() 265 dstatep->dip = devi; in gen_attach() 268 n_devs = ddi_prop_get_int(DDI_DEV_T_ANY, devi, 0, in gen_attach() 271 isclone = ddi_prop_get_int(DDI_DEV_T_ANY, devi, 0, in gen_attach() 274 n_minorcomps = ddi_prop_get_int(DDI_DEV_T_ANY, devi, 0, in gen_attach() 279 ddi_get_name(devi), ddi_get_instance(devi), in gen_attach() 283 if (ddi_create_minor_node(devi, "gen", S_IFCHR, in gen_attach() 286 ddi_remove_minor_node(devi, NULL); in gen_attach() [all …]
|
H A D | tclient.c | 150 tcli_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in tcli_attach() argument 152 int instance = ddi_get_instance(devi); in tcli_attach() 161 ddi_get_name(devi), instance); in tcli_attach() 166 dstatep->dip = devi; in tcli_attach() 168 rval = ddi_create_minor_node(devi, "client", S_IFCHR, in tcli_attach() 171 ddi_remove_minor_node(devi, NULL); in tcli_attach() 174 ddi_get_name(devi), instance); in tcli_attach() 178 ddi_report_dev(devi); in tcli_attach() 184 tcli_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) in tcli_detach() argument 191 ddi_remove_minor_node(devi, NULL); in tcli_detach() [all …]
|
H A D | options.c | 40 static int options_attach(dev_info_t *devi, ddi_attach_cmd_t cmd); 41 static int options_detach(dev_info_t *devi, ddi_detach_cmd_t cmd); 127 options_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in options_attach() argument 131 options_devi = devi; in options_attach() 144 options_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) in options_detach() argument
|
H A D | cons.c | 204 cn_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in cn_attach() argument 209 if (ddi_create_minor_node(devi, "syscon", S_IFCHR, in cn_attach() 213 if (ddi_create_minor_node(devi, "systty", S_IFCHR, in cn_attach() 215 ddi_remove_minor_node(devi, NULL); in cn_attach() 218 if (ddi_create_minor_node(devi, "console", S_IFCHR, in cn_attach() 220 ddi_remove_minor_node(devi, NULL); in cn_attach() 224 cn_dip = devi; in cn_attach() 229 cn_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) in cn_detach() argument 233 ddi_remove_minor_node(devi, NULL); in cn_detach()
|
/titanic_44/usr/src/uts/common/os/ |
H A D | driver.c | 75 devi_identify(dev_info_t *devi) in devi_identify() argument 80 if ((ops = ddi_get_driver(devi)) == NULL || in devi_identify() 84 return ((*fn)(devi)); in devi_identify() 88 devi_probe(dev_info_t *devi) in devi_probe() argument 95 ops = ddi_get_driver(devi); in devi_probe() 98 pm_pre_probe(devi, &ppm_cookie); in devi_probe() 106 if (ddi_dev_is_sid(devi) == DDI_SUCCESS) in devi_probe() 111 rv = (*fn)(devi); in devi_probe() 134 devi_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in devi_attach() argument 141 if ((error = mdi_pre_attach(devi, cmd)) != DDI_SUCCESS) { in devi_attach() [all …]
|
H A D | devcfg.c | 258 struct dev_info *devi; in i_ddi_alloc_node() local 264 if ((devi = kmem_cache_alloc(ddi_node_cache, flag)) == NULL) { in i_ddi_alloc_node() 269 bzero(devi, sizeof (struct dev_info)); in i_ddi_alloc_node() 272 devi->devi_audit = kmem_zalloc(sizeof (devinfo_audit_t), flag); in i_ddi_alloc_node() 273 if (devi->devi_audit == NULL) in i_ddi_alloc_node() 277 if ((devi->devi_node_name = i_ddi_strdup(node_name, flag)) == NULL) in i_ddi_alloc_node() 281 devi->devi_binding_name = devi->devi_node_name; in i_ddi_alloc_node() 282 devi->devi_major = DDI_MAJOR_T_NONE; /* unbound by default */ in i_ddi_alloc_node() 288 (devi->devi_sys_prop_ptr = i_ddi_prop_list_dup(sys_prop, flag)) in i_ddi_alloc_node() 312 devi->devi_node_attributes = 0; in i_ddi_alloc_node() [all …]
|
H A D | dacf_clnt.c | 215 dacfc_postattach(dev_info_t *devi) in dacfc_postattach() argument 225 opsp = &DEVI(devi)->devi_dacf_tasks; in dacfc_postattach() 249 if ((pathp = ddi_pathname(devi, path)) == NULL) in dacfc_postattach() 268 dacfc_predetach(dev_info_t *devi) in dacfc_predetach() argument 278 opsp = &DEVI(devi)->devi_dacf_tasks; in dacfc_predetach() 303 if ((pathp = ddi_pathname(devi, path)) == NULL) in dacfc_predetach() 310 pa_err = dacfc_postattach(devi); in dacfc_predetach() 314 if ((pathp = ddi_pathname(devi, path)) == NULL) in dacfc_predetach()
|
/titanic_44/usr/src/uts/i86xpv/io/ |
H A D | balloon_drv.c | 51 balloon_getinfo(dev_info_t *devi, ddi_info_cmd_t cmd, void *arg, void **result) in balloon_getinfo() argument 71 balloon_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in balloon_attach() argument 76 if (ddi_create_minor_node(devi, ddi_get_name(devi), S_IFCHR, in balloon_attach() 77 ddi_get_instance(devi), DDI_PSEUDO, 0) != DDI_SUCCESS) in balloon_attach() 80 balloon_devi = devi; in balloon_attach() 81 ddi_report_dev(devi); in balloon_attach() 86 balloon_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) in balloon_detach() argument 90 ddi_remove_minor_node(devi, NULL); in balloon_detach()
|
H A D | domcaps.c | 51 domcaps_getinfo(dev_info_t *devi, ddi_info_cmd_t cmd, void *arg, void **result) in domcaps_getinfo() argument 71 domcaps_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in domcaps_attach() argument 76 if (ddi_create_minor_node(devi, ddi_get_name(devi), S_IFCHR, in domcaps_attach() 77 ddi_get_instance(devi), DDI_PSEUDO, 0) != DDI_SUCCESS) in domcaps_attach() 80 domcaps_devi = devi; in domcaps_attach() 81 ddi_report_dev(devi); in domcaps_attach() 86 domcaps_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) in domcaps_detach() argument 90 ddi_remove_minor_node(devi, NULL); in domcaps_detach()
|
/titanic_44/usr/src/uts/i86pc/io/pciex/ |
H A D | npe.c | 150 static int npe_attach(dev_info_t *devi, ddi_attach_cmd_t cmd); 151 static int npe_detach(dev_info_t *devi, ddi_detach_cmd_t cmd); 276 npe_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in npe_attach() argument 278 int instance = ddi_get_instance(devi); in npe_attach() 285 (void) npe_restore_htconfig_children(devi); in npe_attach() 300 npe_enable_htmsi_children(devi); in npe_attach() 302 if (ddi_prop_update_string(DDI_DEV_T_NONE, devi, "device_type", in npe_attach() 313 pcip->pci_dip = devi; in npe_attach() 316 if (pcie_init(devi, NULL) != DDI_SUCCESS) in npe_attach() 320 if (pcitool_init(devi, B_TRUE) != DDI_SUCCESS) in npe_attach() [all …]
|
/titanic_44/usr/src/uts/common/fs/devfs/ |
H A D | devfs_subr.c | 220 dv_mkino(dev_info_t *devi, vtype_t typ, dev_t dev) in dv_mkino() argument 228 major = ((L_MAXMAJ32 + 1) >> 1) + DEVI(devi)->devi_major; in dv_mkino() 229 minor = ddi_get_instance(devi); in dv_mkino() 234 major = DEVI(devi)->devi_major; in dv_mkino() 331 dv_mkdir(struct dv_node *ddv, dev_info_t *devi, char *nm) in dv_mkdir() argument 337 ASSERT((devi)); in dv_mkdir() 355 dv->dv_devi = devi; in dv_mkdir() 356 ndi_hold_devi(devi); in dv_mkdir() 358 dv->dv_ino = dv_mkino(devi, VDIR, NODEV); in dv_mkdir() 382 dv_mknod(struct dv_node *ddv, dev_info_t *devi, char *nm, in dv_mknod() argument [all …]
|
/titanic_44/usr/src/uts/sun4u/sunfire/io/ |
H A D | central.c | 59 central_attach(dev_info_t *devi, ddi_attach_cmd_t cmd); 62 central_detach(dev_info_t *devi, ddi_detach_cmd_t cmd); 156 central_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in central_attach() argument 170 (void) ddi_prop_update_string(DDI_DEV_T_NONE, devi, in central_attach() 173 ddi_report_dev(devi); in central_attach() 179 central_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) in central_detach() argument
|
H A D | simmstat.c | 160 simmstat_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in simmstat_attach() argument 176 instance = ddi_get_instance(devi); in simmstat_attach() 184 softsp->dip = devi; in simmstat_attach() 196 " softsp=0x%p\n", instance, (void *)devi, (void *)softsp)); in simmstat_attach() 207 (void) ddi_prop_update_string(DDI_DEV_T_NONE, devi, in simmstat_attach() 213 ddi_report_dev(devi); in simmstat_attach() 224 simmstat_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) in simmstat_detach() argument 230 instance = ddi_get_instance(devi); in simmstat_detach() 262 ddi_prop_remove_all(devi); in simmstat_detach()
|
H A D | environ.c | 56 static int environ_attach(dev_info_t *devi, ddi_attach_cmd_t cmd); 58 static int environ_detach(dev_info_t *devi, ddi_detach_cmd_t cmd); 178 environ_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in environ_attach() argument 194 instance = ddi_get_instance(devi); in environ_attach() 202 softsp->dip = devi; in environ_attach() 221 (void *)devi, (void *)softsp)); in environ_attach() 231 (void) ddi_prop_update_string(DDI_DEV_T_NONE, devi, in environ_attach() 234 ddi_report_dev(devi); in environ_attach() 263 environ_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) in environ_detach() argument 271 instance = ddi_get_instance(devi); in environ_detach() [all …]
|
H A D | sram.c | 154 sram_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in sram_attach() argument 170 instance = ddi_get_instance(devi); in sram_attach() 178 softsp->dip = devi; in sram_attach() 190 " softsp=0x%p\n", instance, (void *)devi, (void *)softsp)); in sram_attach() 201 (void) ddi_prop_update_string(DDI_DEV_T_NONE, devi, in sram_attach() 207 ddi_report_dev(devi); in sram_attach() 218 sram_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) in sram_detach() argument 224 instance = ddi_get_instance(devi); in sram_detach() 261 ddi_prop_remove_all(devi); in sram_detach()
|
/titanic_44/usr/src/uts/sun/io/ |
H A D | sbusmem.c | 151 sbmem_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in sbmem_attach() argument 161 instance = ddi_get_instance(devi); in sbmem_attach() 163 size = ddi_getprop(DDI_DEV_T_NONE, devi, in sbmem_attach() 175 struct regspec *rp = ddi_rnumber_to_regspec(devi, 0); in sbmem_attach() 188 if (ddi_getlongprop(DDI_DEV_T_ANY, devi, in sbmem_attach() 208 if (ddi_create_minor_node(devi, ident, S_IFCHR, instance, in sbmem_attach() 211 ddi_remove_minor_node(devi, NULL); in sbmem_attach() 216 un->dip = devi; in sbmem_attach() 218 un->pagesize = ddi_ptob(devi, 1); in sbmem_attach() 222 instance, devi, size); in sbmem_attach() [all …]
|
/titanic_44/usr/src/lib/libdtrace_jni/java/docs/examples/ |
H A D | intrstat.d | 37 this->devi = (struct dev_info *)arg0; 38 @counts[stringof(`devnamesp[this->devi->devi_major].dn_name), 39 this->devi->devi_instance, cpu] = count(); 40 @times[stringof(`devnamesp[this->devi->devi_major].dn_name), 41 this->devi->devi_instance, cpu] = sum(vtimestamp - self->ts);
|
/titanic_44/usr/src/uts/intel/io/pci/ |
H A D | pci_pci.c | 160 static int ppb_attach(dev_info_t *devi, ddi_attach_cmd_t cmd); 161 static int ppb_detach(dev_info_t *devi, ddi_detach_cmd_t cmd); 271 ppb_probe(dev_info_t *devi) in ppb_probe() argument 278 ppb_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in ppb_attach() argument 294 (void) ddi_prop_update_string(DDI_DEV_T_NONE, devi, in ppb_attach() 300 instance = ddi_get_instance(devi); in ppb_attach() 304 ppb->dip = devi; in ppb_attach() 309 if (strcmp(ddi_driver_name(ddi_get_parent(devi)), "npe") == 0) in ppb_attach() 317 ddi_fm_init(devi, &ppb->ppb_fmcap, &ppb->ppb_fm_ibc); in ppb_attach() 326 pci_ereport_setup(devi); in ppb_attach() [all …]
|
/titanic_44/usr/src/uts/i86pc/io/acpi/acpinex/ |
H A D | acpinex_drv.c | 243 acpinex_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in acpinex_attach() argument 260 instance = ddi_get_instance(devi); in acpinex_attach() 278 softsp->ans_dip = devi; in acpinex_attach() 279 (void) ddi_pathname(devi, softsp->ans_path); in acpinex_attach() 280 if (ACPI_FAILURE(acpica_get_handle(devi, &softsp->ans_hdl))) { in acpinex_attach() 296 (void) ddi_prop_update_string(DDI_DEV_T_NONE, devi, in acpinex_attach() 298 (void) ddi_prop_update_int(DDI_DEV_T_NONE, devi, in acpinex_attach() 302 ddi_report_dev(devi); in acpinex_attach() 308 acpinex_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) in acpinex_detach() argument 313 instance = ddi_get_instance(devi); in acpinex_detach() [all …]
|
/titanic_44/usr/src/uts/i86pc/io/pci/ |
H A D | pci.c | 133 static int pci_attach(dev_info_t *devi, ddi_attach_cmd_t cmd); 134 static int pci_detach(dev_info_t *devi, ddi_detach_cmd_t cmd); 221 pci_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in pci_attach() argument 227 int instance = ddi_get_instance(devi); in pci_attach() 240 if (ddi_prop_update_string(DDI_DEV_T_NONE, devi, "device_type", "pci") in pci_attach() 253 pcip->pci_dip = devi; in pci_attach() 262 if (pcihp_init(devi) != DDI_SUCCESS) { in pci_attach() 268 if (pcitool_init(devi, B_FALSE) != DDI_SUCCESS) { in pci_attach() 274 ddi_fm_init(devi, &pcip->pci_fmcap, &pcip->pci_fm_ibc); in pci_attach() 281 pci_ereport_setup(devi); in pci_attach() [all …]
|
/titanic_44/usr/src/uts/intel/io/vgatext/ |
H A D | vgatext.c | 147 dev_info_t *devi; member 199 static int vgatext_get_pci_reg_index(dev_info_t *const devi, 202 static int vgatext_get_isa_reg_index(dev_info_t *const devi, 356 vgatext_check_for_console(dev_info_t *devi, struct vgatext_softc *softc, in vgatext_check_for_console() argument 371 if (pci_config_setup(devi, &pci_conf) != DDI_SUCCESS) { in vgatext_check_for_console() 393 pdevi = devi; in vgatext_check_for_console() 433 vgatext_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in vgatext_attach() argument 436 int unit = ddi_get_instance(devi); in vgatext_attach() 472 softc->devi = devi; in vgatext_attach() 473 ddi_set_driver_private(devi, softc); in vgatext_attach() [all …]
|
/titanic_44/usr/src/uts/i86pc/io/gfx_private/ |
H A D | gfxp_vgatext.c | 73 dev_info_t *devi; member 159 int gfxp_vgatext_detach(dev_info_t *devi, ddi_detach_cmd_t cmd, 194 static int vgatext_get_pci_reg_index(dev_info_t *const devi, 197 static int vgatext_get_isa_reg_index(dev_info_t *const devi, 245 gfxp_check_for_console(dev_info_t *devi, struct vgatext_softc *softc, in gfxp_check_for_console() argument 260 if (pci_config_setup(devi, &pci_conf) != DDI_SUCCESS) { in gfxp_check_for_console() 283 pdevi = devi; in gfxp_check_for_console() 323 gfxp_vgatext_attach(dev_info_t *devi, ddi_attach_cmd_t cmd, in gfxp_vgatext_attach() argument 327 int unit = ddi_get_instance(devi); in gfxp_vgatext_attach() 351 softc->devi = devi; /* Copy and init DEVI */ in gfxp_vgatext_attach() [all …]
|
/titanic_44/usr/src/uts/common/io/pciex/ |
H A D | pcieb.c | 170 static int pcieb_attach(dev_info_t *devi, ddi_attach_cmd_t cmd); 171 static int pcieb_detach(dev_info_t *devi, ddi_detach_cmd_t cmd); 278 pcieb_probe(dev_info_t *devi) in pcieb_probe() argument 363 pcieb_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in pcieb_attach() argument 368 pcie_bus_t *bus_p = PCIE_DIP2UPBUS(devi); in pcieb_attach() 373 (void) pcie_pwr_resume(devi); in pcieb_attach() 384 PCIEB_DEBUG(DBG_ATTACH, devi, "This is not a switch or" in pcieb_attach() 400 instance = ddi_get_instance(devi); in pcieb_attach() 404 pcieb->pcieb_dip = devi; in pcieb_attach() 407 PCIEB_DEBUG(DBG_ATTACH, devi, "Failed in pcieb_fm_init\n"); in pcieb_attach() [all …]
|
/titanic_44/usr/src/uts/sun4u/io/pci/ |
H A D | simba.c | 181 static int simba_attach(dev_info_t *devi, ddi_attach_cmd_t cmd); 182 static int simba_detach(dev_info_t *devi, ddi_detach_cmd_t cmd); 367 simba_probe(register dev_info_t *devi) in simba_probe() argument 375 simba_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in simba_attach() argument 383 DEBUG1(D_ATTACH, "attach(%p) ATTACH\n", devi); in simba_attach() 388 (void) ddi_prop_update_string(DDI_DEV_T_NONE, devi, in simba_attach() 394 instance = ddi_get_instance(devi); in simba_attach() 399 simba->dip = devi; in simba_attach() 406 if (ddi_create_minor_node(devi, "devctl", S_IFCHR, instance, in simba_attach() 413 if (pci_config_setup(devi, &simba->config_handle) != in simba_attach() [all …]
|
/titanic_44/usr/src/uts/common/inet/ |
H A D | inetddi.c | 128 inet_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in inet_attach() argument 135 inet_dev_info = devi; in inet_attach() 140 if (drv == NULL || strcmp(drv, ddi_driver_name(devi)) == 0) in inet_attach() 144 return (ddi_create_priv_minor_node(devi, INET_NAME, S_IFCHR, in inet_attach() 151 inet_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) in inet_detach() argument 156 ASSERT(devi == inet_dev_info); in inet_detach() 158 ddi_remove_minor_node(devi, NULL); in inet_detach()
|