Lines Matching refs:dwc2_hsotg

99 struct dwc2_hsotg;
152 struct dwc2_hsotg *parent;
213 struct dwc2_hsotg;
1049 struct dwc2_hsotg { struct
1216 static inline u32 dwc2_readl(struct dwc2_hsotg *hsotg, u32 offset) in dwc2_readl() argument
1227 static inline void dwc2_writel(struct dwc2_hsotg *hsotg, u32 value, u32 offset) in dwc2_writel()
1239 static inline void dwc2_readl_rep(struct dwc2_hsotg *hsotg, u32 offset, in dwc2_readl_rep()
1252 static inline void dwc2_writel_rep(struct dwc2_hsotg *hsotg, u32 offset, in dwc2_writel_rep()
1283 static inline bool dwc2_is_iot(struct dwc2_hsotg *hsotg) in dwc2_is_iot()
1288 static inline bool dwc2_is_fs_iot(struct dwc2_hsotg *hsotg) in dwc2_is_fs_iot()
1293 static inline bool dwc2_is_hs_iot(struct dwc2_hsotg *hsotg) in dwc2_is_hs_iot()
1302 int dwc2_core_reset(struct dwc2_hsotg *hsotg, bool skip_wait);
1303 int dwc2_enter_partial_power_down(struct dwc2_hsotg *hsotg);
1304 int dwc2_exit_partial_power_down(struct dwc2_hsotg *hsotg, bool restore);
1305 int dwc2_enter_hibernation(struct dwc2_hsotg *hsotg, int is_host);
1306 int dwc2_exit_hibernation(struct dwc2_hsotg *hsotg, int rem_wakeup,
1308 void dwc2_init_fs_ls_pclk_sel(struct dwc2_hsotg *hsotg);
1309 int dwc2_phy_init(struct dwc2_hsotg *hsotg, bool select_phy);
1311 void dwc2_force_mode(struct dwc2_hsotg *hsotg, bool host);
1312 void dwc2_force_dr_mode(struct dwc2_hsotg *hsotg);
1314 bool dwc2_is_controller_alive(struct dwc2_hsotg *hsotg);
1316 int dwc2_check_core_version(struct dwc2_hsotg *hsotg);
1323 void dwc2_read_packet(struct dwc2_hsotg *hsotg, u8 *dest, u16 bytes);
1324 void dwc2_flush_tx_fifo(struct dwc2_hsotg *hsotg, const int num);
1325 void dwc2_flush_rx_fifo(struct dwc2_hsotg *hsotg);
1327 void dwc2_enable_global_interrupts(struct dwc2_hsotg *hcd);
1328 void dwc2_disable_global_interrupts(struct dwc2_hsotg *hcd);
1330 void dwc2_hib_restore_common(struct dwc2_hsotg *hsotg, int rem_wakeup,
1332 int dwc2_backup_global_registers(struct dwc2_hsotg *hsotg);
1333 int dwc2_restore_global_registers(struct dwc2_hsotg *hsotg);
1335 void dwc2_enable_acg(struct dwc2_hsotg *hsotg);
1343 int dwc2_lowlevel_hw_enable(struct dwc2_hsotg *hsotg);
1344 int dwc2_lowlevel_hw_disable(struct dwc2_hsotg *hsotg);
1347 int dwc2_hsotg_wait_bit_set(struct dwc2_hsotg *hs_otg, u32 reg, u32 bit,
1349 int dwc2_hsotg_wait_bit_clear(struct dwc2_hsotg *hs_otg, u32 reg, u32 bit,
1352 int dwc2_get_hwparams(struct dwc2_hsotg *hsotg);
1353 int dwc2_init_params(struct dwc2_hsotg *hsotg);
1363 unsigned int dwc2_op_mode(struct dwc2_hsotg *hsotg);
1364 bool dwc2_hw_is_otg(struct dwc2_hsotg *hsotg);
1365 bool dwc2_hw_is_host(struct dwc2_hsotg *hsotg);
1366 bool dwc2_hw_is_device(struct dwc2_hsotg *hsotg);
1371 static inline int dwc2_is_host_mode(struct dwc2_hsotg *hsotg) in dwc2_is_host_mode()
1376 static inline int dwc2_is_device_mode(struct dwc2_hsotg *hsotg) in dwc2_is_device_mode()
1381 int dwc2_drd_init(struct dwc2_hsotg *hsotg);
1382 void dwc2_drd_suspend(struct dwc2_hsotg *hsotg);
1383 void dwc2_drd_resume(struct dwc2_hsotg *hsotg);
1384 void dwc2_drd_exit(struct dwc2_hsotg *hsotg);
1389 void dwc2_dump_dev_registers(struct dwc2_hsotg *hsotg);
1390 void dwc2_dump_host_registers(struct dwc2_hsotg *hsotg);
1391 void dwc2_dump_global_registers(struct dwc2_hsotg *hsotg);
1396 int dwc2_hsotg_remove(struct dwc2_hsotg *hsotg);
1397 int dwc2_hsotg_suspend(struct dwc2_hsotg *dwc2);
1398 int dwc2_hsotg_resume(struct dwc2_hsotg *dwc2);
1399 int dwc2_gadget_init(struct dwc2_hsotg *hsotg);
1400 void dwc2_hsotg_core_init_disconnected(struct dwc2_hsotg *dwc2,
1402 void dwc2_hsotg_core_disconnect(struct dwc2_hsotg *hsotg);
1403 void dwc2_hsotg_core_connect(struct dwc2_hsotg *hsotg);
1404 void dwc2_hsotg_disconnect(struct dwc2_hsotg *dwc2);
1405 int dwc2_hsotg_set_test_mode(struct dwc2_hsotg *hsotg, int testmode);
1407 int dwc2_backup_device_registers(struct dwc2_hsotg *hsotg);
1408 int dwc2_restore_device_registers(struct dwc2_hsotg *hsotg, int remote_wakeup);
1409 int dwc2_gadget_enter_hibernation(struct dwc2_hsotg *hsotg);
1410 int dwc2_gadget_exit_hibernation(struct dwc2_hsotg *hsotg,
1412 int dwc2_hsotg_tx_fifo_count(struct dwc2_hsotg *hsotg);
1413 int dwc2_hsotg_tx_fifo_total_depth(struct dwc2_hsotg *hsotg);
1414 int dwc2_hsotg_tx_fifo_average_depth(struct dwc2_hsotg *hsotg);
1415 void dwc2_gadget_init_lpm(struct dwc2_hsotg *hsotg);
1416 void dwc2_gadget_program_ref_clk(struct dwc2_hsotg *hsotg);
1418 static inline int dwc2_hsotg_remove(struct dwc2_hsotg *dwc2) in dwc2_hsotg_remove()
1420 static inline int dwc2_hsotg_suspend(struct dwc2_hsotg *dwc2) in dwc2_hsotg_suspend()
1422 static inline int dwc2_hsotg_resume(struct dwc2_hsotg *dwc2) in dwc2_hsotg_resume()
1424 static inline int dwc2_gadget_init(struct dwc2_hsotg *hsotg) in dwc2_gadget_init()
1426 static inline void dwc2_hsotg_core_init_disconnected(struct dwc2_hsotg *dwc2, in dwc2_hsotg_core_init_disconnected()
1428 static inline void dwc2_hsotg_core_disconnect(struct dwc2_hsotg *hsotg) {} in dwc2_hsotg_core_disconnect()
1429 static inline void dwc2_hsotg_core_connect(struct dwc2_hsotg *hsotg) {} in dwc2_hsotg_core_connect()
1430 static inline void dwc2_hsotg_disconnect(struct dwc2_hsotg *dwc2) {} in dwc2_hsotg_disconnect()
1431 static inline int dwc2_hsotg_set_test_mode(struct dwc2_hsotg *hsotg, in dwc2_hsotg_set_test_mode()
1435 static inline int dwc2_backup_device_registers(struct dwc2_hsotg *hsotg) in dwc2_backup_device_registers()
1437 static inline int dwc2_restore_device_registers(struct dwc2_hsotg *hsotg, in dwc2_restore_device_registers()
1440 static inline int dwc2_gadget_enter_hibernation(struct dwc2_hsotg *hsotg) in dwc2_gadget_enter_hibernation()
1442 static inline int dwc2_gadget_exit_hibernation(struct dwc2_hsotg *hsotg, in dwc2_gadget_exit_hibernation()
1445 static inline int dwc2_hsotg_tx_fifo_count(struct dwc2_hsotg *hsotg) in dwc2_hsotg_tx_fifo_count()
1447 static inline int dwc2_hsotg_tx_fifo_total_depth(struct dwc2_hsotg *hsotg) in dwc2_hsotg_tx_fifo_total_depth()
1449 static inline int dwc2_hsotg_tx_fifo_average_depth(struct dwc2_hsotg *hsotg) in dwc2_hsotg_tx_fifo_average_depth()
1451 static inline void dwc2_gadget_init_lpm(struct dwc2_hsotg *hsotg) {} in dwc2_gadget_init_lpm()
1452 static inline void dwc2_gadget_program_ref_clk(struct dwc2_hsotg *hsotg) {} in dwc2_gadget_program_ref_clk()
1456 int dwc2_hcd_get_frame_number(struct dwc2_hsotg *hsotg);
1457 int dwc2_hcd_get_future_frame_number(struct dwc2_hsotg *hsotg, int us);
1458 void dwc2_hcd_connect(struct dwc2_hsotg *hsotg);
1459 void dwc2_hcd_disconnect(struct dwc2_hsotg *hsotg, bool force);
1460 void dwc2_hcd_start(struct dwc2_hsotg *hsotg);
1461 int dwc2_core_init(struct dwc2_hsotg *hsotg, bool initial_setup);
1462 int dwc2_backup_host_registers(struct dwc2_hsotg *hsotg);
1463 int dwc2_restore_host_registers(struct dwc2_hsotg *hsotg);
1464 int dwc2_host_enter_hibernation(struct dwc2_hsotg *hsotg);
1465 int dwc2_host_exit_hibernation(struct dwc2_hsotg *hsotg,
1467 bool dwc2_host_can_poweroff_phy(struct dwc2_hsotg *dwc2);
1468 static inline void dwc2_host_schedule_phy_reset(struct dwc2_hsotg *hsotg) in dwc2_host_schedule_phy_reset()
1471 static inline int dwc2_hcd_get_frame_number(struct dwc2_hsotg *hsotg) in dwc2_hcd_get_frame_number()
1473 static inline int dwc2_hcd_get_future_frame_number(struct dwc2_hsotg *hsotg, in dwc2_hcd_get_future_frame_number()
1476 static inline void dwc2_hcd_connect(struct dwc2_hsotg *hsotg) {} in dwc2_hcd_connect()
1477 static inline void dwc2_hcd_disconnect(struct dwc2_hsotg *hsotg, bool force) {} in dwc2_hcd_disconnect()
1478 static inline void dwc2_hcd_start(struct dwc2_hsotg *hsotg) {} in dwc2_hcd_start()
1479 static inline void dwc2_hcd_remove(struct dwc2_hsotg *hsotg) {} in dwc2_hcd_remove()
1480 static inline int dwc2_core_init(struct dwc2_hsotg *hsotg, bool initial_setup) in dwc2_core_init()
1482 static inline int dwc2_hcd_init(struct dwc2_hsotg *hsotg) in dwc2_hcd_init()
1484 static inline int dwc2_backup_host_registers(struct dwc2_hsotg *hsotg) in dwc2_backup_host_registers()
1486 static inline int dwc2_restore_host_registers(struct dwc2_hsotg *hsotg) in dwc2_restore_host_registers()
1488 static inline int dwc2_host_enter_hibernation(struct dwc2_hsotg *hsotg) in dwc2_host_enter_hibernation()
1490 static inline int dwc2_host_exit_hibernation(struct dwc2_hsotg *hsotg, in dwc2_host_exit_hibernation()
1493 static inline bool dwc2_host_can_poweroff_phy(struct dwc2_hsotg *dwc2) in dwc2_host_can_poweroff_phy()
1495 static inline void dwc2_host_schedule_phy_reset(struct dwc2_hsotg *hsotg) {} in dwc2_host_schedule_phy_reset()