Lines Matching refs:driver_ctx
395 * @driver_ctx: Pointer to driver structure you want to register
397 * @driver_ctx is of type &struct driver_context
405 int vmbus_child_driver_register(struct driver_context *driver_ctx)
411 driver_ctx, driver_ctx->driver.name);
414 driver_ctx->driver.bus = &g_vmbus_drv.bus;
416 ret = driver_register(&driver_ctx->driver);
426 * @driver_ctx: Pointer to driver structure you want to un-register
428 * @driver_ctx is of type &struct driver_context
435 void vmbus_child_driver_unregister(struct driver_context *driver_ctx)
438 driver_ctx, driver_ctx->driver.name);
440 driver_unregister(&driver_ctx->driver);
442 driver_ctx->driver.bus = NULL;
681 struct driver_context *driver_ctx = driver_to_driver_context(driver);
685 if (memcmp(&device_ctx->class_id, &driver_ctx->class_id,
688 * !! NOTE: The driver_ctx is not a vmbus_drv_ctx. We typecast
692 (struct vmbus_driver_context *)driver_ctx;
731 struct driver_context *driver_ctx =
737 if (driver_ctx->probe) {
738 ret = device_ctx->probe_error = driver_ctx->probe(child_device);
763 struct driver_context *driver_ctx;
775 driver_ctx = driver_to_driver_context(child_device->driver);
781 if (driver_ctx->remove) {
782 ret = driver_ctx->remove(child_device);
799 struct driver_context *driver_ctx;
814 driver_ctx = driver_to_driver_context(child_device->driver);
817 if (driver_ctx->shutdown)
818 driver_ctx->shutdown(child_device);