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);
96 static void mon_submit(struct usb_bus *ubus, struct urb *urb)
100 if ((mbus = ubus->mon_bus) != NULL)
123 static void mon_submit_error(struct usb_bus *ubus, struct urb *urb, int error)
127 if ((mbus = ubus->mon_bus) != NULL)
149 static void mon_complete(struct usb_bus *ubus, struct urb *urb, int status)
153 if ((mbus = ubus->mon_bus) != NULL)
165 struct usb_bus *ubus;
174 if (mbus->nreaders == 0 && (ubus = mbus->u_bus) != NULL)
175 ubus->monitored = 0;
182 if (mon_bus0.nreaders == 0 && (ubus = mbus->u_bus) != NULL) {
183 ubus->monitored = 0;
195 static void mon_bus_add(struct usb_bus *ubus)
197 mon_bus_init(ubus);
200 ubus->monitored = 1;
207 static void mon_bus_remove(struct usb_bus *ubus)
209 struct mon_bus *mbus = ubus->mon_bus;
218 mon_dissolve(mbus, ubus);
252 static void mon_dissolve(struct mon_bus *mbus, struct usb_bus *ubus)
255 if (ubus->monitored) {
256 ubus->monitored = 0;
260 ubus->mon_bus = NULL;
281 static void mon_bus_init(struct usb_bus *ubus)
292 * We don't need to take a reference to ubus, because we receive
295 mbus->u_bus = ubus;
296 ubus->mon_bus = mbus;
298 mbus->text_inited = mon_text_add(mbus, ubus);
299 mbus->bin_inited = mon_bin_add(mbus, ubus);
349 struct usb_bus *ubus;
367 list_for_each_entry (ubus, &usb_bus_list, bus_list) {
368 mon_bus_init(ubus);