Lines Matching refs:mdev
37 struct mcb_device *mdev = to_mcb_device(dev); in mcb_match() local
40 found_id = mcb_match_id(mdrv->id_table, mdev); in mcb_match()
49 struct mcb_device *mdev = to_mcb_device(dev); in mcb_uevent() local
52 ret = add_uevent_var(env, "MODALIAS=mcb:16z%03d", mdev->id); in mcb_uevent()
62 struct mcb_device *mdev = to_mcb_device(dev); in mcb_probe() local
65 found_id = mcb_match_id(mdrv->id_table, mdev); in mcb_probe()
69 return mdrv->probe(mdev, found_id); in mcb_probe()
75 struct mcb_device *mdev = to_mcb_device(dev); in mcb_remove() local
77 mdrv->remove(mdev); in mcb_remove()
79 put_device(&mdev->dev); in mcb_remove()
86 struct mcb_device *mdev = to_mcb_device(dev); in mcb_shutdown() local
87 struct mcb_driver *mdrv = mdev->driver; in mcb_shutdown()
90 mdrv->shutdown(mdev); in mcb_shutdown()
139 struct mcb_device *mdev = to_mcb_device(dev); in mcb_release_dev() local
141 mcb_bus_put(mdev->bus); in mcb_release_dev()
142 kfree(mdev); in mcb_release_dev()
297 struct mcb_device *mdev = to_mcb_device(dev); in __mcb_bus_add_devices() local
300 if (mdev->is_added) in __mcb_bus_add_devices()
307 mdev->is_added = true; in __mcb_bus_add_devices()
314 struct mcb_device *mdev = to_mcb_device(dev); in __mcb_bus_add_child() local
317 BUG_ON(!mdev->is_added); in __mcb_bus_add_child()
318 child = mdev->subordinate; in __mcb_bus_add_child()