/illumos-gate/usr/src/cmd/dtrace/demo/sdt/ |
H A D | intr.d | 35 this->devi = (struct dev_info *)arg0; 36 @[stringof(`devnamesp[this->devi->devi_major].dn_name), 37 this->devi->devi_instance] = quantize(vtimestamp - self->ts);
|
/illumos-gate/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);
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | gen_drv.c | 225 gen_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) argument 227 int instance = ddi_get_instance(devi); 259 ddi_get_name(devi), instance); 265 dstatep->dip = devi; 268 n_devs = ddi_prop_get_int(DDI_DEV_T_ANY, devi, 0, 271 isclone = ddi_prop_get_int(DDI_DEV_T_ANY, devi, 0, 274 n_minorcomps = ddi_prop_get_int(DDI_DEV_T_ANY, devi, 0, 279 ddi_get_name(devi), ddi_get_instance(devi), 283 if (ddi_create_minor_node(devi, "ge 556 gen_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) argument 1286 gen_create_properties(dev_info_t *devi) argument 1381 gen_create_display(dev_info_t *devi) argument 1394 gen_create_mn_disk_chan(dev_info_t *devi) argument 1431 gen_create_mn_disk_wwn(dev_info_t *devi) argument 1471 gen_create_mn_disk_cdrom(dev_info_t *devi) argument 1488 gen_create_mn_disk_fd(dev_info_t *devi) argument 1505 gen_create_serial(dev_info_t *devi) argument 1522 gen_create_net(dev_info_t *devi) argument 1536 gen_create_minor_nodes(dev_info_t *devi, struct dstate *dstatep) argument [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) argument 131 options_devi = devi; 144 options_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) argument
|
H A D | tclient.c | 150 tcli_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) argument 152 int instance = ddi_get_instance(devi); 161 ddi_get_name(devi), instance); 166 dstatep->dip = devi; 168 rval = ddi_create_minor_node(devi, "client", S_IFCHR, 171 ddi_remove_minor_node(devi, NULL); 174 ddi_get_name(devi), instance); 178 ddi_report_dev(devi); 184 tcli_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) argument 191 ddi_remove_minor_node(devi, NUL [all...] |
H A D | cpuid_drv.c | 55 cpuid_getinfo(dev_info_t *devi, ddi_info_cmd_t cmd, void *arg, void **result) argument 80 cpuid_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) argument 84 cpuid_devi = devi; 86 return (ddi_create_minor_node(devi, CPUID_DRIVER_SELF_NODE, S_IFCHR, 91 cpuid_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) argument 95 ddi_remove_minor_node(devi, NULL);
|
/illumos-gate/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) argument 71 balloon_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) argument 76 if (ddi_create_minor_node(devi, ddi_get_name(devi), S_IFCHR, 77 ddi_get_instance(devi), DDI_PSEUDO, 0) != DDI_SUCCESS) 80 balloon_devi = devi; 81 ddi_report_dev(devi); 86 balloon_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) argument 90 ddi_remove_minor_node(devi, NULL);
|
H A D | domcaps.c | 51 domcaps_getinfo(dev_info_t *devi, ddi_info_cmd_t cmd, void *arg, void **result) argument 71 domcaps_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) argument 76 if (ddi_create_minor_node(devi, ddi_get_name(devi), S_IFCHR, 77 ddi_get_instance(devi), DDI_PSEUDO, 0) != DDI_SUCCESS) 80 domcaps_devi = devi; 81 ddi_report_dev(devi); 86 domcaps_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) argument 90 ddi_remove_minor_node(devi, NULL);
|
/illumos-gate/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) argument 170 (void) ddi_prop_update_string(DDI_DEV_T_NONE, devi, 173 ddi_report_dev(devi); 179 central_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) argument
|
H A D | simmstat.c | 160 simmstat_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) argument 176 instance = ddi_get_instance(devi); 184 softsp->dip = devi; 195 DPRINTF(SIMMSTAT_ATTACH_DEBUG, ("simmstat%d: devi= 0x%p\n, " 196 " softsp=0x%p\n", instance, (void *)devi, (void *)softsp)); 207 (void) ddi_prop_update_string(DDI_DEV_T_NONE, devi, 213 ddi_report_dev(devi); 224 simmstat_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) argument 229 /* get the instance of this devi */ 230 instance = ddi_get_instance(devi); [all...] |
H A D | sram.c | 154 sram_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) argument 170 instance = ddi_get_instance(devi); 178 softsp->dip = devi; 189 DPRINTF(SRAM_ATTACH_DEBUG, ("sram%d: devi= 0x%p\n, " 190 " softsp=0x%p\n", instance, (void *)devi, (void *)softsp)); 201 (void) ddi_prop_update_string(DDI_DEV_T_NONE, devi, 207 ddi_report_dev(devi); 218 sram_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) argument 223 /* get the instance of this devi */ 224 instance = ddi_get_instance(devi); [all...] |
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) argument 194 instance = ddi_get_instance(devi); 202 softsp->dip = devi; 220 DPRINTF(ENVIRON_ATTACH_DEBUG, ("environ: devi= 0x%p\n, softsp=0x%p,", 221 (void *)devi, (void *)softsp)); 231 (void) ddi_prop_update_string(DDI_DEV_T_NONE, devi, 234 ddi_report_dev(devi); 263 environ_detach(dev_info_t *devi, ddi_detach_cmd_ argument [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | driver.c | 75 devi_identify(dev_info_t *devi) argument 80 if ((ops = ddi_get_driver(devi)) == NULL || 84 return ((*fn)(devi)); 88 devi_probe(dev_info_t *devi) argument 95 ops = ddi_get_driver(devi); 98 pm_pre_probe(devi, &ppm_cookie); 106 if (ddi_dev_is_sid(devi) == DDI_SUCCESS) 111 rv = (*fn)(devi); 134 devi_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) argument 141 if ((error = mdi_pre_attach(devi, cm 179 devi_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) argument 217 i_attach_ctlop(dev_info_t *devi, ddi_attach_cmd_t cmd, ddi_pre_post_t w, int ret) argument 232 i_detach_ctlop(dev_info_t *devi, ddi_detach_cmd_t cmd, ddi_pre_post_t w, int ret) argument 251 devi_reset(dev_info_t *devi, ddi_reset_cmd_t cmd) argument 264 devi_quiesce(dev_info_t *devi) argument [all...] |
H A D | dacf_clnt.c | 215 dacfc_postattach(dev_info_t *devi) argument 225 opsp = &DEVI(devi)->devi_dacf_tasks; 249 if ((pathp = ddi_pathname(devi, path)) == NULL) 268 dacfc_predetach(dev_info_t *devi) argument 278 opsp = &DEVI(devi)->devi_dacf_tasks; 303 if ((pathp = ddi_pathname(devi, path)) == NULL) 310 pa_err = dacfc_postattach(devi); 314 if ((pathp = ddi_pathname(devi, path)) == NULL)
|
/illumos-gate/usr/src/uts/sun/io/ |
H A D | sbusmem.c | 151 sbmem_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) argument 161 instance = ddi_get_instance(devi); 163 size = ddi_getprop(DDI_DEV_T_NONE, devi, 175 struct regspec *rp = ddi_rnumber_to_regspec(devi, 0); 188 if (ddi_getlongprop(DDI_DEV_T_ANY, devi, 208 if (ddi_create_minor_node(devi, ident, S_IFCHR, instance, 211 ddi_remove_minor_node(devi, NULL); 216 un->dip = devi; 218 un->pagesize = ddi_ptob(devi, 1); 222 instance, devi, siz 238 sbmem_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) argument [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | ndievents.c | 112 struct dev_info devi; local 128 if (mdb_vread(&devi, sizeof (struct dev_info), 135 if (dip_to_pathname(&devi, device_path, sizeof (device_path)) 210 struct dev_info devi; local 224 if (mdb_vread(&devi, sizeof (struct dev_info), 232 if (dip_to_pathname(&devi, path, sizeof (path)) == -1) {
|
/illumos-gate/usr/src/uts/common/io/drm/ |
H A D | drm_memory.c | 103 drm_get_pci_index_reg(dev_info_t *devi, uint_t physical, uint_t size, argument 114 if (ddi_dev_nregs(devi, &n_reg) == DDI_FAILURE) { 120 if (ddi_getlongprop(DDI_DEV_T_ANY, devi, DDI_PROP_DONTPASS, 153 do_ioremap(dev_info_t *devi, drm_device_iomap_t *iomap) argument 159 regnum = drm_get_pci_index_reg(devi, iomap->physical, 169 ret = ddi_regs_map_setup(devi, iomap->drm_regnum,
|
/illumos-gate/usr/src/uts/i86pc/io/pci/ |
H A D | pci.c | 132 static int pci_attach(dev_info_t *devi, ddi_attach_cmd_t cmd); 133 static int pci_detach(dev_info_t *devi, ddi_detach_cmd_t cmd); 220 pci_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) argument 226 int instance = ddi_get_instance(devi); 239 if (ddi_prop_update_string(DDI_DEV_T_NONE, devi, "device_type", "pci") 252 pcip->pci_dip = devi; 261 if (pcihp_init(devi) != DDI_SUCCESS) { 267 if (pcitool_init(devi, B_FALSE) != DDI_SUCCESS) { 273 ddi_fm_init(devi, &pcip->pci_fmcap, &pcip->pci_fm_ibc); 280 pci_ereport_setup(devi); 298 pci_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) argument [all...] |
/illumos-gate/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) argument 260 instance = ddi_get_instance(devi); 278 softsp->ans_dip = devi; 279 (void) ddi_pathname(devi, softsp->ans_path); 280 if (ACPI_FAILURE(acpica_get_handle(devi, &softsp->ans_hdl))) { 296 (void) ddi_prop_update_string(DDI_DEV_T_NONE, devi, 298 (void) ddi_prop_update_int(DDI_DEV_T_NONE, devi, 302 ddi_report_dev(devi); 308 acpinex_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) argument 313 instance = ddi_get_instance(devi); 438 acpinex_open(dev_t *devi, int flags, int otyp, cred_t *credp) argument [all...] |
/illumos-gate/usr/src/uts/i86pc/io/pciex/ |
H A D | npe.c | 149 static int npe_attach(dev_info_t *devi, ddi_attach_cmd_t cmd); 150 static int npe_detach(dev_info_t *devi, ddi_detach_cmd_t cmd); 275 npe_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) argument 277 int instance = ddi_get_instance(devi); 284 (void) npe_restore_htconfig_children(devi); 299 npe_enable_htmsi_children(devi); 301 if (ddi_prop_update_string(DDI_DEV_T_NONE, devi, "device_type", 312 pcip->pci_dip = devi; 315 if (pcie_init(devi, NULL) != DDI_SUCCESS) 319 if (pcitool_init(devi, B_TRU 350 npe_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) argument [all...] |
/illumos-gate/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) argument 278 ppb_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) argument 294 (void) ddi_prop_update_string(DDI_DEV_T_NONE, devi, 300 instance = ddi_get_instance(devi); 304 ppb->dip = devi; 309 if (strcmp(ddi_driver_name(ddi_get_parent(devi)), "npe") == 0) 317 ddi_fm_init(devi, &ppb->ppb_fmcap, &ppb->ppb_fm_ibc); 326 pci_ereport_setup(devi); 401 ppb_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) argument [all...] |
/illumos-gate/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) argument 228 major = ((L_MAXMAJ32 + 1) >> 1) + DEVI(devi)->devi_major; 229 minor = ddi_get_instance(devi); 234 major = DEVI(devi)->devi_major; 331 dv_mkdir(struct dv_node *ddv, dev_info_t *devi, char *nm) argument 337 ASSERT((devi)); 355 dv->dv_devi = devi; 356 ndi_hold_devi(devi); 358 dv->dv_ino = dv_mkino(devi, VDIR, NODEV); 382 dv_mknod(struct dv_node *ddv, dev_info_t *devi, cha argument 838 dv_find_leafnode(dev_info_t *devi, char *minor_nm, struct ddi_minor_data *r_mi) argument 933 dev_info_t *pdevi, *devi = NULL; local 1271 dev_info_t *devi, *pdevi; local [all...] |
/illumos-gate/usr/src/uts/i86pc/io/gfx_private/ |
H A D | gfxp_vgatext.c | 73 dev_info_t *devi; member in struct:vgatext_softc 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, argument 260 if (pci_config_setup(devi, &pci_conf) != DDI_SUCCESS) { 283 pdevi = devi; 323 gfxp_vgatext_attach(dev_info_t *devi, ddi_attach_cmd_t cmd, argument 327 int unit = ddi_get_instance(devi); 351 softc->devi 489 gfxp_vgatext_detach(dev_info_t *devi, ddi_detach_cmd_t cmd, gfxp_vgatext_softc_ptr_t ptr) argument 1281 vgatext_get_pci_reg_index( dev_info_t *const devi, unsigned long himask, unsigned long hival, unsigned long addr, off_t *offset) argument 1341 vgatext_get_isa_reg_index( dev_info_t *const devi, unsigned long hival, unsigned long addr, off_t *offset) argument [all...] |
/illumos-gate/usr/src/uts/common/inet/ |
H A D | inetddi.c | 128 inet_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) argument 135 inet_dev_info = devi; 140 if (drv == NULL || strcmp(drv, ddi_driver_name(devi)) == 0) 144 return (ddi_create_priv_minor_node(devi, INET_NAME, S_IFCHR, 151 inet_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) argument 156 ASSERT(devi == inet_dev_info); 158 ddi_remove_minor_node(devi, NULL);
|
/illumos-gate/usr/src/uts/common/dtrace/ |
H A D | lockstat.c | 235 lockstat_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) argument 246 if (ddi_create_minor_node(devi, "lockstat", S_IFCHR, 0, 250 ddi_remove_minor_node(devi, NULL); 257 ddi_report_dev(devi); 258 lockstat_devi = devi; 263 lockstat_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) argument 277 ddi_remove_minor_node(devi, NULL);
|