Lines Matching refs:devs

894 	pepext = &sc->sc_hw.devs[index].endp[epno];  in xhci_check_transfer()
1360 hdev = &sc->sc_hw.devs[index]; in xhci_set_address()
2260 usbd_get_page(&sc->sc_hw.devs[index].input_pc, 0, &buf_inp); in xhci_configure_mask()
2290 if (x > sc->sc_hw.devs[index].context_num) in xhci_configure_mask()
2291 sc->sc_hw.devs[index].context_num = x; in xhci_configure_mask()
2293 x = sc->sc_hw.devs[index].context_num; in xhci_configure_mask()
2301 usb_pc_cpu_flush(&sc->sc_hw.devs[index].input_pc); in xhci_configure_mask()
2323 usbd_get_page(&sc->sc_hw.devs[index].input_pc, 0, &buf_inp); in xhci_configure_endpoint()
2460 usb_pc_cpu_flush(&sc->sc_hw.devs[index].input_pc); in xhci_configure_endpoint()
2527 pcinp = &sc->sc_hw.devs[index].input_pc; in xhci_configure_device()
2565 sc->sc_hw.devs[index].context_num + 1); in xhci_configure_device()
2579 if (sc->sc_hw.devs[index].nports != 0 && in xhci_configure_device()
2599 is_hub = sc->sc_hw.devs[index].nports != 0 && in xhci_configure_device()
2612 sc->sc_hw.devs[index].nports); in xhci_configure_device()
2621 sc->sc_hw.devs[index].tt); in xhci_configure_device()
2675 pc = &sc->sc_hw.devs[index].device_pc; in xhci_alloc_device_ext()
2676 pg = &sc->sc_hw.devs[index].device_pg; in xhci_alloc_device_ext()
2688 pc = &sc->sc_hw.devs[index].input_pc; in xhci_alloc_device_ext()
2689 pg = &sc->sc_hw.devs[index].input_pg; in xhci_alloc_device_ext()
2703 pc = &sc->sc_hw.devs[index].endpoint_pc[i]; in xhci_alloc_device_ext()
2704 pg = &sc->sc_hw.devs[index].endpoint_pg[i]; in xhci_alloc_device_ext()
2753 usb_pc_free_mem(&sc->sc_hw.devs[index].device_pc); in xhci_free_device_ext()
2754 usb_pc_free_mem(&sc->sc_hw.devs[index].input_pc); in xhci_free_device_ext()
2756 usb_pc_free_mem(&sc->sc_hw.devs[index].endpoint_pc[i]); in xhci_free_device_ext()
2777 pc = &sc->sc_hw.devs[index].endpoint_pc[epno]; in xhci_get_endpoint_ext()
2781 pepext = &sc->sc_hw.devs[index].endp[epno]; in xhci_get_endpoint_ext()
3748 hdev = &sc->sc_hw.devs[udev->controller_slot_id]; in xhci_get_endpoint_state()
3782 pcinp = &sc->sc_hw.devs[index].input_pc; in xhci_configure_reset_endpoint()
3865 sc->sc_hw.devs[index].ep_configured &= ~mask; in xhci_configure_reset_endpoint()
3875 if (!(sc->sc_hw.devs[index].ep_configured & mask)) { in xhci_configure_reset_endpoint()
3878 sc->sc_hw.devs[index].ep_configured |= mask; in xhci_configure_reset_endpoint()
4024 sc->sc_hw.devs[index].ep_configured &= ~(1U << epno); in xhci_ep_init()
4056 if (sc->sc_hw.devs[index].ep_configured & mask) { in xhci_ep_uninit()
4061 pcinp = &sc->sc_hw.devs[index].input_pc; in xhci_ep_uninit()
4068 sc->sc_hw.devs[index].ep_configured &= ~mask; in xhci_ep_uninit()
4130 if (sc->sc_hw.devs[temp].state != XHCI_ST_DISABLED) { in xhci_device_init()
4142 memset(&sc->sc_hw.devs[temp], 0, sizeof(sc->sc_hw.devs[0])); in xhci_device_init()
4146 sc->sc_hw.devs[temp].state = XHCI_ST_ENABLED; in xhci_device_init()
4176 sc->sc_hw.devs[index].state = XHCI_ST_DISABLED; in xhci_device_uninit()
4283 err = uhub_query_info(udev, &sc->sc_hw.devs[index].nports, in xhci_device_state_change()
4284 &sc->sc_hw.devs[index].tt); in xhci_device_state_change()
4286 sc->sc_hw.devs[index].nports = 0; in xhci_device_state_change()
4293 if (sc->sc_hw.devs[index].state == XHCI_ST_DEFAULT) in xhci_device_state_change()
4297 sc->sc_hw.devs[index].state = XHCI_ST_DEFAULT; in xhci_device_state_change()
4298 sc->sc_hw.devs[index].ep_configured = 3U; in xhci_device_state_change()
4301 sc->sc_hw.devs[index].context_num = 0; in xhci_device_state_change()
4312 if (sc->sc_hw.devs[index].state == XHCI_ST_ADDRESSED) in xhci_device_state_change()
4315 sc->sc_hw.devs[index].state = XHCI_ST_ADDRESSED; in xhci_device_state_change()
4316 sc->sc_hw.devs[index].ep_configured = 3U; in xhci_device_state_change()
4331 if (sc->sc_hw.devs[index].state == XHCI_ST_CONFIGURED) { in xhci_device_state_change()
4342 sc->sc_hw.devs[index].state = XHCI_ST_CONFIGURED; in xhci_device_state_change()
4343 sc->sc_hw.devs[index].ep_configured = 3U; in xhci_device_state_change()
4346 sc->sc_hw.devs[index].context_num = 0; in xhci_device_state_change()
4348 usbd_get_page(&sc->sc_hw.devs[index].input_pc, 0, &buf_inp); in xhci_device_state_change()