Lines Matching refs:dwc2_hsotg

70 struct dwc2_hsotg;
125 struct dwc2_hsotg *parent;
188 struct dwc2_hsotg;
1048 struct dwc2_hsotg { struct
1218 static inline u32 dwc2_readl(struct dwc2_hsotg *hsotg, u32 offset) in dwc2_readl() argument
1229 static inline void dwc2_writel(struct dwc2_hsotg *hsotg, u32 value, u32 offset) in dwc2_writel()
1241 static inline void dwc2_readl_rep(struct dwc2_hsotg *hsotg, u32 offset, in dwc2_readl_rep()
1254 static inline void dwc2_writel_rep(struct dwc2_hsotg *hsotg, u32 offset, in dwc2_writel_rep()
1285 static inline bool dwc2_is_iot(struct dwc2_hsotg *hsotg) in dwc2_is_iot()
1290 static inline bool dwc2_is_fs_iot(struct dwc2_hsotg *hsotg) in dwc2_is_fs_iot()
1295 static inline bool dwc2_is_hs_iot(struct dwc2_hsotg *hsotg) in dwc2_is_hs_iot()
1304 int dwc2_core_reset(struct dwc2_hsotg *hsotg, bool skip_wait);
1305 int dwc2_enter_partial_power_down(struct dwc2_hsotg *hsotg);
1306 int dwc2_exit_partial_power_down(struct dwc2_hsotg *hsotg, int rem_wakeup,
1308 int dwc2_enter_hibernation(struct dwc2_hsotg *hsotg, int is_host);
1309 int dwc2_exit_hibernation(struct dwc2_hsotg *hsotg, int rem_wakeup,
1311 void dwc2_init_fs_ls_pclk_sel(struct dwc2_hsotg *hsotg);
1312 int dwc2_phy_init(struct dwc2_hsotg *hsotg, bool select_phy);
1314 void dwc2_force_mode(struct dwc2_hsotg *hsotg, bool host);
1315 void dwc2_force_dr_mode(struct dwc2_hsotg *hsotg);
1317 bool dwc2_is_controller_alive(struct dwc2_hsotg *hsotg);
1319 int dwc2_check_core_version(struct dwc2_hsotg *hsotg);
1326 void dwc2_read_packet(struct dwc2_hsotg *hsotg, u8 *dest, u16 bytes);
1327 void dwc2_flush_tx_fifo(struct dwc2_hsotg *hsotg, const int num);
1328 void dwc2_flush_rx_fifo(struct dwc2_hsotg *hsotg);
1330 void dwc2_enable_global_interrupts(struct dwc2_hsotg *hcd);
1331 void dwc2_disable_global_interrupts(struct dwc2_hsotg *hcd);
1333 void dwc2_hib_restore_common(struct dwc2_hsotg *hsotg, int rem_wakeup,
1335 int dwc2_backup_global_registers(struct dwc2_hsotg *hsotg);
1336 int dwc2_restore_global_registers(struct dwc2_hsotg *hsotg);
1338 void dwc2_enable_acg(struct dwc2_hsotg *hsotg);
1339 void dwc2_wakeup_from_lpm_l1(struct dwc2_hsotg *hsotg, bool remotewakeup);
1349 int dwc2_lowlevel_hw_enable(struct dwc2_hsotg *hsotg);
1350 int dwc2_lowlevel_hw_disable(struct dwc2_hsotg *hsotg);
1353 int dwc2_hsotg_wait_bit_set(struct dwc2_hsotg *hs_otg, u32 reg, u32 bit,
1355 int dwc2_hsotg_wait_bit_clear(struct dwc2_hsotg *hs_otg, u32 reg, u32 bit,
1358 int dwc2_get_hwparams(struct dwc2_hsotg *hsotg);
1359 int dwc2_init_params(struct dwc2_hsotg *hsotg);
1369 unsigned int dwc2_op_mode(struct dwc2_hsotg *hsotg);
1370 bool dwc2_hw_is_otg(struct dwc2_hsotg *hsotg);
1371 bool dwc2_hw_is_host(struct dwc2_hsotg *hsotg);
1372 bool dwc2_hw_is_device(struct dwc2_hsotg *hsotg);
1377 static inline int dwc2_is_host_mode(struct dwc2_hsotg *hsotg) in dwc2_is_host_mode()
1382 static inline int dwc2_is_device_mode(struct dwc2_hsotg *hsotg) in dwc2_is_device_mode()
1387 int dwc2_drd_init(struct dwc2_hsotg *hsotg);
1388 void dwc2_drd_suspend(struct dwc2_hsotg *hsotg);
1389 void dwc2_drd_resume(struct dwc2_hsotg *hsotg);
1390 void dwc2_drd_exit(struct dwc2_hsotg *hsotg);
1395 void dwc2_dump_dev_registers(struct dwc2_hsotg *hsotg);
1396 void dwc2_dump_host_registers(struct dwc2_hsotg *hsotg);
1397 void dwc2_dump_global_registers(struct dwc2_hsotg *hsotg);
1402 int dwc2_hsotg_remove(struct dwc2_hsotg *hsotg);
1403 int dwc2_hsotg_suspend(struct dwc2_hsotg *dwc2);
1404 int dwc2_hsotg_resume(struct dwc2_hsotg *dwc2);
1405 int dwc2_gadget_init(struct dwc2_hsotg *hsotg);
1406 void dwc2_hsotg_core_init_disconnected(struct dwc2_hsotg *dwc2,
1408 void dwc2_hsotg_core_disconnect(struct dwc2_hsotg *hsotg);
1409 void dwc2_hsotg_core_connect(struct dwc2_hsotg *hsotg);
1410 void dwc2_hsotg_disconnect(struct dwc2_hsotg *dwc2);
1411 int dwc2_hsotg_set_test_mode(struct dwc2_hsotg *hsotg, int testmode);
1414 int dwc2_backup_device_registers(struct dwc2_hsotg *hsotg);
1415 int dwc2_restore_device_registers(struct dwc2_hsotg *hsotg, int remote_wakeup);
1416 int dwc2_gadget_enter_hibernation(struct dwc2_hsotg *hsotg);
1417 int dwc2_gadget_exit_hibernation(struct dwc2_hsotg *hsotg,
1419 int dwc2_gadget_enter_partial_power_down(struct dwc2_hsotg *hsotg);
1420 int dwc2_gadget_exit_partial_power_down(struct dwc2_hsotg *hsotg,
1422 void dwc2_gadget_enter_clock_gating(struct dwc2_hsotg *hsotg);
1423 void dwc2_gadget_exit_clock_gating(struct dwc2_hsotg *hsotg,
1425 int dwc2_hsotg_tx_fifo_count(struct dwc2_hsotg *hsotg);
1426 int dwc2_hsotg_tx_fifo_total_depth(struct dwc2_hsotg *hsotg);
1427 int dwc2_hsotg_tx_fifo_average_depth(struct dwc2_hsotg *hsotg);
1428 void dwc2_gadget_init_lpm(struct dwc2_hsotg *hsotg);
1429 void dwc2_gadget_program_ref_clk(struct dwc2_hsotg *hsotg);
1430 static inline void dwc2_clear_fifo_map(struct dwc2_hsotg *hsotg) in dwc2_clear_fifo_map()
1433 static inline int dwc2_hsotg_remove(struct dwc2_hsotg *dwc2) in dwc2_hsotg_remove()
1435 static inline int dwc2_hsotg_suspend(struct dwc2_hsotg *dwc2) in dwc2_hsotg_suspend()
1437 static inline int dwc2_hsotg_resume(struct dwc2_hsotg *dwc2) in dwc2_hsotg_resume()
1439 static inline int dwc2_gadget_init(struct dwc2_hsotg *hsotg) in dwc2_gadget_init()
1441 static inline void dwc2_hsotg_core_init_disconnected(struct dwc2_hsotg *dwc2, in dwc2_hsotg_core_init_disconnected()
1443 static inline void dwc2_hsotg_core_disconnect(struct dwc2_hsotg *hsotg) {} in dwc2_hsotg_core_disconnect()
1444 static inline void dwc2_hsotg_core_connect(struct dwc2_hsotg *hsotg) {} in dwc2_hsotg_core_connect()
1445 static inline void dwc2_hsotg_disconnect(struct dwc2_hsotg *dwc2) {} in dwc2_hsotg_disconnect()
1446 static inline int dwc2_hsotg_set_test_mode(struct dwc2_hsotg *hsotg, in dwc2_hsotg_set_test_mode()
1451 static inline int dwc2_backup_device_registers(struct dwc2_hsotg *hsotg) in dwc2_backup_device_registers()
1453 static inline int dwc2_restore_device_registers(struct dwc2_hsotg *hsotg, in dwc2_restore_device_registers()
1456 static inline int dwc2_gadget_enter_hibernation(struct dwc2_hsotg *hsotg) in dwc2_gadget_enter_hibernation()
1458 static inline int dwc2_gadget_exit_hibernation(struct dwc2_hsotg *hsotg, in dwc2_gadget_exit_hibernation()
1461 static inline int dwc2_gadget_enter_partial_power_down(struct dwc2_hsotg *hsotg) in dwc2_gadget_enter_partial_power_down()
1463 static inline int dwc2_gadget_exit_partial_power_down(struct dwc2_hsotg *hsotg, in dwc2_gadget_exit_partial_power_down()
1466 static inline void dwc2_gadget_enter_clock_gating(struct dwc2_hsotg *hsotg) {} in dwc2_gadget_enter_clock_gating()
1467 static inline void dwc2_gadget_exit_clock_gating(struct dwc2_hsotg *hsotg, in dwc2_gadget_exit_clock_gating()
1469 static inline int dwc2_hsotg_tx_fifo_count(struct dwc2_hsotg *hsotg) in dwc2_hsotg_tx_fifo_count()
1471 static inline int dwc2_hsotg_tx_fifo_total_depth(struct dwc2_hsotg *hsotg) in dwc2_hsotg_tx_fifo_total_depth()
1473 static inline int dwc2_hsotg_tx_fifo_average_depth(struct dwc2_hsotg *hsotg) in dwc2_hsotg_tx_fifo_average_depth()
1475 static inline void dwc2_gadget_init_lpm(struct dwc2_hsotg *hsotg) {} in dwc2_gadget_init_lpm()
1476 static inline void dwc2_gadget_program_ref_clk(struct dwc2_hsotg *hsotg) {} in dwc2_gadget_program_ref_clk()
1477 static inline void dwc2_clear_fifo_map(struct dwc2_hsotg *hsotg) {} in dwc2_clear_fifo_map()
1481 int dwc2_hcd_get_frame_number(struct dwc2_hsotg *hsotg);
1482 int dwc2_hcd_get_future_frame_number(struct dwc2_hsotg *hsotg, int us);
1483 void dwc2_hcd_connect(struct dwc2_hsotg *hsotg);
1484 void dwc2_hcd_disconnect(struct dwc2_hsotg *hsotg, bool force);
1485 void dwc2_hcd_start(struct dwc2_hsotg *hsotg);
1486 int dwc2_core_init(struct dwc2_hsotg *hsotg, bool initial_setup);
1487 int dwc2_port_suspend(struct dwc2_hsotg *hsotg, u16 windex);
1488 int dwc2_port_resume(struct dwc2_hsotg *hsotg);
1489 int dwc2_backup_host_registers(struct dwc2_hsotg *hsotg);
1490 int dwc2_restore_host_registers(struct dwc2_hsotg *hsotg);
1491 int dwc2_host_enter_hibernation(struct dwc2_hsotg *hsotg);
1492 int dwc2_host_exit_hibernation(struct dwc2_hsotg *hsotg,
1494 int dwc2_host_enter_partial_power_down(struct dwc2_hsotg *hsotg);
1495 int dwc2_host_exit_partial_power_down(struct dwc2_hsotg *hsotg,
1497 void dwc2_host_enter_clock_gating(struct dwc2_hsotg *hsotg);
1498 void dwc2_host_exit_clock_gating(struct dwc2_hsotg *hsotg, int rem_wakeup);
1499 bool dwc2_host_can_poweroff_phy(struct dwc2_hsotg *dwc2);
1500 static inline void dwc2_host_schedule_phy_reset(struct dwc2_hsotg *hsotg) in dwc2_host_schedule_phy_reset()
1503 static inline int dwc2_hcd_get_frame_number(struct dwc2_hsotg *hsotg) in dwc2_hcd_get_frame_number()
1505 static inline int dwc2_hcd_get_future_frame_number(struct dwc2_hsotg *hsotg, in dwc2_hcd_get_future_frame_number()
1508 static inline void dwc2_hcd_connect(struct dwc2_hsotg *hsotg) {} in dwc2_hcd_connect()
1509 static inline void dwc2_hcd_disconnect(struct dwc2_hsotg *hsotg, bool force) {} in dwc2_hcd_disconnect()
1510 static inline void dwc2_hcd_start(struct dwc2_hsotg *hsotg) {} in dwc2_hcd_start()
1511 static inline void dwc2_hcd_remove(struct dwc2_hsotg *hsotg) {} in dwc2_hcd_remove()
1512 static inline int dwc2_core_init(struct dwc2_hsotg *hsotg, bool initial_setup) in dwc2_core_init()
1514 static inline int dwc2_port_suspend(struct dwc2_hsotg *hsotg, u16 windex) in dwc2_port_suspend()
1516 static inline int dwc2_port_resume(struct dwc2_hsotg *hsotg) in dwc2_port_resume()
1518 static inline int dwc2_hcd_init(struct dwc2_hsotg *hsotg) in dwc2_hcd_init()
1520 static inline int dwc2_backup_host_registers(struct dwc2_hsotg *hsotg) in dwc2_backup_host_registers()
1522 static inline int dwc2_restore_host_registers(struct dwc2_hsotg *hsotg) in dwc2_restore_host_registers()
1524 static inline int dwc2_host_enter_hibernation(struct dwc2_hsotg *hsotg) in dwc2_host_enter_hibernation()
1526 static inline int dwc2_host_exit_hibernation(struct dwc2_hsotg *hsotg, in dwc2_host_exit_hibernation()
1529 static inline int dwc2_host_enter_partial_power_down(struct dwc2_hsotg *hsotg) in dwc2_host_enter_partial_power_down()
1531 static inline int dwc2_host_exit_partial_power_down(struct dwc2_hsotg *hsotg, in dwc2_host_exit_partial_power_down()
1534 static inline void dwc2_host_enter_clock_gating(struct dwc2_hsotg *hsotg) {} in dwc2_host_enter_clock_gating()
1535 static inline void dwc2_host_exit_clock_gating(struct dwc2_hsotg *hsotg, in dwc2_host_exit_clock_gating()
1537 static inline bool dwc2_host_can_poweroff_phy(struct dwc2_hsotg *dwc2) in dwc2_host_can_poweroff_phy()
1539 static inline void dwc2_host_schedule_phy_reset(struct dwc2_hsotg *hsotg) {} in dwc2_host_schedule_phy_reset()