Home
last modified time | relevance | path

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

/Linux-v5.15/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.15/sound/ppc/
Dpowermac.c40 static int snd_pmac_probe(struct platform_device *devptr) in snd_pmac_probe() argument
47 err = snd_card_new(&devptr->dev, index, id, THIS_MODULE, 0, &card); in snd_pmac_probe()
124 platform_set_drvdata(devptr, card); in snd_pmac_probe()
133 static int snd_pmac_remove(struct platform_device *devptr) in snd_pmac_remove() argument
135 snd_card_free(platform_get_drvdata(devptr)); in snd_pmac_remove()
/Linux-v5.15/sound/drivers/mpu401/
Dmpu401.c52 static int snd_mpu401_create(struct device *devptr, int dev, in snd_mpu401_create() argument
62 err = snd_devm_card_new(devptr, index[dev], id[dev], THIS_MODULE, in snd_mpu401_create()
86 static int snd_mpu401_probe(struct platform_device *devptr) in snd_mpu401_probe() argument
88 int dev = devptr->id; in snd_mpu401_probe()
100 err = snd_mpu401_create(&devptr->dev, dev, &card); in snd_mpu401_probe()
106 platform_set_drvdata(devptr, card); in snd_mpu401_probe()
/Linux-v5.15/sound/sh/
Dsh_dac_audio.c260 static int snd_sh_dac_remove(struct platform_device *devptr) in snd_sh_dac_remove() argument
262 snd_card_free(platform_get_drvdata(devptr)); in snd_sh_dac_remove()
318 struct platform_device *devptr, in snd_sh_dac_create() argument
343 chip->pdata = devptr->dev.platform_data; in snd_sh_dac_create()
363 static int snd_sh_dac_probe(struct platform_device *devptr) in snd_sh_dac_probe() argument
369 err = snd_card_new(&devptr->dev, index, id, THIS_MODULE, 0, &card); in snd_sh_dac_probe()
375 err = snd_sh_dac_create(card, devptr, &chip); in snd_sh_dac_probe()
393 platform_set_drvdata(devptr, card); in snd_sh_dac_probe()
Daica.c542 static int snd_aica_remove(struct platform_device *devptr) in snd_aica_remove() argument
545 dreamcastcard = platform_get_drvdata(devptr); in snd_aica_remove()
553 static int snd_aica_probe(struct platform_device *devptr) in snd_aica_probe() argument
560 err = snd_card_new(&devptr->dev, index, SND_AICA_DRIVER, in snd_aica_probe()
585 platform_set_drvdata(devptr, dreamcastcard); in snd_aica_probe()
/Linux-v5.15/sound/drivers/
Dvirmidi.c71 static int snd_virmidi_probe(struct platform_device *devptr) in snd_virmidi_probe() argument
76 int dev = devptr->id; in snd_virmidi_probe()
78 err = snd_devm_card_new(&devptr->dev, index[dev], id[dev], THIS_MODULE, in snd_virmidi_probe()
112 platform_set_drvdata(devptr, card); in snd_virmidi_probe()
Dserial-u16550.c859 static int snd_serial_probe(struct platform_device *devptr) in snd_serial_probe() argument
864 int dev = devptr->id; in snd_serial_probe()
902 err = snd_devm_card_new(&devptr->dev, index[dev], id[dev], THIS_MODULE, in snd_serial_probe()
930 platform_set_drvdata(devptr, card); in snd_serial_probe()
Ddummy.c1020 static int snd_dummy_probe(struct platform_device *devptr) in snd_dummy_probe() argument
1026 int dev = devptr->id; in snd_dummy_probe()
1028 err = snd_devm_card_new(&devptr->dev, index[dev], id[dev], THIS_MODULE, in snd_dummy_probe()
1091 platform_set_drvdata(devptr, card); in snd_dummy_probe()
Daloop.c1708 static int loopback_probe(struct platform_device *devptr) in loopback_probe() argument
1712 int dev = devptr->id; in loopback_probe()
1715 err = snd_devm_card_new(&devptr->dev, index[dev], id[dev], THIS_MODULE, in loopback_probe()
1749 platform_set_drvdata(devptr, card); in loopback_probe()
/Linux-v5.15/sound/isa/
Dsc6000.c489 static int snd_sc6000_match(struct device *devptr, unsigned int dev) in snd_sc6000_match() argument
540 static int snd_sc6000_probe(struct device *devptr, unsigned int dev) in snd_sc6000_probe() argument
553 err = snd_devm_card_new(devptr, index[dev], id[dev], THIS_MODULE, in snd_sc6000_probe()
574 if (!devm_request_region(devptr, port[dev], 0x10, DRV_NAME)) { in snd_sc6000_probe()
579 vport = devm_ioport_map(devptr, port[dev], 0x10); in snd_sc6000_probe()
588 if (!devm_request_region(devptr, mss_port[dev], 4, DRV_NAME)) { in snd_sc6000_probe()
593 vmss_port = devm_ioport_map(devptr, mss_port[dev], 4); in snd_sc6000_probe()
661 dev_set_drvdata(devptr, card); in snd_sc6000_probe()
Des18xx.c2116 static int snd_es18xx_isa_probe1(int dev, struct device *devptr) in snd_es18xx_isa_probe1() argument
2121 err = snd_es18xx_card_new(devptr, dev, &card); in snd_es18xx_isa_probe1()
2127 dev_set_drvdata(devptr, card); in snd_es18xx_isa_probe1()
/Linux-v5.15/sound/isa/sb/
Djazz16.c183 static int snd_jazz16_match(struct device *devptr, unsigned int dev) in snd_jazz16_match() argument
218 static int snd_jazz16_probe(struct device *devptr, unsigned int dev) in snd_jazz16_probe() argument
229 err = snd_devm_card_new(devptr, index[dev], id[dev], THIS_MODULE, in snd_jazz16_probe()
328 dev_set_drvdata(devptr, card); in snd_jazz16_probe()
Dsb16.c294 static int snd_sb16_card_new(struct device *devptr, int dev, in snd_sb16_card_new() argument
300 err = snd_devm_card_new(devptr, index[dev], id[dev], THIS_MODULE, in snd_sb16_card_new()
/Linux-v5.15/drivers/sh/maple/
Dmaple.c312 void *devptr) in maple_check_matching_driver() argument
317 mdev = devptr; in maple_check_matching_driver()
748 static int maple_match_bus_driver(struct device *devptr, in maple_match_bus_driver() argument
752 struct maple_device *maple_dev = to_maple_dev(devptr); in maple_match_bus_driver()
/Linux-v5.15/drivers/of/
Dunittest.c1579 struct unittest_gpio_dev *devptr; in unittest_gpio_probe() local
1584 devptr = kzalloc(sizeof(*devptr), GFP_KERNEL); in unittest_gpio_probe()
1585 if (!devptr) in unittest_gpio_probe()
1588 platform_set_drvdata(pdev, devptr); in unittest_gpio_probe()
1590 devptr->chip.of_node = pdev->dev.of_node; in unittest_gpio_probe()
1591 devptr->chip.label = "of-unittest-gpio"; in unittest_gpio_probe()
1592 devptr->chip.base = -1; /* dynamic allocation */ in unittest_gpio_probe()
1593 devptr->chip.ngpio = 5; in unittest_gpio_probe()
1594 devptr->chip.request = unittest_gpio_chip_request; in unittest_gpio_probe()
1596 ret = gpiochip_add_data(&devptr->chip, NULL); in unittest_gpio_probe()
[all …]
/Linux-v5.15/include/sound/
Dcore.h310 #define snd_card_set_dev(card, devptr) ((card)->dev = (devptr)) argument
/Linux-v5.15/sound/isa/opti9xx/
Dopti92x-ad1848.c929 static int snd_opti9xx_isa_match(struct device *devptr, argument
941 static int snd_opti9xx_isa_probe(struct device *devptr, argument
996 error = snd_opti9xx_card_new(devptr, &card);
1006 dev_set_drvdata(devptr, card);
Dmiro.c1379 static int snd_miro_isa_match(struct device *devptr, unsigned int n) in snd_miro_isa_match() argument
1390 static int snd_miro_isa_probe(struct device *devptr, unsigned int n) in snd_miro_isa_probe() argument
1404 error = snd_devm_card_new(devptr, index, id, THIS_MODULE, in snd_miro_isa_probe()
1468 dev_set_drvdata(devptr, card); in snd_miro_isa_probe()
/Linux-v5.15/drivers/cdrom/
Dgdrom.c744 static int probe_gdrom(struct platform_device *devptr) in probe_gdrom() argument
827 static int remove_gdrom(struct platform_device *devptr) in remove_gdrom() argument
/Linux-v5.15/arch/powerpc/platforms/pseries/
Dvio.c1265 struct device *devptr; in vio_bus_remove() local
1271 devptr = get_device(dev); in vio_bus_remove()
1279 put_device(devptr); in vio_bus_remove()