Lines Matching refs:ubus

21 static void mon_dissolve(struct mon_bus *mbus, struct usb_bus *ubus);
23 static void mon_bus_init(struct usb_bus *ubus);
95 static void mon_submit(struct usb_bus *ubus, struct urb *urb) in mon_submit() argument
99 if ((mbus = ubus->mon_bus) != NULL) in mon_submit()
121 static void mon_submit_error(struct usb_bus *ubus, struct urb *urb, int error) in mon_submit_error() argument
125 if ((mbus = ubus->mon_bus) != NULL) in mon_submit_error()
147 static void mon_complete(struct usb_bus *ubus, struct urb *urb, int status) in mon_complete() argument
151 if ((mbus = ubus->mon_bus) != NULL) in mon_complete()
163 struct usb_bus *ubus; in mon_stop() local
172 if (mbus->nreaders == 0 && (ubus = mbus->u_bus) != NULL) in mon_stop()
173 ubus->monitored = 0; in mon_stop()
180 if (mon_bus0.nreaders == 0 && (ubus = mbus->u_bus) != NULL) { in mon_stop()
181 ubus->monitored = 0; in mon_stop()
193 static void mon_bus_add(struct usb_bus *ubus) in mon_bus_add() argument
195 mon_bus_init(ubus); in mon_bus_add()
198 ubus->monitored = 1; in mon_bus_add()
205 static void mon_bus_remove(struct usb_bus *ubus) in mon_bus_remove() argument
207 struct mon_bus *mbus = ubus->mon_bus; in mon_bus_remove()
216 mon_dissolve(mbus, ubus); in mon_bus_remove()
250 static void mon_dissolve(struct mon_bus *mbus, struct usb_bus *ubus) in mon_dissolve() argument
253 if (ubus->monitored) { in mon_dissolve()
254 ubus->monitored = 0; in mon_dissolve()
258 ubus->mon_bus = NULL; in mon_dissolve()
279 static void mon_bus_init(struct usb_bus *ubus) in mon_bus_init() argument
293 mbus->u_bus = ubus; in mon_bus_init()
294 ubus->mon_bus = mbus; in mon_bus_init()
296 mbus->text_inited = mon_text_add(mbus, ubus); in mon_bus_init()
297 mbus->bin_inited = mon_bin_add(mbus, ubus); in mon_bus_init()
347 struct usb_bus *ubus; in mon_init() local
365 list_for_each_entry (ubus, &usb_bus_list, bus_list) { in mon_init()
366 mon_bus_init(ubus); in mon_init()