Home
last modified time | relevance | path

Searched refs:up_dev (Results 1 – 23 of 23) sorted by relevance

/netbsd-src/sys/dev/usb/
H A Dusbdi.c216 usbd_dump_device(pipe->up_dev); in usbd_dump_pipe()
349 pipe->up_dev->ud_addr); in usbd_close_pipe()
359 usb_rem_task_wait(pipe->up_dev, &pipe->up_async_task, USB_TASKQ_DRIVER, in usbd_close_pipe()
361 usbd_endpoint_release(pipe->up_dev, pipe->up_endpoint); in usbd_close_pipe()
364 kmem_free(pipe, pipe->up_dev->ud_bus->ub_pipesize); in usbd_close_pipe()
413 if (pipe->up_dev->ud_bus->ub_usepolling == 0) in usbd_transfer()
421 KASSERT(pipe->up_dev->ud_bus->ub_usepolling == 0); in usbd_transfer()
448 if (pipe->up_dev->ud_bus->ub_usepolling == 0) in usbd_transfer()
459 if (pipe->up_dev->ud_bus->ub_usepolling == 0) in usbd_transfer()
468 if (pipe->up_dev->ud_bus->ub_usepolling == 0) in usbd_transfer()
[all …]
H A Duhub.c469 up->up_dev = NULL; in uhub_attach()
566 subdev = dev->ud_hub->uh_ports[port - 1].up_dev; in uhub_explore()
625 if (up->up_dev != NULL && up->up_dev->ud_hub != NULL) in uhub_explore()
626 up->up_dev->ud_hub->uh_explore(up->up_dev); in uhub_explore()
687 if (up->up_dev != NULL && up->up_dev->ud_hub != NULL) in uhub_explore()
688 up->up_dev->ud_hub->uh_explore(up->up_dev); in uhub_explore()
705 if (up->up_dev != NULL) { in uhub_explore()
709 device_unit(sc->sc_dev), up->up_dev->ud_addr, port, in uhub_explore()
876 if (up->up_dev->ud_hub) in uhub_explore()
877 up->up_dev->ud_hub->uh_explore(up->up_dev); in uhub_explore()
[all …]
H A Dusbdivar.h136 struct usbd_device *up_dev; /* Connected device */ member
245 struct usbd_device *up_dev; member
406 #define usbd_lock_pipe(p) mutex_enter((p)->up_dev->ud_bus->ub_lock)
407 #define usbd_unlock_pipe(p) mutex_exit((p)->up_dev->ud_bus->ub_lock)
H A Dmotgvar.h114 #define MOTG_PIPE2SC(pipe) MOTG_BUS2SC((pipe)->up_dev->ud_bus)
116 #define MOTG_MPIPE2SC(mpipe) MOTG_BUS2SC((mpipe)->pipe.up_dev->ud_bus)
H A Duhcivar.h92 #define UHCI_PIPE2SC(pipe) UHCI_BUS2SC((pipe)->up_dev->ud_bus)
94 #define UHCI_UPIPE2SC(d) UHCI_BUS2SC((d)->pipe.up_dev->ud_bus)
H A Dxhcivar.h59 #define XHCI_PIPE2SC(pipe) XHCI_BUS2SC((pipe)->up_dev->ud_bus)
62 #define XHCI_XPIPE2SC(d) XHCI_BUS2SC((d)->xp_pipe.up_dev->ud_bus)
H A Dxhci.c1856 struct xhci_slot * const xs = pipe->up_dev->ud_hcpriv; in xhci_configure_endpoint()
1899 struct xhci_slot * const xs = pipe->up_dev->ud_hcpriv;
1914 struct xhci_slot * const xs = pipe->up_dev->ud_hcpriv; in xhci_reset_endpoint()
1968 struct xhci_slot * const xs = pipe->up_dev->ud_hcpriv; in xhci_stop_endpoint()
1991 struct xhci_slot * const xs = pipe->up_dev->ud_hcpriv; in xhci_set_dequeue()
2025 struct usbd_device * const dev = pipe->up_dev; in xhci_open()
2028 struct xhci_slot * const xs = pipe->up_dev->ud_hcpriv; in xhci_open()
2115 struct xhci_slot * const xs = pipe->up_dev->ud_hcpriv; in xhci_close_pipe()
2123 usb_rem_task_wait(pipe->up_dev, &xp->xp_async_task, USB_TASKQ_HC, in xhci_close_pipe()
2139 if (pipe->up_dev in xhci_close_pipe()
[all...]
H A Dmotg.c525 uint8_t rhaddr = pipe->up_dev->ud_bus->ub_rhaddr; in motg_open()
530 pipe->up_dev->ud_addr, ed->bEndpointAddress, rhaddr); in motg_open()
538 if (pipe->up_dev->ud_addr == rhaddr) { in motg_open()
1122 if (pipe->up_dev == NULL || pipe->up_dev->ud_bus == NULL) in motg_hub_change()
1171 struct usbd_device *dev = otgpipe->pipe.up_dev; in motg_setup_endpoint_tx()
1219 struct usbd_device *dev = xfer->ux_pipe->up_dev; in motg_setup_endpoint_rx()
1353 xfer->ux_pipe->up_dev->ud_speed, in motg_device_ctrl_start1()
1354 xfer->ux_pipe->up_dev->ud_addr, 0); in motg_device_ctrl_start1()
1795 xfer->ux_pipe->up_dev->ud_speed, in motg_device_data_start1()
1796 xfer->ux_pipe->up_dev->ud_addr, 0, 0); in motg_device_data_start1()
H A Dusb_subr.c948 p->up_dev = dev; in usbd_setup_pipe_flags()
1097 if (hub->uh_ports[p-1].up_dev == dev) { in usbd_properties()
1453 up->up_dev = dev; in usbd_new_device()
1462 if (hub->ud_hub->uh_ports[p - 1].up_dev == adev) { in usbd_new_device()
1670 up->up_dev = NULL; in usbd_remove_device()
1807 if (p->up_dev) in usbd_fill_deviceinfo()
1808 err = p->up_dev->ud_addr; in usbd_fill_deviceinfo()
1892 struct usbd_device *dev = up->up_dev; in usb_disconnect_port()
1929 up->up_dev = NULL; in usb_disconnect_port()
H A Dehcivar.h128 #define EHCI_PIPE2SC(pipe) EHCI_BUS2SC((pipe)->up_dev->ud_bus)
130 #define EHCI_EPIPE2SC(epipe) EHCI_BUS2SC((epipe)->pipe.up_dev->ud_bus)
H A Dohcivar.h167 #define OHCI_PIPE2SC(pipe) OHCI_BUS2SC((pipe)->up_dev->ud_bus)
H A Duhci.c960 if (pipe->up_dev == NULL) { in uhci_dump_ii()
961 printf("ux %p: done=%d pipe=%p pipe->up_dev=NULL\n", in uhci_dump_ii()
966 dev = pipe->up_dev; in uhci_dump_ii()
1720 xfer->ux_pipe->up_dev->ud_addr, in uhci_idone()
2091 int addr = xfer->ux_pipe->up_dev->ud_addr; in uhci_reset_std_chain()
2095 if (pipe->up_dev->ud_speed == USB_SPEED_LOW) in uhci_reset_std_chain()
2388 usb_delay_ms_locked(upipe->pipe.up_dev->ud_bus, 2, &sc->sc_lock); in uhci_abortx()
2418 struct usbd_device *dev = upipe->pipe.up_dev; in uhci_device_ctrl_init()
2477 struct usbd_device *dev = upipe->pipe.up_dev; in uhci_device_ctrl_start()
3062 int addr = upipe->pipe.up_dev in uhci_setup_isoc()
[all...]
H A Dvhci.c388 struct usbd_device *dev = pipe->up_dev; in vhci_open()
605 struct usbd_device *dev = xfer->ux_pipe->up_dev; in vhci_device_ctrl_start()
749 vhci_softc_t *sc __diagused = pipe->up_dev->ud_bus->ub_hcpriv; in vhci_root_intr_close()
H A Dusb.c497 dev = sc->sc_port.up_dev; in usb_doattach()
1393 if ((dev = sc->sc_port.up_dev) == NULL || dev->ud_subdevlen == 0) in usb_childdet()
1411 if (sc->sc_port.up_dev != NULL && in usb_detach()
H A Dehci.c1295 xfer->ux_pipe->up_dev->ud_pipe0 != xfer->ux_pipe) { in ehci_idone()
1311 xfer->ux_pipe->up_dev->ud_addr, in ehci_idone()
1960 struct usbd_device *dev = pipe->up_dev;
3558 if (xfer->ux_pipe->up_dev->ud_speed == USB_SPEED_HIGH) { in ehci_abort_isoc_xfer()
3731 len, epipe->pipe.up_dev->ud_addr, in ehci_device_ctrl_start()
3736 KASSERTMSG(EHCI_QH_GET_ADDR(le32toh(sqh->qh->qh_endp)) == epipe->pipe.up_dev->ud_addr, in ehci_device_ctrl_start()
3739 epipe->pipe.up_dev->ud_addr); in ehci_device_ctrl_start()
4298 struct usbd_device *dev = xfer->ux_pipe->up_dev; in ehci_device_fs_isoc_init()
4401 struct usbd_device *dev = xfer->ux_pipe->up_dev; in ehci_device_fs_isoc_transfer()
4715 EHCI_ITD_SET_DADDR(epipe->pipe.up_dev in ehci_device_isoc_fini()
[all...]
H A Dusbroothub.c355 struct usbd_bus *bus = pipe->up_dev->ud_bus; in roothub_ctrl_start()
H A Dohci.c547 xfer->ux_pipe->up_dev->ud_addr, in ohci_alloc_std_chain()
549 length, xfer->ux_pipe->up_dev->ud_speed); in ohci_alloc_std_chain()
616 xfer->ux_pipe->up_dev->ud_addr, in ohci_reset_std_chain()
618 alen, xfer->ux_pipe->up_dev->ud_speed); in ohci_reset_std_chain()
2079 struct usbd_device *dev = pipe->up_dev; in ohci_open()
2794 struct usbd_device *dev __diagused = opipe->pipe.up_dev; in ohci_device_ctrl_start()
/netbsd-src/sys/external/bsd/dwc2/
H A Ddwc2var.h61 #define DWC2_PIPE2SC(pipe) DWC2_BUS2SC((pipe)->up_dev->ud_bus)
63 #define DWC2_DPIPE2SC(d) DWC2_BUS2SC((d)->pipe.up_dev->ud_bus)
H A Ddwc2.c372 struct usbd_device *dev = pipe->up_dev; in dwc2_open()
451 struct dwc2_softc *sc __diagused = pipe->up_dev->ud_bus->ub_hcpriv; in dwc2_close_pipe()
807 struct usbd_device *dev = dpipe->pipe.up_dev; in dwc2_device_intr_start()
897 struct usbd_device *dev = xfer->ux_pipe->up_dev; in dwc2_device_start()
1367 struct usbd_device *dev = dpipe->pipe.up_dev; in dwc2_host_hub_info()
1377 struct usbd_device *dev = dpipe->pipe.up_dev; in dwc2_host_get_speed()
/netbsd-src/sys/arch/mips/adm5120/dev/
H A Dahci.c357 struct usbd_device *dev = pipe->up_dev; in ahci_open()
415 #define AHCI_PIPE2SC(pipe) AHCI_BUS2SC((pipe)->up_dev->ud_bus)
417 #define AHCI_APIPE2SC(ap) AHCI_BUS2SC((d)->pipe.up_dev->ud_bus)
869 ep->control = pipe->up_dev->ud_addr | \ in ahci_device_ctrl_start()
870 ((pipe->up_dev->ud_speed==USB_SPEED_FULL)?ADMHCD_ED_SPEED:0) | \ in ahci_device_ctrl_start()
1188 ep->control = pipe->up_dev->ud_addr | ((endpt & 0xf) << ADMHCD_ED_EPSHIFT)|\ in ahci_device_bulk_start()
1189 ((pipe->up_dev->ud_speed==USB_SPEED_FULL)?ADMHCD_ED_SPEED:0) | \ in ahci_device_bulk_start()
1343 uint8_t devaddr = pipe->up_dev->ud_addr; in ahci_transaction()
1370 if ((sc->sc_fullspeed) && pipe->up_dev->ud_speed == USB_SPEED_LOW) { in ahci_transaction()
/netbsd-src/sys/compat/common/
H A Dusb_subr_30.c179 if (p->up_dev) in usbd_fill_deviceinfo30()
180 err = p->up_dev->ud_addr; in usbd_fill_deviceinfo30()
/netbsd-src/sys/rump/dev/lib/libugenhc/
H A Dugenhc.c122 #define UGENHC_PIPE2SC(pipe) UGENHC_BUS2SC((pipe)->up_dev->ud_bus)
768 struct usbd_device *dev = pipe->up_dev; in ugenhc_open()
/netbsd-src/sys/dev/ic/
H A Dsl811hs.c281 #define SLHCI_PIPE2SC(pipe) SLHCI_BUS2SC((pipe)->up_dev->ud_bus)
885 spipe->tregs[DEV] = pipe->up_dev->ud_addr; in slhci_start()
965 UL_SLASSERT(pipe->up_dev->ud_speed == USB_SPEED_FULL, sc, in slhci_start()
1031 dev = pipe->up_dev; in slhci_open()
1377 *)pipe->up_dev->ud_bus; in slhci_clear_toggle()