Lines Matching refs:on
74 * @b_sess_vld: TRUE when the B-device detects that the voltage on VBUS is
85 * @b_bus_req: TRUE during the time that the Application running on the
93 * resume on the bus
102 * @loc_sof: TRUE when the local device is generating activity on the bus
191 void (*chrg_vbus)(struct otg_fsm *fsm, int on);
192 void (*drv_vbus)(struct otg_fsm *fsm, int on);
193 void (*loc_conn)(struct otg_fsm *fsm, int on);
194 void (*loc_sof)(struct otg_fsm *fsm, int on);
200 int (*start_host)(struct otg_fsm *fsm, int on);
201 int (*start_gadget)(struct otg_fsm *fsm, int on);
205 static inline int otg_chrg_vbus(struct otg_fsm *fsm, int on)
209 fsm->ops->chrg_vbus(fsm, on);
213 static inline int otg_drv_vbus(struct otg_fsm *fsm, int on)
217 if (fsm->drv_vbus != on) {
218 fsm->drv_vbus = on;
219 fsm->ops->drv_vbus(fsm, on);
224 static inline int otg_loc_conn(struct otg_fsm *fsm, int on)
228 if (fsm->loc_conn != on) {
229 fsm->loc_conn = on;
230 fsm->ops->loc_conn(fsm, on);
235 static inline int otg_loc_sof(struct otg_fsm *fsm, int on)
239 if (fsm->loc_sof != on) {
240 fsm->loc_sof = on;
241 fsm->ops->loc_sof(fsm, on);
296 static inline int otg_start_host(struct otg_fsm *fsm, int on)
300 return fsm->ops->start_host(fsm, on);
303 static inline int otg_start_gadget(struct otg_fsm *fsm, int on)
307 return fsm->ops->start_gadget(fsm, on);