Lines Matching refs:devs

979 	pepext = &sc->sc_hw.devs[index].endp[epno];  in xhci_check_transfer()
1445 hdev = &sc->sc_hw.devs[index]; in xhci_set_address()
2345 usbd_get_page(&sc->sc_hw.devs[index].input_pc, 0, &buf_inp); in xhci_configure_mask()
2375 if (x > sc->sc_hw.devs[index].context_num) in xhci_configure_mask()
2376 sc->sc_hw.devs[index].context_num = x; in xhci_configure_mask()
2378 x = sc->sc_hw.devs[index].context_num; in xhci_configure_mask()
2386 usb_pc_cpu_flush(&sc->sc_hw.devs[index].input_pc); in xhci_configure_mask()
2408 usbd_get_page(&sc->sc_hw.devs[index].input_pc, 0, &buf_inp); in xhci_configure_endpoint()
2545 usb_pc_cpu_flush(&sc->sc_hw.devs[index].input_pc); in xhci_configure_endpoint()
2612 pcinp = &sc->sc_hw.devs[index].input_pc; in xhci_configure_device()
2650 sc->sc_hw.devs[index].context_num + 1); in xhci_configure_device()
2664 if (sc->sc_hw.devs[index].nports != 0 && in xhci_configure_device()
2684 is_hub = sc->sc_hw.devs[index].nports != 0 && in xhci_configure_device()
2697 sc->sc_hw.devs[index].nports); in xhci_configure_device()
2706 sc->sc_hw.devs[index].tt); in xhci_configure_device()
2760 pc = &sc->sc_hw.devs[index].device_pc; in xhci_alloc_device_ext()
2761 pg = &sc->sc_hw.devs[index].device_pg; in xhci_alloc_device_ext()
2773 pc = &sc->sc_hw.devs[index].input_pc; in xhci_alloc_device_ext()
2774 pg = &sc->sc_hw.devs[index].input_pg; in xhci_alloc_device_ext()
2788 pc = &sc->sc_hw.devs[index].endpoint_pc[i]; in xhci_alloc_device_ext()
2789 pg = &sc->sc_hw.devs[index].endpoint_pg[i]; in xhci_alloc_device_ext()
2838 usb_pc_free_mem(&sc->sc_hw.devs[index].device_pc); in xhci_free_device_ext()
2839 usb_pc_free_mem(&sc->sc_hw.devs[index].input_pc); in xhci_free_device_ext()
2841 usb_pc_free_mem(&sc->sc_hw.devs[index].endpoint_pc[i]); in xhci_free_device_ext()
2862 pc = &sc->sc_hw.devs[index].endpoint_pc[epno]; in xhci_get_endpoint_ext()
2866 pepext = &sc->sc_hw.devs[index].endp[epno]; in xhci_get_endpoint_ext()
3833 hdev = &sc->sc_hw.devs[udev->controller_slot_id]; in xhci_get_endpoint_state()
3867 pcinp = &sc->sc_hw.devs[index].input_pc; in xhci_configure_reset_endpoint()
3950 sc->sc_hw.devs[index].ep_configured &= ~mask; in xhci_configure_reset_endpoint()
3960 if (!(sc->sc_hw.devs[index].ep_configured & mask)) { in xhci_configure_reset_endpoint()
3963 sc->sc_hw.devs[index].ep_configured |= mask; in xhci_configure_reset_endpoint()
4109 sc->sc_hw.devs[index].ep_configured &= ~(1U << epno); in xhci_ep_init()
4141 if (sc->sc_hw.devs[index].ep_configured & mask) { in xhci_ep_uninit()
4146 pcinp = &sc->sc_hw.devs[index].input_pc; in xhci_ep_uninit()
4153 sc->sc_hw.devs[index].ep_configured &= ~mask; in xhci_ep_uninit()
4215 if (sc->sc_hw.devs[temp].state != XHCI_ST_DISABLED) { in xhci_device_init()
4227 memset(&sc->sc_hw.devs[temp], 0, sizeof(sc->sc_hw.devs[0])); in xhci_device_init()
4231 sc->sc_hw.devs[temp].state = XHCI_ST_ENABLED; in xhci_device_init()
4261 sc->sc_hw.devs[index].state = XHCI_ST_DISABLED; in xhci_device_uninit()
4368 err = uhub_query_info(udev, &sc->sc_hw.devs[index].nports, in xhci_device_state_change()
4369 &sc->sc_hw.devs[index].tt); in xhci_device_state_change()
4371 sc->sc_hw.devs[index].nports = 0; in xhci_device_state_change()
4378 if (sc->sc_hw.devs[index].state == XHCI_ST_DEFAULT) in xhci_device_state_change()
4382 sc->sc_hw.devs[index].state = XHCI_ST_DEFAULT; in xhci_device_state_change()
4383 sc->sc_hw.devs[index].ep_configured = 3U; in xhci_device_state_change()
4386 sc->sc_hw.devs[index].context_num = 0; in xhci_device_state_change()
4397 if (sc->sc_hw.devs[index].state == XHCI_ST_ADDRESSED) in xhci_device_state_change()
4400 sc->sc_hw.devs[index].state = XHCI_ST_ADDRESSED; in xhci_device_state_change()
4401 sc->sc_hw.devs[index].ep_configured = 3U; in xhci_device_state_change()
4416 if (sc->sc_hw.devs[index].state == XHCI_ST_CONFIGURED) { in xhci_device_state_change()
4427 sc->sc_hw.devs[index].state = XHCI_ST_CONFIGURED; in xhci_device_state_change()
4428 sc->sc_hw.devs[index].ep_configured = 3U; in xhci_device_state_change()
4431 sc->sc_hw.devs[index].context_num = 0; in xhci_device_state_change()
4433 usbd_get_page(&sc->sc_hw.devs[index].input_pc, 0, &buf_inp); in xhci_device_state_change()