Lines Matching refs:on
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) in otg_chrg_vbus() argument
209 fsm->ops->chrg_vbus(fsm, on); in otg_chrg_vbus()
213 static inline int otg_drv_vbus(struct otg_fsm *fsm, int on) in otg_drv_vbus() argument
217 if (fsm->drv_vbus != on) { in otg_drv_vbus()
218 fsm->drv_vbus = on; in otg_drv_vbus()
219 fsm->ops->drv_vbus(fsm, on); in otg_drv_vbus()
224 static inline int otg_loc_conn(struct otg_fsm *fsm, int on) in otg_loc_conn() argument
228 if (fsm->loc_conn != on) { in otg_loc_conn()
229 fsm->loc_conn = on; in otg_loc_conn()
230 fsm->ops->loc_conn(fsm, on); in otg_loc_conn()
235 static inline int otg_loc_sof(struct otg_fsm *fsm, int on) in otg_loc_sof() argument
239 if (fsm->loc_sof != on) { in otg_loc_sof()
240 fsm->loc_sof = on; in otg_loc_sof()
241 fsm->ops->loc_sof(fsm, on); in otg_loc_sof()
296 static inline int otg_start_host(struct otg_fsm *fsm, int on) in otg_start_host() argument
300 return fsm->ops->start_host(fsm, on); in otg_start_host()
303 static inline int otg_start_gadget(struct otg_fsm *fsm, int on) in otg_start_gadget() argument
307 return fsm->ops->start_gadget(fsm, on); in otg_start_gadget()