Lines Matching refs:drv
20 static int hda_codec_match(struct hdac_device *dev, struct hdac_driver *drv) in hda_codec_match() argument
24 container_of(drv, struct hda_codec_driver, core); in hda_codec_match()
149 int __hda_codec_driver_register(struct hda_codec_driver *drv, const char *name, in __hda_codec_driver_register() argument
152 drv->core.driver.name = name; in __hda_codec_driver_register()
153 drv->core.driver.owner = owner; in __hda_codec_driver_register()
154 drv->core.driver.bus = &snd_hda_bus_type; in __hda_codec_driver_register()
155 drv->core.driver.probe = hda_codec_driver_probe; in __hda_codec_driver_register()
156 drv->core.driver.remove = hda_codec_driver_remove; in __hda_codec_driver_register()
157 drv->core.driver.shutdown = hda_codec_driver_shutdown; in __hda_codec_driver_register()
158 drv->core.driver.pm = &hda_codec_driver_pm; in __hda_codec_driver_register()
159 drv->core.type = HDA_DEV_LEGACY; in __hda_codec_driver_register()
160 drv->core.match = hda_codec_match; in __hda_codec_driver_register()
161 drv->core.unsol_event = hda_codec_unsol_event; in __hda_codec_driver_register()
162 return driver_register(&drv->core.driver); in __hda_codec_driver_register()
166 void hda_codec_driver_unregister(struct hda_codec_driver *drv) in hda_codec_driver_unregister() argument
168 driver_unregister(&drv->core.driver); in hda_codec_driver_unregister()