Home
last modified time | relevance | path

Searched refs:devptr (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v5.4/arch/arm/common/
Dscoop.c177 struct scoop_dev *devptr; in scoop_probe() local
185 devptr = kzalloc(sizeof(struct scoop_dev), GFP_KERNEL); in scoop_probe()
186 if (!devptr) in scoop_probe()
189 spin_lock_init(&devptr->scoop_lock); in scoop_probe()
192 devptr->base = ioremap(mem->start, resource_size(mem)); in scoop_probe()
194 if (!devptr->base) { in scoop_probe()
199 platform_set_drvdata(pdev, devptr); in scoop_probe()
201 printk("Sharp Scoop Device found at 0x%08x -> 0x%8p\n",(unsigned int)mem->start, devptr->base); in scoop_probe()
203 iowrite16(0x0140, devptr->base + SCOOP_MCR); in scoop_probe()
205 iowrite16(0x0000, devptr->base + SCOOP_CPR); in scoop_probe()
[all …]
/Linux-v5.4/sound/drivers/
Dvirmidi.c72 static int snd_virmidi_probe(struct platform_device *devptr) in snd_virmidi_probe() argument
77 int dev = devptr->id; in snd_virmidi_probe()
79 err = snd_card_new(&devptr->dev, index[dev], id[dev], THIS_MODULE, in snd_virmidi_probe()
111 platform_set_drvdata(devptr, card); in snd_virmidi_probe()
119 static int snd_virmidi_remove(struct platform_device *devptr) in snd_virmidi_remove() argument
121 snd_card_free(platform_get_drvdata(devptr)); in snd_virmidi_remove()
Dserial-u16550.c885 static int snd_serial_probe(struct platform_device *devptr) in snd_serial_probe() argument
890 int dev = devptr->id; in snd_serial_probe()
928 err = snd_card_new(&devptr->dev, index[dev], id[dev], THIS_MODULE, in snd_serial_probe()
959 platform_set_drvdata(devptr, card); in snd_serial_probe()
967 static int snd_serial_remove(struct platform_device *devptr) in snd_serial_remove() argument
969 snd_card_free(platform_get_drvdata(devptr)); in snd_serial_remove()
Ddummy.c1033 static int snd_dummy_probe(struct platform_device *devptr) in snd_dummy_probe() argument
1039 int dev = devptr->id; in snd_dummy_probe()
1041 err = snd_card_new(&devptr->dev, index[dev], id[dev], THIS_MODULE, in snd_dummy_probe()
1103 platform_set_drvdata(devptr, card); in snd_dummy_probe()
1111 static int snd_dummy_remove(struct platform_device *devptr) in snd_dummy_remove() argument
1113 snd_card_free(platform_get_drvdata(devptr)); in snd_dummy_remove()
Daloop.c1130 static int loopback_probe(struct platform_device *devptr) in loopback_probe() argument
1134 int dev = devptr->id; in loopback_probe()
1137 err = snd_card_new(&devptr->dev, index[dev], id[dev], THIS_MODULE, in loopback_probe()
1167 platform_set_drvdata(devptr, card); in loopback_probe()
1175 static int loopback_remove(struct platform_device *devptr) in loopback_remove() argument
1177 snd_card_free(platform_get_drvdata(devptr)); in loopback_remove()
Dmtpav.c728 static int snd_mtpav_remove(struct platform_device *devptr) in snd_mtpav_remove() argument
730 snd_card_free(platform_get_drvdata(devptr)); in snd_mtpav_remove()
/Linux-v5.4/sound/drivers/mpu401/
Dmpu401.c52 static int snd_mpu401_create(struct device *devptr, int dev, in snd_mpu401_create() argument
62 err = snd_card_new(devptr, index[dev], id[dev], THIS_MODULE, in snd_mpu401_create()
90 static int snd_mpu401_probe(struct platform_device *devptr) in snd_mpu401_probe() argument
92 int dev = devptr->id; in snd_mpu401_probe()
104 err = snd_mpu401_create(&devptr->dev, dev, &card); in snd_mpu401_probe()
111 platform_set_drvdata(devptr, card); in snd_mpu401_probe()
115 static int snd_mpu401_remove(struct platform_device *devptr) in snd_mpu401_remove() argument
117 snd_card_free(platform_get_drvdata(devptr)); in snd_mpu401_remove()
/Linux-v5.4/sound/ppc/
Dpowermac.c41 static int snd_pmac_probe(struct platform_device *devptr) in snd_pmac_probe() argument
48 err = snd_card_new(&devptr->dev, index, id, THIS_MODULE, 0, &card); in snd_pmac_probe()
115 platform_set_drvdata(devptr, card); in snd_pmac_probe()
124 static int snd_pmac_remove(struct platform_device *devptr) in snd_pmac_remove() argument
126 snd_card_free(platform_get_drvdata(devptr)); in snd_pmac_remove()
/Linux-v5.4/sound/sh/
Dsh_dac_audio.c281 static int snd_sh_dac_remove(struct platform_device *devptr) in snd_sh_dac_remove() argument
283 snd_card_free(platform_get_drvdata(devptr)); in snd_sh_dac_remove()
339 struct platform_device *devptr, in snd_sh_dac_create() argument
364 chip->pdata = devptr->dev.platform_data; in snd_sh_dac_create()
384 static int snd_sh_dac_probe(struct platform_device *devptr) in snd_sh_dac_probe() argument
390 err = snd_card_new(&devptr->dev, index, id, THIS_MODULE, 0, &card); in snd_sh_dac_probe()
396 err = snd_sh_dac_create(card, devptr, &chip); in snd_sh_dac_probe()
414 platform_set_drvdata(devptr, card); in snd_sh_dac_probe()
Daica.c563 static int snd_aica_remove(struct platform_device *devptr) in snd_aica_remove() argument
566 dreamcastcard = platform_get_drvdata(devptr); in snd_aica_remove()
574 static int snd_aica_probe(struct platform_device *devptr) in snd_aica_probe() argument
581 err = snd_card_new(&devptr->dev, index, SND_AICA_DRIVER, in snd_aica_probe()
606 platform_set_drvdata(devptr, dreamcastcard); in snd_aica_probe()
/Linux-v5.4/sound/isa/sb/
Djazz16.c186 static int snd_jazz16_match(struct device *devptr, unsigned int dev) in snd_jazz16_match() argument
221 static int snd_jazz16_probe(struct device *devptr, unsigned int dev) in snd_jazz16_probe() argument
232 err = snd_card_new(devptr, index[dev], id[dev], THIS_MODULE, in snd_jazz16_probe()
334 dev_set_drvdata(devptr, card); in snd_jazz16_probe()
342 static int snd_jazz16_remove(struct device *devptr, unsigned int dev) in snd_jazz16_remove() argument
344 struct snd_card *card = dev_get_drvdata(devptr); in snd_jazz16_remove()
Dsb16.c311 static int snd_sb16_card_new(struct device *devptr, int dev, in snd_sb16_card_new() argument
317 err = snd_card_new(devptr, index[dev], id[dev], THIS_MODULE, in snd_sb16_card_new()
/Linux-v5.4/sound/isa/
Dsc6000.c492 static int snd_sc6000_match(struct device *devptr, unsigned int dev) in snd_sc6000_match() argument
535 static int snd_sc6000_probe(struct device *devptr, unsigned int dev) in snd_sc6000_probe() argument
549 err = snd_card_new(devptr, index[dev], id[dev], THIS_MODULE, in snd_sc6000_probe()
579 *vport = devm_ioport_map(devptr, port[dev], 0x10); in snd_sc6000_probe()
594 vmss_port = devm_ioport_map(devptr, mss_port[dev], 4); in snd_sc6000_probe()
662 dev_set_drvdata(devptr, card); in snd_sc6000_probe()
675 static int snd_sc6000_remove(struct device *devptr, unsigned int dev) in snd_sc6000_remove() argument
677 struct snd_card *card = dev_get_drvdata(devptr); in snd_sc6000_remove()
Dcmi8330.c635 static int snd_cmi8330_isa_remove(struct device *devptr, in snd_cmi8330_isa_remove() argument
638 snd_card_free(dev_get_drvdata(devptr)); in snd_cmi8330_isa_remove()
Des18xx.c2172 static int snd_es18xx_isa_probe1(int dev, struct device *devptr) in snd_es18xx_isa_probe1() argument
2177 err = snd_es18xx_card_new(devptr, dev, &card); in snd_es18xx_isa_probe1()
2184 dev_set_drvdata(devptr, card); in snd_es18xx_isa_probe1()
2228 static int snd_es18xx_isa_remove(struct device *devptr, in snd_es18xx_isa_remove() argument
2231 snd_card_free(dev_get_drvdata(devptr)); in snd_es18xx_isa_remove()
/Linux-v5.4/sound/isa/opti9xx/
Dopti92x-ad1848.c943 static int snd_opti9xx_isa_match(struct device *devptr, argument
955 static int snd_opti9xx_isa_probe(struct device *devptr, argument
1005 error = snd_opti9xx_card_new(devptr, &card);
1017 dev_set_drvdata(devptr, card);
1021 static int snd_opti9xx_isa_remove(struct device *devptr, argument
1024 snd_card_free(dev_get_drvdata(devptr));
Dmiro.c1377 static int snd_miro_isa_match(struct device *devptr, unsigned int n) in snd_miro_isa_match() argument
1388 static int snd_miro_isa_probe(struct device *devptr, unsigned int n) in snd_miro_isa_probe() argument
1402 error = snd_card_new(devptr, index, id, THIS_MODULE, in snd_miro_isa_probe()
1476 dev_set_drvdata(devptr, card); in snd_miro_isa_probe()
1480 static int snd_miro_isa_remove(struct device *devptr, in snd_miro_isa_remove() argument
1483 snd_card_free(dev_get_drvdata(devptr)); in snd_miro_isa_remove()
/Linux-v5.4/sound/isa/gus/
Dinterwave.c757 static int snd_interwave_isa_probe1(int dev, struct device *devptr) in snd_interwave_isa_probe1() argument
762 err = snd_interwave_card_new(devptr, dev, &card); in snd_interwave_isa_probe1()
770 dev_set_drvdata(devptr, card); in snd_interwave_isa_probe1()
827 static int snd_interwave_isa_remove(struct device *devptr, unsigned int dev) in snd_interwave_isa_remove() argument
829 snd_card_free(dev_get_drvdata(devptr)); in snd_interwave_isa_remove()
Dgusmax.c340 static int snd_gusmax_remove(struct device *devptr, unsigned int dev) in snd_gusmax_remove() argument
342 snd_card_free(dev_get_drvdata(devptr)); in snd_gusmax_remove()
/Linux-v5.4/drivers/sh/maple/
Dmaple.c313 void *devptr) in maple_check_matching_driver() argument
318 mdev = devptr; in maple_check_matching_driver()
749 static int maple_match_bus_driver(struct device *devptr, in maple_match_bus_driver() argument
753 struct maple_device *maple_dev = to_maple_dev(devptr); in maple_match_bus_driver()
/Linux-v5.4/include/sound/
Dcore.h253 #define snd_card_set_dev(card, devptr) ((card)->dev = (devptr)) argument
/Linux-v5.4/drivers/staging/isdn/avm/
Davmcard.h557 irqreturn_t b1_interrupt(int interrupt, void *devptr);
569 irqreturn_t b1dma_interrupt(int interrupt, void *devptr);
Dt1isa.c135 static irqreturn_t t1isa_interrupt(int interrupt, void *devptr) in t1isa_interrupt() argument
137 avmcard *card = devptr; in t1isa_interrupt()
/Linux-v5.4/sound/isa/wavefront/
Dwavefront.c567 static int snd_wavefront_isa_remove(struct device *devptr, in snd_wavefront_isa_remove() argument
570 snd_card_free(dev_get_drvdata(devptr)); in snd_wavefront_isa_remove()
/Linux-v5.4/drivers/cdrom/
Dgdrom.c740 static int probe_gdrom(struct platform_device *devptr) in probe_gdrom() argument
821 static int remove_gdrom(struct platform_device *devptr) in remove_gdrom() argument

12