Lines Matching refs:dev
56 static int snd_cs4231_match(struct device *dev, unsigned int n) in snd_cs4231_match() argument
62 dev_err(dev, "please specify port\n"); in snd_cs4231_match()
66 dev_err(dev, "please specify irq\n"); in snd_cs4231_match()
70 dev_err(dev, "please specify dma1\n"); in snd_cs4231_match()
76 static int snd_cs4231_probe(struct device *dev, unsigned int n) in snd_cs4231_probe() argument
82 error = snd_devm_card_new(dev, index[n], id[n], THIS_MODULE, 0, &card); in snd_cs4231_probe()
123 dev_warn(dev, "MPU401 not detected\n"); in snd_cs4231_probe()
130 dev_set_drvdata(dev, card); in snd_cs4231_probe()
135 static int snd_cs4231_suspend(struct device *dev, unsigned int n, pm_message_t state) in snd_cs4231_suspend() argument
137 struct snd_card *card = dev_get_drvdata(dev); in snd_cs4231_suspend()
145 static int snd_cs4231_resume(struct device *dev, unsigned int n) in snd_cs4231_resume() argument
147 struct snd_card *card = dev_get_drvdata(dev); in snd_cs4231_resume()