pldev 261 drivers/i2c/busses/i2c-pmcmsp.c static int pmcmsptwi_probe(struct platform_device *pldev) pldev 267 drivers/i2c/busses/i2c-pmcmsp.c res = platform_get_resource(pldev, IORESOURCE_MEM, 0); pldev 269 drivers/i2c/busses/i2c-pmcmsp.c dev_err(&pldev->dev, "IOMEM resource not found\n"); pldev 275 drivers/i2c/busses/i2c-pmcmsp.c pldev->name)) { pldev 276 drivers/i2c/busses/i2c-pmcmsp.c dev_err(&pldev->dev, pldev 287 drivers/i2c/busses/i2c-pmcmsp.c dev_err(&pldev->dev, pldev 294 drivers/i2c/busses/i2c-pmcmsp.c pmcmsptwi_data.irq = platform_get_irq(pldev, 0); pldev 297 drivers/i2c/busses/i2c-pmcmsp.c IRQF_SHARED, pldev->name, &pmcmsptwi_data); pldev 311 drivers/i2c/busses/i2c-pmcmsp.c dev_warn(&pldev->dev, pldev 327 drivers/i2c/busses/i2c-pmcmsp.c pmcmsptwi_adapter.dev.parent = &pldev->dev; pldev 328 drivers/i2c/busses/i2c-pmcmsp.c platform_set_drvdata(pldev, &pmcmsptwi_adapter); pldev 356 drivers/i2c/busses/i2c-pmcmsp.c static int pmcmsptwi_remove(struct platform_device *pldev) pldev 370 drivers/i2c/busses/i2c-pmcmsp.c res = platform_get_resource(pldev, IORESOURCE_MEM, 0); pldev 291 drivers/net/ethernet/broadcom/sb1250-mac.c static int sbmac_init(struct platform_device *pldev, long long base); pldev 2159 drivers/net/ethernet/broadcom/sb1250-mac.c static int sbmac_init(struct platform_device *pldev, long long base) pldev 2161 drivers/net/ethernet/broadcom/sb1250-mac.c struct net_device *dev = platform_get_drvdata(pldev); pldev 2162 drivers/net/ethernet/broadcom/sb1250-mac.c int idx = pldev->id; pldev 2223 drivers/net/ethernet/broadcom/sb1250-mac.c pldev->name, idx); pldev 2228 drivers/net/ethernet/broadcom/sb1250-mac.c sc->mii_bus->parent = &pldev->dev; pldev 2238 drivers/net/ethernet/broadcom/sb1250-mac.c platform_set_drvdata(pldev, sc->mii_bus); pldev 2529 drivers/net/ethernet/broadcom/sb1250-mac.c static int sbmac_probe(struct platform_device *pldev) pldev 2538 drivers/net/ethernet/broadcom/sb1250-mac.c res = platform_get_resource(pldev, IORESOURCE_MEM, 0); pldev 2543 drivers/net/ethernet/broadcom/sb1250-mac.c dev_name(&pldev->dev)); pldev 2554 drivers/net/ethernet/broadcom/sb1250-mac.c pr_debug("%s: %sconfiguring MAC at 0x%08Lx\n", dev_name(&pldev->dev), pldev 2570 drivers/net/ethernet/broadcom/sb1250-mac.c platform_set_drvdata(pldev, dev); pldev 2571 drivers/net/ethernet/broadcom/sb1250-mac.c SET_NETDEV_DEV(dev, &pldev->dev); pldev 2576 drivers/net/ethernet/broadcom/sb1250-mac.c err = sbmac_init(pldev, res->start); pldev 2593 drivers/net/ethernet/broadcom/sb1250-mac.c static int sbmac_remove(struct platform_device *pldev) pldev 2595 drivers/net/ethernet/broadcom/sb1250-mac.c struct net_device *dev = platform_get_drvdata(pldev); pldev 573 drivers/staging/kpc2000/kpc2000_i2c.c static int pi2c_probe(struct platform_device *pldev) pldev 579 drivers/staging/kpc2000/kpc2000_i2c.c priv = devm_kzalloc(&pldev->dev, sizeof(*priv), GFP_KERNEL); pldev 588 drivers/staging/kpc2000/kpc2000_i2c.c res = platform_get_resource(pldev, IORESOURCE_MEM, 0); pldev 592 drivers/staging/kpc2000/kpc2000_i2c.c priv->smba = (unsigned long)devm_ioremap_nocache(&pldev->dev, pldev 598 drivers/staging/kpc2000/kpc2000_i2c.c platform_set_drvdata(pldev, priv); pldev 608 drivers/staging/kpc2000/kpc2000_i2c.c priv->adapter.dev.parent = &pldev->dev; pldev 625 drivers/staging/kpc2000/kpc2000_i2c.c static int pi2c_remove(struct platform_device *pldev) pldev 629 drivers/staging/kpc2000/kpc2000_i2c.c lddev = (struct i2c_device *)platform_get_drvdata(pldev); pldev 422 drivers/staging/kpc2000/kpc2000_spi.c kp_spi_probe(struct platform_device *pldev) pldev 431 drivers/staging/kpc2000/kpc2000_spi.c drvdata = pldev->dev.platform_data; pldev 433 drivers/staging/kpc2000/kpc2000_spi.c dev_err(&pldev->dev, "%s: platform_data is NULL\n", __func__); pldev 437 drivers/staging/kpc2000/kpc2000_spi.c master = spi_alloc_master(&pldev->dev, sizeof(struct kp_spi)); pldev 439 drivers/staging/kpc2000/kpc2000_spi.c dev_err(&pldev->dev, "%s: master allocation failed\n", pldev 451 drivers/staging/kpc2000/kpc2000_spi.c platform_set_drvdata(pldev, master); pldev 455 drivers/staging/kpc2000/kpc2000_spi.c kpspi->dev = &pldev->dev; pldev 458 drivers/staging/kpc2000/kpc2000_spi.c if (pldev->id != -1) pldev 459 drivers/staging/kpc2000/kpc2000_spi.c master->bus_num = pldev->id; pldev 461 drivers/staging/kpc2000/kpc2000_spi.c r = platform_get_resource(pldev, IORESOURCE_MEM, 0); pldev 463 drivers/staging/kpc2000/kpc2000_spi.c dev_err(&pldev->dev, "%s: Unable to get platform resources\n", pldev 469 drivers/staging/kpc2000/kpc2000_spi.c kpspi->base = devm_ioremap_nocache(&pldev->dev, r->start, pldev 474 drivers/staging/kpc2000/kpc2000_spi.c dev_err(&pldev->dev, "Unable to register SPI device\n"); pldev 489 drivers/staging/kpc2000/kpc2000_spi.c dev_err(&pldev->dev, "Unknown hardware, cant know what partition table to use!\n"); pldev 501 drivers/staging/kpc2000/kpc2000_spi.c kp_spi_remove(struct platform_device *pldev) pldev 503 drivers/staging/kpc2000/kpc2000_spi.c struct spi_master *master = platform_get_drvdata(pldev); pldev 42 drivers/staging/kpc2000/kpc_dma/dma.c dev_dbg(&eng->pldev->dev, "Handling completed descriptor %p (acd = %p)\n", cur, cur->acd); pldev 107 drivers/staging/kpc2000/kpc_dma/dma.c eng->desc_pool = dma_pool_create("KPC DMA Descriptors", &eng->pldev->dev, sizeof(struct kpc_dma_descriptor), DMA_DESC_ALIGNMENT, 4096); pldev 111 drivers/staging/kpc2000/kpc_dma/dma.c dev_err(&eng->pldev->dev, "%s: couldn't allocate desc_pool_first!\n", __func__); pldev 147 drivers/staging/kpc2000/kpc_dma/dma.c dev_err(&eng->pldev->dev, "%s: failed to request_irq: %d\n", __func__, rv); pldev 169 drivers/staging/kpc2000/kpc_dma/dma.c dev_crit(&eng->pldev->dev, "DMA_RUNNING still asserted!\n"); pldev 181 drivers/staging/kpc2000/kpc_dma/dma.c dev_crit(&eng->pldev->dev, "ENG_CTL_DMA_RESET_REQUEST still asserted!\n"); pldev 193 drivers/staging/kpc2000/kpc_dma/dma.c dev_crit(&eng->pldev->dev, "DMA_RESET still asserted!\n"); pldev 58 drivers/staging/kpc2000/kpc_dma/fileops.c dev_err(&priv->ldev->pldev->dev, "Couldn't kmalloc space for for the aio data\n"); pldev 73 drivers/staging/kpc2000/kpc_dma/fileops.c dev_err(&priv->ldev->pldev->dev, "Couldn't kmalloc space for for the page pointers\n"); pldev 83 drivers/staging/kpc2000/kpc_dma/fileops.c dev_err(&priv->ldev->pldev->dev, "Couldn't get_user_pages (%ld)\n", rv); pldev 90 drivers/staging/kpc2000/kpc_dma/fileops.c dev_err(&priv->ldev->pldev->dev, "Couldn't alloc sg_table (%ld)\n", rv); pldev 95 drivers/staging/kpc2000/kpc_dma/fileops.c acd->mapped_entry_count = dma_map_sg(&ldev->pldev->dev, acd->sgt.sgl, acd->sgt.nents, ldev->dir); pldev 97 drivers/staging/kpc2000/kpc_dma/fileops.c dev_err(&priv->ldev->pldev->dev, "Couldn't dma_map_sg (%d)\n", acd->mapped_entry_count); pldev 110 drivers/staging/kpc2000/kpc_dma/fileops.c dev_dbg(&priv->ldev->pldev->dev, " mapped_entry_count = %d num_descrs_needed = %d num_descrs_avail = %d\n", acd->mapped_entry_count, desc_needed, num_descrs_avail); pldev 112 drivers/staging/kpc2000/kpc_dma/fileops.c dev_warn(&priv->ldev->pldev->dev, " mapped_entry_count = %d num_descrs_needed = %d num_descrs_avail = %d TOO MANY to ever complete!\n", acd->mapped_entry_count, desc_needed, num_descrs_avail); pldev 117 drivers/staging/kpc2000/kpc_dma/fileops.c dev_warn(&priv->ldev->pldev->dev, " mapped_entry_count = %d num_descrs_needed = %d num_descrs_avail = %d Too many to complete right now.\n", acd->mapped_entry_count, desc_needed, num_descrs_avail); pldev 162 drivers/staging/kpc2000/kpc_dma/fileops.c dev_dbg(&priv->ldev->pldev->dev, " Filled descriptor %p (acd = %p)\n", desc, desc->acd); pldev 189 drivers/staging/kpc2000/kpc_dma/fileops.c dma_unmap_sg(&ldev->pldev->dev, acd->sgt.sgl, acd->sgt.nents, ldev->dir); pldev 200 drivers/staging/kpc2000/kpc_dma/fileops.c dev_dbg(&priv->ldev->pldev->dev, "%s returning with error %ld\n", __func__, rv); pldev 212 drivers/staging/kpc2000/kpc_dma/fileops.c BUG_ON(acd->ldev->pldev == NULL); pldev 220 drivers/staging/kpc2000/kpc_dma/fileops.c dma_unmap_sg(&acd->ldev->pldev->dev, acd->sgt.sgl, acd->sgt.nents, acd->ldev->dir); pldev 281 drivers/staging/kpc2000/kpc_dma/fileops.c dev_dbg(&eng->pldev->dev, "Aborting descriptor %p (acd = %p)\n", cur, cur->acd); pldev 29 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c if (c->pldev->id == minor) { pldev 57 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c struct platform_device *pldev = to_platform_device(dev); pldev 59 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c if (!pldev) pldev 61 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c ldev = platform_get_drvdata(pldev); pldev 95 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c int kpc_dma_probe(struct platform_device *pldev) pldev 104 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c dev_err(&pldev->dev, "%s: unable to kzalloc space for kpc_dma_device\n", __func__); pldev 111 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c ldev->pldev = pldev; pldev 112 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c platform_set_drvdata(pldev, ldev); pldev 119 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c r = platform_get_resource(pldev, IORESOURCE_MEM, 0); pldev 121 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c dev_err(&ldev->pldev->dev, "%s: didn't get the engine regs resource!\n", __func__); pldev 127 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c dev_err(&ldev->pldev->dev, "%s: failed to ioremap engine regs!\n", __func__); pldev 132 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c r = platform_get_resource(pldev, IORESOURCE_IRQ, 0); pldev 134 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c dev_err(&ldev->pldev->dev, "%s: didn't get the IRQ resource!\n", __func__); pldev 141 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c dev = MKDEV(assigned_major_num, pldev->id); pldev 142 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c ldev->kpc_dma_dev = device_create(kpc_dma_class, &pldev->dev, dev, ldev, "kpc_dma%d", pldev->id); pldev 144 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c dev_err(&ldev->pldev->dev, "%s: device_create failed: %d\n", __func__, rv); pldev 151 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c dev_err(&ldev->pldev->dev, "%s: failed to setup_dma_engine: %d\n", __func__, rv); pldev 156 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c rv = sysfs_create_files(&(ldev->pldev->dev.kobj), ndd_attr_list); pldev 158 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c dev_err(&ldev->pldev->dev, "%s: Failed to add sysfs files: %d\n", __func__, rv); pldev 177 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c int kpc_dma_remove(struct platform_device *pldev) pldev 179 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c struct kpc_dma_device *ldev = platform_get_drvdata(pldev); pldev 185 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c sysfs_remove_files(&(ldev->pldev->dev.kobj), ndd_attr_list); pldev 188 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c device_destroy(kpc_dma_class, MKDEV(assigned_major_num, ldev->pldev->id)); pldev 23 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.h struct platform_device *pldev;