Lines Matching refs:busid_priv
277 struct bus_id_priv *busid_priv; in stub_probe() local
291 busid_priv = get_busid_priv(udev_busid); in stub_probe()
292 if (!busid_priv || (busid_priv->status == STUB_BUSID_REMOV) || in stub_probe()
293 (busid_priv->status == STUB_BUSID_OTHER)) { in stub_probe()
304 if (!busid_priv) in stub_probe()
331 busid_priv->shutdown_busid = 0; in stub_probe()
336 busid_priv->sdev = sdev; in stub_probe()
337 busid_priv->udev = udev; in stub_probe()
339 save_status = busid_priv->status; in stub_probe()
340 busid_priv->status = STUB_BUSID_ALLOC; in stub_probe()
343 put_busid_priv(busid_priv); in stub_probe()
364 spin_lock(&busid_priv->busid_lock); in stub_probe()
365 busid_priv->sdev = NULL; in stub_probe()
366 busid_priv->status = save_status; in stub_probe()
367 spin_unlock(&busid_priv->busid_lock); in stub_probe()
373 put_busid_priv(busid_priv); in stub_probe()
381 static void shutdown_busid(struct bus_id_priv *busid_priv) in shutdown_busid() argument
383 usbip_event_add(&busid_priv->sdev->ud, SDEV_EVENT_REMOVED); in shutdown_busid()
386 usbip_stop_eh(&busid_priv->sdev->ud); in shutdown_busid()
397 struct bus_id_priv *busid_priv; in stub_disconnect() local
402 busid_priv = get_busid_priv(udev_busid); in stub_disconnect()
403 if (!busid_priv) { in stub_disconnect()
414 put_busid_priv(busid_priv); in stub_disconnect()
421 put_busid_priv(busid_priv); in stub_disconnect()
440 spin_lock(&busid_priv->busid_lock); in stub_disconnect()
441 if (!busid_priv->shutdown_busid) in stub_disconnect()
442 busid_priv->shutdown_busid = 1; in stub_disconnect()
444 spin_unlock(&busid_priv->busid_lock); in stub_disconnect()
447 shutdown_busid(busid_priv); in stub_disconnect()
452 spin_lock(&busid_priv->busid_lock); in stub_disconnect()
454 busid_priv->sdev = NULL; in stub_disconnect()
457 if (busid_priv->status == STUB_BUSID_ALLOC) in stub_disconnect()
458 busid_priv->status = STUB_BUSID_ADDED; in stub_disconnect()
460 spin_unlock(&busid_priv->busid_lock); in stub_disconnect()