Lines Matching refs:DWC2State
65 static inline void dwc2_update_irq(DWC2State *s) in dwc2_update_irq()
81 static inline void dwc2_raise_global_irq(DWC2State *s, uint32_t intr) in dwc2_raise_global_irq()
90 static inline void dwc2_lower_global_irq(DWC2State *s, uint32_t intr) in dwc2_lower_global_irq()
99 static inline void dwc2_raise_host_irq(DWC2State *s, uint32_t host_intr) in dwc2_raise_host_irq()
111 static inline void dwc2_lower_host_irq(DWC2State *s, uint32_t host_intr) in dwc2_lower_host_irq()
122 static inline void dwc2_update_hc_irq(DWC2State *s, int index) in dwc2_update_hc_irq()
134 static void dwc2_eof_timer(DWC2State *s) in dwc2_eof_timer()
140 static void dwc2_sof(DWC2State *s) in dwc2_sof()
151 DWC2State *s = opaque; in dwc2_frame_boundary()
169 static void dwc2_bus_start(DWC2State *s) in dwc2_bus_start()
177 static void dwc2_bus_stop(DWC2State *s) in dwc2_bus_stop()
183 static USBDevice *dwc2_find_device(DWC2State *s, uint8_t addr) in dwc2_find_device()
223 static void dwc2_handle_packet(DWC2State *s, uint32_t devadr, USBDevice *dev, in dwc2_handle_packet()
414 DWC2State *s = port->opaque; in dwc2_attach()
466 DWC2State *s = port->opaque; in dwc2_detach()
487 DWC2State *s = port->opaque; in dwc2_wakeup()
502 DWC2State *s = port->opaque; in dwc2_async_packet_complete()
535 static uint32_t dwc2_get_frame_remaining(DWC2State *s) in dwc2_get_frame_remaining()
569 DWC2State *s = opaque; in dwc2_work_bh()
611 static void dwc2_enable_chan(DWC2State *s, uint32_t index) in dwc2_enable_chan()
674 DWC2State *s = ptr; in dwc2_glbreg_read()
703 DWC2State *s = ptr; in dwc2_glbreg_write()
802 DWC2State *s = ptr; in dwc2_fszreg_read()
820 DWC2State *s = ptr; in dwc2_fszreg_write()
848 DWC2State *s = ptr; in dwc2_hreg0_read()
875 DWC2State *s = ptr; in dwc2_hreg0_write()
971 DWC2State *s = ptr; in dwc2_hreg1_read()
989 DWC2State *s = ptr; in dwc2_hreg1_write()
1066 DWC2State *s = ptr; in dwc2_pcgreg_read()
1084 DWC2State *s = ptr; in dwc2_pcgreg_write()
1209 DWC2State *s = container_of(bus, DWC2State, bus); in dwc2_wakeup_endpoint()
1223 DWC2State *s = opaque; in dwc2_work_timer()
1232 DWC2State *s = DWC2_USB(obj); in dwc2_reset_enter()
1316 DWC2State *s = DWC2_USB(obj); in dwc2_reset_hold()
1330 DWC2State *s = DWC2_USB(obj); in dwc2_reset_exit()
1348 DWC2State *s = DWC2_USB(dev); in dwc2_realize()
1381 DWC2State *s = DWC2_USB(obj); in dwc2_init()
1420 VMSTATE_UINT32_ARRAY(glbreg, DWC2State,
1422 VMSTATE_UINT32_ARRAY(fszreg, DWC2State,
1424 VMSTATE_UINT32_ARRAY(hreg0, DWC2State,
1426 VMSTATE_UINT32_ARRAY(hreg1, DWC2State,
1428 VMSTATE_UINT32_ARRAY(pcgreg, DWC2State,
1431 VMSTATE_TIMER_PTR(eof_timer, DWC2State),
1432 VMSTATE_TIMER_PTR(frame_timer, DWC2State),
1433 VMSTATE_INT64(sof_time, DWC2State),
1434 VMSTATE_INT64(usb_frame_time, DWC2State),
1435 VMSTATE_INT64(usb_bit_time, DWC2State),
1436 VMSTATE_UINT32(usb_version, DWC2State),
1437 VMSTATE_UINT16(frame_number, DWC2State),
1438 VMSTATE_UINT16(fi, DWC2State),
1439 VMSTATE_UINT16(next_chan, DWC2State),
1440 VMSTATE_BOOL(working, DWC2State),
1442 VMSTATE_STRUCT_ARRAY(packet, DWC2State, DWC2_NB_CHAN, 1,
1444 VMSTATE_UINT8_2DARRAY(usb_buf, DWC2State, DWC2_NB_CHAN,
1452 DEFINE_PROP_UINT32("usb_version", DWC2State, usb_version, 2),
1473 .instance_size = sizeof(DWC2State),