Lines Matching defs:xhci

272     XHCIState *xhci;  member
425 bool xhci_get_flag(XHCIState *xhci, enum xhci_flags bit) in xhci_get_flag()
430 void xhci_set_flag(XHCIState *xhci, enum xhci_flags bit) in xhci_set_flag()
435 static uint64_t xhci_mfindex_get(XHCIState *xhci) in xhci_mfindex_get()
441 static void xhci_mfwrap_update(XHCIState *xhci) in xhci_mfwrap_update()
459 XHCIState *xhci = opaque; in xhci_mfwrap_timer() local
466 static void xhci_die(XHCIState *xhci) in xhci_die()
490 static inline void xhci_dma_read_u32s(XHCIState *xhci, dma_addr_t addr, in xhci_dma_read_u32s()
511 static inline void xhci_dma_write_u32s(XHCIState *xhci, dma_addr_t addr, in xhci_dma_write_u32s()
533 static XHCIPort *xhci_lookup_port(XHCIState *xhci, struct USBPort *uport) in xhci_lookup_port()
555 static void xhci_intr_update(XHCIState *xhci, int v) in xhci_intr_update()
577 static void xhci_intr_raise(XHCIState *xhci, int v) in xhci_intr_raise()
602 static inline int xhci_running(XHCIState *xhci) in xhci_running()
607 static void xhci_write_event(XHCIState *xhci, XHCIEvent *event, int v) in xhci_write_event()
641 static void xhci_event(XHCIState *xhci, XHCIEvent *event, int v) in xhci_event()
684 static void xhci_ring_init(XHCIState *xhci, XHCIRing *ring, in xhci_ring_init()
691 static TRBType xhci_ring_fetch(XHCIState *xhci, XHCIRing *ring, XHCITRB *trb, in xhci_ring_fetch()
738 static int xhci_ring_chain_length(XHCIState *xhci, const XHCIRing *ring) in xhci_ring_chain_length()
802 static void xhci_er_reset(XHCIState *xhci, int v) in xhci_er_reset()
846 static void xhci_run(XHCIState *xhci) in xhci_run()
853 static void xhci_stop(XHCIState *xhci) in xhci_stop()
899 static int xhci_epmask_to_eps_with_streams(XHCIState *xhci, in xhci_epmask_to_eps_with_streams()
933 static void xhci_free_device_streams(XHCIState *xhci, unsigned int slotid, in xhci_free_device_streams()
945 static TRBCCode xhci_alloc_device_streams(XHCIState *xhci, unsigned int slotid, in xhci_alloc_device_streams()
1039 static void xhci_set_ep_state(XHCIState *xhci, XHCIEPContext *epctx, in xhci_set_ep_state()
1086 static XHCIEPContext *xhci_alloc_epctx(XHCIState *xhci, in xhci_alloc_epctx()
1126 static TRBCCode xhci_enable_ep(XHCIState *xhci, unsigned int slotid, in xhci_enable_ep()
1227 static int xhci_ep_nuke_xfers(XHCIState *xhci, unsigned int slotid, in xhci_ep_nuke_xfers()
1267 static TRBCCode xhci_disable_ep(XHCIState *xhci, unsigned int slotid, in xhci_disable_ep()
1304 static TRBCCode xhci_stop_ep(XHCIState *xhci, unsigned int slotid, in xhci_stop_ep()
1341 static TRBCCode xhci_reset_ep(XHCIState *xhci, unsigned int slotid, in xhci_reset_ep()
1390 static TRBCCode xhci_set_ep_dequeue(XHCIState *xhci, unsigned int slotid, in xhci_set_ep_dequeue()
1444 XHCIState *xhci = xfer->epctx->xhci; in xhci_xfer_create_sgl() local
1497 XHCIState *xhci = xfer->epctx->xhci; in xhci_xfer_report() local
1572 XHCIState *xhci = epctx->xhci; in xhci_stall_ep() local
1681 static int xhci_fire_ctl_transfer(XHCIState *xhci, XHCITransfer *xfer) in xhci_fire_ctl_transfer()
1734 static void xhci_calc_intr_kick(XHCIState *xhci, XHCITransfer *xfer, in xhci_calc_intr_kick()
1745 static void xhci_calc_iso_kick(XHCIState *xhci, XHCITransfer *xfer, in xhci_calc_iso_kick()
1767 static void xhci_check_intr_iso_kick(XHCIState *xhci, XHCITransfer *xfer, in xhci_check_intr_iso_kick()
1782 static int xhci_submit(XHCIState *xhci, XHCITransfer *xfer, XHCIEPContext *epctx) in xhci_submit()
1834 static int xhci_fire_transfer(XHCIState *xhci, XHCITransfer *xfer, XHCIEPContext *epctx) in xhci_fire_transfer()
1841 static void xhci_kick_ep(XHCIState *xhci, unsigned int slotid, in xhci_kick_ep()
1866 static bool xhci_slot_ok(XHCIState *xhci, int slotid) in xhci_slot_ok()
1875 XHCIState *xhci = epctx->xhci; in xhci_kick_epctx() local
2032 static TRBCCode xhci_enable_slot(XHCIState *xhci, unsigned int slotid) in xhci_enable_slot()
2043 static TRBCCode xhci_disable_slot(XHCIState *xhci, unsigned int slotid) in xhci_disable_slot()
2063 static USBPort *xhci_lookup_uport(XHCIState *xhci, uint32_t *slot_ctx) in xhci_lookup_uport()
2091 static TRBCCode xhci_address_slot(XHCIState *xhci, unsigned int slotid, in xhci_address_slot()
2197 static TRBCCode xhci_configure_slot(XHCIState *xhci, unsigned int slotid, in xhci_configure_slot()
2297 static TRBCCode xhci_evaluate_slot(XHCIState *xhci, unsigned int slotid, in xhci_evaluate_slot()
2365 static TRBCCode xhci_reset_slot(XHCIState *xhci, unsigned int slotid) in xhci_reset_slot()
2394 static unsigned int xhci_get_slot(XHCIState *xhci, XHCIEvent *event, XHCITRB *trb) in xhci_get_slot()
2411 static void xhci_detach_slot(XHCIState *xhci, USBPort *uport) in xhci_detach_slot()
2432 static TRBCCode xhci_get_port_bandwidth(XHCIState *xhci, uint64_t pctx) in xhci_get_port_bandwidth()
2470 static void xhci_process_commands(XHCIState *xhci) in xhci_process_commands()
2695 XHCIState *xhci = XHCI(dev); in xhci_reset() local
2741 XHCIState *xhci = ptr; in xhci_cap_read() local
2917 XHCIState *xhci = ptr; in xhci_oper_read() local
2960 XHCIState *xhci = XHCI(ptr); in xhci_oper_write() local
3029 XHCIState *xhci = ptr; in xhci_runtime_read() local
3076 XHCIState *xhci = ptr; in xhci_runtime_write() local
3150 XHCIState *xhci = ptr; in xhci_doorbell_write() local
3233 XHCIState *xhci = usbport->opaque; in xhci_attach() local
3241 XHCIState *xhci = usbport->opaque; in xhci_detach() local
3250 XHCIState *xhci = usbport->opaque; in xhci_wakeup() local
3279 XHCIState *xhci = container_of(bus, XHCIState, bus); in xhci_child_detach() local
3323 XHCIState *xhci = container_of(bus, XHCIState, bus); in xhci_wakeup_endpoint() local
3340 static void usb_xhci_init(XHCIState *xhci) in usb_xhci_init()
3390 XHCIState *xhci = XHCI(dev); in usb_xhci_realize() local
3444 XHCIState *xhci = XHCI(dev); in usb_xhci_unrealize() local
3472 XHCIState *xhci = opaque; in usb_xhci_post_load() local