Lines Matching refs:dwc2_hsotg

46 static inline struct dwc2_hsotg *to_hsotg(struct usb_gadget *gadget)
48 return container_of(gadget, struct dwc2_hsotg, gadget);
51 static inline void dwc2_set_bit(struct dwc2_hsotg *hsotg, u32 offset, u32 val)
56 static inline void dwc2_clear_bit(struct dwc2_hsotg *hsotg, u32 offset, u32 val)
61 static inline struct dwc2_hsotg_ep *index_to_ep(struct dwc2_hsotg *hsotg,
71 static void dwc2_hsotg_dump(struct dwc2_hsotg *hsotg);
92 static inline bool using_dma(struct dwc2_hsotg *hsotg)
103 static inline bool using_desc_dma(struct dwc2_hsotg *hsotg)
117 struct dwc2_hsotg *hsotg = hs_ep->parent;
144 struct dwc2_hsotg *hsotg = hs_ep->parent;
161 static void dwc2_hsotg_en_gsint(struct dwc2_hsotg *hsotg, u32 ints)
179 static void dwc2_hsotg_disable_gsint(struct dwc2_hsotg *hsotg, u32 ints)
200 static void dwc2_hsotg_ctrl_epint(struct dwc2_hsotg *hsotg,
226 int dwc2_hsotg_tx_fifo_count(struct dwc2_hsotg *hsotg)
242 int dwc2_hsotg_tx_fifo_total_depth(struct dwc2_hsotg *hsotg)
267 static void dwc2_gadget_wkup_alert_handler(struct dwc2_hsotg *hsotg)
289 int dwc2_hsotg_tx_fifo_average_depth(struct dwc2_hsotg *hsotg)
308 static void dwc2_hsotg_init_fifo(struct dwc2_hsotg *hsotg)
430 static void dwc2_hsotg_unmap_dma(struct dwc2_hsotg *hsotg,
447 static int dwc2_gadget_alloc_ctrl_desc_chains(struct dwc2_hsotg *hsotg)
503 static int dwc2_hsotg_write_fifo(struct dwc2_hsotg *hsotg,
705 static u32 dwc2_hsotg_read_frameno(struct dwc2_hsotg *hsotg)
913 struct dwc2_hsotg *hsotg = hs_ep->parent;
982 struct dwc2_hsotg *hsotg = hs_ep->parent;
1033 static void dwc2_hsotg_complete_request(struct dwc2_hsotg *hsotg,
1048 static void dwc2_hsotg_start_req(struct dwc2_hsotg *hsotg,
1263 static int dwc2_hsotg_map_dma(struct dwc2_hsotg *hsotg,
1283 static int dwc2_hsotg_handle_unaligned_buf_start(struct dwc2_hsotg *hsotg,
1316 dwc2_hsotg_handle_unaligned_buf_complete(struct dwc2_hsotg *hsotg,
1348 struct dwc2_hsotg *hsotg = hs_ep->parent;
1375 static int dwc2_gadget_set_ep0_desc_chain(struct dwc2_hsotg *hsotg,
1407 struct dwc2_hsotg *hs = hs_ep->parent;
1526 struct dwc2_hsotg *hs = hs_ep->parent;
1557 struct dwc2_hsotg *hsotg = hs_ep->parent;
1572 static struct dwc2_hsotg_ep *ep_from_windex(struct dwc2_hsotg *hsotg,
1593 int dwc2_hsotg_set_test_mode(struct dwc2_hsotg *hsotg, int testmode)
1623 static int dwc2_hsotg_send_reply(struct dwc2_hsotg *hsotg,
1666 static int dwc2_hsotg_process_req_status(struct dwc2_hsotg *hsotg,
1744 struct dwc2_hsotg *hsotg = hs_ep->parent;
1770 static int dwc2_hsotg_process_req_feature(struct dwc2_hsotg *hsotg,
1881 static void dwc2_hsotg_enqueue_setup(struct dwc2_hsotg *hsotg);
1889 static void dwc2_hsotg_stall_ep0(struct dwc2_hsotg *hsotg)
1928 static void dwc2_hsotg_process_control(struct dwc2_hsotg *hsotg,
2012 struct dwc2_hsotg *hsotg = hs_ep->parent;
2034 static void dwc2_hsotg_enqueue_setup(struct dwc2_hsotg *hsotg)
2066 static void dwc2_hsotg_program_zlp(struct dwc2_hsotg *hsotg,
2114 static void dwc2_hsotg_complete_request(struct dwc2_hsotg *hsotg,
2179 struct dwc2_hsotg *hsotg = hs_ep->parent;
2238 struct dwc2_hsotg *hsotg = hs_ep->parent;
2259 static void dwc2_hsotg_rx_data(struct dwc2_hsotg *hsotg, int ep_idx, int size)
2323 static void dwc2_hsotg_ep0_zlp(struct dwc2_hsotg *hsotg, bool dir_in)
2342 struct dwc2_hsotg *hsotg = hs_ep->parent;
2386 static void dwc2_hsotg_handle_outdone(struct dwc2_hsotg *hsotg, int epnum)
2477 static void dwc2_hsotg_handle_rx(struct dwc2_hsotg *hsotg)
2577 static void dwc2_hsotg_set_ep_maxpacket(struct dwc2_hsotg *hsotg,
2629 static void dwc2_hsotg_txfifo_flush(struct dwc2_hsotg *hsotg, unsigned int idx)
2648 static int dwc2_hsotg_trytx(struct dwc2_hsotg *hsotg,
2681 static void dwc2_hsotg_complete_in(struct dwc2_hsotg *hsotg,
2788 static u32 dwc2_gadget_read_ep_interrupts(struct dwc2_hsotg *hsotg,
2822 struct dwc2_hsotg *hsotg = hs_ep->parent;
2886 struct dwc2_hsotg *hsotg = ep->parent;
2935 static void dwc2_hsotg_ep_stop_xfr(struct dwc2_hsotg *hsotg,
2954 struct dwc2_hsotg *hsotg = hs_ep->parent;
3035 static void dwc2_hsotg_epint(struct dwc2_hsotg *hsotg, unsigned int idx,
3196 static void dwc2_hsotg_irq_enumdone(struct dwc2_hsotg *hsotg)
3282 static void kill_all_requests(struct dwc2_hsotg *hsotg,
3311 void dwc2_hsotg_disconnect(struct dwc2_hsotg *hsotg)
3342 static void dwc2_hsotg_irq_fifoempty(struct dwc2_hsotg *hsotg, bool periodic)
3380 void dwc2_hsotg_core_init_disconnected(struct dwc2_hsotg *hsotg,
3587 void dwc2_hsotg_core_disconnect(struct dwc2_hsotg *hsotg)
3593 void dwc2_hsotg_core_connect(struct dwc2_hsotg *hsotg)
3613 static void dwc2_gadget_handle_incomplete_isoc_in(struct dwc2_hsotg *hsotg)
3656 static void dwc2_gadget_handle_incomplete_isoc_out(struct dwc2_hsotg *hsotg)
3703 struct dwc2_hsotg *hsotg = pw;
3904 static void dwc2_hsotg_ep_stop_xfr(struct dwc2_hsotg *hsotg,
4008 struct dwc2_hsotg *hsotg = hs_ep->parent;
4237 struct dwc2_hsotg *hsotg = hs_ep->parent;
4285 struct dwc2_hsotg *hsotg = hs_ep->parent;
4321 struct dwc2_hsotg *hs = hs_ep->parent;
4351 struct dwc2_hsotg *hs = hs_ep->parent;
4377 struct dwc2_hsotg *hs = hs_ep->parent;
4456 struct dwc2_hsotg *hs = hs_ep->parent;
4483 static void dwc2_hsotg_init(struct dwc2_hsotg *hsotg)
4523 struct dwc2_hsotg *hsotg = to_hsotg(gadget);
4587 struct dwc2_hsotg *hsotg = to_hsotg(gadget);
4640 struct dwc2_hsotg *hsotg = to_hsotg(gadget);
4659 struct dwc2_hsotg *hsotg = to_hsotg(gadget);
4692 struct dwc2_hsotg *hsotg = to_hsotg(gadget);
4736 struct dwc2_hsotg *hsotg = to_hsotg(gadget);
4745 struct dwc2_hsotg *hsotg = to_hsotg(g);
4787 static void dwc2_hsotg_initep(struct dwc2_hsotg *hsotg,
4859 static int dwc2_hsotg_hw_cfg(struct dwc2_hsotg *hsotg)
4914 static void dwc2_hsotg_dump(struct dwc2_hsotg *hsotg)
4965 int dwc2_gadget_init(struct dwc2_hsotg *hsotg)
5071 int dwc2_hsotg_remove(struct dwc2_hsotg *hsotg)
5079 int dwc2_hsotg_suspend(struct dwc2_hsotg *hsotg)
5110 int dwc2_hsotg_resume(struct dwc2_hsotg *hsotg)
5141 int dwc2_backup_device_registers(struct dwc2_hsotg *hsotg)
5197 int dwc2_restore_device_registers(struct dwc2_hsotg *hsotg, int remote_wakeup)
5258 void dwc2_gadget_init_lpm(struct dwc2_hsotg *hsotg)
5286 void dwc2_gadget_program_ref_clk(struct dwc2_hsotg *hsotg)
5306 int dwc2_gadget_enter_hibernation(struct dwc2_hsotg *hsotg)
5379 int dwc2_gadget_exit_hibernation(struct dwc2_hsotg *hsotg,
5489 int dwc2_gadget_enter_partial_power_down(struct dwc2_hsotg *hsotg)
5551 int dwc2_gadget_exit_partial_power_down(struct dwc2_hsotg *hsotg,
5616 void dwc2_gadget_enter_clock_gating(struct dwc2_hsotg *hsotg)
5646 void dwc2_gadget_exit_clock_gating(struct dwc2_hsotg *hsotg, int rem_wakeup)