Home
last modified time | relevance | path

Searched refs:sc_io_hdl (Results 1 – 25 of 36) sorted by relevance

12

/freebsd/sys/dev/usb/controller/
H A Dehci.h332 bus_space_handle_t sc_io_hdl; member
364 #define EREAD1(sc, a) bus_space_read_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (a))
365 #define EREAD2(sc, a) bus_space_read_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (a))
366 #define EREAD4(sc, a) bus_space_read_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (a))
368 bus_space_write_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (a), (x))
370 bus_space_write_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (a), (x))
372 bus_space_write_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (a), (x))
374 bus_space_read_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (sc)->sc_offs+(a))
376 bus_space_read_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (sc)->sc_offs+(a))
378 bus_space_read_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (sc)->sc_offs+(a))
[all …]
H A Dehci_fsl.c157 tmp = bus_space_read_4(sc->sc_io_tag, sc->sc_io_hdl, USBMODE); in set_to_host_mode()
158 bus_space_write_4(sc->sc_io_tag, sc->sc_io_hdl, USBMODE, tmp | HOST_MODE); in set_to_host_mode()
201 tmp = bus_space_read_4(sc->sc_io_tag, sc->sc_io_hdl, PORTSC); in clear_port_power()
202 bus_space_write_4(sc->sc_io_tag, sc->sc_io_hdl, PORTSC, tmp & ~PORT_POWER_MASK); in clear_port_power()
266 &sc->sc_io_hdl); in fsl_ehci_attach()
389 if (sc->sc_io_tag && sc->sc_io_hdl) in fsl_ehci_detach()
390 bus_space_write_4(sc->sc_io_tag, sc->sc_io_hdl, EHCI_USBINTR, 0); in fsl_ehci_detach()
419 sc->sc_io_hdl = 0; in fsl_ehci_detach()
H A Dxhcireg.h211 bus_space_read_1((sc)->sc_io_tag, (sc)->sc_io_hdl, \
214 bus_space_read_2((sc)->sc_io_tag, (sc)->sc_io_hdl, \
217 bus_space_read_4((sc)->sc_io_tag, (sc)->sc_io_hdl, \
220 bus_space_write_1((sc)->sc_io_tag, (sc)->sc_io_hdl, \
223 bus_space_write_2((sc)->sc_io_tag, (sc)->sc_io_hdl, \
226 bus_space_write_4((sc)->sc_io_tag, (sc)->sc_io_hdl, \
H A Datmegadci.h176 bus_space_read_1((sc)->sc_io_tag, (sc)->sc_io_hdl, reg)
179 bus_space_write_1((sc)->sc_io_tag, (sc)->sc_io_hdl, reg, data)
182 bus_space_write_multi_1((sc)->sc_io_tag, (sc)->sc_io_hdl, reg, ptr, len)
185 bus_space_read_multi_1((sc)->sc_io_tag, (sc)->sc_io_hdl, reg, ptr, len)
267 bus_space_handle_t sc_io_hdl; member
H A Davr32dci.h142 bus_space_read_4((sc)->sc_io_tag, (sc)->sc_io_hdl, reg)
145 bus_space_write_4((sc)->sc_io_tag, (sc)->sc_io_hdl, reg, data)
148 bus_space_write_multi_4((sc)->sc_io_tag, (sc)->sc_io_hdl, reg, ptr, len)
151 bus_space_read_multi_4((sc)->sc_io_tag, (sc)->sc_io_hdl, reg, ptr, len)
235 bus_space_handle_t sc_io_hdl; member
H A Dmusb_otg.h289 bus_space_read_2((sc)->sc_io_tag, (sc)->sc_io_hdl, reg)
292 bus_space_write_2((sc)->sc_io_tag, (sc)->sc_io_hdl, reg, data)
295 bus_space_read_1((sc)->sc_io_tag, (sc)->sc_io_hdl, reg)
298 bus_space_write_1((sc)->sc_io_tag, (sc)->sc_io_hdl, reg, data)
406 bus_space_handle_t sc_io_hdl; member
H A Dmusb_otg.c487 bus_space_read_multi_1(sc->sc_io_tag, sc->sc_io_hdl, in musbotg_dev_ctrl_setup_rx()
606 bus_space_write_multi_1(sc->sc_io_tag, sc->sc_io_hdl, in musbotg_host_ctrl_setup_tx()
736 bus_space_read_multi_4(sc->sc_io_tag, sc->sc_io_hdl, in musbotg_dev_ctrl_data_rx()
749 bus_space_read_multi_1(sc->sc_io_tag, sc->sc_io_hdl, in musbotg_dev_ctrl_data_rx()
1037 bus_space_read_multi_1(sc->sc_io_tag, sc->sc_io_hdl, in musbotg_host_ctrl_data_rx()
1180 sc->sc_io_hdl, MUSB2_REG_EPFIFO(0), in musbotg_host_ctrl_data_tx()
1520 sc->sc_io_hdl, MUSB2_REG_EPFIFO(td->channel), in musbotg_dev_data_rx()
1547 bus_space_read_multi_1(sc->sc_io_tag, sc->sc_io_hdl, in musbotg_dev_data_rx()
1640 sc->sc_io_hdl, MUSB2_REG_EPFIFO(td->channel), in musbotg_dev_data_tx()
1865 sc->sc_io_hdl, MUSB2_REG_EPFIFO(td->channel), in musbotg_host_data_rx()
[all …]
H A Ddwc_otg.h46 bus_space_read_4((sc)->sc_io_tag, (sc)->sc_io_hdl, reg)
49 bus_space_write_4((sc)->sc_io_tag, (sc)->sc_io_hdl, reg, data)
175 bus_space_handle_t sc_io_hdl; member
H A Duss820dci.h264 bus_space_read_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (reg) * USS820_REG_STRIDE)
267 bus_space_write_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (reg) * USS820_REG_STRIDE, (data))
341 bus_space_handle_t sc_io_hdl; member
H A Duhci_pci.c313 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in uhci_pci_attach()
317 bus_space_write_2(sc->sc_io_tag, sc->sc_io_hdl, UHCI_INTR, 0); in uhci_pci_attach()
H A Dgeneric_ohci.c134 sc->ohci_sc.sc_io_hdl = rman_get_bushandle(sc->ohci_sc.sc_io_res); in generic_ohci_attach()
245 bus_space_write_4(sc->ohci_sc.sc_io_tag, sc->ohci_sc.sc_io_hdl, in generic_ohci_detach()
H A Dgeneric_ehci.c93 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in generic_ehci_attach()
H A Dgeneric_xhci.c91 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in generic_xhci_attach()
H A Dehci_msm.c124 sc->sc_io_size, &sc->sc_io_hdl) != 0) in ehci_msm_attach()
H A Duhci.h229 bus_space_handle_t sc_io_hdl; member
H A Dohci.h242 bus_space_handle_t sc_io_hdl; member
H A Dohci.c100 #define OBARR(sc) bus_space_barrier((sc)->sc_io_tag, (sc)->sc_io_hdl, 0, (sc)->sc_io_size, \
103 do { OBARR(sc); bus_space_write_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (r), (x)); } while (0)
105 do { OBARR(sc); bus_space_write_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (r), (x)); } while (0)
107 do { OBARR(sc); bus_space_write_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (r), (x)); } while (0)
108 #define OREAD1(sc, r) (OBARR(sc), bus_space_read_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (r)))
109 #define OREAD2(sc, r) (OBARR(sc), bus_space_read_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (r)))
110 #define OREAD4(sc, r) (OBARR(sc), bus_space_read_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (r)))
H A Dohci_pci.c233 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in ohci_pci_attach()
H A Duhci.c103 #define UBARR(sc) bus_space_barrier((sc)->sc_io_tag, (sc)->sc_io_hdl, 0, (sc)->sc_io_size, \
106 do { UBARR(sc); bus_space_write_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (r), (x)); \
109 do { UBARR(sc); bus_space_write_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (r), (x)); \
112 do { UBARR(sc); bus_space_write_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (r), (x)); \
114 #define UREAD1(sc, r) (UBARR(sc), bus_space_read_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (r)))
115 #define UREAD2(sc, r) (UBARR(sc), bus_space_read_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (r)))
116 #define UREAD4(sc, r) (UBARR(sc), bus_space_read_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (r)))
H A Dehci_mv.c188 sc->sc_io_size, &sc->sc_io_hdl) != 0) in mv_ehci_attach()
/freebsd/sys/arm/freescale/vybrid/
H A Dvf_ehci.c319 sc->sc_io_size, &sc->sc_io_hdl); in vybrid_ehci_attach()
349 reg = bus_space_read_4(sc->sc_io_tag, sc->sc_io_hdl, 0xA8); in vybrid_ehci_attach()
351 bus_space_write_4(sc->sc_io_tag, sc->sc_io_hdl, 0xA8, reg); in vybrid_ehci_attach()
404 if (sc->sc_io_tag && sc->sc_io_hdl) in vybrid_ehci_detach()
405 bus_space_write_4(sc->sc_io_tag, sc->sc_io_hdl, in vybrid_ehci_detach()
/freebsd/sys/powerpc/ps3/
H A Dohci_ps3.c103 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in ohci_ps3_attach()
133 bus_space_write_4(sc->sc_io_tag, sc->sc_io_hdl, in ohci_ps3_attach()
H A Dehci_ps3.c113 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in ehci_ps3_attach()
/freebsd/sys/arm/ti/usb/
H A Domap_ehci.c357 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in omap_ehci_attach()
/freebsd/sys/arm/xilinx/
H A Dzy7_ehci.c246 sc->sc_io_size, &sc->sc_io_hdl) != 0) in zy7_ehci_attach()

12