Home
last modified time | relevance | path

Searched refs:xhcip (Results 1 – 13 of 13) sorted by relevance

/illumos-gate/usr/src/uts/common/io/usb/hcd/xhci/
H A Dxhci.c780 if (xhcip != NULL && xhcip->xhci_dip != NULL) { in xhci_error()
794 if (xhcip != NULL && xhcip->xhci_dip != NULL) { in xhci_log()
811 xhci_t *xhcip; in xhci_get_dip() local
815 if (xhcip != NULL) in xhci_get_dip()
1099 ddi_fm_init(xhcip->xhci_dip, &xhcip->xhci_fm_caps, &iblk); in xhci_fm_init()
1978 cv_wait(&xhcip->xhci_statecv, &xhcip->xhci_lock); in xhci_cleanup()
2042 xhci_t *xhcip; in xhci_attach() local
2061 if (pci_config_setup(xhcip->xhci_dip, &xhcip->xhci_cfg_handle) != in xhci_attach()
2066 xhcip->xhci_vendor_id = pci_config_get16(xhcip->xhci_cfg_handle, in xhci_attach()
2068 xhcip->xhci_device_id = pci_config_get16(xhcip->xhci_cfg_handle, in xhci_attach()
[all …]
H A Dxhci_intr.c49 xhci_ddi_intr_disable(xhci_t *xhcip) in xhci_ddi_intr_disable() argument
55 xhcip->xhci_intr_num)) != DDI_SUCCESS) { in xhci_ddi_intr_disable()
74 xhci_ddi_intr_enable(xhci_t *xhcip) in xhci_ddi_intr_enable() argument
80 xhcip->xhci_intr_num)) != DDI_SUCCESS) { in xhci_ddi_intr_enable()
103 xhci_intr_conf(xhci_t *xhcip) in xhci_intr_conf() argument
130 xhci_t *xhcip = (xhci_t *)(void *)arg1; in xhci_intr() local
142 xhci_fm_runtime_reset(xhcip); in xhci_intr()
154 xhci_fm_runtime_reset(xhcip); in xhci_intr()
162 xhci_fm_runtime_reset(xhcip); in xhci_intr()
181 if (xhci_event_process(xhcip) == B_FALSE) { in xhci_intr()
[all …]
H A Dxhci_context.c28 xhci_scratchpad_fini(xhci_t *xhcip) in xhci_scratchpad_fini() argument
47 xhci_context_fini(xhci_t *xhcip) in xhci_context_fini() argument
49 xhci_scratchpad_fini(xhcip); in xhci_context_fini()
67 xhci_dma_acc_attr(xhcip, &acc); in xhci_scratchpad_alloc()
68 xhci_dma_dma_attr(xhcip, &attr); in xhci_scratchpad_alloc()
69 xsp = &xhcip->xhci_scratchpad; in xhci_scratchpad_alloc()
100 xhci_scratchpad_fini(xhcip); in xhci_scratchpad_alloc()
115 xhci_dcbaa_alloc(xhci_t *xhcip) in xhci_dcbaa_alloc() argument
121 dcb = &xhcip->xhci_dcbaa; in xhci_dcbaa_alloc()
122 xhci_dma_acc_attr(xhcip, &acc); in xhci_dcbaa_alloc()
[all …]
H A Dxhci_hub.c262 xhci_fm_runtime_reset(xhcip); in xhci_root_hub_handle_port_clear_feature()
315 xhci_fm_runtime_reset(xhcip); in xhci_root_hub_handle_port_clear_feature()
344 xhci_fm_runtime_reset(xhcip); in xhci_root_hub_handle_port_set_feature()
364 xhci_fm_runtime_reset(xhcip); in xhci_root_hub_handle_port_set_feature()
430 xhci_fm_runtime_reset(xhcip); in xhci_root_hub_handle_port_set_feature()
469 xhci_fm_runtime_reset(xhcip); in xhci_root_hub_handle_port_get_status()
597 mutex_exit(&xhcip->xhci_lock); in xhci_root_hub_ctrl_req()
634 xhci_fm_runtime_reset(xhcip); in xhci_root_hub_psc_callback()
675 mutex_exit(&xhcip->xhci_lock); in xhci_root_hub_psc_callback()
702 mutex_exit(&xhcip->xhci_lock); in xhci_root_hub_intr_root_disable()
[all …]
H A Dxhci_usba.c35 VERIFY(xhcip != NULL); in xhci_hcdi_get_xhcip_from_dev()
36 return (xhcip); in xhci_hcdi_get_xhcip_from_dev()
68 mutex_enter(&xhcip->xhci_lock); in xhci_hcdi_pipe_open()
70 mutex_exit(&xhcip->xhci_lock); in xhci_hcdi_pipe_open()
73 mutex_exit(&xhcip->xhci_lock); in xhci_hcdi_pipe_open()
120 mutex_enter(&xhcip->xhci_lock); in xhci_hcdi_pipe_open()
126 mutex_exit(&xhcip->xhci_lock); in xhci_hcdi_pipe_open()
148 mutex_exit(&xhcip->xhci_lock); in xhci_hcdi_pipe_open()
1408 xhci_t *xhcip; in xhci_hcdi_pipe_isoc_xfer() local
1730 xhci_t *xhcip; in xhci_hcdi_device_fini() local
[all …]
H A Dxhci_event.c38 xhci_event_fini(xhci_t *xhcip) in xhci_event_fini() argument
63 xhci_dma_acc_attr(xhcip, &acc); in xhci_event_alloc()
64 xhci_dma_dma_attr(xhcip, &attr); in xhci_event_alloc()
78 xhci_event_init(xhci_t *xhcip) in xhci_event_init() argument
90 xhci_event_fini(xhcip); in xhci_event_init()
108 xhci_event_fini(xhcip); in xhci_event_init()
163 xhci_fm_runtime_reset(xhcip); in xhci_event_process_trb()
196 mutex_enter(&xhcip->xhci_lock); in xhci_event_process()
201 mutex_exit(&xhcip->xhci_lock); in xhci_event_process()
217 xhci_fm_runtime_reset(xhcip); in xhci_event_process()
[all …]
H A Dxhci_command.c196 xhci_t *xhcip = arg; in xhci_command_timeout() local
216 xhci_fm_runtime_reset(xhcip); in xhci_command_timeout()
232 xhci_fm_runtime_reset(xhcip); in xhci_command_timeout()
476 VERIFY(xhcip != NULL); in xhci_command_enable_slot()
521 VERIFY(xhcip != NULL); in xhci_command_disable_slot()
552 VERIFY(xhcip != NULL); in xhci_command_set_address()
588 VERIFY(xhcip != NULL); in xhci_command_configure_endpoint()
636 VERIFY(xhcip != NULL); in xhci_command_evaluate_context()
680 VERIFY(xhcip != NULL); in xhci_command_reset_endpoint()
739 VERIFY(xhcip != NULL); in xhci_command_set_tr_dequeue()
[all …]
H A Dxhci_polled.c265 xhci_t *xhcip; in xhci_hcdi_console_input_init() local
271 mutex_enter(&xhcip->xhci_lock); in xhci_hcdi_console_input_init()
275 mutex_exit(&xhcip->xhci_lock); in xhci_hcdi_console_input_init()
282 mutex_exit(&xhcip->xhci_lock); in xhci_hcdi_console_input_init()
305 xhci_t *xhcip; in xhci_hcdi_console_input_enter() local
354 mutex_exit(&xhcip->xhci_lock); in xhci_hcdi_console_input_enter()
363 xhci_t *xhcip; in xhci_hcdi_console_read() local
397 mutex_exit(&xhcip->xhci_lock); in xhci_hcdi_console_read()
405 xhci_t *xhcip; in xhci_hcdi_console_input_exit() local
434 xhci_fm_runtime_reset(xhcip); in xhci_hcdi_console_input_exit()
[all …]
H A Dxhci_endpoint.c72 mutex_exit(&xhcip->xhci_lock); in xhci_endpoint_timeout_cancel()
74 mutex_enter(&xhcip->xhci_lock); in xhci_endpoint_timeout_cancel()
186 xhci_fm_runtime_reset(xhcip); in xhci_endpoint_setup_default_context()
581 xhci_t *, xhcip, in xhci_endpoint_setup_context()
620 xhci_fm_runtime_reset(xhcip); in xhci_endpoint_setup_context()
661 xep->xep_xhci = xhcip; in xhci_endpoint_init()
867 xhci_fm_runtime_reset(xhcip); in xhci_endpoint_ring()
884 xhci_t *xhcip = xep->xep_xhci; in xhci_endpoint_tick() local
959 mutex_exit(&xhcip->xhci_lock); in xhci_endpoint_tick()
983 mutex_exit(&xhcip->xhci_lock); in xhci_endpoint_tick()
[all …]
H A Dxhci_quirks.c45 xhci_quirks_populate(xhci_t *xhcip) in xhci_quirks_populate() argument
50 if (xqt->xqt_vendor == xhcip->xhci_vendor_id && in xhci_quirks_populate()
51 xqt->xqt_device == xhcip->xhci_device_id) { in xhci_quirks_populate()
52 xhcip->xhci_quirks = xqt->xqt_quirks; in xhci_quirks_populate()
65 xhci_reroute_intel(xhci_t *xhcip) in xhci_reroute_intel() argument
69 ports = pci_config_get32(xhcip->xhci_cfg_handle, in xhci_reroute_intel()
71 pci_config_put32(xhcip->xhci_cfg_handle, PCI_XHCI_INTEL_USB3_PSSEN, in xhci_reroute_intel()
74 ports = pci_config_get32(xhcip->xhci_cfg_handle, in xhci_reroute_intel()
76 pci_config_put32(xhcip->xhci_cfg_handle, PCI_XHCI_INTEL_XUSB2PR, in xhci_reroute_intel()
H A Dxhci_dma.c25 xhci_check_dma_handle(xhci_t *xhcip, xhci_dma_buffer_t *xdb) in xhci_check_dma_handle() argument
29 if (!DDI_FM_DMA_ERR_CAP(xhcip->xhci_fm_caps)) in xhci_check_dma_handle()
43 if (DDI_FM_DMA_ERR_CAP(xhcip->xhci_fm_caps)) { in xhci_dma_acc_attr()
66 if (xhcip->xhci_caps.xcap_flags & XCAP_AC64) { in xhci_dma_transfer_attr()
113 if (DDI_FM_DMA_ERR_CAP(xhcip->xhci_fm_caps)) { in xhci_dma_transfer_attr()
126 xhci_dma_dma_attr(xhci_t *xhcip, ddi_dma_attr_t *attrp) in xhci_dma_dma_attr() argument
155 xhci_dma_dma_attr(xhcip, attrp); in xhci_dma_scratchpad_attr()
201 xhci_dma_alloc(xhci_t *xhcip, xhci_dma_buffer_t *xdb, in xhci_dma_alloc() argument
269 VERIFY(xhcip != NULL); in xhci_transfer_free()
340 xhci_dma_acc_attr(xhcip, &acc); in xhci_transfer_alloc()
[all …]
H A Dxhci_ring.c132 xhci_ring_reset(xhci_t *xhcip, xhci_ring_t *xrp) in xhci_ring_reset() argument
151 if (xhci_check_dma_handle(xhcip, &xrp->xr_dma) != DDI_FM_OK) { in xhci_ring_reset()
152 ddi_fm_service_impact(xhcip->xhci_dip, DDI_SERVICE_LOST); in xhci_ring_reset()
160 xhci_ring_alloc(xhci_t *xhcip, xhci_ring_t *xrp) in xhci_ring_alloc() argument
169 xhci_dma_acc_attr(xhcip, &acc); in xhci_ring_alloc()
170 xhci_dma_transfer_attr(xhcip, &attr, XHCI_DEF_DMA_SGL); in xhci_ring_alloc()
172 if (xhci_dma_alloc(xhcip, &xrp->xr_dma, &attr, &acc, B_FALSE, in xhci_ring_alloc()
173 xhcip->xhci_caps.xcap_pagesize, B_FALSE) == B_FALSE) in xhci_ring_alloc()
176 xrp->xr_ntrb = xhcip->xhci_caps.xcap_pagesize / sizeof (xhci_trb_t); in xhci_ring_alloc()
/illumos-gate/usr/src/uts/common/sys/usb/hcd/xhci/
H A Dxhci.h916 extern void xhci_log(xhci_t *xhcip, const char *fmt, ...) __KPRINTFLIKE(2);
917 extern void xhci_error(xhci_t *xhcip, const char *fmt, ...) __KPRINTFLIKE(2);