Lines Matching refs:devs

932 	pepext = &sc->sc_hw.devs[index].endp[epno];  in xhci_check_transfer()
1401 hdev = &sc->sc_hw.devs[index]; in xhci_set_address()
2309 usbd_get_page(&sc->sc_hw.devs[index].input_pc, 0, &buf_inp); in xhci_configure_mask()
2338 if (x > sc->sc_hw.devs[index].context_num) in xhci_configure_mask()
2339 sc->sc_hw.devs[index].context_num = x; in xhci_configure_mask()
2341 x = sc->sc_hw.devs[index].context_num; in xhci_configure_mask()
2349 usb_pc_cpu_flush(&sc->sc_hw.devs[index].input_pc); in xhci_configure_mask()
2371 usbd_get_page(&sc->sc_hw.devs[index].input_pc, 0, &buf_inp); in xhci_configure_endpoint()
2507 usb_pc_cpu_flush(&sc->sc_hw.devs[index].input_pc); in xhci_configure_endpoint()
2574 pcinp = &sc->sc_hw.devs[index].input_pc; in xhci_configure_device()
2613 sc->sc_hw.devs[index].context_num + 1); in xhci_configure_device()
2627 if (sc->sc_hw.devs[index].nports != 0 && in xhci_configure_device()
2647 is_hub = sc->sc_hw.devs[index].nports != 0 && in xhci_configure_device()
2660 sc->sc_hw.devs[index].nports); in xhci_configure_device()
2665 switch (sc->sc_hw.devs[index].state) { in xhci_configure_device()
2686 sc->sc_hw.devs[index].tt); in xhci_configure_device()
2740 pc = &sc->sc_hw.devs[index].device_pc; in xhci_alloc_device_ext()
2741 pg = &sc->sc_hw.devs[index].device_pg; in xhci_alloc_device_ext()
2753 pc = &sc->sc_hw.devs[index].input_pc; in xhci_alloc_device_ext()
2754 pg = &sc->sc_hw.devs[index].input_pg; in xhci_alloc_device_ext()
2769 pc = &sc->sc_hw.devs[index].endpoint_pc[i]; in xhci_alloc_device_ext()
2770 pg = &sc->sc_hw.devs[index].endpoint_pg[i]; in xhci_alloc_device_ext()
2819 usb_pc_free_mem(&sc->sc_hw.devs[index].device_pc); in xhci_free_device_ext()
2820 usb_pc_free_mem(&sc->sc_hw.devs[index].input_pc); in xhci_free_device_ext()
2822 usb_pc_free_mem(&sc->sc_hw.devs[index].endpoint_pc[i]); in xhci_free_device_ext()
2843 pc = &sc->sc_hw.devs[index].endpoint_pc[epno]; in xhci_get_endpoint_ext()
2847 pepext = &sc->sc_hw.devs[index].endp[epno]; in xhci_get_endpoint_ext()
3846 pcinp = &sc->sc_hw.devs[index].input_pc; in xhci_configure_reset_endpoint()
4104 if (sc->sc_hw.devs[temp].state != XHCI_ST_DISABLED) { in xhci_device_init()
4116 memset(&sc->sc_hw.devs[temp], 0, sizeof(sc->sc_hw.devs[0])); in xhci_device_init()
4120 sc->sc_hw.devs[temp].state = XHCI_ST_ENABLED; in xhci_device_init()
4150 sc->sc_hw.devs[index].state = XHCI_ST_DISABLED; in xhci_device_uninit()
4257 err = uhub_query_info(udev, &sc->sc_hw.devs[index].nports, in xhci_device_state_change()
4258 &sc->sc_hw.devs[index].tt); in xhci_device_state_change()
4260 sc->sc_hw.devs[index].nports = 0; in xhci_device_state_change()
4267 if (sc->sc_hw.devs[index].state == XHCI_ST_DEFAULT) in xhci_device_state_change()
4271 sc->sc_hw.devs[index].state = XHCI_ST_DEFAULT; in xhci_device_state_change()
4274 sc->sc_hw.devs[index].context_num = 0; in xhci_device_state_change()
4285 if (sc->sc_hw.devs[index].state == XHCI_ST_ADDRESSED) in xhci_device_state_change()
4288 sc->sc_hw.devs[index].state = XHCI_ST_ADDRESSED; in xhci_device_state_change()
4303 if (sc->sc_hw.devs[index].state == XHCI_ST_CONFIGURED) in xhci_device_state_change()
4307 sc->sc_hw.devs[index].state = XHCI_ST_CONFIGURED; in xhci_device_state_change()
4310 sc->sc_hw.devs[index].context_num = 0; in xhci_device_state_change()
4312 usbd_get_page(&sc->sc_hw.devs[index].input_pc, 0, &buf_inp); in xhci_device_state_change()