/kernel/linux/linux-5.10/drivers/usb/dwc2/ |
H A D | core.c | 65 * @hsotg: Programming view of the DWC_otg controller 67 int dwc2_backup_global_registers(struct dwc2_hsotg *hsotg) in dwc2_backup_global_registers() argument 71 dev_dbg(hsotg->dev, "%s\n", __func__); in dwc2_backup_global_registers() 74 gr = &hsotg->gr_backup; in dwc2_backup_global_registers() 76 gr->gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_backup_global_registers() 77 gr->gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_backup_global_registers() 78 gr->gahbcfg = dwc2_readl(hsotg, GAHBCFG); in dwc2_backup_global_registers() 79 gr->gusbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_backup_global_registers() 80 gr->grxfsiz = dwc2_readl(hsotg, GRXFSIZ); in dwc2_backup_global_registers() 81 gr->gnptxfsiz = dwc2_readl(hsotg, GNPTXFSI in dwc2_backup_global_registers() 99 dwc2_restore_global_registers(struct dwc2_hsotg *hsotg) dwc2_restore_global_registers() argument 136 dwc2_exit_partial_power_down(struct dwc2_hsotg *hsotg, bool restore) dwc2_exit_partial_power_down() argument 189 dwc2_enter_partial_power_down(struct dwc2_hsotg *hsotg) dwc2_enter_partial_power_down() argument 251 dwc2_restore_essential_regs(struct dwc2_hsotg *hsotg, int rmode, int is_host) dwc2_restore_essential_regs() argument 319 dwc2_hib_restore_common(struct dwc2_hsotg *hsotg, int rem_wakeup, int is_host) dwc2_hib_restore_common() argument 385 dwc2_wait_for_mode(struct dwc2_hsotg *hsotg, bool host_mode) dwc2_wait_for_mode() argument 425 dwc2_iddig_filter_enabled(struct dwc2_hsotg *hsotg) dwc2_iddig_filter_enabled() argument 461 dwc2_enter_hibernation(struct dwc2_hsotg *hsotg, int is_host) dwc2_enter_hibernation() argument 482 dwc2_exit_hibernation(struct dwc2_hsotg *hsotg, int rem_wakeup, int reset, int is_host) dwc2_exit_hibernation() argument 495 dwc2_core_reset(struct dwc2_hsotg *hsotg, bool skip_wait) dwc2_core_reset() argument 588 dwc2_force_mode(struct dwc2_hsotg *hsotg, bool host) dwc2_force_mode() argument 636 dwc2_clear_force_mode(struct dwc2_hsotg *hsotg) dwc2_clear_force_mode() argument 657 dwc2_force_dr_mode(struct dwc2_hsotg *hsotg) dwc2_force_dr_mode() argument 685 dwc2_enable_acg(struct dwc2_hsotg *hsotg) dwc2_enable_acg() argument 704 dwc2_dump_host_registers(struct dwc2_hsotg *hsotg) dwc2_dump_host_registers() argument 777 dwc2_dump_global_registers(struct dwc2_hsotg *hsotg) dwc2_dump_global_registers() argument 868 dwc2_flush_tx_fifo(struct dwc2_hsotg *hsotg, const int num) dwc2_flush_tx_fifo() argument 896 dwc2_flush_rx_fifo(struct dwc2_hsotg *hsotg) dwc2_flush_rx_fifo() argument 919 dwc2_is_controller_alive(struct dwc2_hsotg *hsotg) dwc2_is_controller_alive() argument 933 dwc2_enable_global_interrupts(struct dwc2_hsotg *hsotg) dwc2_enable_global_interrupts() argument 947 dwc2_disable_global_interrupts(struct dwc2_hsotg *hsotg) dwc2_disable_global_interrupts() argument 956 dwc2_op_mode(struct dwc2_hsotg *hsotg) dwc2_op_mode() argument 965 dwc2_hw_is_otg(struct dwc2_hsotg *hsotg) dwc2_hw_is_otg() argument 975 dwc2_hw_is_host(struct dwc2_hsotg *hsotg) dwc2_hw_is_host() argument 984 dwc2_hw_is_device(struct dwc2_hsotg *hsotg) dwc2_hw_is_device() argument 1001 dwc2_hsotg_wait_bit_set(struct dwc2_hsotg *hsotg, u32 offset, u32 mask, u32 timeout) dwc2_hsotg_wait_bit_set() argument 1024 dwc2_hsotg_wait_bit_clear(struct dwc2_hsotg *hsotg, u32 offset, u32 mask, u32 timeout) dwc2_hsotg_wait_bit_clear() argument 1042 dwc2_init_fs_ls_pclk_sel(struct dwc2_hsotg *hsotg) dwc2_init_fs_ls_pclk_sel() argument 1064 dwc2_fs_phy_init(struct dwc2_hsotg *hsotg, bool select_phy) dwc2_fs_phy_init() argument 1134 dwc2_hs_phy_init(struct dwc2_hsotg *hsotg, bool select_phy) dwc2_hs_phy_init() argument 1191 dwc2_set_turnaround_time(struct dwc2_hsotg *hsotg) dwc2_set_turnaround_time() argument 1209 dwc2_phy_init(struct dwc2_hsotg *hsotg, bool select_phy) dwc2_phy_init() argument [all...] |
H A D | core_intr.c | 57 static const char *dwc2_op_state_str(struct dwc2_hsotg *hsotg) in dwc2_op_state_str() argument 59 switch (hsotg->op_state) { in dwc2_op_state_str() 80 * @hsotg: Programming view of DWC_otg controller 82 static void dwc2_handle_usb_port_intr(struct dwc2_hsotg *hsotg) in dwc2_handle_usb_port_intr() argument 84 u32 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_handle_usb_port_intr() 88 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_handle_usb_port_intr() 95 * @hsotg: Programming view of DWC_otg controller 97 static void dwc2_handle_mode_mismatch_intr(struct dwc2_hsotg *hsotg) in dwc2_handle_mode_mismatch_intr() argument 100 dwc2_writel(hsotg, GINTSTS_MODEMIS, GINTSTS); in dwc2_handle_mode_mismatch_intr() 102 dev_warn(hsotg in dwc2_handle_mode_mismatch_intr() 112 dwc2_handle_otg_intr(struct dwc2_hsotg *hsotg) dwc2_handle_otg_intr() argument 274 dwc2_handle_conn_id_status_change_intr(struct dwc2_hsotg *hsotg) dwc2_handle_conn_id_status_change_intr() argument 307 dwc2_handle_session_req_intr(struct dwc2_hsotg *hsotg) dwc2_handle_session_req_intr() argument 347 dwc2_wakeup_from_lpm_l1(struct dwc2_hsotg *hsotg) dwc2_wakeup_from_lpm_l1() argument 399 dwc2_handle_wakeup_detected_intr(struct dwc2_hsotg *hsotg) dwc2_handle_wakeup_detected_intr() argument 469 dwc2_handle_disconnect_intr(struct dwc2_hsotg *hsotg) dwc2_handle_disconnect_intr() argument 489 dwc2_handle_usb_suspend_intr(struct dwc2_hsotg *hsotg) dwc2_handle_usb_suspend_intr() argument 574 dwc2_handle_lpm_intr(struct dwc2_hsotg *hsotg) dwc2_handle_lpm_intr() argument 641 dwc2_read_common_intr(struct dwc2_hsotg *hsotg) dwc2_read_common_intr() argument 670 dwc_handle_gpwrdn_disc_det(struct dwc2_hsotg *hsotg, u32 gpwrdn) dwc_handle_gpwrdn_disc_det() argument 738 dwc2_handle_gpwrdn_intr(struct dwc2_hsotg *hsotg) dwc2_handle_gpwrdn_intr() argument 804 struct dwc2_hsotg *hsotg = dev; dwc2_handle_common_intr() local [all...] |
H A D | platform.c | 48 #include <linux/platform_data/s3c-hsotg.h> 82 static int dwc2_get_dr_mode(struct dwc2_hsotg *hsotg) in dwc2_get_dr_mode() argument 86 hsotg->dr_mode = usb_get_dr_mode(hsotg->dev); in dwc2_get_dr_mode() 87 if (hsotg->dr_mode == USB_DR_MODE_UNKNOWN) in dwc2_get_dr_mode() 88 hsotg->dr_mode = USB_DR_MODE_OTG; in dwc2_get_dr_mode() 90 mode = hsotg->dr_mode; in dwc2_get_dr_mode() 92 if (dwc2_hw_is_device(hsotg)) { in dwc2_get_dr_mode() 94 dev_err(hsotg->dev, in dwc2_get_dr_mode() 99 } else if (dwc2_hw_is_host(hsotg)) { in dwc2_get_dr_mode() 124 __dwc2_lowlevel_hw_enable(struct dwc2_hsotg *hsotg) __dwc2_lowlevel_hw_enable() argument 160 dwc2_lowlevel_hw_enable(struct dwc2_hsotg *hsotg) dwc2_lowlevel_hw_enable() argument 169 __dwc2_lowlevel_hw_disable(struct dwc2_hsotg *hsotg) __dwc2_lowlevel_hw_disable() argument 199 dwc2_lowlevel_hw_disable(struct dwc2_hsotg *hsotg) dwc2_lowlevel_hw_disable() argument 208 dwc2_lowlevel_hw_init(struct dwc2_hsotg *hsotg) dwc2_lowlevel_hw_init() argument 306 struct dwc2_hsotg *hsotg = platform_get_drvdata(dev); dwc2_driver_remove() local 342 struct dwc2_hsotg *hsotg = platform_get_drvdata(dev); dwc2_driver_shutdown() local 353 dwc2_check_core_endianness(struct dwc2_hsotg *hsotg) dwc2_check_core_endianness() argument 371 dwc2_check_core_version(struct dwc2_hsotg *hsotg) dwc2_check_core_version() argument 410 struct dwc2_hsotg *hsotg; dwc2_driver_probe() local [all...] |
H A D | hcd.c | 59 static void dwc2_port_resume(struct dwc2_hsotg *hsotg); 71 * @hsotg: Programming view of the DWC_otg controller 73 static void dwc2_enable_common_interrupts(struct dwc2_hsotg *hsotg) in dwc2_enable_common_interrupts() argument 78 dwc2_writel(hsotg, 0xffffffff, GOTGINT); in dwc2_enable_common_interrupts() 81 dwc2_writel(hsotg, 0xffffffff, GINTSTS); in dwc2_enable_common_interrupts() 86 if (!hsotg->params.host_dma) in dwc2_enable_common_interrupts() 88 if (!hsotg->params.external_id_pin_ctl) in dwc2_enable_common_interrupts() 94 if (dwc2_is_device_mode(hsotg) && hsotg->params.lpm) in dwc2_enable_common_interrupts() 97 dwc2_writel(hsotg, intms in dwc2_enable_common_interrupts() 100 dwc2_gahbcfg_init(struct dwc2_hsotg *hsotg) dwc2_gahbcfg_init() argument 134 dwc2_gusbcfg_init(struct dwc2_hsotg *hsotg) dwc2_gusbcfg_init() argument 169 dwc2_vbus_supply_init(struct dwc2_hsotg *hsotg) dwc2_vbus_supply_init() argument 177 dwc2_vbus_supply_exit(struct dwc2_hsotg *hsotg) dwc2_vbus_supply_exit() argument 190 dwc2_enable_host_interrupts(struct dwc2_hsotg *hsotg) dwc2_enable_host_interrupts() argument 214 dwc2_disable_host_interrupts(struct dwc2_hsotg *hsotg) dwc2_disable_host_interrupts() argument 231 dwc2_calculate_dynamic_fifo(struct dwc2_hsotg *hsotg) dwc2_calculate_dynamic_fifo() argument 290 dwc2_config_fifos(struct dwc2_hsotg *hsotg) dwc2_config_fifos() argument 361 dwc2_calc_frame_interval(struct dwc2_hsotg *hsotg) dwc2_calc_frame_interval() argument 408 dwc2_read_packet(struct dwc2_hsotg *hsotg, u8 *dest, u16 bytes) dwc2_read_packet() argument 437 dwc2_dump_channel_info(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_dump_channel_info() argument 497 dwc2_host_start(struct dwc2_hsotg *hsotg) dwc2_host_start() argument 505 dwc2_host_disconnect(struct dwc2_hsotg *hsotg) dwc2_host_disconnect() argument 512 dwc2_host_hub_info(struct dwc2_hsotg *hsotg, void *context, int *hub_addr, int *hub_port) dwc2_host_hub_info() argument 530 dwc2_hc_enable_slave_ints(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_hc_enable_slave_ints() argument 608 dwc2_hc_enable_dma_ints(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_hc_enable_dma_ints() argument 645 dwc2_hc_enable_ints(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_hc_enable_ints() argument 686 dwc2_hc_init(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_hc_init() argument 801 dwc2_hc_halt(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, enum dwc2_halt_status halt_status) dwc2_hc_halt() argument 965 dwc2_hc_cleanup(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_hc_cleanup() argument 993 dwc2_hc_set_even_odd_frame(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, u32 *hcchar) dwc2_hc_set_even_odd_frame() argument 1128 dwc2_hc_write_packet(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_hc_write_packet() argument 1174 dwc2_hc_do_ping(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_hc_do_ping() argument 1227 dwc2_hc_start_transfer(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_hc_start_transfer() argument 1442 dwc2_hc_start_transfer_ddma(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_hc_start_transfer_ddma() argument 1531 dwc2_hc_continue_transfer(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_hc_continue_transfer() argument 1605 dwc2_kill_urbs_in_qh_list(struct dwc2_hsotg *hsotg, struct list_head *qh_list) dwc2_kill_urbs_in_qh_list() argument 1620 dwc2_qh_list_free(struct dwc2_hsotg *hsotg, struct list_head *qh_list) dwc2_qh_list_free() argument 1663 dwc2_kill_all_urbs(struct dwc2_hsotg *hsotg) dwc2_kill_all_urbs() argument 1679 dwc2_hcd_start(struct dwc2_hsotg *hsotg) dwc2_hcd_start() argument 1699 dwc2_hcd_cleanup_channels(struct dwc2_hsotg *hsotg) dwc2_hcd_cleanup_channels() argument 1758 dwc2_hcd_connect(struct dwc2_hsotg *hsotg) dwc2_hcd_connect() argument 1775 dwc2_hcd_disconnect(struct dwc2_hsotg *hsotg, bool force) dwc2_hcd_disconnect() argument 1842 dwc2_hcd_rem_wakeup(struct dwc2_hsotg *hsotg) dwc2_hcd_rem_wakeup() argument 1860 dwc2_hcd_stop(struct dwc2_hsotg *hsotg) dwc2_hcd_stop() argument 1879 dwc2_hcd_urb_enqueue(struct dwc2_hsotg *hsotg, struct dwc2_hcd_urb *urb, struct dwc2_qh *qh, struct dwc2_qtd *qtd) dwc2_hcd_urb_enqueue() argument 1939 dwc2_hcd_urb_dequeue(struct dwc2_hsotg *hsotg, struct dwc2_hcd_urb *urb) dwc2_hcd_urb_dequeue() argument 1997 dwc2_hcd_endpoint_disable(struct dwc2_hsotg *hsotg, struct usb_host_endpoint *ep, int retry) dwc2_hcd_endpoint_disable() argument 2056 dwc2_hcd_endpoint_reset(struct dwc2_hsotg *hsotg, struct usb_host_endpoint *ep) dwc2_hcd_endpoint_reset() argument 2076 dwc2_core_init(struct dwc2_hsotg *hsotg, bool initial_setup) dwc2_core_init() argument 2164 dwc2_core_host_init(struct dwc2_hsotg *hsotg) dwc2_core_host_init() argument 2304 dwc2_hcd_reinit(struct dwc2_hsotg *hsotg) dwc2_hcd_reinit() argument 2340 dwc2_hc_init_split(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, struct dwc2_qtd *qtd, struct dwc2_hcd_urb *urb) dwc2_hc_init_split() argument 2354 dwc2_hc_init_xfer(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, struct dwc2_qtd *qtd) dwc2_hc_init_xfer() argument 2444 dwc2_alloc_split_dma_aligned_buf(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, struct dwc2_host_chan *chan) dwc2_alloc_split_dma_aligned_buf() argument 2579 dwc2_assign_and_init_hc(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_assign_and_init_hc() argument 2716 dwc2_hcd_select_transactions( struct dwc2_hsotg *hsotg) dwc2_hcd_select_transactions() argument 2817 dwc2_queue_transaction(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, u16 fifo_dwords_avail) dwc2_queue_transaction() argument 2879 dwc2_process_periodic_channels(struct dwc2_hsotg *hsotg) dwc2_process_periodic_channels() argument 3013 dwc2_process_non_periodic_channels(struct dwc2_hsotg *hsotg) dwc2_process_non_periodic_channels() argument 3137 dwc2_hcd_queue_transactions(struct dwc2_hsotg *hsotg, enum dwc2_transaction_type tr_type) dwc2_hcd_queue_transactions() argument 3168 struct dwc2_hsotg *hsotg = container_of(work, struct dwc2_hsotg, dwc2_conn_id_status_change() local 3250 struct dwc2_hsotg *hsotg = from_timer(hsotg, t, wkp_timer); dwc2_wakeup_detected() local 3273 dwc2_host_is_b_hnp_enabled(struct dwc2_hsotg *hsotg) dwc2_host_is_b_hnp_enabled() argument 3281 dwc2_port_suspend(struct dwc2_hsotg *hsotg, u16 windex) dwc2_port_suspend() argument 3332 dwc2_port_resume(struct dwc2_hsotg *hsotg) dwc2_port_resume() argument 3370 dwc2_hcd_hub_control(struct dwc2_hsotg *hsotg, u16 typereq, u16 wvalue, u16 windex, char *buf, u16 wlength) dwc2_hcd_hub_control() argument 3724 dwc2_hcd_is_status_changed(struct dwc2_hsotg *hsotg, int port) dwc2_hcd_is_status_changed() argument 3755 dwc2_hcd_get_frame_number(struct dwc2_hsotg *hsotg) dwc2_hcd_get_frame_number() argument 3766 dwc2_hcd_get_future_frame_number(struct dwc2_hsotg *hsotg, int us) dwc2_hcd_get_future_frame_number() argument 3795 dwc2_hcd_is_b_host(struct dwc2_hsotg *hsotg) dwc2_hcd_is_b_host() argument 3800 dwc2_hcd_urb_alloc(struct dwc2_hsotg *hsotg, int iso_desc_count, gfp_t mem_flags) dwc2_hcd_urb_alloc() argument 3812 dwc2_hcd_urb_set_pipeinfo(struct dwc2_hsotg *hsotg, struct dwc2_hcd_urb *urb, u8 dev_addr, u8 ep_num, u8 ep_type, u8 ep_dir, u16 maxp, u16 maxp_mult) dwc2_hcd_urb_set_pipeinfo() argument 3835 dwc2_hcd_dump_state(struct dwc2_hsotg *hsotg) dwc2_hcd_dump_state() argument 3961 struct dwc2_hsotg *hsotg; global() member 3993 dwc2_host_get_tt_info(struct dwc2_hsotg *hsotg, void *context, gfp_t mem_flags, int *ttport) dwc2_host_get_tt_info() argument 4041 dwc2_host_put_tt_info(struct dwc2_hsotg *hsotg, struct dwc2_tt *dwc_tt) dwc2_host_put_tt_info() argument 4056 dwc2_host_get_speed(struct dwc2_hsotg *hsotg, void *context) dwc2_host_get_speed() argument 4095 dwc2_host_complete(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd, int status) dwc2_host_complete() argument 4174 struct dwc2_hsotg *hsotg = container_of(work, struct dwc2_hsotg, dwc2_hcd_start_func() local 4186 struct dwc2_hsotg *hsotg = container_of(work, struct dwc2_hsotg, dwc2_hcd_reset_func() local 4205 struct dwc2_hsotg *hsotg = container_of(work, struct dwc2_hsotg, dwc2_hcd_phy_reset_func() local 4227 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_start() local 4276 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_stop() local 4305 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_suspend() local 4383 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_resume() local 4467 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_get_frame_number() local 4476 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); dwc2_dump_urb_info() local 4555 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_urb_enqueue() local 4714 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_urb_dequeue() local 4760 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_endpoint_disable() local 4776 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_endpoint_reset() local 4797 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_irq() local 4810 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_hub_status_data() local 4829 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_clear_tt_buffer_complete() local 4852 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); dwc2_change_bus_speed() local 4863 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); dwc2_free_dev() local 4880 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); dwc2_reset_device() local 4932 dwc2_hcd_free(struct dwc2_hsotg *hsotg) dwc2_hcd_free() argument 4997 dwc2_hcd_release(struct dwc2_hsotg *hsotg) dwc2_hcd_release() argument 5011 dwc2_hcd_init(struct dwc2_hsotg *hsotg) dwc2_hcd_init() argument 5271 dwc2_hcd_remove(struct dwc2_hsotg *hsotg) dwc2_hcd_remove() argument 5312 dwc2_backup_host_registers(struct dwc2_hsotg *hsotg) dwc2_backup_host_registers() argument 5341 dwc2_restore_host_registers(struct dwc2_hsotg *hsotg) dwc2_restore_host_registers() argument 5376 dwc2_host_enter_hibernation(struct dwc2_hsotg *hsotg) dwc2_host_enter_hibernation() argument 5486 dwc2_host_exit_hibernation(struct dwc2_hsotg *hsotg, int rem_wakeup, int reset) dwc2_host_exit_hibernation() argument [all...] |
H A D | drd.c | 16 static void dwc2_ovr_init(struct dwc2_hsotg *hsotg) in dwc2_ovr_init() argument 21 spin_lock_irqsave(&hsotg->lock, flags); in dwc2_ovr_init() 23 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_init() 27 dwc2_writel(hsotg, gotgctl, GOTGCTL); in dwc2_ovr_init() 29 spin_unlock_irqrestore(&hsotg->lock, flags); in dwc2_ovr_init() 31 dwc2_force_mode(hsotg, (hsotg->dr_mode == USB_DR_MODE_HOST)); in dwc2_ovr_init() 34 static int dwc2_ovr_avalid(struct dwc2_hsotg *hsotg, bool valid) in dwc2_ovr_avalid() argument 36 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_avalid() 48 dwc2_writel(hsotg, gotgct in dwc2_ovr_avalid() 53 dwc2_ovr_bvalid(struct dwc2_hsotg *hsotg, bool valid) dwc2_ovr_bvalid() argument 74 struct dwc2_hsotg *hsotg = usb_role_switch_get_drvdata(sw); dwc2_drd_role_sw_set() local 142 dwc2_drd_init(struct dwc2_hsotg *hsotg) dwc2_drd_init() argument 172 dwc2_drd_suspend(struct dwc2_hsotg *hsotg) dwc2_drd_suspend() argument 185 dwc2_drd_resume(struct dwc2_hsotg *hsotg) dwc2_drd_resume() argument 198 dwc2_drd_exit(struct dwc2_hsotg *hsotg) dwc2_drd_exit() argument [all...] |
H A D | gadget.c | 52 static inline void dwc2_set_bit(struct dwc2_hsotg *hsotg, u32 offset, u32 val) in dwc2_set_bit() argument 54 dwc2_writel(hsotg, dwc2_readl(hsotg, offset) | val, offset); in dwc2_set_bit() 57 static inline void dwc2_clear_bit(struct dwc2_hsotg *hsotg, u32 offset, u32 val) in dwc2_clear_bit() argument 59 dwc2_writel(hsotg, dwc2_readl(hsotg, offset) & ~val, offset); in dwc2_clear_bit() 62 static inline struct dwc2_hsotg_ep *index_to_ep(struct dwc2_hsotg *hsotg, in index_to_ep() argument 66 return hsotg->eps_in[ep_index]; in index_to_ep() 68 return hsotg->eps_out[ep_index]; in index_to_ep() 72 static void dwc2_hsotg_dump(struct dwc2_hsotg *hsotg); 93 using_dma(struct dwc2_hsotg *hsotg) using_dma() argument 104 using_desc_dma(struct dwc2_hsotg *hsotg) using_desc_dma() argument 118 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_incr_frame_num() local 145 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_dec_frame_num_by_one() local 162 dwc2_hsotg_en_gsint(struct dwc2_hsotg *hsotg, u32 ints) dwc2_hsotg_en_gsint() argument 180 dwc2_hsotg_disable_gsint(struct dwc2_hsotg *hsotg, u32 ints) dwc2_hsotg_disable_gsint() argument 201 dwc2_hsotg_ctrl_epint(struct dwc2_hsotg *hsotg, unsigned int ep, unsigned int dir_in, unsigned int en) dwc2_hsotg_ctrl_epint() argument 227 dwc2_hsotg_tx_fifo_count(struct dwc2_hsotg *hsotg) dwc2_hsotg_tx_fifo_count() argument 243 dwc2_hsotg_tx_fifo_total_depth(struct dwc2_hsotg *hsotg) dwc2_hsotg_tx_fifo_total_depth() argument 268 dwc2_gadget_wkup_alert_handler(struct dwc2_hsotg *hsotg) dwc2_gadget_wkup_alert_handler() argument 290 dwc2_hsotg_tx_fifo_average_depth(struct dwc2_hsotg *hsotg) dwc2_hsotg_tx_fifo_average_depth() argument 309 dwc2_hsotg_init_fifo(struct dwc2_hsotg *hsotg) dwc2_hsotg_init_fifo() argument 431 dwc2_hsotg_unmap_dma(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep, struct dwc2_hsotg_req *hs_req) dwc2_hsotg_unmap_dma() argument 448 dwc2_gadget_alloc_ctrl_desc_chains(struct dwc2_hsotg *hsotg) dwc2_gadget_alloc_ctrl_desc_chains() argument 504 dwc2_hsotg_write_fifo(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep, struct dwc2_hsotg_req *hs_req) dwc2_hsotg_write_fifo() argument 706 dwc2_hsotg_read_frameno(struct dwc2_hsotg *hsotg) dwc2_hsotg_read_frameno() argument 914 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_fill_isoc_desc() local 983 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_start_isoc_ddma() local 1049 dwc2_hsotg_start_req(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep, struct dwc2_hsotg_req *hs_req, bool continuing) dwc2_hsotg_start_req() argument 1264 dwc2_hsotg_map_dma(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep, struct usb_request *req) dwc2_hsotg_map_dma() argument 1284 dwc2_hsotg_handle_unaligned_buf_start(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep, struct dwc2_hsotg_req *hs_req) dwc2_hsotg_handle_unaligned_buf_start() argument 1317 dwc2_hsotg_handle_unaligned_buf_complete(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep, struct dwc2_hsotg_req *hs_req) dwc2_hsotg_handle_unaligned_buf_complete() argument 1349 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_target_frame_elapsed() local 1376 dwc2_gadget_set_ep0_desc_chain(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep) dwc2_gadget_set_ep0_desc_chain() argument 1558 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_hsotg_complete_oursetup() local 1573 ep_from_windex(struct dwc2_hsotg *hsotg, u32 windex) ep_from_windex() argument 1594 dwc2_hsotg_set_test_mode(struct dwc2_hsotg *hsotg, int testmode) dwc2_hsotg_set_test_mode() argument 1624 dwc2_hsotg_send_reply(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *ep, void *buff, int length) dwc2_hsotg_send_reply() argument 1667 dwc2_hsotg_process_req_status(struct dwc2_hsotg *hsotg, struct usb_ctrlrequest *ctrl) dwc2_hsotg_process_req_status() argument 1745 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_start_next_request() local 1771 dwc2_hsotg_process_req_feature(struct dwc2_hsotg *hsotg, struct usb_ctrlrequest *ctrl) dwc2_hsotg_process_req_feature() argument 1889 dwc2_hsotg_stall_ep0(struct dwc2_hsotg *hsotg) dwc2_hsotg_stall_ep0() argument 1928 dwc2_hsotg_process_control(struct dwc2_hsotg *hsotg, struct usb_ctrlrequest *ctrl) dwc2_hsotg_process_control() argument 2012 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_hsotg_complete_setup() local 2034 dwc2_hsotg_enqueue_setup(struct dwc2_hsotg *hsotg) dwc2_hsotg_enqueue_setup() argument 2066 dwc2_hsotg_program_zlp(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep) dwc2_hsotg_program_zlp() argument 2114 dwc2_hsotg_complete_request(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep, struct dwc2_hsotg_req *hs_req, int result) dwc2_hsotg_complete_request() argument 2179 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_complete_isoc_request_ddma() local 2238 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_handle_isoc_bna() local 2259 dwc2_hsotg_rx_data(struct dwc2_hsotg *hsotg, int ep_idx, int size) dwc2_hsotg_rx_data() argument 2323 dwc2_hsotg_ep0_zlp(struct dwc2_hsotg *hsotg, bool dir_in) dwc2_hsotg_ep0_zlp() argument 2342 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_get_xfersize_ddma() local 2386 dwc2_hsotg_handle_outdone(struct dwc2_hsotg *hsotg, int epnum) dwc2_hsotg_handle_outdone() argument 2477 dwc2_hsotg_handle_rx(struct dwc2_hsotg *hsotg) dwc2_hsotg_handle_rx() argument 2577 dwc2_hsotg_set_ep_maxpacket(struct dwc2_hsotg *hsotg, unsigned int ep, unsigned int mps, unsigned int mc, unsigned int dir_in) dwc2_hsotg_set_ep_maxpacket() argument 2629 dwc2_hsotg_txfifo_flush(struct dwc2_hsotg *hsotg, unsigned int idx) dwc2_hsotg_txfifo_flush() argument 2648 dwc2_hsotg_trytx(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep) dwc2_hsotg_trytx() argument 2681 dwc2_hsotg_complete_in(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep) dwc2_hsotg_complete_in() argument 2788 dwc2_gadget_read_ep_interrupts(struct dwc2_hsotg *hsotg, unsigned int idx, int dir_in) dwc2_gadget_read_ep_interrupts() argument 2822 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_handle_ep_disabled() local 2886 struct dwc2_hsotg *hsotg = ep->parent; dwc2_gadget_handle_out_token_ep_disabled() local 2954 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_handle_nak() local 3035 dwc2_hsotg_epint(struct dwc2_hsotg *hsotg, unsigned int idx, int dir_in) dwc2_hsotg_epint() argument 3196 dwc2_hsotg_irq_enumdone(struct dwc2_hsotg *hsotg) dwc2_hsotg_irq_enumdone() argument 3282 kill_all_requests(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *ep, int result) kill_all_requests() argument 3311 dwc2_hsotg_disconnect(struct dwc2_hsotg *hsotg) dwc2_hsotg_disconnect() argument 3342 dwc2_hsotg_irq_fifoempty(struct dwc2_hsotg *hsotg, bool periodic) dwc2_hsotg_irq_fifoempty() argument 3380 dwc2_hsotg_core_init_disconnected(struct dwc2_hsotg *hsotg, bool is_usb_reset) dwc2_hsotg_core_init_disconnected() argument 3587 dwc2_hsotg_core_disconnect(struct dwc2_hsotg *hsotg) dwc2_hsotg_core_disconnect() argument 3593 dwc2_hsotg_core_connect(struct dwc2_hsotg *hsotg) dwc2_hsotg_core_connect() argument 3613 dwc2_gadget_handle_incomplete_isoc_in(struct dwc2_hsotg *hsotg) dwc2_gadget_handle_incomplete_isoc_in() argument 3656 dwc2_gadget_handle_incomplete_isoc_out(struct dwc2_hsotg *hsotg) dwc2_gadget_handle_incomplete_isoc_out() argument 3703 struct dwc2_hsotg *hsotg = pw; dwc2_hsotg_irq() local 3904 dwc2_hsotg_ep_stop_xfr(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep) dwc2_hsotg_ep_stop_xfr() argument 4008 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_hsotg_ep_enable() local 4236 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_hsotg_ep_disable() local 4284 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_hsotg_ep_disable_lock() local 4458 dwc2_hsotg_init(struct dwc2_hsotg *hsotg) dwc2_hsotg_init() argument 4498 struct dwc2_hsotg *hsotg = to_hsotg(gadget); dwc2_hsotg_udc_start() local 4562 struct dwc2_hsotg *hsotg = to_hsotg(gadget); dwc2_hsotg_udc_stop() local 4615 struct dwc2_hsotg *hsotg = to_hsotg(gadget); dwc2_hsotg_set_selfpowered() local 4634 struct dwc2_hsotg *hsotg = to_hsotg(gadget); dwc2_hsotg_pullup() local 4667 struct dwc2_hsotg *hsotg = to_hsotg(gadget); dwc2_hsotg_vbus_session() local 4707 struct dwc2_hsotg *hsotg = to_hsotg(gadget); dwc2_hsotg_vbus_draw() local 4735 dwc2_hsotg_initep(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep, int epnum, bool dir_in) dwc2_hsotg_initep() argument 4807 dwc2_hsotg_hw_cfg(struct dwc2_hsotg *hsotg) dwc2_hsotg_hw_cfg() argument 4862 dwc2_hsotg_dump(struct dwc2_hsotg *hsotg) dwc2_hsotg_dump() argument 4913 dwc2_gadget_init(struct dwc2_hsotg *hsotg) dwc2_gadget_init() argument 5007 dwc2_hsotg_remove(struct dwc2_hsotg *hsotg) dwc2_hsotg_remove() argument 5015 dwc2_hsotg_suspend(struct dwc2_hsotg *hsotg) dwc2_hsotg_suspend() argument 5046 dwc2_hsotg_resume(struct dwc2_hsotg *hsotg) dwc2_hsotg_resume() argument 5077 dwc2_backup_device_registers(struct dwc2_hsotg *hsotg) dwc2_backup_device_registers() argument 5133 dwc2_restore_device_registers(struct dwc2_hsotg *hsotg, int remote_wakeup) dwc2_restore_device_registers() argument 5194 dwc2_gadget_init_lpm(struct dwc2_hsotg *hsotg) dwc2_gadget_init_lpm() argument 5222 dwc2_gadget_program_ref_clk(struct dwc2_hsotg *hsotg) dwc2_gadget_program_ref_clk() argument 5242 dwc2_gadget_enter_hibernation(struct dwc2_hsotg *hsotg) dwc2_gadget_enter_hibernation() argument 5315 dwc2_gadget_exit_hibernation(struct dwc2_hsotg *hsotg, int rem_wakeup, int reset) dwc2_gadget_exit_hibernation() argument [all...] |
H A D | hcd_intr.c | 63 static void dwc2_track_missed_sofs(struct dwc2_hsotg *hsotg) in dwc2_track_missed_sofs() argument 65 u16 curr_frame_number = hsotg->frame_number; in dwc2_track_missed_sofs() 66 u16 expected = dwc2_frame_num_inc(hsotg->last_frame_num, 1); in dwc2_track_missed_sofs() 69 dwc2_sch_vdbg(hsotg, "MISSED SOF %04x != %04x\n", in dwc2_track_missed_sofs() 73 if (hsotg->frame_num_idx < FRAME_NUM_ARRAY_SIZE) { in dwc2_track_missed_sofs() 75 hsotg->frame_num_array[hsotg->frame_num_idx] = in dwc2_track_missed_sofs() 77 hsotg->last_frame_num_array[hsotg->frame_num_idx] = in dwc2_track_missed_sofs() 78 hsotg in dwc2_track_missed_sofs() 97 dwc2_hc_handle_tt_clear(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, struct dwc2_qtd *qtd) dwc2_hc_handle_tt_clear() argument 140 dwc2_sof_intr(struct dwc2_hsotg *hsotg) dwc2_sof_intr() argument 186 dwc2_rx_fifo_level_intr(struct dwc2_hsotg *hsotg) dwc2_rx_fifo_level_intr() argument 244 dwc2_np_tx_fifo_empty_intr(struct dwc2_hsotg *hsotg) dwc2_np_tx_fifo_empty_intr() argument 256 dwc2_perio_tx_fifo_empty_intr(struct dwc2_hsotg *hsotg) dwc2_perio_tx_fifo_empty_intr() argument 263 dwc2_hprt0_enable(struct dwc2_hsotg *hsotg, u32 hprt0, u32 *hprt0_modify) dwc2_hprt0_enable() argument 355 dwc2_port_intr(struct dwc2_hsotg *hsotg) dwc2_port_intr() argument 436 dwc2_get_actual_xfer_length(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd, enum dwc2_halt_status halt_status, int *short_read) dwc2_get_actual_xfer_length() argument 490 dwc2_update_urb_state(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_hcd_urb *urb, struct dwc2_qtd *qtd) dwc2_update_urb_state() argument 540 dwc2_hcd_save_data_toggle(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hcd_save_data_toggle() argument 584 dwc2_update_isoc_urb_state( struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd, enum dwc2_halt_status halt_status) dwc2_update_isoc_urb_state() argument 658 dwc2_deactivate_qh(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, int free_qtd) dwc2_deactivate_qh() argument 704 dwc2_release_channel(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, struct dwc2_qtd *qtd, enum dwc2_halt_status halt_status) dwc2_release_channel() argument 803 dwc2_halt_channel(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, struct dwc2_qtd *qtd, enum dwc2_halt_status halt_status) dwc2_halt_channel() argument 863 dwc2_complete_non_periodic_xfer(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd, enum dwc2_halt_status halt_status) dwc2_complete_non_periodic_xfer() argument 913 dwc2_complete_periodic_xfer(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd, enum dwc2_halt_status halt_status) dwc2_complete_periodic_xfer() argument 930 dwc2_xfercomp_isoc_split_in(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_xfercomp_isoc_split_in() argument 988 dwc2_hc_xfercomp_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_xfercomp_intr() argument 1121 dwc2_hc_stall_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_stall_intr() argument 1171 dwc2_update_urb_state_abn(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_hcd_urb *urb, struct dwc2_qtd *qtd, enum dwc2_halt_status halt_status) dwc2_update_urb_state_abn() argument 1208 dwc2_hc_nak_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_nak_intr() argument 1313 dwc2_hc_ack_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_ack_intr() argument 1392 dwc2_hc_nyet_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_nyet_intr() argument 1516 dwc2_hc_babble_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_babble_intr() argument 1550 dwc2_hc_ahberr_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_ahberr_intr() argument 1654 dwc2_hc_xacterr_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_xacterr_intr() argument 1712 dwc2_hc_frmovrun_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_frmovrun_intr() argument 1745 dwc2_hc_datatglerr_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_datatglerr_intr() argument 1770 dwc2_halt_status_ok(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_halt_status_ok() argument 1830 dwc2_hc_chhltd_intr_dma(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_chhltd_intr_dma() argument 2008 dwc2_hc_chhltd_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_chhltd_intr() argument 2044 dwc2_hc_n_intr(struct dwc2_hsotg *hsotg, int chnum) dwc2_hc_n_intr() argument 2196 dwc2_hc_intr(struct dwc2_hsotg *hsotg) dwc2_hc_intr() argument 2232 dwc2_handle_hcd_intr(struct dwc2_hsotg *hsotg) dwc2_handle_hcd_intr() argument [all...] |
H A D | params.c | 42 static void dwc2_set_bcm_params(struct dwc2_hsotg *hsotg) in dwc2_set_bcm_params() argument 44 struct dwc2_core_params *p = &hsotg->params; in dwc2_set_bcm_params() 52 static void dwc2_set_his_params(struct dwc2_hsotg *hsotg) in dwc2_set_his_params() argument 54 struct dwc2_core_params *p = &hsotg->params; in dwc2_set_his_params() 74 static void dwc2_set_s3c6400_params(struct dwc2_hsotg *hsotg) in dwc2_set_s3c6400_params() argument 76 struct dwc2_core_params *p = &hsotg->params; in dwc2_set_s3c6400_params() 82 static void dwc2_set_rk_params(struct dwc2_hsotg *hsotg) in dwc2_set_rk_params() argument 84 struct dwc2_core_params *p = &hsotg->params; in dwc2_set_rk_params() 95 static void dwc2_set_ltq_params(struct dwc2_hsotg *hsotg) in dwc2_set_ltq_params() argument 97 struct dwc2_core_params *p = &hsotg in dwc2_set_ltq_params() 109 dwc2_set_amlogic_params(struct dwc2_hsotg *hsotg) dwc2_set_amlogic_params() argument 125 dwc2_set_amlogic_g12a_params(struct dwc2_hsotg *hsotg) dwc2_set_amlogic_g12a_params() argument 135 dwc2_set_amcc_params(struct dwc2_hsotg *hsotg) dwc2_set_amcc_params() argument 142 dwc2_set_stm32f4x9_fsotg_params(struct dwc2_hsotg *hsotg) dwc2_set_stm32f4x9_fsotg_params() argument 157 dwc2_set_stm32f7_hsotg_params(struct dwc2_hsotg *hsotg) dwc2_set_stm32f7_hsotg_params() argument 166 dwc2_set_stm32mp15_fsotg_params(struct dwc2_hsotg *hsotg) dwc2_set_stm32mp15_fsotg_params() argument 183 dwc2_set_stm32mp15_hsotg_params(struct dwc2_hsotg *hsotg) dwc2_set_stm32mp15_hsotg_params() argument 227 dwc2_set_param_otg_cap(struct dwc2_hsotg *hsotg) dwc2_set_param_otg_cap() argument 248 dwc2_set_param_phy_type(struct dwc2_hsotg *hsotg) dwc2_set_param_phy_type() argument 268 dwc2_set_param_speed(struct dwc2_hsotg *hsotg) dwc2_set_param_speed() argument 284 dwc2_set_param_phy_utmi_width(struct dwc2_hsotg *hsotg) dwc2_set_param_phy_utmi_width() argument 303 dwc2_set_param_tx_fifo_sizes(struct dwc2_hsotg *hsotg) dwc2_set_param_tx_fifo_sizes() argument 318 dwc2_set_param_power_down(struct dwc2_hsotg *hsotg) dwc2_set_param_power_down() argument 332 dwc2_set_param_lpm(struct dwc2_hsotg *hsotg) dwc2_set_param_lpm() argument 356 dwc2_set_default_params(struct dwc2_hsotg *hsotg) dwc2_set_default_params() argument 428 dwc2_get_device_properties(struct dwc2_hsotg *hsotg) dwc2_get_device_properties() argument 457 dwc2_check_param_otg_cap(struct dwc2_hsotg *hsotg) dwc2_check_param_otg_cap() argument 490 dwc2_check_param_phy_type(struct dwc2_hsotg *hsotg) dwc2_check_param_phy_type() argument 522 dwc2_check_param_speed(struct dwc2_hsotg *hsotg) dwc2_check_param_speed() argument 546 dwc2_check_param_phy_utmi_width(struct dwc2_hsotg *hsotg) dwc2_check_param_phy_utmi_width() argument 568 dwc2_check_param_power_down(struct dwc2_hsotg *hsotg) dwc2_check_param_power_down() argument 600 dwc2_check_param_tx_fifo_sizes(struct dwc2_hsotg *hsotg) dwc2_check_param_tx_fifo_sizes() argument 650 dwc2_check_params(struct dwc2_hsotg *hsotg) dwc2_check_params() argument 722 dwc2_get_host_hwparams(struct dwc2_hsotg *hsotg) dwc2_get_host_hwparams() argument 747 dwc2_get_dev_hwparams(struct dwc2_hsotg *hsotg) dwc2_get_dev_hwparams() argument 779 dwc2_get_hwparams(struct dwc2_hsotg *hsotg) dwc2_get_hwparams() argument 861 dwc2_init_params(struct dwc2_hsotg *hsotg) dwc2_init_params() argument [all...] |
H A D | core.h | 59 #define dwc2_sch_dbg(hsotg, fmt, ...) \ 61 dev_name(hsotg->dev), ##__VA_ARGS__) 64 #define dwc2_sch_vdbg(hsotg, fmt, ...) \ 66 dev_name(hsotg->dev), ##__VA_ARGS__) 71 /* dwc2-hsotg declarations */ 1218 static inline u32 dwc2_readl(struct dwc2_hsotg *hsotg, u32 offset) in dwc2_readl() argument 1222 val = readl(hsotg->regs + offset); in dwc2_readl() 1223 if (hsotg->needs_byte_swap) in dwc2_readl() 1229 static inline void dwc2_writel(struct dwc2_hsotg *hsotg, u32 value, u32 offset) in dwc2_writel() argument 1231 if (hsotg in dwc2_writel() 1241 dwc2_readl_rep(struct dwc2_hsotg *hsotg, u32 offset, void *buffer, unsigned int count) dwc2_readl_rep() argument 1254 dwc2_writel_rep(struct dwc2_hsotg *hsotg, u32 offset, const void *buffer, unsigned int count) dwc2_writel_rep() argument 1285 dwc2_is_iot(struct dwc2_hsotg *hsotg) dwc2_is_iot() argument 1290 dwc2_is_fs_iot(struct dwc2_hsotg *hsotg) dwc2_is_fs_iot() argument 1295 dwc2_is_hs_iot(struct dwc2_hsotg *hsotg) dwc2_is_hs_iot() argument 1373 dwc2_is_host_mode(struct dwc2_hsotg *hsotg) dwc2_is_host_mode() argument 1378 dwc2_is_device_mode(struct dwc2_hsotg *hsotg) dwc2_is_device_mode() argument 1427 dwc2_gadget_init(struct dwc2_hsotg *hsotg) dwc2_gadget_init() argument 1431 dwc2_hsotg_core_disconnect(struct dwc2_hsotg *hsotg) dwc2_hsotg_core_disconnect() argument 1432 dwc2_hsotg_core_connect(struct dwc2_hsotg *hsotg) dwc2_hsotg_core_connect() argument 1434 dwc2_hsotg_set_test_mode(struct dwc2_hsotg *hsotg, int testmode) dwc2_hsotg_set_test_mode() argument 1439 dwc2_backup_device_registers(struct dwc2_hsotg *hsotg) dwc2_backup_device_registers() argument 1441 dwc2_restore_device_registers(struct dwc2_hsotg *hsotg, int remote_wakeup) dwc2_restore_device_registers() argument 1444 dwc2_gadget_enter_hibernation(struct dwc2_hsotg *hsotg) dwc2_gadget_enter_hibernation() argument 1446 dwc2_gadget_exit_hibernation(struct dwc2_hsotg *hsotg, int rem_wakeup, int reset) dwc2_gadget_exit_hibernation() argument 1449 dwc2_hsotg_tx_fifo_count(struct dwc2_hsotg *hsotg) dwc2_hsotg_tx_fifo_count() argument 1451 dwc2_hsotg_tx_fifo_total_depth(struct dwc2_hsotg *hsotg) dwc2_hsotg_tx_fifo_total_depth() argument 1453 dwc2_hsotg_tx_fifo_average_depth(struct dwc2_hsotg *hsotg) dwc2_hsotg_tx_fifo_average_depth() argument 1455 dwc2_gadget_init_lpm(struct dwc2_hsotg *hsotg) dwc2_gadget_init_lpm() argument 1456 dwc2_gadget_program_ref_clk(struct dwc2_hsotg *hsotg) dwc2_gadget_program_ref_clk() argument 1472 dwc2_host_schedule_phy_reset(struct dwc2_hsotg *hsotg) dwc2_host_schedule_phy_reset() argument 1475 dwc2_hcd_get_frame_number(struct dwc2_hsotg *hsotg) dwc2_hcd_get_frame_number() argument 1477 dwc2_hcd_get_future_frame_number(struct dwc2_hsotg *hsotg, int us) dwc2_hcd_get_future_frame_number() argument 1480 dwc2_hcd_connect(struct dwc2_hsotg *hsotg) dwc2_hcd_connect() argument 1481 dwc2_hcd_disconnect(struct dwc2_hsotg *hsotg, bool force) dwc2_hcd_disconnect() argument 1482 dwc2_hcd_start(struct dwc2_hsotg *hsotg) dwc2_hcd_start() argument 1483 dwc2_hcd_remove(struct dwc2_hsotg *hsotg) dwc2_hcd_remove() argument 1484 dwc2_core_init(struct dwc2_hsotg *hsotg, bool initial_setup) dwc2_core_init() argument 1486 dwc2_hcd_init(struct dwc2_hsotg *hsotg) dwc2_hcd_init() argument 1488 dwc2_backup_host_registers(struct dwc2_hsotg *hsotg) dwc2_backup_host_registers() argument 1490 dwc2_restore_host_registers(struct dwc2_hsotg *hsotg) dwc2_restore_host_registers() argument 1492 dwc2_host_enter_hibernation(struct dwc2_hsotg *hsotg) dwc2_host_enter_hibernation() argument 1494 dwc2_host_exit_hibernation(struct dwc2_hsotg *hsotg, int rem_wakeup, int reset) dwc2_host_exit_hibernation() argument 1499 dwc2_host_schedule_phy_reset(struct dwc2_hsotg *hsotg) dwc2_host_schedule_phy_reset() argument [all...] |
H A D | hcd_ddma.c | 88 static int dwc2_desc_list_alloc(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, in dwc2_desc_list_alloc() argument 95 desc_cache = hsotg->desc_hsisoc_cache; in dwc2_desc_list_alloc() 97 desc_cache = hsotg->desc_gen_cache; in dwc2_desc_list_alloc() 106 qh->desc_list_dma = dma_map_single(hsotg->dev, qh->desc_list, in dwc2_desc_list_alloc() 112 dma_unmap_single(hsotg->dev, qh->desc_list_dma, in dwc2_desc_list_alloc() 123 static void dwc2_desc_list_free(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) in dwc2_desc_list_free() argument 129 desc_cache = hsotg->desc_hsisoc_cache; in dwc2_desc_list_free() 131 desc_cache = hsotg->desc_gen_cache; in dwc2_desc_list_free() 134 dma_unmap_single(hsotg->dev, qh->desc_list_dma, in dwc2_desc_list_free() 144 static int dwc2_frame_list_alloc(struct dwc2_hsotg *hsotg, gfp_ argument 161 dwc2_frame_list_free(struct dwc2_hsotg *hsotg) dwc2_frame_list_free() argument 181 dwc2_per_sched_enable(struct dwc2_hsotg *hsotg, u32 fr_list_en) dwc2_per_sched_enable() argument 205 dwc2_per_sched_disable(struct dwc2_hsotg *hsotg) dwc2_per_sched_disable() argument 230 dwc2_update_frame_list(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, int enable) dwc2_update_frame_list() argument 294 dwc2_release_channel_ddma(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_release_channel_ddma() argument 342 dwc2_hcd_qh_init_ddma(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, gfp_t mem_flags) dwc2_hcd_qh_init_ddma() argument 388 dwc2_hcd_qh_free_ddma(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_hcd_qh_free_ddma() argument 428 dwc2_calc_starting_frame(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, u16 *skip_frames) dwc2_calc_starting_frame() argument 490 dwc2_recalc_initial_desc_idx(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_recalc_initial_desc_idx() argument 541 dwc2_fill_host_isoc_dma_desc(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd, struct dwc2_qh *qh, u32 max_xfer_size, u16 idx) dwc2_fill_host_isoc_dma_desc() argument 580 dwc2_init_isoc_dma_desc(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, u16 skip_frames) dwc2_init_isoc_dma_desc() argument 689 dwc2_fill_host_dma_desc(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, struct dwc2_qtd *qtd, struct dwc2_qh *qh, int n_desc) dwc2_fill_host_dma_desc() argument 741 dwc2_init_non_isoc_dma_desc(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_init_non_isoc_dma_desc() argument 847 dwc2_hcd_start_xfer_ddma(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_hcd_start_xfer_ddma() argument 892 dwc2_cmpl_host_isoc_dma_desc(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, struct dwc2_qtd *qtd, struct dwc2_qh *qh, u16 idx) dwc2_cmpl_host_isoc_dma_desc() argument 961 dwc2_complete_isoc_xfer_ddma(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, enum dwc2_halt_status halt_status) dwc2_complete_isoc_xfer_ddma() argument 1067 dwc2_update_non_isoc_urb_state_ddma(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, struct dwc2_qtd *qtd, struct dwc2_dma_desc *dma_desc, enum dwc2_halt_status halt_status, u32 n_bytes, int *xfer_done) dwc2_update_non_isoc_urb_state_ddma() argument 1149 dwc2_process_non_isoc_desc(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd, int desc_num, enum dwc2_halt_status halt_status, int *xfer_done) dwc2_process_non_isoc_desc() argument 1221 dwc2_complete_non_isoc_xfer_ddma(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, enum dwc2_halt_status halt_status) dwc2_complete_non_isoc_xfer_ddma() argument 1299 dwc2_hcd_complete_xfer_ddma(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, enum dwc2_halt_status halt_status) dwc2_hcd_complete_xfer_ddma() argument [all...] |
H A D | hcd_queue.c | 68 * @hsotg: The HCD state structure for the DWC OTG controller 72 static int dwc2_periodic_channel_available(struct dwc2_hsotg *hsotg) in dwc2_periodic_channel_available() argument 82 num_channels = hsotg->params.host_channels; in dwc2_periodic_channel_available() 83 if ((hsotg->periodic_channels + hsotg->non_periodic_channels < in dwc2_periodic_channel_available() 84 num_channels) && (hsotg->periodic_channels < num_channels - 1)) { in dwc2_periodic_channel_available() 87 dev_dbg(hsotg->dev, in dwc2_periodic_channel_available() 90 hsotg->periodic_channels, hsotg->non_periodic_channels); in dwc2_periodic_channel_available() 101 * @hsotg 109 dwc2_check_periodic_bandwidth(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_check_periodic_bandwidth() argument 374 dwc2_get_ls_map(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_get_ls_map() argument 492 struct dwc2_hsotg *hsotg; global() member 515 dwc2_qh_schedule_print(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_qh_schedule_print() argument 565 dwc2_qh_schedule_print(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_qh_schedule_print() argument 584 dwc2_ls_pmap_schedule(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, int search_slice) dwc2_ls_pmap_schedule() argument 623 dwc2_ls_pmap_unschedule(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_ls_pmap_unschedule() argument 658 dwc2_hs_pmap_schedule(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, bool only_one_period, int index) dwc2_hs_pmap_schedule() argument 684 dwc2_hs_pmap_unschedule(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, int index) dwc2_hs_pmap_unschedule() argument 708 dwc2_uframe_schedule_split(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_uframe_schedule_split() argument 990 dwc2_uframe_schedule_hs(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_uframe_schedule_hs() argument 1013 dwc2_uframe_schedule_ls(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_uframe_schedule_ls() argument 1033 dwc2_uframe_schedule(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_uframe_schedule() argument 1058 dwc2_uframe_unschedule(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_uframe_unschedule() argument 1086 dwc2_pick_first_frame(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_pick_first_frame() argument 1201 dwc2_do_reserve(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_do_reserve() argument 1247 dwc2_do_unreserve(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_do_unreserve() argument 1285 struct dwc2_hsotg *hsotg = qh->hsotg; dwc2_unreserve_timer_fn() local 1328 dwc2_check_max_xfer_size(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_check_max_xfer_size() argument 1358 dwc2_schedule_periodic(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_schedule_periodic() argument 1417 dwc2_deschedule_periodic(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_deschedule_periodic() argument 1473 struct dwc2_hsotg *hsotg = qh->hsotg; dwc2_wait_timer_fn() local 1508 dwc2_qh_init(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, struct dwc2_hcd_urb *urb, gfp_t mem_flags) dwc2_qh_init() argument 1645 dwc2_hcd_qh_create(struct dwc2_hsotg *hsotg, struct dwc2_hcd_urb *urb, gfp_t mem_flags) dwc2_hcd_qh_create() argument 1681 dwc2_hcd_qh_free(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_hcd_qh_free() argument 1721 dwc2_hcd_qh_add(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_hcd_qh_add() argument 1773 dwc2_hcd_qh_unlink(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_hcd_qh_unlink() argument 1823 dwc2_next_for_periodic_split(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, u16 frame_number) dwc2_next_for_periodic_split() argument 1886 dwc2_next_periodic_start(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, u16 frame_number) dwc2_next_periodic_start() argument 1977 dwc2_hcd_qh_deactivate(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, int sched_next_periodic_split) dwc2_hcd_qh_deactivate() argument 2078 dwc2_hcd_qtd_add(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd, struct dwc2_qh *qh) dwc2_hcd_qtd_add() argument [all...] |
H A D | debugfs.c | 31 struct dwc2_hsotg *hsotg = s->private; in testmode_write() local 52 spin_lock_irqsave(&hsotg->lock, flags); in testmode_write() 53 dwc2_hsotg_set_test_mode(hsotg, testmode); in testmode_write() 54 spin_unlock_irqrestore(&hsotg->lock, flags); in testmode_write() 67 struct dwc2_hsotg *hsotg = s->private; in testmode_show() local 71 spin_lock_irqsave(&hsotg->lock, flags); in testmode_show() 72 dctl = dwc2_readl(hsotg, DCTL); in testmode_show() 75 spin_unlock_irqrestore(&hsotg->lock, flags); in testmode_show() 128 struct dwc2_hsotg *hsotg = seq->private; in state_show() local 132 dwc2_readl(hsotg, DCF in state_show() 185 struct dwc2_hsotg *hsotg = seq->private; fifo_show() local 228 struct dwc2_hsotg *hsotg = ep->parent; ep_show() local 292 dwc2_hsotg_create_debug(struct dwc2_hsotg *hsotg) dwc2_hsotg_create_debug() argument 322 dwc2_hsotg_create_debug(struct dwc2_hsotg *hsotg) dwc2_hsotg_create_debug() argument 669 struct dwc2_hsotg *hsotg = seq->private; params_show() local 725 struct dwc2_hsotg *hsotg = seq->private; hw_params_show() local 760 struct dwc2_hsotg *hsotg = seq->private; dr_mode_show() local 769 dwc2_debugfs_init(struct dwc2_hsotg *hsotg) dwc2_debugfs_init() argument 803 dwc2_debugfs_exit(struct dwc2_hsotg *hsotg) dwc2_debugfs_exit() argument [all...] |
H A D | hcd.h | 260 * @hsotg: The HCD state structure for the DWC OTG controller 341 struct dwc2_hsotg *hsotg; member 453 struct dwc2_hsotg *hsotg; member 458 u32 dwc2_calc_frame_interval(struct dwc2_hsotg *hsotg); 461 static inline struct usb_hcd *dwc2_hsotg_to_hcd(struct dwc2_hsotg *hsotg) in dwc2_hsotg_to_hcd() argument 463 return (struct usb_hcd *)hsotg->priv; in dwc2_hsotg_to_hcd() 473 static inline void disable_hc_int(struct dwc2_hsotg *hsotg, int chnum, u32 intr) in disable_hc_int() argument 475 u32 mask = dwc2_readl(hsotg, HCINTMSK(chnum)); in disable_hc_int() 478 dwc2_writel(hsotg, mask, HCINTMSK(chnum)); in disable_hc_int() 481 void dwc2_hc_cleanup(struct dwc2_hsotg *hsotg, struc 491 dwc2_read_hprt0(struct dwc2_hsotg *hsotg) dwc2_read_hprt0() argument 579 dwc2_hcd_qtd_unlink_and_free(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd, struct dwc2_qh *qh) dwc2_hcd_qtd_unlink_and_free() argument 692 dwc2_read_core_intr(struct dwc2_hsotg *hsotg) dwc2_read_core_intr() argument 734 dwc2_hcd_is_bandwidth_allocated(struct dwc2_hsotg *hsotg, struct usb_host_endpoint *ep) dwc2_hcd_is_bandwidth_allocated() argument 745 dwc2_hcd_get_ep_bandwidth(struct dwc2_hsotg *hsotg, struct usb_host_endpoint *ep) dwc2_hcd_get_ep_bandwidth() argument [all...] |
/kernel/linux/linux-6.6/drivers/usb/dwc2/ |
H A D | core.c | 35 * @hsotg: Programming view of the DWC_otg controller 37 int dwc2_backup_global_registers(struct dwc2_hsotg *hsotg) in dwc2_backup_global_registers() argument 41 dev_dbg(hsotg->dev, "%s\n", __func__); in dwc2_backup_global_registers() 44 gr = &hsotg->gr_backup; in dwc2_backup_global_registers() 46 gr->gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_backup_global_registers() 47 gr->gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_backup_global_registers() 48 gr->gahbcfg = dwc2_readl(hsotg, GAHBCFG); in dwc2_backup_global_registers() 49 gr->gusbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_backup_global_registers() 50 gr->grxfsiz = dwc2_readl(hsotg, GRXFSIZ); in dwc2_backup_global_registers() 51 gr->gnptxfsiz = dwc2_readl(hsotg, GNPTXFSI in dwc2_backup_global_registers() 69 dwc2_restore_global_registers(struct dwc2_hsotg *hsotg) dwc2_restore_global_registers() argument 107 dwc2_exit_partial_power_down(struct dwc2_hsotg *hsotg, int rem_wakeup, bool restore) dwc2_exit_partial_power_down() argument 131 dwc2_enter_partial_power_down(struct dwc2_hsotg *hsotg) dwc2_enter_partial_power_down() argument 146 dwc2_restore_essential_regs(struct dwc2_hsotg *hsotg, int rmode, int is_host) dwc2_restore_essential_regs() argument 214 dwc2_hib_restore_common(struct dwc2_hsotg *hsotg, int rem_wakeup, int is_host) dwc2_hib_restore_common() argument 286 dwc2_wait_for_mode(struct dwc2_hsotg *hsotg, bool host_mode) dwc2_wait_for_mode() argument 326 dwc2_iddig_filter_enabled(struct dwc2_hsotg *hsotg) dwc2_iddig_filter_enabled() argument 362 dwc2_enter_hibernation(struct dwc2_hsotg *hsotg, int is_host) dwc2_enter_hibernation() argument 380 dwc2_exit_hibernation(struct dwc2_hsotg *hsotg, int rem_wakeup, int reset, int is_host) dwc2_exit_hibernation() argument 393 dwc2_core_reset(struct dwc2_hsotg *hsotg, bool skip_wait) dwc2_core_reset() argument 502 dwc2_force_mode(struct dwc2_hsotg *hsotg, bool host) dwc2_force_mode() argument 550 dwc2_clear_force_mode(struct dwc2_hsotg *hsotg) dwc2_clear_force_mode() argument 571 dwc2_force_dr_mode(struct dwc2_hsotg *hsotg) dwc2_force_dr_mode() argument 599 dwc2_enable_acg(struct dwc2_hsotg *hsotg) dwc2_enable_acg() argument 618 dwc2_dump_host_registers(struct dwc2_hsotg *hsotg) dwc2_dump_host_registers() argument 691 dwc2_dump_global_registers(struct dwc2_hsotg *hsotg) dwc2_dump_global_registers() argument 782 dwc2_flush_tx_fifo(struct dwc2_hsotg *hsotg, const int num) dwc2_flush_tx_fifo() argument 810 dwc2_flush_rx_fifo(struct dwc2_hsotg *hsotg) dwc2_flush_rx_fifo() argument 833 dwc2_is_controller_alive(struct dwc2_hsotg *hsotg) dwc2_is_controller_alive() argument 847 dwc2_enable_global_interrupts(struct dwc2_hsotg *hsotg) dwc2_enable_global_interrupts() argument 861 dwc2_disable_global_interrupts(struct dwc2_hsotg *hsotg) dwc2_disable_global_interrupts() argument 870 dwc2_op_mode(struct dwc2_hsotg *hsotg) dwc2_op_mode() argument 879 dwc2_hw_is_otg(struct dwc2_hsotg *hsotg) dwc2_hw_is_otg() argument 889 dwc2_hw_is_host(struct dwc2_hsotg *hsotg) dwc2_hw_is_host() argument 898 dwc2_hw_is_device(struct dwc2_hsotg *hsotg) dwc2_hw_is_device() argument 915 dwc2_hsotg_wait_bit_set(struct dwc2_hsotg *hsotg, u32 offset, u32 mask, u32 timeout) dwc2_hsotg_wait_bit_set() argument 938 dwc2_hsotg_wait_bit_clear(struct dwc2_hsotg *hsotg, u32 offset, u32 mask, u32 timeout) dwc2_hsotg_wait_bit_clear() argument 956 dwc2_init_fs_ls_pclk_sel(struct dwc2_hsotg *hsotg) dwc2_init_fs_ls_pclk_sel() argument 978 dwc2_fs_phy_init(struct dwc2_hsotg *hsotg, bool select_phy) dwc2_fs_phy_init() argument 1048 dwc2_hs_phy_init(struct dwc2_hsotg *hsotg, bool select_phy) dwc2_hs_phy_init() argument 1105 dwc2_set_turnaround_time(struct dwc2_hsotg *hsotg) dwc2_set_turnaround_time() argument 1123 dwc2_phy_init(struct dwc2_hsotg *hsotg, bool select_phy) dwc2_phy_init() argument [all...] |
H A D | core_intr.c | 27 static const char *dwc2_op_state_str(struct dwc2_hsotg *hsotg) in dwc2_op_state_str() argument 29 switch (hsotg->op_state) { in dwc2_op_state_str() 50 * @hsotg: Programming view of DWC_otg controller 52 static void dwc2_handle_usb_port_intr(struct dwc2_hsotg *hsotg) in dwc2_handle_usb_port_intr() argument 54 u32 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_handle_usb_port_intr() 58 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_handle_usb_port_intr() 65 * @hsotg: Programming view of DWC_otg controller 67 static void dwc2_handle_mode_mismatch_intr(struct dwc2_hsotg *hsotg) in dwc2_handle_mode_mismatch_intr() argument 70 dwc2_writel(hsotg, GINTSTS_MODEMIS, GINTSTS); in dwc2_handle_mode_mismatch_intr() 72 dev_warn(hsotg in dwc2_handle_mode_mismatch_intr() 82 dwc2_handle_otg_intr(struct dwc2_hsotg *hsotg) dwc2_handle_otg_intr() argument 244 dwc2_handle_conn_id_status_change_intr(struct dwc2_hsotg *hsotg) dwc2_handle_conn_id_status_change_intr() argument 277 dwc2_handle_session_req_intr(struct dwc2_hsotg *hsotg) dwc2_handle_session_req_intr() argument 325 dwc2_wakeup_from_lpm_l1(struct dwc2_hsotg *hsotg) dwc2_wakeup_from_lpm_l1() argument 377 dwc2_handle_wakeup_detected_intr(struct dwc2_hsotg *hsotg) dwc2_handle_wakeup_detected_intr() argument 455 dwc2_handle_disconnect_intr(struct dwc2_hsotg *hsotg) dwc2_handle_disconnect_intr() argument 475 dwc2_handle_usb_suspend_intr(struct dwc2_hsotg *hsotg) dwc2_handle_usb_suspend_intr() argument 563 dwc2_handle_lpm_intr(struct dwc2_hsotg *hsotg) dwc2_handle_lpm_intr() argument 630 dwc2_read_common_intr(struct dwc2_hsotg *hsotg) dwc2_read_common_intr() argument 659 dwc_handle_gpwrdn_disc_det(struct dwc2_hsotg *hsotg, u32 gpwrdn) dwc_handle_gpwrdn_disc_det() argument 723 dwc2_handle_gpwrdn_intr(struct dwc2_hsotg *hsotg) dwc2_handle_gpwrdn_intr() argument 802 struct dwc2_hsotg *hsotg = dev; dwc2_handle_common_intr() local [all...] |
H A D | platform.c | 18 #include <linux/platform_data/s3c-hsotg.h> 52 static int dwc2_get_dr_mode(struct dwc2_hsotg *hsotg) in dwc2_get_dr_mode() argument 56 hsotg->dr_mode = usb_get_dr_mode(hsotg->dev); in dwc2_get_dr_mode() 57 if (hsotg->dr_mode == USB_DR_MODE_UNKNOWN) in dwc2_get_dr_mode() 58 hsotg->dr_mode = USB_DR_MODE_OTG; in dwc2_get_dr_mode() 60 mode = hsotg->dr_mode; in dwc2_get_dr_mode() 62 if (dwc2_hw_is_device(hsotg)) { in dwc2_get_dr_mode() 64 dev_err(hsotg->dev, in dwc2_get_dr_mode() 69 } else if (dwc2_hw_is_host(hsotg)) { in dwc2_get_dr_mode() 94 __dwc2_lowlevel_hw_enable(struct dwc2_hsotg *hsotg) __dwc2_lowlevel_hw_enable() argument 155 dwc2_lowlevel_hw_enable(struct dwc2_hsotg *hsotg) dwc2_lowlevel_hw_enable() argument 164 __dwc2_lowlevel_hw_disable(struct dwc2_hsotg *hsotg) __dwc2_lowlevel_hw_disable() argument 197 dwc2_lowlevel_hw_disable(struct dwc2_hsotg *hsotg) dwc2_lowlevel_hw_disable() argument 211 dwc2_lowlevel_hw_init(struct dwc2_hsotg *hsotg) dwc2_lowlevel_hw_init() argument 306 struct dwc2_hsotg *hsotg = platform_get_drvdata(dev); dwc2_driver_remove() local 370 struct dwc2_hsotg *hsotg = platform_get_drvdata(dev); dwc2_driver_shutdown() local 381 dwc2_check_core_endianness(struct dwc2_hsotg *hsotg) dwc2_check_core_endianness() argument 399 dwc2_check_core_version(struct dwc2_hsotg *hsotg) dwc2_check_core_version() argument 438 struct dwc2_hsotg *hsotg; dwc2_driver_probe() local [all...] |
H A D | hcd.c | 40 * @hsotg: Programming view of the DWC_otg controller 42 static void dwc2_enable_common_interrupts(struct dwc2_hsotg *hsotg) in dwc2_enable_common_interrupts() argument 47 dwc2_writel(hsotg, 0xffffffff, GOTGINT); in dwc2_enable_common_interrupts() 50 dwc2_writel(hsotg, 0xffffffff, GINTSTS); in dwc2_enable_common_interrupts() 55 if (!hsotg->params.host_dma) in dwc2_enable_common_interrupts() 57 if (!hsotg->params.external_id_pin_ctl) in dwc2_enable_common_interrupts() 63 if (dwc2_is_device_mode(hsotg) && hsotg->params.lpm) in dwc2_enable_common_interrupts() 66 dwc2_writel(hsotg, intmsk, GINTMSK); in dwc2_enable_common_interrupts() 69 static int dwc2_gahbcfg_init(struct dwc2_hsotg *hsotg) in dwc2_gahbcfg_init() argument 103 dwc2_gusbcfg_init(struct dwc2_hsotg *hsotg) dwc2_gusbcfg_init() argument 134 dwc2_vbus_supply_init(struct dwc2_hsotg *hsotg) dwc2_vbus_supply_init() argument 142 dwc2_vbus_supply_exit(struct dwc2_hsotg *hsotg) dwc2_vbus_supply_exit() argument 155 dwc2_enable_host_interrupts(struct dwc2_hsotg *hsotg) dwc2_enable_host_interrupts() argument 179 dwc2_disable_host_interrupts(struct dwc2_hsotg *hsotg) dwc2_disable_host_interrupts() argument 196 dwc2_calculate_dynamic_fifo(struct dwc2_hsotg *hsotg) dwc2_calculate_dynamic_fifo() argument 255 dwc2_config_fifos(struct dwc2_hsotg *hsotg) dwc2_config_fifos() argument 326 dwc2_calc_frame_interval(struct dwc2_hsotg *hsotg) dwc2_calc_frame_interval() argument 373 dwc2_read_packet(struct dwc2_hsotg *hsotg, u8 *dest, u16 bytes) dwc2_read_packet() argument 402 dwc2_dump_channel_info(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_dump_channel_info() argument 462 dwc2_host_start(struct dwc2_hsotg *hsotg) dwc2_host_start() argument 470 dwc2_host_disconnect(struct dwc2_hsotg *hsotg) dwc2_host_disconnect() argument 477 dwc2_host_hub_info(struct dwc2_hsotg *hsotg, void *context, int *hub_addr, int *hub_port) dwc2_host_hub_info() argument 495 dwc2_hc_enable_slave_ints(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_hc_enable_slave_ints() argument 573 dwc2_hc_enable_dma_ints(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_hc_enable_dma_ints() argument 610 dwc2_hc_enable_ints(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_hc_enable_ints() argument 651 dwc2_hc_init(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_hc_init() argument 766 dwc2_hc_halt(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, enum dwc2_halt_status halt_status) dwc2_hc_halt() argument 930 dwc2_hc_cleanup(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_hc_cleanup() argument 958 dwc2_hc_set_even_odd_frame(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, u32 *hcchar) dwc2_hc_set_even_odd_frame() argument 1093 dwc2_hc_write_packet(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_hc_write_packet() argument 1139 dwc2_hc_do_ping(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_hc_do_ping() argument 1192 dwc2_hc_start_transfer(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_hc_start_transfer() argument 1407 dwc2_hc_start_transfer_ddma(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_hc_start_transfer_ddma() argument 1496 dwc2_hc_continue_transfer(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan) dwc2_hc_continue_transfer() argument 1570 dwc2_kill_urbs_in_qh_list(struct dwc2_hsotg *hsotg, struct list_head *qh_list) dwc2_kill_urbs_in_qh_list() argument 1585 dwc2_qh_list_free(struct dwc2_hsotg *hsotg, struct list_head *qh_list) dwc2_qh_list_free() argument 1628 dwc2_kill_all_urbs(struct dwc2_hsotg *hsotg) dwc2_kill_all_urbs() argument 1644 dwc2_hcd_start(struct dwc2_hsotg *hsotg) dwc2_hcd_start() argument 1664 dwc2_hcd_cleanup_channels(struct dwc2_hsotg *hsotg) dwc2_hcd_cleanup_channels() argument 1723 dwc2_hcd_connect(struct dwc2_hsotg *hsotg) dwc2_hcd_connect() argument 1740 dwc2_hcd_disconnect(struct dwc2_hsotg *hsotg, bool force) dwc2_hcd_disconnect() argument 1807 dwc2_hcd_rem_wakeup(struct dwc2_hsotg *hsotg) dwc2_hcd_rem_wakeup() argument 1825 dwc2_hcd_stop(struct dwc2_hsotg *hsotg) dwc2_hcd_stop() argument 1844 dwc2_hcd_urb_enqueue(struct dwc2_hsotg *hsotg, struct dwc2_hcd_urb *urb, struct dwc2_qh *qh, struct dwc2_qtd *qtd) dwc2_hcd_urb_enqueue() argument 1904 dwc2_hcd_urb_dequeue(struct dwc2_hsotg *hsotg, struct dwc2_hcd_urb *urb) dwc2_hcd_urb_dequeue() argument 1962 dwc2_hcd_endpoint_disable(struct dwc2_hsotg *hsotg, struct usb_host_endpoint *ep, int retry) dwc2_hcd_endpoint_disable() argument 2021 dwc2_hcd_endpoint_reset(struct dwc2_hsotg *hsotg, struct usb_host_endpoint *ep) dwc2_hcd_endpoint_reset() argument 2041 dwc2_core_init(struct dwc2_hsotg *hsotg, bool initial_setup) dwc2_core_init() argument 2129 dwc2_core_host_init(struct dwc2_hsotg *hsotg) dwc2_core_host_init() argument 2269 dwc2_hcd_reinit(struct dwc2_hsotg *hsotg) dwc2_hcd_reinit() argument 2305 dwc2_hc_init_split(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, struct dwc2_qtd *qtd, struct dwc2_hcd_urb *urb) dwc2_hc_init_split() argument 2319 dwc2_hc_init_xfer(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, struct dwc2_qtd *qtd) dwc2_hc_init_xfer() argument 2409 dwc2_alloc_split_dma_aligned_buf(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, struct dwc2_host_chan *chan) dwc2_alloc_split_dma_aligned_buf() argument 2544 dwc2_assign_and_init_hc(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_assign_and_init_hc() argument 2681 dwc2_hcd_select_transactions( struct dwc2_hsotg *hsotg) dwc2_hcd_select_transactions() argument 2782 dwc2_queue_transaction(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, u16 fifo_dwords_avail) dwc2_queue_transaction() argument 2844 dwc2_process_periodic_channels(struct dwc2_hsotg *hsotg) dwc2_process_periodic_channels() argument 2978 dwc2_process_non_periodic_channels(struct dwc2_hsotg *hsotg) dwc2_process_non_periodic_channels() argument 3102 dwc2_hcd_queue_transactions(struct dwc2_hsotg *hsotg, enum dwc2_transaction_type tr_type) dwc2_hcd_queue_transactions() argument 3133 struct dwc2_hsotg *hsotg = container_of(work, struct dwc2_hsotg, dwc2_conn_id_status_change() local 3224 struct dwc2_hsotg *hsotg = from_timer(hsotg, t, wkp_timer); dwc2_wakeup_detected() local 3247 dwc2_host_is_b_hnp_enabled(struct dwc2_hsotg *hsotg) dwc2_host_is_b_hnp_enabled() argument 3265 dwc2_port_suspend(struct dwc2_hsotg *hsotg, u16 windex) dwc2_port_suspend() argument 3339 dwc2_port_resume(struct dwc2_hsotg *hsotg) dwc2_port_resume() argument 3376 dwc2_hcd_hub_control(struct dwc2_hsotg *hsotg, u16 typereq, u16 wvalue, u16 windex, char *buf, u16 wlength) dwc2_hcd_hub_control() argument 3742 dwc2_hcd_is_status_changed(struct dwc2_hsotg *hsotg, int port) dwc2_hcd_is_status_changed() argument 3773 dwc2_hcd_get_frame_number(struct dwc2_hsotg *hsotg) dwc2_hcd_get_frame_number() argument 3784 dwc2_hcd_get_future_frame_number(struct dwc2_hsotg *hsotg, int us) dwc2_hcd_get_future_frame_number() argument 3813 dwc2_hcd_is_b_host(struct dwc2_hsotg *hsotg) dwc2_hcd_is_b_host() argument 3818 dwc2_hcd_urb_alloc(struct dwc2_hsotg *hsotg, int iso_desc_count, gfp_t mem_flags) dwc2_hcd_urb_alloc() argument 3830 dwc2_hcd_urb_set_pipeinfo(struct dwc2_hsotg *hsotg, struct dwc2_hcd_urb *urb, u8 dev_addr, u8 ep_num, u8 ep_type, u8 ep_dir, u16 maxp, u16 maxp_mult) dwc2_hcd_urb_set_pipeinfo() argument 3853 dwc2_hcd_dump_state(struct dwc2_hsotg *hsotg) dwc2_hcd_dump_state() argument 3979 struct dwc2_hsotg *hsotg; global() member 4011 dwc2_host_get_tt_info(struct dwc2_hsotg *hsotg, void *context, gfp_t mem_flags, int *ttport) dwc2_host_get_tt_info() argument 4059 dwc2_host_put_tt_info(struct dwc2_hsotg *hsotg, struct dwc2_tt *dwc_tt) dwc2_host_put_tt_info() argument 4074 dwc2_host_get_speed(struct dwc2_hsotg *hsotg, void *context) dwc2_host_get_speed() argument 4113 dwc2_host_complete(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd, int status) dwc2_host_complete() argument 4192 struct dwc2_hsotg *hsotg = container_of(work, struct dwc2_hsotg, dwc2_hcd_start_func() local 4204 struct dwc2_hsotg *hsotg = container_of(work, struct dwc2_hsotg, dwc2_hcd_reset_func() local 4223 struct dwc2_hsotg *hsotg = container_of(work, struct dwc2_hsotg, dwc2_hcd_phy_reset_func() local 4245 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_start() local 4294 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_stop() local 4323 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_suspend() local 4405 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_resume() local 4523 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_get_frame_number() local 4532 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); dwc2_dump_urb_info() local 4611 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_urb_enqueue() local 4799 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_urb_dequeue() local 4845 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_endpoint_disable() local 4861 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_endpoint_reset() local 4882 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_irq() local 4895 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_hub_status_data() local 4914 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); _dwc2_hcd_clear_tt_buffer_complete() local 4937 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); dwc2_change_bus_speed() local 4948 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); dwc2_free_dev() local 4965 struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); dwc2_reset_device() local 5017 dwc2_hcd_free(struct dwc2_hsotg *hsotg) dwc2_hcd_free() argument 5082 dwc2_hcd_release(struct dwc2_hsotg *hsotg) dwc2_hcd_release() argument 5096 dwc2_hcd_init(struct dwc2_hsotg *hsotg) dwc2_hcd_init() argument 5358 dwc2_hcd_remove(struct dwc2_hsotg *hsotg) dwc2_hcd_remove() argument 5399 dwc2_backup_host_registers(struct dwc2_hsotg *hsotg) dwc2_backup_host_registers() argument 5428 dwc2_restore_host_registers(struct dwc2_hsotg *hsotg) dwc2_restore_host_registers() argument 5463 dwc2_host_enter_hibernation(struct dwc2_hsotg *hsotg) dwc2_host_enter_hibernation() argument 5573 dwc2_host_exit_hibernation(struct dwc2_hsotg *hsotg, int rem_wakeup, int reset) dwc2_host_exit_hibernation() argument 5720 dwc2_host_enter_partial_power_down(struct dwc2_hsotg *hsotg) dwc2_host_enter_partial_power_down() argument 5795 dwc2_host_exit_partial_power_down(struct dwc2_hsotg *hsotg, int rem_wakeup, bool restore) dwc2_host_exit_partial_power_down() argument 5877 dwc2_host_enter_clock_gating(struct dwc2_hsotg *hsotg) dwc2_host_enter_clock_gating() argument 5913 dwc2_host_exit_clock_gating(struct dwc2_hsotg *hsotg, int rem_wakeup) dwc2_host_exit_clock_gating() argument [all...] |
H A D | drd.c | 20 static void dwc2_ovr_init(struct dwc2_hsotg *hsotg) in dwc2_ovr_init() argument 25 spin_lock_irqsave(&hsotg->lock, flags); in dwc2_ovr_init() 27 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_init() 30 if (hsotg->role_sw_default_mode == USB_DR_MODE_HOST) in dwc2_ovr_init() 32 else if (hsotg->role_sw_default_mode == USB_DR_MODE_PERIPHERAL) in dwc2_ovr_init() 34 dwc2_writel(hsotg, gotgctl, GOTGCTL); in dwc2_ovr_init() 36 spin_unlock_irqrestore(&hsotg->lock, flags); in dwc2_ovr_init() 38 dwc2_force_mode(hsotg, (hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_ovr_init() 39 (hsotg in dwc2_ovr_init() 42 dwc2_ovr_avalid(struct dwc2_hsotg *hsotg, bool valid) dwc2_ovr_avalid() argument 64 dwc2_ovr_bvalid(struct dwc2_hsotg *hsotg, bool valid) dwc2_ovr_bvalid() argument 88 struct dwc2_hsotg *hsotg = usb_role_switch_get_drvdata(sw); dwc2_drd_role_sw_set() local 164 dwc2_drd_init(struct dwc2_hsotg *hsotg) dwc2_drd_init() argument 195 dwc2_drd_suspend(struct dwc2_hsotg *hsotg) dwc2_drd_suspend() argument 208 dwc2_drd_resume(struct dwc2_hsotg *hsotg) dwc2_drd_resume() argument 246 dwc2_drd_exit(struct dwc2_hsotg *hsotg) dwc2_drd_exit() argument [all...] |
H A D | gadget.c | 51 static inline void dwc2_set_bit(struct dwc2_hsotg *hsotg, u32 offset, u32 val) in dwc2_set_bit() argument 53 dwc2_writel(hsotg, dwc2_readl(hsotg, offset) | val, offset); in dwc2_set_bit() 56 static inline void dwc2_clear_bit(struct dwc2_hsotg *hsotg, u32 offset, u32 val) in dwc2_clear_bit() argument 58 dwc2_writel(hsotg, dwc2_readl(hsotg, offset) & ~val, offset); in dwc2_clear_bit() 61 static inline struct dwc2_hsotg_ep *index_to_ep(struct dwc2_hsotg *hsotg, in index_to_ep() argument 65 return hsotg->eps_in[ep_index]; in index_to_ep() 67 return hsotg->eps_out[ep_index]; in index_to_ep() 71 static void dwc2_hsotg_dump(struct dwc2_hsotg *hsotg); 92 using_dma(struct dwc2_hsotg *hsotg) using_dma() argument 103 using_desc_dma(struct dwc2_hsotg *hsotg) using_desc_dma() argument 117 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_incr_frame_num() local 144 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_dec_frame_num_by_one() local 161 dwc2_hsotg_en_gsint(struct dwc2_hsotg *hsotg, u32 ints) dwc2_hsotg_en_gsint() argument 179 dwc2_hsotg_disable_gsint(struct dwc2_hsotg *hsotg, u32 ints) dwc2_hsotg_disable_gsint() argument 200 dwc2_hsotg_ctrl_epint(struct dwc2_hsotg *hsotg, unsigned int ep, unsigned int dir_in, unsigned int en) dwc2_hsotg_ctrl_epint() argument 226 dwc2_hsotg_tx_fifo_count(struct dwc2_hsotg *hsotg) dwc2_hsotg_tx_fifo_count() argument 242 dwc2_hsotg_tx_fifo_total_depth(struct dwc2_hsotg *hsotg) dwc2_hsotg_tx_fifo_total_depth() argument 267 dwc2_gadget_wkup_alert_handler(struct dwc2_hsotg *hsotg) dwc2_gadget_wkup_alert_handler() argument 289 dwc2_hsotg_tx_fifo_average_depth(struct dwc2_hsotg *hsotg) dwc2_hsotg_tx_fifo_average_depth() argument 308 dwc2_hsotg_init_fifo(struct dwc2_hsotg *hsotg) dwc2_hsotg_init_fifo() argument 430 dwc2_hsotg_unmap_dma(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep, struct dwc2_hsotg_req *hs_req) dwc2_hsotg_unmap_dma() argument 447 dwc2_gadget_alloc_ctrl_desc_chains(struct dwc2_hsotg *hsotg) dwc2_gadget_alloc_ctrl_desc_chains() argument 503 dwc2_hsotg_write_fifo(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep, struct dwc2_hsotg_req *hs_req) dwc2_hsotg_write_fifo() argument 705 dwc2_hsotg_read_frameno(struct dwc2_hsotg *hsotg) dwc2_hsotg_read_frameno() argument 913 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_fill_isoc_desc() local 982 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_start_isoc_ddma() local 1048 dwc2_hsotg_start_req(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep, struct dwc2_hsotg_req *hs_req, bool continuing) dwc2_hsotg_start_req() argument 1263 dwc2_hsotg_map_dma(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep, struct usb_request *req) dwc2_hsotg_map_dma() argument 1283 dwc2_hsotg_handle_unaligned_buf_start(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep, struct dwc2_hsotg_req *hs_req) dwc2_hsotg_handle_unaligned_buf_start() argument 1316 dwc2_hsotg_handle_unaligned_buf_complete(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep, struct dwc2_hsotg_req *hs_req) dwc2_hsotg_handle_unaligned_buf_complete() argument 1348 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_target_frame_elapsed() local 1375 dwc2_gadget_set_ep0_desc_chain(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep) dwc2_gadget_set_ep0_desc_chain() argument 1557 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_hsotg_complete_oursetup() local 1572 ep_from_windex(struct dwc2_hsotg *hsotg, u32 windex) ep_from_windex() argument 1593 dwc2_hsotg_set_test_mode(struct dwc2_hsotg *hsotg, int testmode) dwc2_hsotg_set_test_mode() argument 1623 dwc2_hsotg_send_reply(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *ep, void *buff, int length) dwc2_hsotg_send_reply() argument 1666 dwc2_hsotg_process_req_status(struct dwc2_hsotg *hsotg, struct usb_ctrlrequest *ctrl) dwc2_hsotg_process_req_status() argument 1744 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_start_next_request() local 1770 dwc2_hsotg_process_req_feature(struct dwc2_hsotg *hsotg, struct usb_ctrlrequest *ctrl) dwc2_hsotg_process_req_feature() argument 1889 dwc2_hsotg_stall_ep0(struct dwc2_hsotg *hsotg) dwc2_hsotg_stall_ep0() argument 1928 dwc2_hsotg_process_control(struct dwc2_hsotg *hsotg, struct usb_ctrlrequest *ctrl) dwc2_hsotg_process_control() argument 2012 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_hsotg_complete_setup() local 2034 dwc2_hsotg_enqueue_setup(struct dwc2_hsotg *hsotg) dwc2_hsotg_enqueue_setup() argument 2066 dwc2_hsotg_program_zlp(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep) dwc2_hsotg_program_zlp() argument 2114 dwc2_hsotg_complete_request(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep, struct dwc2_hsotg_req *hs_req, int result) dwc2_hsotg_complete_request() argument 2179 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_complete_isoc_request_ddma() local 2238 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_handle_isoc_bna() local 2259 dwc2_hsotg_rx_data(struct dwc2_hsotg *hsotg, int ep_idx, int size) dwc2_hsotg_rx_data() argument 2323 dwc2_hsotg_ep0_zlp(struct dwc2_hsotg *hsotg, bool dir_in) dwc2_hsotg_ep0_zlp() argument 2342 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_get_xfersize_ddma() local 2386 dwc2_hsotg_handle_outdone(struct dwc2_hsotg *hsotg, int epnum) dwc2_hsotg_handle_outdone() argument 2477 dwc2_hsotg_handle_rx(struct dwc2_hsotg *hsotg) dwc2_hsotg_handle_rx() argument 2577 dwc2_hsotg_set_ep_maxpacket(struct dwc2_hsotg *hsotg, unsigned int ep, unsigned int mps, unsigned int mc, unsigned int dir_in) dwc2_hsotg_set_ep_maxpacket() argument 2629 dwc2_hsotg_txfifo_flush(struct dwc2_hsotg *hsotg, unsigned int idx) dwc2_hsotg_txfifo_flush() argument 2648 dwc2_hsotg_trytx(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep) dwc2_hsotg_trytx() argument 2681 dwc2_hsotg_complete_in(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep) dwc2_hsotg_complete_in() argument 2788 dwc2_gadget_read_ep_interrupts(struct dwc2_hsotg *hsotg, unsigned int idx, int dir_in) dwc2_gadget_read_ep_interrupts() argument 2822 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_handle_ep_disabled() local 2886 struct dwc2_hsotg *hsotg = ep->parent; dwc2_gadget_handle_out_token_ep_disabled() local 2954 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_gadget_handle_nak() local 3035 dwc2_hsotg_epint(struct dwc2_hsotg *hsotg, unsigned int idx, int dir_in) dwc2_hsotg_epint() argument 3196 dwc2_hsotg_irq_enumdone(struct dwc2_hsotg *hsotg) dwc2_hsotg_irq_enumdone() argument 3282 kill_all_requests(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *ep, int result) kill_all_requests() argument 3311 dwc2_hsotg_disconnect(struct dwc2_hsotg *hsotg) dwc2_hsotg_disconnect() argument 3342 dwc2_hsotg_irq_fifoempty(struct dwc2_hsotg *hsotg, bool periodic) dwc2_hsotg_irq_fifoempty() argument 3380 dwc2_hsotg_core_init_disconnected(struct dwc2_hsotg *hsotg, bool is_usb_reset) dwc2_hsotg_core_init_disconnected() argument 3587 dwc2_hsotg_core_disconnect(struct dwc2_hsotg *hsotg) dwc2_hsotg_core_disconnect() argument 3593 dwc2_hsotg_core_connect(struct dwc2_hsotg *hsotg) dwc2_hsotg_core_connect() argument 3613 dwc2_gadget_handle_incomplete_isoc_in(struct dwc2_hsotg *hsotg) dwc2_gadget_handle_incomplete_isoc_in() argument 3656 dwc2_gadget_handle_incomplete_isoc_out(struct dwc2_hsotg *hsotg) dwc2_gadget_handle_incomplete_isoc_out() argument 3703 struct dwc2_hsotg *hsotg = pw; dwc2_hsotg_irq() local 3904 dwc2_hsotg_ep_stop_xfr(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep) dwc2_hsotg_ep_stop_xfr() argument 4008 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_hsotg_ep_enable() local 4237 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_hsotg_ep_disable() local 4285 struct dwc2_hsotg *hsotg = hs_ep->parent; dwc2_hsotg_ep_disable_lock() local 4483 dwc2_hsotg_init(struct dwc2_hsotg *hsotg) dwc2_hsotg_init() argument 4523 struct dwc2_hsotg *hsotg = to_hsotg(gadget); dwc2_hsotg_udc_start() local 4587 struct dwc2_hsotg *hsotg = to_hsotg(gadget); dwc2_hsotg_udc_stop() local 4640 struct dwc2_hsotg *hsotg = to_hsotg(gadget); dwc2_hsotg_set_selfpowered() local 4659 struct dwc2_hsotg *hsotg = to_hsotg(gadget); dwc2_hsotg_pullup() local 4692 struct dwc2_hsotg *hsotg = to_hsotg(gadget); dwc2_hsotg_vbus_session() local 4736 struct dwc2_hsotg *hsotg = to_hsotg(gadget); dwc2_hsotg_vbus_draw() local 4745 struct dwc2_hsotg *hsotg = to_hsotg(g); dwc2_gadget_set_speed() local 4787 dwc2_hsotg_initep(struct dwc2_hsotg *hsotg, struct dwc2_hsotg_ep *hs_ep, int epnum, bool dir_in) dwc2_hsotg_initep() argument 4859 dwc2_hsotg_hw_cfg(struct dwc2_hsotg *hsotg) dwc2_hsotg_hw_cfg() argument 4914 dwc2_hsotg_dump(struct dwc2_hsotg *hsotg) dwc2_hsotg_dump() argument 4965 dwc2_gadget_init(struct dwc2_hsotg *hsotg) dwc2_gadget_init() argument 5071 dwc2_hsotg_remove(struct dwc2_hsotg *hsotg) dwc2_hsotg_remove() argument 5079 dwc2_hsotg_suspend(struct dwc2_hsotg *hsotg) dwc2_hsotg_suspend() argument 5110 dwc2_hsotg_resume(struct dwc2_hsotg *hsotg) dwc2_hsotg_resume() argument 5141 dwc2_backup_device_registers(struct dwc2_hsotg *hsotg) dwc2_backup_device_registers() argument 5197 dwc2_restore_device_registers(struct dwc2_hsotg *hsotg, int remote_wakeup) dwc2_restore_device_registers() argument 5258 dwc2_gadget_init_lpm(struct dwc2_hsotg *hsotg) dwc2_gadget_init_lpm() argument 5286 dwc2_gadget_program_ref_clk(struct dwc2_hsotg *hsotg) dwc2_gadget_program_ref_clk() argument 5306 dwc2_gadget_enter_hibernation(struct dwc2_hsotg *hsotg) dwc2_gadget_enter_hibernation() argument 5379 dwc2_gadget_exit_hibernation(struct dwc2_hsotg *hsotg, int rem_wakeup, int reset) dwc2_gadget_exit_hibernation() argument 5489 dwc2_gadget_enter_partial_power_down(struct dwc2_hsotg *hsotg) dwc2_gadget_enter_partial_power_down() argument 5551 dwc2_gadget_exit_partial_power_down(struct dwc2_hsotg *hsotg, bool restore) dwc2_gadget_exit_partial_power_down() argument 5616 dwc2_gadget_enter_clock_gating(struct dwc2_hsotg *hsotg) dwc2_gadget_enter_clock_gating() argument 5646 dwc2_gadget_exit_clock_gating(struct dwc2_hsotg *hsotg, int rem_wakeup) dwc2_gadget_exit_clock_gating() argument [all...] |
H A D | params.c | 18 static void dwc2_set_bcm_params(struct dwc2_hsotg *hsotg) in dwc2_set_bcm_params() argument 20 struct dwc2_core_params *p = &hsotg->params; in dwc2_set_bcm_params() 28 static void dwc2_set_his_params(struct dwc2_hsotg *hsotg) in dwc2_set_his_params() argument 30 struct dwc2_core_params *p = &hsotg->params; in dwc2_set_his_params() 51 static void dwc2_set_jz4775_params(struct dwc2_hsotg *hsotg) in dwc2_set_jz4775_params() argument 53 struct dwc2_core_params *p = &hsotg->params; in dwc2_set_jz4775_params() 60 !device_property_read_bool(hsotg->dev, "disable-over-current"); in dwc2_set_jz4775_params() 63 static void dwc2_set_loongson_params(struct dwc2_hsotg *hsotg) in dwc2_set_loongson_params() argument 65 struct dwc2_core_params *p = &hsotg->params; in dwc2_set_loongson_params() 71 static void dwc2_set_x1600_params(struct dwc2_hsotg *hsotg) in dwc2_set_x1600_params() argument 84 dwc2_set_x2000_params(struct dwc2_hsotg *hsotg) dwc2_set_x2000_params() argument 100 dwc2_set_s3c6400_params(struct dwc2_hsotg *hsotg) dwc2_set_s3c6400_params() argument 109 dwc2_set_socfpga_agilex_params(struct dwc2_hsotg *hsotg) dwc2_set_socfpga_agilex_params() argument 117 dwc2_set_rk_params(struct dwc2_hsotg *hsotg) dwc2_set_rk_params() argument 135 dwc2_set_ltq_params(struct dwc2_hsotg *hsotg) dwc2_set_ltq_params() argument 150 dwc2_set_amlogic_params(struct dwc2_hsotg *hsotg) dwc2_set_amlogic_params() argument 167 dwc2_set_amlogic_g12a_params(struct dwc2_hsotg *hsotg) dwc2_set_amlogic_g12a_params() argument 177 dwc2_set_amlogic_a1_params(struct dwc2_hsotg *hsotg) dwc2_set_amlogic_a1_params() argument 196 dwc2_set_amcc_params(struct dwc2_hsotg *hsotg) dwc2_set_amcc_params() argument 203 dwc2_set_stm32f4x9_fsotg_params(struct dwc2_hsotg *hsotg) dwc2_set_stm32f4x9_fsotg_params() argument 219 dwc2_set_stm32f7_hsotg_params(struct dwc2_hsotg *hsotg) dwc2_set_stm32f7_hsotg_params() argument 228 dwc2_set_stm32mp15_fsotg_params(struct dwc2_hsotg *hsotg) dwc2_set_stm32mp15_fsotg_params() argument 250 dwc2_set_stm32mp15_hsotg_params(struct dwc2_hsotg *hsotg) dwc2_set_stm32mp15_hsotg_params() argument 335 dwc2_set_param_otg_cap(struct dwc2_hsotg *hsotg) dwc2_set_param_otg_cap() argument 355 dwc2_set_param_phy_type(struct dwc2_hsotg *hsotg) dwc2_set_param_phy_type() argument 375 dwc2_set_param_speed(struct dwc2_hsotg *hsotg) dwc2_set_param_speed() argument 391 dwc2_set_param_phy_utmi_width(struct dwc2_hsotg *hsotg) dwc2_set_param_phy_utmi_width() argument 410 dwc2_set_param_tx_fifo_sizes(struct dwc2_hsotg *hsotg) dwc2_set_param_tx_fifo_sizes() argument 425 dwc2_set_param_power_down(struct dwc2_hsotg *hsotg) dwc2_set_param_power_down() argument 439 dwc2_set_param_lpm(struct dwc2_hsotg *hsotg) dwc2_set_param_lpm() argument 463 dwc2_set_default_params(struct dwc2_hsotg *hsotg) dwc2_set_default_params() argument 535 dwc2_get_device_properties(struct dwc2_hsotg *hsotg) dwc2_get_device_properties() argument 565 dwc2_check_param_otg_cap(struct dwc2_hsotg *hsotg) dwc2_check_param_otg_cap() argument 596 dwc2_check_param_phy_type(struct dwc2_hsotg *hsotg) dwc2_check_param_phy_type() argument 628 dwc2_check_param_speed(struct dwc2_hsotg *hsotg) dwc2_check_param_speed() argument 652 dwc2_check_param_phy_utmi_width(struct dwc2_hsotg *hsotg) dwc2_check_param_phy_utmi_width() argument 674 dwc2_check_param_power_down(struct dwc2_hsotg *hsotg) dwc2_check_param_power_down() argument 706 dwc2_check_param_tx_fifo_sizes(struct dwc2_hsotg *hsotg) dwc2_check_param_tx_fifo_sizes() argument 756 dwc2_check_params(struct dwc2_hsotg *hsotg) dwc2_check_params() argument 828 dwc2_get_host_hwparams(struct dwc2_hsotg *hsotg) dwc2_get_host_hwparams() argument 853 dwc2_get_dev_hwparams(struct dwc2_hsotg *hsotg) dwc2_get_dev_hwparams() argument 885 dwc2_get_hwparams(struct dwc2_hsotg *hsotg) dwc2_get_hwparams() argument 969 dwc2_init_params(struct dwc2_hsotg *hsotg) dwc2_init_params() argument [all...] |
H A D | hcd_intr.c | 33 static void dwc2_track_missed_sofs(struct dwc2_hsotg *hsotg) in dwc2_track_missed_sofs() argument 35 u16 curr_frame_number = hsotg->frame_number; in dwc2_track_missed_sofs() 36 u16 expected = dwc2_frame_num_inc(hsotg->last_frame_num, 1); in dwc2_track_missed_sofs() 39 dwc2_sch_vdbg(hsotg, "MISSED SOF %04x != %04x\n", in dwc2_track_missed_sofs() 43 if (hsotg->frame_num_idx < FRAME_NUM_ARRAY_SIZE) { in dwc2_track_missed_sofs() 45 hsotg->frame_num_array[hsotg->frame_num_idx] = in dwc2_track_missed_sofs() 47 hsotg->last_frame_num_array[hsotg->frame_num_idx] = in dwc2_track_missed_sofs() 48 hsotg in dwc2_track_missed_sofs() 67 dwc2_hc_handle_tt_clear(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, struct dwc2_qtd *qtd) dwc2_hc_handle_tt_clear() argument 110 dwc2_sof_intr(struct dwc2_hsotg *hsotg) dwc2_sof_intr() argument 156 dwc2_rx_fifo_level_intr(struct dwc2_hsotg *hsotg) dwc2_rx_fifo_level_intr() argument 214 dwc2_np_tx_fifo_empty_intr(struct dwc2_hsotg *hsotg) dwc2_np_tx_fifo_empty_intr() argument 226 dwc2_perio_tx_fifo_empty_intr(struct dwc2_hsotg *hsotg) dwc2_perio_tx_fifo_empty_intr() argument 233 dwc2_hprt0_enable(struct dwc2_hsotg *hsotg, u32 hprt0, u32 *hprt0_modify) dwc2_hprt0_enable() argument 325 dwc2_port_intr(struct dwc2_hsotg *hsotg) dwc2_port_intr() argument 406 dwc2_get_actual_xfer_length(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd, enum dwc2_halt_status halt_status, int *short_read) dwc2_get_actual_xfer_length() argument 460 dwc2_update_urb_state(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_hcd_urb *urb, struct dwc2_qtd *qtd) dwc2_update_urb_state() argument 510 dwc2_hcd_save_data_toggle(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hcd_save_data_toggle() argument 554 dwc2_update_isoc_urb_state( struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd, enum dwc2_halt_status halt_status) dwc2_update_isoc_urb_state() argument 628 dwc2_deactivate_qh(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, int free_qtd) dwc2_deactivate_qh() argument 674 dwc2_release_channel(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, struct dwc2_qtd *qtd, enum dwc2_halt_status halt_status) dwc2_release_channel() argument 773 dwc2_halt_channel(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, struct dwc2_qtd *qtd, enum dwc2_halt_status halt_status) dwc2_halt_channel() argument 833 dwc2_complete_non_periodic_xfer(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd, enum dwc2_halt_status halt_status) dwc2_complete_non_periodic_xfer() argument 883 dwc2_complete_periodic_xfer(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd, enum dwc2_halt_status halt_status) dwc2_complete_periodic_xfer() argument 900 dwc2_xfercomp_isoc_split_in(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_xfercomp_isoc_split_in() argument 958 dwc2_hc_xfercomp_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_xfercomp_intr() argument 1091 dwc2_hc_stall_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_stall_intr() argument 1141 dwc2_update_urb_state_abn(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_hcd_urb *urb, struct dwc2_qtd *qtd, enum dwc2_halt_status halt_status) dwc2_update_urb_state_abn() argument 1178 dwc2_hc_nak_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_nak_intr() argument 1283 dwc2_hc_ack_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_ack_intr() argument 1362 dwc2_hc_nyet_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_nyet_intr() argument 1486 dwc2_hc_babble_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_babble_intr() argument 1520 dwc2_hc_ahberr_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_ahberr_intr() argument 1624 dwc2_hc_xacterr_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_xacterr_intr() argument 1682 dwc2_hc_frmovrun_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_frmovrun_intr() argument 1715 dwc2_hc_datatglerr_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_datatglerr_intr() argument 1740 dwc2_halt_status_ok(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_halt_status_ok() argument 1800 dwc2_hc_chhltd_intr_dma(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_chhltd_intr_dma() argument 1978 dwc2_hc_chhltd_intr(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd) dwc2_hc_chhltd_intr() argument 2014 dwc2_hc_n_intr(struct dwc2_hsotg *hsotg, int chnum) dwc2_hc_n_intr() argument 2166 dwc2_hc_intr(struct dwc2_hsotg *hsotg) dwc2_hc_intr() argument 2202 dwc2_handle_hcd_intr(struct dwc2_hsotg *hsotg) dwc2_handle_hcd_intr() argument [all...] |
H A D | core.h | 30 #define dwc2_sch_dbg(hsotg, fmt, ...) \ 32 dev_name(hsotg->dev), ##__VA_ARGS__) 35 #define dwc2_sch_vdbg(hsotg, fmt, ...) \ 37 dev_name(hsotg->dev), ##__VA_ARGS__) 42 /* dwc2-hsotg declarations */ 1205 static inline u32 dwc2_readl(struct dwc2_hsotg *hsotg, u32 offset) in dwc2_readl() argument 1209 val = readl(hsotg->regs + offset); in dwc2_readl() 1210 if (hsotg->needs_byte_swap) in dwc2_readl() 1216 static inline void dwc2_writel(struct dwc2_hsotg *hsotg, u32 value, u32 offset) in dwc2_writel() argument 1218 if (hsotg in dwc2_writel() 1228 dwc2_readl_rep(struct dwc2_hsotg *hsotg, u32 offset, void *buffer, unsigned int count) dwc2_readl_rep() argument 1241 dwc2_writel_rep(struct dwc2_hsotg *hsotg, u32 offset, const void *buffer, unsigned int count) dwc2_writel_rep() argument 1272 dwc2_is_iot(struct dwc2_hsotg *hsotg) dwc2_is_iot() argument 1277 dwc2_is_fs_iot(struct dwc2_hsotg *hsotg) dwc2_is_fs_iot() argument 1282 dwc2_is_hs_iot(struct dwc2_hsotg *hsotg) dwc2_is_hs_iot() argument 1363 dwc2_is_host_mode(struct dwc2_hsotg *hsotg) dwc2_is_host_mode() argument 1368 dwc2_is_device_mode(struct dwc2_hsotg *hsotg) dwc2_is_device_mode() argument 1416 dwc2_clear_fifo_map(struct dwc2_hsotg *hsotg) dwc2_clear_fifo_map() argument 1425 dwc2_gadget_init(struct dwc2_hsotg *hsotg) dwc2_gadget_init() argument 1429 dwc2_hsotg_core_disconnect(struct dwc2_hsotg *hsotg) dwc2_hsotg_core_disconnect() argument 1430 dwc2_hsotg_core_connect(struct dwc2_hsotg *hsotg) dwc2_hsotg_core_connect() argument 1432 dwc2_hsotg_set_test_mode(struct dwc2_hsotg *hsotg, int testmode) dwc2_hsotg_set_test_mode() argument 1437 dwc2_backup_device_registers(struct dwc2_hsotg *hsotg) dwc2_backup_device_registers() argument 1439 dwc2_restore_device_registers(struct dwc2_hsotg *hsotg, int remote_wakeup) dwc2_restore_device_registers() argument 1442 dwc2_gadget_enter_hibernation(struct dwc2_hsotg *hsotg) dwc2_gadget_enter_hibernation() argument 1444 dwc2_gadget_exit_hibernation(struct dwc2_hsotg *hsotg, int rem_wakeup, int reset) dwc2_gadget_exit_hibernation() argument 1447 dwc2_gadget_enter_partial_power_down(struct dwc2_hsotg *hsotg) dwc2_gadget_enter_partial_power_down() argument 1449 dwc2_gadget_exit_partial_power_down(struct dwc2_hsotg *hsotg, bool restore) dwc2_gadget_exit_partial_power_down() argument 1452 dwc2_gadget_enter_clock_gating(struct dwc2_hsotg *hsotg) dwc2_gadget_enter_clock_gating() argument 1453 dwc2_gadget_exit_clock_gating(struct dwc2_hsotg *hsotg, int rem_wakeup) dwc2_gadget_exit_clock_gating() argument 1455 dwc2_hsotg_tx_fifo_count(struct dwc2_hsotg *hsotg) dwc2_hsotg_tx_fifo_count() argument 1457 dwc2_hsotg_tx_fifo_total_depth(struct dwc2_hsotg *hsotg) dwc2_hsotg_tx_fifo_total_depth() argument 1459 dwc2_hsotg_tx_fifo_average_depth(struct dwc2_hsotg *hsotg) dwc2_hsotg_tx_fifo_average_depth() argument 1461 dwc2_gadget_init_lpm(struct dwc2_hsotg *hsotg) dwc2_gadget_init_lpm() argument 1462 dwc2_gadget_program_ref_clk(struct dwc2_hsotg *hsotg) dwc2_gadget_program_ref_clk() argument 1463 dwc2_clear_fifo_map(struct dwc2_hsotg *hsotg) dwc2_clear_fifo_map() argument 1486 dwc2_host_schedule_phy_reset(struct dwc2_hsotg *hsotg) dwc2_host_schedule_phy_reset() argument 1489 dwc2_hcd_get_frame_number(struct dwc2_hsotg *hsotg) dwc2_hcd_get_frame_number() argument 1491 dwc2_hcd_get_future_frame_number(struct dwc2_hsotg *hsotg, int us) dwc2_hcd_get_future_frame_number() argument 1494 dwc2_hcd_connect(struct dwc2_hsotg *hsotg) dwc2_hcd_connect() argument 1495 dwc2_hcd_disconnect(struct dwc2_hsotg *hsotg, bool force) dwc2_hcd_disconnect() argument 1496 dwc2_hcd_start(struct dwc2_hsotg *hsotg) dwc2_hcd_start() argument 1497 dwc2_hcd_remove(struct dwc2_hsotg *hsotg) dwc2_hcd_remove() argument 1498 dwc2_core_init(struct dwc2_hsotg *hsotg, bool initial_setup) dwc2_core_init() argument 1500 dwc2_port_suspend(struct dwc2_hsotg *hsotg, u16 windex) dwc2_port_suspend() argument 1502 dwc2_port_resume(struct dwc2_hsotg *hsotg) dwc2_port_resume() argument 1504 dwc2_hcd_init(struct dwc2_hsotg *hsotg) dwc2_hcd_init() argument 1506 dwc2_backup_host_registers(struct dwc2_hsotg *hsotg) dwc2_backup_host_registers() argument 1508 dwc2_restore_host_registers(struct dwc2_hsotg *hsotg) dwc2_restore_host_registers() argument 1510 dwc2_host_enter_hibernation(struct dwc2_hsotg *hsotg) dwc2_host_enter_hibernation() argument 1512 dwc2_host_exit_hibernation(struct dwc2_hsotg *hsotg, int rem_wakeup, int reset) dwc2_host_exit_hibernation() argument 1515 dwc2_host_enter_partial_power_down(struct dwc2_hsotg *hsotg) dwc2_host_enter_partial_power_down() argument 1517 dwc2_host_exit_partial_power_down(struct dwc2_hsotg *hsotg, int rem_wakeup, bool restore) dwc2_host_exit_partial_power_down() argument 1520 dwc2_host_enter_clock_gating(struct dwc2_hsotg *hsotg) dwc2_host_enter_clock_gating() argument 1521 dwc2_host_exit_clock_gating(struct dwc2_hsotg *hsotg, int rem_wakeup) dwc2_host_exit_clock_gating() argument 1525 dwc2_host_schedule_phy_reset(struct dwc2_hsotg *hsotg) dwc2_host_schedule_phy_reset() argument [all...] |
H A D | hcd_ddma.c | 58 static int dwc2_desc_list_alloc(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, in dwc2_desc_list_alloc() argument 65 desc_cache = hsotg->desc_hsisoc_cache; in dwc2_desc_list_alloc() 67 desc_cache = hsotg->desc_gen_cache; in dwc2_desc_list_alloc() 76 qh->desc_list_dma = dma_map_single(hsotg->dev, qh->desc_list, in dwc2_desc_list_alloc() 82 dma_unmap_single(hsotg->dev, qh->desc_list_dma, in dwc2_desc_list_alloc() 93 static void dwc2_desc_list_free(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) in dwc2_desc_list_free() argument 99 desc_cache = hsotg->desc_hsisoc_cache; in dwc2_desc_list_free() 101 desc_cache = hsotg->desc_gen_cache; in dwc2_desc_list_free() 104 dma_unmap_single(hsotg->dev, qh->desc_list_dma, in dwc2_desc_list_free() 114 static int dwc2_frame_list_alloc(struct dwc2_hsotg *hsotg, gfp_ argument 131 dwc2_frame_list_free(struct dwc2_hsotg *hsotg) dwc2_frame_list_free() argument 151 dwc2_per_sched_enable(struct dwc2_hsotg *hsotg, u32 fr_list_en) dwc2_per_sched_enable() argument 175 dwc2_per_sched_disable(struct dwc2_hsotg *hsotg) dwc2_per_sched_disable() argument 200 dwc2_update_frame_list(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, int enable) dwc2_update_frame_list() argument 264 dwc2_release_channel_ddma(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_release_channel_ddma() argument 312 dwc2_hcd_qh_init_ddma(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, gfp_t mem_flags) dwc2_hcd_qh_init_ddma() argument 358 dwc2_hcd_qh_free_ddma(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_hcd_qh_free_ddma() argument 398 dwc2_calc_starting_frame(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, u16 *skip_frames) dwc2_calc_starting_frame() argument 460 dwc2_recalc_initial_desc_idx(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_recalc_initial_desc_idx() argument 511 dwc2_fill_host_isoc_dma_desc(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd, struct dwc2_qh *qh, u32 max_xfer_size, u16 idx) dwc2_fill_host_isoc_dma_desc() argument 550 dwc2_init_isoc_dma_desc(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, u16 skip_frames) dwc2_init_isoc_dma_desc() argument 659 dwc2_fill_host_dma_desc(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, struct dwc2_qtd *qtd, struct dwc2_qh *qh, int n_desc) dwc2_fill_host_dma_desc() argument 711 dwc2_init_non_isoc_dma_desc(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_init_non_isoc_dma_desc() argument 817 dwc2_hcd_start_xfer_ddma(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_hcd_start_xfer_ddma() argument 862 dwc2_cmpl_host_isoc_dma_desc(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, struct dwc2_qtd *qtd, struct dwc2_qh *qh, u16 idx) dwc2_cmpl_host_isoc_dma_desc() argument 931 dwc2_complete_isoc_xfer_ddma(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, enum dwc2_halt_status halt_status) dwc2_complete_isoc_xfer_ddma() argument 1037 dwc2_update_non_isoc_urb_state_ddma(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, struct dwc2_qtd *qtd, struct dwc2_dma_desc *dma_desc, enum dwc2_halt_status halt_status, u32 n_bytes, int *xfer_done) dwc2_update_non_isoc_urb_state_ddma() argument 1119 dwc2_process_non_isoc_desc(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, struct dwc2_qtd *qtd, int desc_num, enum dwc2_halt_status halt_status, int *xfer_done) dwc2_process_non_isoc_desc() argument 1191 dwc2_complete_non_isoc_xfer_ddma(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, enum dwc2_halt_status halt_status) dwc2_complete_non_isoc_xfer_ddma() argument 1269 dwc2_hcd_complete_xfer_ddma(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, int chnum, enum dwc2_halt_status halt_status) dwc2_hcd_complete_xfer_ddma() argument [all...] |
H A D | hcd_queue.c | 38 * @hsotg: The HCD state structure for the DWC OTG controller 42 static int dwc2_periodic_channel_available(struct dwc2_hsotg *hsotg) in dwc2_periodic_channel_available() argument 52 num_channels = hsotg->params.host_channels; in dwc2_periodic_channel_available() 53 if ((hsotg->periodic_channels + hsotg->non_periodic_channels < in dwc2_periodic_channel_available() 54 num_channels) && (hsotg->periodic_channels < num_channels - 1)) { in dwc2_periodic_channel_available() 57 dev_dbg(hsotg->dev, in dwc2_periodic_channel_available() 60 hsotg->periodic_channels, hsotg->non_periodic_channels); in dwc2_periodic_channel_available() 71 * @hsotg 79 dwc2_check_periodic_bandwidth(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_check_periodic_bandwidth() argument 344 dwc2_get_ls_map(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_get_ls_map() argument 462 struct dwc2_hsotg *hsotg; global() member 485 dwc2_qh_schedule_print(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_qh_schedule_print() argument 535 dwc2_qh_schedule_print(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_qh_schedule_print() argument 554 dwc2_ls_pmap_schedule(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, int search_slice) dwc2_ls_pmap_schedule() argument 593 dwc2_ls_pmap_unschedule(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_ls_pmap_unschedule() argument 628 dwc2_hs_pmap_schedule(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, bool only_one_period, int index) dwc2_hs_pmap_schedule() argument 654 dwc2_hs_pmap_unschedule(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, int index) dwc2_hs_pmap_unschedule() argument 678 dwc2_uframe_schedule_split(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_uframe_schedule_split() argument 960 dwc2_uframe_schedule_hs(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_uframe_schedule_hs() argument 983 dwc2_uframe_schedule_ls(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_uframe_schedule_ls() argument 1003 dwc2_uframe_schedule(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_uframe_schedule() argument 1028 dwc2_uframe_unschedule(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_uframe_unschedule() argument 1056 dwc2_pick_first_frame(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_pick_first_frame() argument 1171 dwc2_do_reserve(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_do_reserve() argument 1217 dwc2_do_unreserve(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_do_unreserve() argument 1255 struct dwc2_hsotg *hsotg = qh->hsotg; dwc2_unreserve_timer_fn() local 1298 dwc2_check_max_xfer_size(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_check_max_xfer_size() argument 1328 dwc2_schedule_periodic(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_schedule_periodic() argument 1387 dwc2_deschedule_periodic(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_deschedule_periodic() argument 1443 struct dwc2_hsotg *hsotg = qh->hsotg; dwc2_wait_timer_fn() local 1478 dwc2_qh_init(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, struct dwc2_hcd_urb *urb, gfp_t mem_flags) dwc2_qh_init() argument 1615 dwc2_hcd_qh_create(struct dwc2_hsotg *hsotg, struct dwc2_hcd_urb *urb, gfp_t mem_flags) dwc2_hcd_qh_create() argument 1651 dwc2_hcd_qh_free(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_hcd_qh_free() argument 1691 dwc2_hcd_qh_add(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_hcd_qh_add() argument 1743 dwc2_hcd_qh_unlink(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) dwc2_hcd_qh_unlink() argument 1793 dwc2_next_for_periodic_split(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, u16 frame_number) dwc2_next_for_periodic_split() argument 1856 dwc2_next_periodic_start(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, u16 frame_number) dwc2_next_periodic_start() argument 1947 dwc2_hcd_qh_deactivate(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, int sched_next_periodic_split) dwc2_hcd_qh_deactivate() argument 2048 dwc2_hcd_qtd_add(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd, struct dwc2_qh *qh) dwc2_hcd_qtd_add() argument [all...] |
H A D | debugfs.c | 31 struct dwc2_hsotg *hsotg = s->private; in testmode_write() local 52 spin_lock_irqsave(&hsotg->lock, flags); in testmode_write() 53 dwc2_hsotg_set_test_mode(hsotg, testmode); in testmode_write() 54 spin_unlock_irqrestore(&hsotg->lock, flags); in testmode_write() 67 struct dwc2_hsotg *hsotg = s->private; in testmode_show() local 71 spin_lock_irqsave(&hsotg->lock, flags); in testmode_show() 72 dctl = dwc2_readl(hsotg, DCTL); in testmode_show() 75 spin_unlock_irqrestore(&hsotg->lock, flags); in testmode_show() 128 struct dwc2_hsotg *hsotg = seq->private; in state_show() local 132 dwc2_readl(hsotg, DCF in state_show() 185 struct dwc2_hsotg *hsotg = seq->private; fifo_show() local 228 struct dwc2_hsotg *hsotg = ep->parent; ep_show() local 292 dwc2_hsotg_create_debug(struct dwc2_hsotg *hsotg) dwc2_hsotg_create_debug() argument 322 dwc2_hsotg_create_debug(struct dwc2_hsotg *hsotg) dwc2_hsotg_create_debug() argument 669 struct dwc2_hsotg *hsotg = seq->private; params_show() local 729 struct dwc2_hsotg *hsotg = seq->private; hw_params_show() local 764 struct dwc2_hsotg *hsotg = seq->private; dr_mode_show() local 773 dwc2_debugfs_init(struct dwc2_hsotg *hsotg) dwc2_debugfs_init() argument 807 dwc2_debugfs_exit(struct dwc2_hsotg *hsotg) dwc2_debugfs_exit() argument [all...] |