Home
last modified time | relevance | path

Searched refs:sc_otg (Results 1 – 4 of 4) sorted by relevance

/freebsd/sys/arm/ti/am335x/
H A Dam335x_musb.c130 struct musbotg_softc sc_otg; member
141 if (sc->sc_otg.sc_mode == MUSB2_DEVICE_MODE) in musbotg_vbus_poll()
142 musbotg_vbus_interrupt(&sc->sc_otg, 1); in musbotg_vbus_poll()
145 musbotg_vbus_interrupt(&sc->sc_otg, stat & 1); in musbotg_vbus_poll()
251 sc->sc_otg.sc_id = device_get_unit(dev); in musbotg_attach()
294 sc->sc_otg.sc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, in musbotg_attach()
296 if (sc->sc_otg.sc_irq_res == NULL) { in musbotg_attach()
303 sc->sc_otg.sc_clocks_on = &musbotg_clocks_on; in musbotg_attach()
304 sc->sc_otg.sc_clocks_off = &musbotg_clocks_off; in musbotg_attach()
305 sc->sc_otg.sc_clocks_arg = &sc->sc_otg; in musbotg_attach()
[all …]
/freebsd/sys/dev/usb/controller/
H A Ddwc_otg_fdt.c102 sc->sc_otg.sc_bus.parent = dev; in dwc_otg_attach()
111 sc->sc_otg.sc_mode = DWC_MODE_HOST; in dwc_otg_attach()
113 sc->sc_otg.sc_mode = DWC_MODE_DEVICE; in dwc_otg_attach()
121 sc->sc_otg.sc_io_res = in dwc_otg_attach()
124 if (!(sc->sc_otg.sc_io_res)) in dwc_otg_attach()
138 sc->sc_otg.sc_irq_res = in dwc_otg_attach()
140 if (sc->sc_otg.sc_irq_res == NULL) in dwc_otg_attach()
143 sc->sc_otg.sc_bus.bdev = device_add_child(dev, "usbus", DEVICE_UNIT_ANY); in dwc_otg_attach()
144 if (sc->sc_otg.sc_bus.bdev == NULL) in dwc_otg_attach()
147 err = dwc_otg_init(&sc->sc_otg); in dwc_otg_attach()
[all …]
H A Ddwc_otg_fdt.h30 struct dwc_otg_softc sc_otg; /* must be first */ member
H A Ddwc_otg_hisi.c75 sc->sc_otg.sc_mode = DWC_MODE_HOST; in hisi_dwc_otg_attach()