Lines Matching defs:isp1301
39 struct isp1301 {
98 static void enable_vbus_draw(struct isp1301 *isp, unsigned mA)
107 static void enable_vbus_draw(struct isp1301 *isp, unsigned mA)
117 static void enable_vbus_source(struct isp1301 *isp)
126 static inline void notresponding(struct isp1301 *isp)
139 isp1301_get_u8(struct isp1301 *isp, u8 reg)
145 isp1301_get_u16(struct isp1301 *isp, u8 reg)
151 isp1301_set_bits(struct isp1301 *isp, u8 reg, u8 bits)
157 isp1301_clear_bits(struct isp1301 *isp, u8 reg, u8 bits)
222 static inline const char *state_name(struct isp1301 *isp)
237 static void power_down(struct isp1301 *isp)
248 static void __maybe_unused power_up(struct isp1301 *isp)
261 static int host_suspend(struct isp1301 *isp)
279 static int host_resume(struct isp1301 *isp)
294 static int gadget_suspend(struct isp1301 *isp)
311 static void isp1301_defer_work(struct isp1301 *isp, int work)
325 static void a_idle(struct isp1301 *isp, const char *tag)
349 static void b_idle(struct isp1301 *isp, const char *tag)
373 dump_regs(struct isp1301 *isp, const char *label)
392 * We translate isp1301 outputs (mostly voltage comparator status) into
394 * flags into isp1301 inputs ... and infer state transitions.
399 static void check_state(struct isp1301 *isp, const char *tag)
473 static inline void check_state(struct isp1301 *isp, const char *tag) { }
478 static void update_otg1(struct isp1301 *isp, u8 int_src)
513 static void update_otg2(struct isp1301 *isp, u8 otg_status)
528 static void otg_update_isp(struct isp1301 *isp)
637 dump_regs(isp, "otg->isp1301");
645 struct isp1301 *isp = _isp;
810 static int isp1301_otg_init(struct isp1301 *isp)
872 static int otg_bind(struct isp1301 *isp)
894 static void otg_unbind(struct isp1301 *isp)
909 static void b_peripheral(struct isp1301 *isp)
932 static void isp_update_otg(struct isp1301 *isp, u8 stat)
1065 /* update the OTG controller state to match the isp1301; may
1066 * trigger OPRT_CHG irqs for changes going to the isp1301.
1073 dump_regs(isp, "isp1301->otg");
1078 static u8 isp1301_clear_latch(struct isp1301 *isp)
1088 struct isp1301 *isp = container_of(work, struct isp1301, work);
1097 /* transfer state from otg engine to isp1301 */
1103 /* transfer state from isp1301 to otg engine */
1175 struct isp1301 *isp = from_timer(isp, t, timer);
1184 struct isp1301 *isp;
1197 static struct isp1301 *the_transceiver;
1201 struct isp1301 *isp;
1233 * As a rule, you won't have an isp1301 chip unless it's there to
1241 static int isp1301_otg_enable(struct isp1301 *isp)
1265 struct isp1301 *isp = container_of(otg->usb_phy, struct isp1301, phy);
1321 struct isp1301 *isp = container_of(otg->usb_phy, struct isp1301, phy);
1401 struct isp1301 *isp = container_of(otg->usb_phy, struct isp1301, phy);
1428 struct isp1301 *isp = container_of(otg->usb_phy, struct isp1301, phy);
1482 struct isp1301 *isp;
1511 dev_dbg(&i2c->dev, "not isp1301, %d\n", status);
1554 if (gpio_request(2, "isp1301") == 0)