Lines Matching refs:ubus

22 static void mon_dissolve(struct mon_bus *mbus, struct usb_bus *ubus);
24 static void mon_bus_init(struct usb_bus *ubus);
93 static void mon_submit(struct usb_bus *ubus, struct urb *urb) in mon_submit() argument
97 mbus = ubus->mon_bus; in mon_submit()
117 static void mon_submit_error(struct usb_bus *ubus, struct urb *urb, int error) in mon_submit_error() argument
121 mbus = ubus->mon_bus; in mon_submit_error()
141 static void mon_complete(struct usb_bus *ubus, struct urb *urb, int status) in mon_complete() argument
145 mbus = ubus->mon_bus; in mon_complete()
158 struct usb_bus *ubus; in mon_stop() local
165 if (mbus->nreaders == 0 && (ubus = mbus->u_bus) != NULL) in mon_stop()
166 ubus->monitored = 0; in mon_stop()
173 if (mon_bus0.nreaders == 0 && (ubus = mbus->u_bus) != NULL) { in mon_stop()
174 ubus->monitored = 0; in mon_stop()
186 static void mon_bus_add(struct usb_bus *ubus) in mon_bus_add() argument
188 mon_bus_init(ubus); in mon_bus_add()
191 ubus->monitored = 1; in mon_bus_add()
198 static void mon_bus_remove(struct usb_bus *ubus) in mon_bus_remove() argument
200 struct mon_bus *mbus = ubus->mon_bus; in mon_bus_remove()
209 mon_dissolve(mbus, ubus); in mon_bus_remove()
243 static void mon_dissolve(struct mon_bus *mbus, struct usb_bus *ubus) in mon_dissolve() argument
246 if (ubus->monitored) { in mon_dissolve()
247 ubus->monitored = 0; in mon_dissolve()
251 ubus->mon_bus = NULL; in mon_dissolve()
272 static void mon_bus_init(struct usb_bus *ubus) in mon_bus_init() argument
287 mbus->u_bus = ubus; in mon_bus_init()
288 ubus->mon_bus = mbus; in mon_bus_init()
290 mbus->text_inited = mon_text_add(mbus, ubus); in mon_bus_init()
291 mbus->bin_inited = mon_bin_add(mbus, ubus); in mon_bus_init()
339 struct usb_bus *ubus; in mon_init() local
357 idr_for_each_entry(&usb_bus_idr, ubus, id) in mon_init()
358 mon_bus_init(ubus); in mon_init()