/linux/sound/isa/ |
H A D | sc6000.c | 207 static int sc6000_write(struct device *devptr, char __iomem *vport, int cmd) in sc6000_write() argument 224 dev_err(devptr, "DSP Command (0x%x) timeout.\n", cmd); in sc6000_write() 229 static int sc6000_dsp_get_answer(struct device *devptr, in sc6000_dsp_get_answer() argument 235 if (sc6000_write(devptr, vport, command)) { in sc6000_dsp_get_answer() 236 dev_err(devptr, "CMD 0x%x: failed!\n", command); in sc6000_dsp_get_answer() 269 static int sc6000_hw_cfg_write(struct device *devptr, in sc6000_hw_cfg_write() argument 272 if (sc6000_write(devptr, vport, COMMAND_6C) < 0) { in sc6000_hw_cfg_write() 273 dev_warn(devptr, "CMD 0x%x: failed!\n", COMMAND_6C); in sc6000_hw_cfg_write() 276 if (sc6000_write(devptr, vport, COMMAND_5C) < 0) { in sc6000_hw_cfg_write() 277 dev_err(devptr, "CMD 0x%x: failed!\n", COMMAND_5C); in sc6000_hw_cfg_write() [all …]
|
H A D | es18xx.c | 2118 static int snd_es18xx_isa_probe1(int dev, struct device *devptr) in snd_es18xx_isa_probe1() argument 2123 err = snd_es18xx_card_new(devptr, dev, &card); in snd_es18xx_isa_probe1() 2129 dev_set_drvdata(devptr, card); in snd_es18xx_isa_probe1()
|
/linux/arch/arm/common/ |
H A D | scoop.c | 177 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/sound/isa/sb/ |
H A D | jazz16.c | 184 static int snd_jazz16_match(struct device *devptr, unsigned int dev) in snd_jazz16_match() argument 189 dev_err(devptr, "please specify port\n"); in snd_jazz16_match() 192 dev_err(devptr, "incorrect port specified\n"); in snd_jazz16_match() 197 dev_err(devptr, "dma8 must be 1 or 3\n"); in snd_jazz16_match() 202 dev_err(devptr, "dma16 must be 5 or 7\n"); in snd_jazz16_match() 207 dev_err(devptr, "incorrect mpu_port specified\n"); in snd_jazz16_match() 213 dev_err(devptr, "mpu_irq must be 2, 3, 5 or 7\n"); in snd_jazz16_match() 219 static int snd_jazz16_probe(struct device *devptr, unsigned int dev) in snd_jazz16_probe() argument 230 err = snd_devm_card_new(devptr, index[dev], id[dev], THIS_MODULE, in snd_jazz16_probe() 241 dev_err(devptr, "unable to find a free IRQ\n"); in snd_jazz16_probe() [all …]
|
H A D | sb16.c | 288 static int snd_sb16_card_new(struct device *devptr, int dev, in snd_sb16_card_new() argument 294 err = snd_devm_card_new(devptr, index[dev], id[dev], THIS_MODULE, in snd_sb16_card_new()
|
/linux/sound/drivers/mpu401/ |
H A D | mpu401.c | 52 static int snd_mpu401_create(struct device *devptr, int dev, in snd_mpu401_create() argument 59 dev_err(devptr, "the uart_enter option is obsolete; remove it\n"); in snd_mpu401_create() 62 err = snd_devm_card_new(devptr, index[dev], id[dev], THIS_MODULE, in snd_mpu401_create() 78 dev_err(devptr, "MPU401 not detected at 0x%lx\n", port[dev]); 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() 93 dev_err(&devptr->dev, "specify port\n"); in snd_mpu401_probe() 97 dev_err(&devptr->dev, "specify or disable IRQ\n"); 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/sound/sh/ |
H A D | sh_dac_audio.c | 240 static void snd_sh_dac_remove(struct platform_device *devptr) in snd_sh_dac_remove() argument 242 snd_card_free(platform_get_drvdata(devptr)); in snd_sh_dac_remove() 297 struct platform_device *devptr, in snd_sh_dac_create() argument 321 chip->pdata = devptr->dev.platform_data; in snd_sh_dac_create() 341 static int snd_sh_dac_probe(struct platform_device *devptr) in snd_sh_dac_probe() argument 347 err = snd_card_new(&devptr->dev, index, id, THIS_MODULE, 0, &card); in snd_sh_dac_probe() 349 dev_err(&devptr->dev, "cannot allocate the card\n"); in snd_sh_dac_probe() 353 err = snd_sh_dac_create(card, devptr, &chip); in snd_sh_dac_probe() 363 dev_info(&devptr->dev, "%s %s\n", card->longname, card->shortname); in snd_sh_dac_probe() 369 dev_info(&devptr->dev, "ALSA driver for SuperH DAC audio\n"); in snd_sh_dac_probe() [all …]
|
H A D | aica.c | 550 static void snd_aica_remove(struct platform_device *devptr) in snd_aica_remove() argument 553 dreamcastcard = platform_get_drvdata(devptr); in snd_aica_remove() 558 static int snd_aica_probe(struct platform_device *devptr) in snd_aica_probe() argument 565 err = snd_card_new(&devptr->dev, index, SND_AICA_DRIVER, in snd_aica_probe() 590 platform_set_drvdata(devptr, dreamcastcard); in snd_aica_probe() 591 dev_info(&devptr->dev, in snd_aica_probe()
|
/linux/sound/ppc/ |
H A D | powermac.c | 40 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() 107 dev_err(&devptr->dev, "unsupported hardware %d\n", chip->model); in snd_pmac_probe() 124 platform_set_drvdata(devptr, card); in snd_pmac_probe() 133 static void 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/sound/drivers/ |
H A D | virmidi.c | 71 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() 86 dev_warn(&devptr->dev, in snd_virmidi_probe() 109 platform_set_drvdata(devptr, card); in snd_virmidi_probe()
|
H A D | serial-u16550.c | 860 static int snd_serial_probe(struct platform_device *devptr) in snd_serial_probe() argument 865 int dev = devptr->id; in snd_serial_probe() 883 dev_err(&devptr->dev, in snd_serial_probe() 890 dev_err(&devptr->dev, in snd_serial_probe() 897 dev_err(&devptr->dev, in snd_serial_probe() 903 err = snd_devm_card_new(&devptr->dev, index[dev], id[dev], THIS_MODULE, in snd_serial_probe() 931 platform_set_drvdata(devptr, card); in snd_serial_probe()
|
H A D | dummy.c | 1019 static int snd_dummy_probe(struct platform_device *devptr) in snd_dummy_probe() argument 1025 int dev = devptr->id; in snd_dummy_probe() 1027 err = snd_devm_card_new(&devptr->dev, index[dev], id[dev], THIS_MODULE, in snd_dummy_probe() 1095 platform_set_drvdata(devptr, card); in snd_dummy_probe()
|
H A D | aloop.c | 1792 static int loopback_probe(struct platform_device *devptr) in loopback_probe() argument 1796 int dev = devptr->id; in loopback_probe() 1799 err = snd_devm_card_new(&devptr->dev, index[dev], id[dev], THIS_MODULE, in loopback_probe() 1833 platform_set_drvdata(devptr, card); in loopback_probe()
|
/linux/sound/isa/opti9xx/ |
H A D | opti92x-ad1848.c | 930 static int snd_opti9xx_isa_match(struct device *devptr, argument 942 static int snd_opti9xx_isa_probe(struct device *devptr, argument 962 dev_err(devptr, "unable to find a free MPU401 port\n"); 969 dev_err(devptr, "unable to find a free IRQ\n"); 976 dev_err(devptr, "unable to find a free MPU401 IRQ\n"); 983 dev_err(devptr, "unable to find a free DMA1\n"); 991 dev_err(devptr, "unable to find a free DMA2\n"); 997 error = snd_opti9xx_card_new(devptr, &card); 1007 dev_set_drvdata(devptr, card);
|
H A D | miro.c | 1387 static int snd_miro_isa_match(struct device *devptr, unsigned int n) in snd_miro_isa_match() argument 1398 static int snd_miro_isa_probe(struct device *devptr, unsigned int n) in snd_miro_isa_probe() argument 1412 error = snd_devm_card_new(devptr, index, id, THIS_MODULE, in snd_miro_isa_probe() 1476 dev_set_drvdata(devptr, card); in snd_miro_isa_probe()
|
/linux/drivers/of/ |
H A D | unittest.c | 2088 struct unittest_gpio_dev *devptr; in unittest_gpio_probe() local 2093 devptr = kzalloc(sizeof(*devptr), GFP_KERNEL); in unittest_gpio_probe() 2094 if (!devptr) in unittest_gpio_probe() 2097 platform_set_drvdata(pdev, devptr); in unittest_gpio_probe() 2099 devptr->chip.fwnode = dev_fwnode(&pdev->dev); in unittest_gpio_probe() 2100 devptr->chip.label = "of-unittest-gpio"; in unittest_gpio_probe() 2101 devptr->chip.base = -1; /* dynamic allocation */ in unittest_gpio_probe() 2102 devptr->chip.ngpio = 5; in unittest_gpio_probe() 2103 devptr->chip.request = unittest_gpio_chip_request; in unittest_gpio_probe() 2105 ret = gpiochip_add_data(&devptr->chip, NULL); in unittest_gpio_probe() [all …]
|
/linux/drivers/sh/maple/ |
H A D | maple.c | 313 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/include/sound/ |
H A D | core.h | 317 #define snd_card_set_dev(card, devptr) ((card)->dev = (devptr)) argument
|
/linux/drivers/cdrom/ |
H A D | gdrom.c | 739 static int probe_gdrom(struct platform_device *devptr) in probe_gdrom() argument 835 static void remove_gdrom(struct platform_device *devptr) in remove_gdrom() argument
|
/linux/arch/powerpc/platforms/pseries/ |
H A D | vio.c | 1250 struct device *devptr; in vio_bus_remove() local 1256 devptr = get_device(dev); in vio_bus_remove() 1264 put_device(devptr); in vio_bus_remove()
|