Lines Matching refs:busid_priv
314 struct bus_id_priv *busid_priv; in stub_probe() local
328 busid_priv = get_busid_priv(udev_busid); in stub_probe()
329 if (!busid_priv || (busid_priv->status == STUB_BUSID_REMOV) || in stub_probe()
330 (busid_priv->status == STUB_BUSID_OTHER)) { in stub_probe()
341 if (!busid_priv) in stub_probe()
368 busid_priv->shutdown_busid = 0; in stub_probe()
373 busid_priv->sdev = sdev; in stub_probe()
374 busid_priv->udev = udev; in stub_probe()
376 save_status = busid_priv->status; in stub_probe()
377 busid_priv->status = STUB_BUSID_ALLOC; in stub_probe()
380 put_busid_priv(busid_priv); in stub_probe()
400 spin_lock(&busid_priv->busid_lock); in stub_probe()
401 busid_priv->sdev = NULL; in stub_probe()
402 busid_priv->status = save_status; in stub_probe()
403 spin_unlock(&busid_priv->busid_lock); in stub_probe()
409 put_busid_priv(busid_priv); in stub_probe()
418 static void shutdown_busid(struct bus_id_priv *busid_priv) in shutdown_busid() argument
420 usbip_event_add(&busid_priv->sdev->ud, SDEV_EVENT_REMOVED); in shutdown_busid()
423 usbip_stop_eh(&busid_priv->sdev->ud); in shutdown_busid()
434 struct bus_id_priv *busid_priv; in stub_disconnect() local
439 busid_priv = get_busid_priv(udev_busid); in stub_disconnect()
440 if (!busid_priv) { in stub_disconnect()
451 put_busid_priv(busid_priv); in stub_disconnect()
458 put_busid_priv(busid_priv); in stub_disconnect()
482 spin_lock(&busid_priv->busid_lock); in stub_disconnect()
483 if (!busid_priv->shutdown_busid) in stub_disconnect()
484 busid_priv->shutdown_busid = 1; in stub_disconnect()
486 spin_unlock(&busid_priv->busid_lock); in stub_disconnect()
489 shutdown_busid(busid_priv); in stub_disconnect()
494 spin_lock(&busid_priv->busid_lock); in stub_disconnect()
496 busid_priv->sdev = NULL; in stub_disconnect()
499 if (busid_priv->status == STUB_BUSID_ALLOC) in stub_disconnect()
500 busid_priv->status = STUB_BUSID_ADDED; in stub_disconnect()
502 spin_unlock(&busid_priv->busid_lock); in stub_disconnect()