Lines Matching refs:on
125 void (*chrg_vbus)(struct otg_fsm *fsm, int on);
126 void (*drv_vbus)(struct otg_fsm *fsm, int on);
127 void (*loc_conn)(struct otg_fsm *fsm, int on);
128 void (*loc_sof)(struct otg_fsm *fsm, int on);
134 int (*start_host)(struct otg_fsm *fsm, int on);
135 int (*start_gadget)(struct otg_fsm *fsm, int on);
139 static inline int otg_chrg_vbus(struct otg_fsm *fsm, int on) in otg_chrg_vbus() argument
143 fsm->ops->chrg_vbus(fsm, on); in otg_chrg_vbus()
147 static inline int otg_drv_vbus(struct otg_fsm *fsm, int on) in otg_drv_vbus() argument
151 if (fsm->drv_vbus != on) { in otg_drv_vbus()
152 fsm->drv_vbus = on; in otg_drv_vbus()
153 fsm->ops->drv_vbus(fsm, on); in otg_drv_vbus()
158 static inline int otg_loc_conn(struct otg_fsm *fsm, int on) in otg_loc_conn() argument
162 if (fsm->loc_conn != on) { in otg_loc_conn()
163 fsm->loc_conn = on; in otg_loc_conn()
164 fsm->ops->loc_conn(fsm, on); in otg_loc_conn()
169 static inline int otg_loc_sof(struct otg_fsm *fsm, int on) in otg_loc_sof() argument
173 if (fsm->loc_sof != on) { in otg_loc_sof()
174 fsm->loc_sof = on; in otg_loc_sof()
175 fsm->ops->loc_sof(fsm, on); in otg_loc_sof()
230 static inline int otg_start_host(struct otg_fsm *fsm, int on) in otg_start_host() argument
234 return fsm->ops->start_host(fsm, on); in otg_start_host()
237 static inline int otg_start_gadget(struct otg_fsm *fsm, int on) in otg_start_gadget() argument
241 return fsm->ops->start_gadget(fsm, on); in otg_start_gadget()