Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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.c1021 static int snd_dummy_probe(struct platform_device *devptr) in snd_dummy_probe() argument
1027 int dev = devptr->id; in snd_dummy_probe()
1029 err = snd_card_new(&devptr->dev, index[dev], id[dev], THIS_MODULE, in snd_dummy_probe()
1091 platform_set_drvdata(devptr, card); in snd_dummy_probe()
1099 static int snd_dummy_remove(struct platform_device *devptr) in snd_dummy_remove() argument
1101 snd_card_free(platform_get_drvdata(devptr)); in snd_dummy_remove()
Daloop.c1709 static int loopback_probe(struct platform_device *devptr) in loopback_probe() argument
1713 int dev = devptr->id; in loopback_probe()
1716 err = snd_card_new(&devptr->dev, index[dev], id[dev], THIS_MODULE, in loopback_probe()
1749 platform_set_drvdata(devptr, card); in loopback_probe()
1757 static int loopback_remove(struct platform_device *devptr) in loopback_remove() argument
1759 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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
119 platform_set_drvdata(devptr, card); in snd_pmac_probe()
128 static int snd_pmac_remove(struct platform_device *devptr) in snd_pmac_remove() argument
130 snd_card_free(platform_get_drvdata(devptr)); in snd_pmac_remove()
/kernel/linux/linux-5.10/sound/sh/
Dsh_dac_audio.c261 static int snd_sh_dac_remove(struct platform_device *devptr) in snd_sh_dac_remove() argument
263 snd_card_free(platform_get_drvdata(devptr)); in snd_sh_dac_remove()
319 struct platform_device *devptr, in snd_sh_dac_create() argument
344 chip->pdata = devptr->dev.platform_data; in snd_sh_dac_create()
364 static int snd_sh_dac_probe(struct platform_device *devptr) in snd_sh_dac_probe() argument
370 err = snd_card_new(&devptr->dev, index, id, THIS_MODULE, 0, &card); in snd_sh_dac_probe()
376 err = snd_sh_dac_create(card, devptr, &chip); in snd_sh_dac_probe()
394 platform_set_drvdata(devptr, card); in snd_sh_dac_probe()
Daica.c543 static int snd_aica_remove(struct platform_device *devptr) in snd_aica_remove() argument
546 dreamcastcard = platform_get_drvdata(devptr); in snd_aica_remove()
554 static int snd_aica_probe(struct platform_device *devptr) in snd_aica_probe() argument
561 err = snd_card_new(&devptr->dev, index, SND_AICA_DRIVER, in snd_aica_probe()
586 platform_set_drvdata(devptr, dreamcastcard); in snd_aica_probe()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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.c634 static int snd_cmi8330_isa_remove(struct device *devptr, in snd_cmi8330_isa_remove() argument
637 snd_card_free(dev_get_drvdata(devptr)); in snd_cmi8330_isa_remove()
Des18xx.c2157 static int snd_es18xx_isa_probe1(int dev, struct device *devptr) in snd_es18xx_isa_probe1() argument
2162 err = snd_es18xx_card_new(devptr, dev, &card); in snd_es18xx_isa_probe1()
2169 dev_set_drvdata(devptr, card); in snd_es18xx_isa_probe1()
2213 static int snd_es18xx_isa_remove(struct device *devptr, in snd_es18xx_isa_remove() argument
2216 snd_card_free(dev_get_drvdata(devptr)); in snd_es18xx_isa_remove()
/kernel/linux/linux-5.10/sound/isa/opti9xx/
Dopti92x-ad1848.c949 static int snd_opti9xx_isa_match(struct device *devptr, argument
961 static int snd_opti9xx_isa_probe(struct device *devptr, argument
1011 error = snd_opti9xx_card_new(devptr, &card);
1023 dev_set_drvdata(devptr, card);
1027 static int snd_opti9xx_isa_remove(struct device *devptr, argument
1030 snd_card_free(dev_get_drvdata(devptr));
Dmiro.c1380 static int snd_miro_isa_match(struct device *devptr, unsigned int n) in snd_miro_isa_match() argument
1391 static int snd_miro_isa_probe(struct device *devptr, unsigned int n) in snd_miro_isa_probe() argument
1405 error = snd_card_new(devptr, index, id, THIS_MODULE, in snd_miro_isa_probe()
1479 dev_set_drvdata(devptr, card); in snd_miro_isa_probe()
1483 static int snd_miro_isa_remove(struct device *devptr, in snd_miro_isa_remove() argument
1486 snd_card_free(dev_get_drvdata(devptr)); in snd_miro_isa_remove()
/kernel/linux/linux-5.10/sound/isa/gus/
Dinterwave.c758 static int snd_interwave_isa_probe1(int dev, struct device *devptr) in snd_interwave_isa_probe1() argument
763 err = snd_interwave_card_new(devptr, dev, &card); in snd_interwave_isa_probe1()
771 dev_set_drvdata(devptr, card); in snd_interwave_isa_probe1()
828 static int snd_interwave_isa_remove(struct device *devptr, unsigned int dev) in snd_interwave_isa_remove() argument
830 snd_card_free(dev_get_drvdata(devptr)); in snd_interwave_isa_remove()
Dgusmax.c341 static int snd_gusmax_remove(struct device *devptr, unsigned int dev) in snd_gusmax_remove() argument
343 snd_card_free(dev_get_drvdata(devptr)); in snd_gusmax_remove()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/of/
Dunittest.c1582 struct unittest_gpio_dev *devptr; in unittest_gpio_probe() local
1587 devptr = kzalloc(sizeof(*devptr), GFP_KERNEL); in unittest_gpio_probe()
1588 if (!devptr) in unittest_gpio_probe()
1591 platform_set_drvdata(pdev, devptr); in unittest_gpio_probe()
1593 devptr->chip.of_node = pdev->dev.of_node; in unittest_gpio_probe()
1594 devptr->chip.label = "of-unittest-gpio"; in unittest_gpio_probe()
1595 devptr->chip.base = -1; /* dynamic allocation */ in unittest_gpio_probe()
1596 devptr->chip.ngpio = 5; in unittest_gpio_probe()
1597 devptr->chip.request = unittest_gpio_chip_request; in unittest_gpio_probe()
1599 ret = gpiochip_add_data(&devptr->chip, NULL); in unittest_gpio_probe()
[all …]
/kernel/linux/linux-5.10/include/sound/
Dcore.h257 #define snd_card_set_dev(card, devptr) ((card)->dev = (devptr)) argument
/kernel/linux/linux-5.10/sound/isa/wavefront/
Dwavefront.c568 static int snd_wavefront_isa_remove(struct device *devptr, in snd_wavefront_isa_remove() argument
571 snd_card_free(dev_get_drvdata(devptr)); in snd_wavefront_isa_remove()
/kernel/linux/linux-5.10/drivers/cdrom/
Dgdrom.c743 static int probe_gdrom(struct platform_device *devptr) in probe_gdrom() argument
831 static int remove_gdrom(struct platform_device *devptr) in remove_gdrom() argument
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
Dvio.c1263 struct device *devptr; in vio_bus_remove() local
1270 devptr = get_device(dev); in vio_bus_remove()
1278 put_device(devptr); in vio_bus_remove()

12