Lines Matching refs:on
203 void (*chrg_vbus)(struct otg_fsm *fsm, int on);
204 void (*drv_vbus)(struct otg_fsm *fsm, int on);
205 void (*loc_conn)(struct otg_fsm *fsm, int on);
206 void (*loc_sof)(struct otg_fsm *fsm, int on);
212 int (*start_host)(struct otg_fsm *fsm, int on);
213 int (*start_gadget)(struct otg_fsm *fsm, int on);
217 static inline int otg_chrg_vbus(struct otg_fsm *fsm, int on) in otg_chrg_vbus() argument
221 fsm->ops->chrg_vbus(fsm, on); in otg_chrg_vbus()
225 static inline int otg_drv_vbus(struct otg_fsm *fsm, int on) in otg_drv_vbus() argument
229 if (fsm->drv_vbus != on) { in otg_drv_vbus()
230 fsm->drv_vbus = on; in otg_drv_vbus()
231 fsm->ops->drv_vbus(fsm, on); in otg_drv_vbus()
236 static inline int otg_loc_conn(struct otg_fsm *fsm, int on) in otg_loc_conn() argument
240 if (fsm->loc_conn != on) { in otg_loc_conn()
241 fsm->loc_conn = on; in otg_loc_conn()
242 fsm->ops->loc_conn(fsm, on); in otg_loc_conn()
247 static inline int otg_loc_sof(struct otg_fsm *fsm, int on) in otg_loc_sof() argument
251 if (fsm->loc_sof != on) { in otg_loc_sof()
252 fsm->loc_sof = on; in otg_loc_sof()
253 fsm->ops->loc_sof(fsm, on); in otg_loc_sof()
308 static inline int otg_start_host(struct otg_fsm *fsm, int on) in otg_start_host() argument
312 return fsm->ops->start_host(fsm, on); in otg_start_host()
315 static inline int otg_start_gadget(struct otg_fsm *fsm, int on) in otg_start_gadget() argument
319 return fsm->ops->start_gadget(fsm, on); in otg_start_gadget()