| /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 …]
|
| /linux/arch/arm/common/ |
| H A D | scoop.c | 180 struct scoop_dev *devptr; in scoop_probe() local 188 devptr = kzalloc(sizeof(struct scoop_dev), GFP_KERNEL); in scoop_probe() 189 if (!devptr) in scoop_probe() 192 spin_lock_init(&devptr->scoop_lock); in scoop_probe() 195 devptr->base = ioremap(mem->start, resource_size(mem)); in scoop_probe() 197 if (!devptr->base) { in scoop_probe() 202 platform_set_drvdata(pdev, devptr); in scoop_probe() 204 printk("Sharp Scoop Device found at 0x%08x -> 0x%8p\n",(unsigned int)mem->start, devptr->base); in scoop_probe() 206 iowrite16(0x0140, devptr->base + SCOOP_MCR); in scoop_probe() 208 iowrite16(0x0000, devptr->base + SCOOP_CPR); in scoop_probe() [all …]
|
| /linux/sound/isa/sb/ |
| H A D | jazz16.c | 185 static int snd_jazz16_match(struct device *devptr, unsigned int dev) in snd_jazz16_match() argument 190 dev_err(devptr, "please specify port\n"); in snd_jazz16_match() 193 dev_err(devptr, "incorrect port specified\n"); in snd_jazz16_match() 198 dev_err(devptr, "dma8 must be 1 or 3\n"); in snd_jazz16_match() 203 dev_err(devptr, "dma16 must be 5 or 7\n"); in snd_jazz16_match() 208 dev_err(devptr, "incorrect mpu_port specified\n"); in snd_jazz16_match() 214 dev_err(devptr, "mpu_irq must be 2, 3, 5 or 7\n"); in snd_jazz16_match() 220 static int snd_jazz16_probe(struct device *devptr, unsigned int dev) in snd_jazz16_probe() argument 231 err = snd_devm_card_new(devptr, index[dev], id[dev], THIS_MODULE, in snd_jazz16_probe() 242 dev_err(devptr, "unable to find a free IRQ\n"); in snd_jazz16_probe() [all …]
|
| /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()
|
| /linux/drivers/of/ |
| H A D | unittest.c | 2158 struct unittest_gpio_dev *devptr; in unittest_gpio_probe() local 2163 devptr = kzalloc(sizeof(*devptr), GFP_KERNEL); in unittest_gpio_probe() 2164 if (!devptr) in unittest_gpio_probe() 2167 platform_set_drvdata(pdev, devptr); in unittest_gpio_probe() 2169 devptr->chip.fwnode = dev_fwnode(&pdev->dev); in unittest_gpio_probe() 2170 devptr->chip.label = "of-unittest-gpio"; in unittest_gpio_probe() 2171 devptr->chip.base = -1; /* dynamic allocation */ in unittest_gpio_probe() 2172 devptr->chip.ngpio = 5; in unittest_gpio_probe() 2173 devptr->chip.request = unittest_gpio_chip_request; in unittest_gpio_probe() 2175 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 | 1253 struct device *devptr; in vio_bus_remove() local 1259 devptr = get_device(dev); in vio_bus_remove() 1267 put_device(devptr); in vio_bus_remove()
|