Home
last modified time | relevance | path

Searched refs:devi (Results 1 – 25 of 152) sorted by relevance

1234567

/illumos-gate/usr/src/uts/common/io/
H A Dgen_drv.c279 ddi_get_name(devi), ddi_get_instance(devi), in gen_attach()
377 ddi_node_name(devi), ddi_get_instance(devi))); in gen_attach()
393 ddi_node_name(devi), ddi_get_instance(devi))); in gen_attach()
448 ddi_node_name(devi), ddi_get_instance(devi), in gen_attach()
532 ddi_node_name(devi), ddi_get_instance(devi), in gen_attach()
600 ddi_node_name(devi), ddi_get_instance(devi), in gen_detach()
653 ddi_node_name(devi), ddi_get_instance(devi)); in gen_detach()
657 ddi_node_name(devi), ddi_get_instance(devi), in gen_detach()
700 ddi_node_name(devi), ddi_get_instance(devi), in gen_detach()
720 ddi_node_name(devi), ddi_get_instance(devi))); in gen_detach()
[all …]
H A Dtclient.c150 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 Doptions.c40 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
/illumos-gate/usr/src/uts/common/os/
H A Ddriver.c87 return ((*fn)(devi)); in devi_identify()
91 devi_probe(dev_info_t *devi) in devi_probe() argument
98 ops = ddi_get_driver(devi); in devi_probe()
114 rv = (*fn)(devi); in devi_probe()
155 ops = ddi_get_driver(devi); in devi_attach()
166 error = (*fn)(devi, cmd); in devi_attach()
210 error = (*fn)(devi, cmd); in devi_detach()
231 (void) ddi_ctlops(devi, devi, DDI_CTLOPS_ATTACH, &as, &error); in i_attach_ctlop()
246 (void) ddi_ctlops(devi, devi, DDI_CTLOPS_DETACH, &ds, &error); in i_detach_ctlop()
263 return ((*fn)(devi, cmd)); in devi_reset()
[all …]
H A Ddevcfg.c284 devi->devi_binding_name = devi->devi_node_name; in i_ddi_alloc_node()
493 kmem_free(devi->devi_node_name, strlen(devi->devi_node_name) + 1); in i_ddi_free_node()
1943 cv_wait(&(devi->devi_cv), &(devi->devi_lock)); in ndi_devi_enter()
3227 debug_dtree(devi, DEVI(devi)->devi_bus_map_fault, in ddi_optimize_dtree()
3234 debug_dtree(devi, DEVI(devi)->devi_bus_dma_allochdl, in ddi_optimize_dtree()
3240 debug_dtree(devi, DEVI(devi)->devi_bus_dma_freehdl, in ddi_optimize_dtree()
3249 debug_dtree(devi, DEVI(devi)->devi_bus_dma_bindhdl, in ddi_optimize_dtree()
3259 debug_dtree(devi, DEVI(devi)->devi_bus_dma_unbindhdl, in ddi_optimize_dtree()
3265 debug_dtree(devi, DEVI(devi)->devi_bus_dma_flush, in ddi_optimize_dtree()
3271 debug_dtree(devi, DEVI(devi)->devi_bus_dma_win, in ddi_optimize_dtree()
[all …]
H A Ddacf_clnt.c213 dacfc_postattach(dev_info_t *devi) in dacfc_postattach() argument
223 opsp = &DEVI(devi)->devi_dacf_tasks; in dacfc_postattach()
247 if ((pathp = ddi_pathname(devi, path)) == NULL) in dacfc_postattach()
266 dacfc_predetach(dev_info_t *devi) in dacfc_predetach() argument
276 opsp = &DEVI(devi)->devi_dacf_tasks; in dacfc_predetach()
301 if ((pathp = ddi_pathname(devi, path)) == NULL) in dacfc_predetach()
308 pa_err = dacfc_postattach(devi); in dacfc_predetach()
312 if ((pathp = ddi_pathname(devi, path)) == NULL) in dacfc_predetach()
/illumos-gate/usr/src/uts/intel/io/vgatext/
H A Dvgatext.c124 dev_info_t *devi; member
188 vgatext_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in vgatext_attach() argument
191 int unit = ddi_get_instance(devi); in vgatext_attach()
233 softc->devi = devi; in vgatext_attach()
234 ddi_set_driver_private(devi, softc); in vgatext_attach()
237 error = ddi_create_minor_node(devi, name, S_IFCHR, in vgatext_attach()
242 (void) vgatext_detach(devi, DDI_DETACH); in vgatext_attach()
249 int instance = ddi_get_instance(devi); in vgatext_detach()
259 ddi_remove_minor_node(devi, NULL); in vgatext_detach()
308 if (softc == NULL || softc->devi == NULL) { in vgatext_info()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dpci.c26 pcie_bus_match(const struct dev_info *devi, uintptr_t *bus_p) in pcie_bus_match() argument
28 if (devi->devi_bus.port_up.info.port.type == DEVI_PORT_TYPE_PCI) { in pcie_bus_match()
29 *bus_p = (uintptr_t)devi->devi_bus.port_up.priv_p; in pcie_bus_match()
30 } else if (devi->devi_bus.port_down.info.port.type == in pcie_bus_match()
32 *bus_p = (uintptr_t)devi->devi_bus.port_down.priv_p; in pcie_bus_match()
59 const struct dev_info *devi; in pcie_bus_walk_step() local
68 devi = wsp->walk_layer; in pcie_bus_walk_step()
69 if (!pcie_bus_match(devi, &bus_addr)) { in pcie_bus_walk_step()
/illumos-gate/usr/src/uts/i86xpv/io/
H A Dballoon_drv.c51 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 Ddomcaps.c51 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()
/illumos-gate/usr/src/uts/i86pc/io/gfx_private/
H A Dgfxp_fb.c103 if (pci_config_setup(devi, &pci_conf) != DDI_SUCCESS) { in gfxp_check_for_console()
124 pdevi = devi; in gfxp_check_for_console()
215 softc->devi = devi; /* Copy and init DEVI */ in gfxp_fb_attach()
231 gfxp_check_for_console(devi, softc, pci_pcie_bus); in gfxp_fb_attach()
234 if (ddi_prop_update_int(DDI_DEV_T_NONE, devi, in gfxp_fb_attach()
249 error = gfxp_vga_attach(devi, softc); in gfxp_fb_attach()
255 error = gfxp_bm_attach(devi, softc); in gfxp_fb_attach()
267 (void) gfxp_fb_detach(devi, DDI_DETACH, (void *)softc); in gfxp_fb_attach()
285 (void) ddi_prop_remove(DDI_DEV_T_ANY, devi, in gfxp_fb_detach()
290 error = gfxp_bm_detach(devi, softc); in gfxp_fb_detach()
[all …]
/illumos-gate/usr/src/uts/sun/io/
H A Dsbusmem.c147 sbmem_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in sbmem_attach() argument
157 instance = ddi_get_instance(devi); in sbmem_attach()
159 size = ddi_getprop(DDI_DEV_T_NONE, devi, in sbmem_attach()
184 if (ddi_getlongprop(DDI_DEV_T_ANY, devi, in sbmem_attach()
207 ddi_remove_minor_node(devi, NULL); in sbmem_attach()
212 un->dip = devi; in sbmem_attach()
214 un->pagesize = ddi_ptob(devi, 1); in sbmem_attach()
218 instance, devi, size); in sbmem_attach()
221 ddi_report_dev(devi); in sbmem_attach()
240 instance = ddi_get_instance(devi); in sbmem_detach()
[all …]
/illumos-gate/usr/src/uts/common/fs/devfs/
H A Ddevfs_subr.c337 ASSERT((devi)); in dv_mkdir()
355 dv->dv_devi = devi; in dv_mkdir()
356 ndi_hold_devi(devi); in dv_mkdir()
409 dv->dv_devi = devi; in dv_mknod()
1100 ASSERT(devi); in dv_find()
1121 ndi_rele_devi(devi); in dv_find()
1131 ndi_rele_devi(devi); in dv_find()
1136 ASSERT(devi && i_ddi_devi_attached(devi)); in dv_find()
1180 ndi_rele_devi(devi); in dv_find()
1290 for (devi = ddi_get_child(pdevi); devi; in dv_filldir()
[all …]
/illumos-gate/usr/src/uts/sun4u/sunfire/io/
H A Denviron.c56 static int environ_attach(dev_info_t *devi, ddi_attach_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()
324 ddi_unmap_regs(devi, 0, (caddr_t *)&softsp->temp_reg, 0, 0); in environ_detach()
[all …]
H A Dsimmstat.c160 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 Dcentral.c59 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 Dsram.c154 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()
/illumos-gate/usr/src/uts/intel/io/pci/
H A Dpci_pci.c272 ppb_probe(dev_info_t *devi) in ppb_probe() argument
305 ppb->dip = devi; in ppb_attach()
327 pci_ereport_setup(devi); in ppb_attach()
336 pci_ereport_teardown(devi); in ppb_attach()
337 ddi_fm_fini(devi); in ppb_attach()
371 ret = pcie_init(devi, NULL); in ppb_attach()
373 ret = pcihp_init(devi); in ppb_attach()
382 ddi_report_dev(devi); in ppb_attach()
416 pci_ereport_teardown(devi); in ppb_detach()
422 pcie_uninit(devi) : pcihp_uninit(devi); in ppb_detach()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/pciex/
H A Dnpe.c347 npe_enable_htmsi_children(devi); in npe_attach()
360 pcip->pci_dip = devi; in npe_attach()
395 pcie_rc_init_pfd(devi, PCIE_DIP2PFD(devi)); in npe_attach()
397 ddi_report_dev(devi); in npe_attach()
403 (void) pcie_uninit(devi); in npe_attach()
405 pcie_rc_fini_bus(devi); in npe_attach()
415 int instance = ddi_get_instance(devi); in npe_detach()
450 pcitool_uninit(devi); in npe_detach()
452 if (pcie_uninit(devi) != DDI_SUCCESS) in npe_detach()
456 ddi_fm_handler_unregister(devi); in npe_detach()
[all …]
/illumos-gate/usr/src/lib/libdtrace_jni/java/docs/examples/
H A Dintrstat.d37 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/i86pc/io/acpi/acpinex/
H A Dacpinex_drv.c243 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()
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()
313 instance = ddi_get_instance(devi); in acpinex_detach()
335 ddi_remove_minor_node(devi, NULL); in acpinex_detach()
339 (void) ddi_prop_update_int(DDI_DEV_T_NONE, devi, in acpinex_detach()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/pci/
H A Dpci.c227 int instance = ddi_get_instance(devi); in pci_attach()
253 pcip->pci_dip = devi; in pci_attach()
262 if (pcihp_init(devi) != DDI_SUCCESS) { in pci_attach()
281 pci_ereport_setup(devi); in pci_attach()
285 ddi_report_dev(devi); in pci_attach()
290 (void) pcihp_uninit(devi); in pci_attach()
301 int instance = ddi_get_instance(devi); in pci_detach()
310 ddi_fm_handler_unregister(devi); in pci_detach()
311 pci_ereport_teardown(devi); in pci_detach()
317 pcitool_uninit(devi); in pci_detach()
[all …]
/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Dsimba.c367 simba_probe(register dev_info_t *devi) in simba_probe() argument
383 DEBUG1(D_ATTACH, "attach(%p) ATTACH\n", devi); in simba_attach()
394 instance = ddi_get_instance(devi); in simba_attach()
399 simba->dip = devi; in simba_attach()
415 ddi_remove_minor_node(devi, "devctl"); in simba_attach()
453 pci_ereport_setup(devi); in simba_attach()
457 ddi_report_dev(devi); in simba_attach()
485 ddi_fm_handler_unregister(devi); in simba_detach()
486 pci_ereport_teardown(devi); in simba_detach()
487 ddi_fm_fini(devi); in simba_detach()
[all …]
/illumos-gate/usr/src/uts/common/inet/
H A Dinetddi.c128 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()
150 return (ddi_create_priv_minor_node(devi, INET_NAME, S_IFCHR, in inet_attach()
157 inet_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) in inet_detach() argument
162 ASSERT(devi == inet_dev_info); in inet_detach()
164 ddi_remove_minor_node(devi, NULL); in inet_detach()
/illumos-gate/usr/src/uts/common/dtrace/
H A Dlockstat.c235 lockstat_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) in lockstat_attach() argument
246 if (ddi_create_minor_node(devi, "lockstat", S_IFCHR, 0, in lockstat_attach()
250 ddi_remove_minor_node(devi, NULL); in lockstat_attach()
257 ddi_report_dev(devi); in lockstat_attach()
258 lockstat_devi = devi; in lockstat_attach()
263 lockstat_detach(dev_info_t *devi, ddi_detach_cmd_t cmd) in lockstat_detach() argument
277 ddi_remove_minor_node(devi, NULL); in lockstat_detach()

1234567