Lines Matching refs:dev
23 * @dev: device pointer
29 int snd_hdac_ext_bus_init(struct hdac_bus *bus, struct device *dev,
35 ret = snd_hdac_bus_init(bus, dev, ops);
63 static void default_release(struct device *dev)
65 snd_hdac_ext_bus_device_exit(dev_to_hdac_dev(dev));
89 dev_err(bus->dev, "device init failed for hdac device\n");
93 hdev->dev.release = default_release;
97 dev_err(bus->dev, "failed to register hdac device\n");
130 put_device(&codec->dev);
134 #define dev_to_hdac(dev) (container_of((dev), \
135 struct hdac_device, dev))
137 static inline struct hdac_driver *get_hdrv(struct device *dev)
139 struct hdac_driver *hdrv = drv_to_hdac_driver(dev->driver);
143 static inline struct hdac_device *get_hdev(struct device *dev)
145 struct hdac_device *hdev = dev_to_hdac_dev(dev);
149 static int hda_ext_drv_probe(struct device *dev)
151 return (get_hdrv(dev))->probe(get_hdev(dev));
154 static int hdac_ext_drv_remove(struct device *dev)
156 return (get_hdrv(dev))->remove(get_hdev(dev));
159 static void hdac_ext_drv_shutdown(struct device *dev)
161 return (get_hdrv(dev))->shutdown(get_hdev(dev));