/linux-master/drivers/spi/ |
H A D | spi-fsl-spi.c | 635 static int of_fsl_spi_probe(struct platform_device *ofdev) argument 637 struct device *dev = &ofdev->dev; 638 struct device_node *np = ofdev->dev.of_node; 649 ret = of_mpc8xxx_spi_probe(ofdev); 653 type = fsl_spi_get_type(&ofdev->dev); 686 irq = platform_get_irq(ofdev, 0); 704 static void of_fsl_spi_remove(struct platform_device *ofdev) argument 706 struct spi_controller *host = platform_get_drvdata(ofdev);
|
H A D | spi-fsl-lib.h | 109 extern int of_mpc8xxx_spi_probe(struct platform_device *ofdev);
|
/linux-master/drivers/char/hw_random/ |
H A D | stm32-rng.c | 366 static void stm32_rng_remove(struct platform_device *ofdev) argument 368 pm_runtime_disable(&ofdev->dev); 504 static int stm32_rng_probe(struct platform_device *ofdev) argument 506 struct device *dev = &ofdev->dev; 507 struct device_node *np = ofdev->dev.of_node; 515 priv->base = devm_platform_get_and_ioremap_resource(ofdev, 0, &res); 519 priv->clk = devm_clk_get(&ofdev->dev, NULL); 523 priv->rst = devm_reset_control_get(&ofdev->dev, NULL);
|
/linux-master/drivers/net/can/ |
H A D | grcan.c | 1535 static void grcan_sanitize_module_config(struct platform_device *ofdev) argument 1537 grcan_sanitize_enable0(ofdev); 1538 grcan_sanitize_enable1(ofdev); 1539 grcan_sanitize_select(ofdev); 1540 grcan_sanitize_txsize(ofdev); 1541 grcan_sanitize_rxsize(ofdev); 1570 static int grcan_setup_netdev(struct platform_device *ofdev, argument 1593 priv->ofdev_dev = &ofdev->dev; 1610 dev_dbg(&ofdev->dev, "Hardware supports triple-sampling\n"); 1622 SET_NETDEV_DEV(dev, &ofdev 1643 grcan_probe(struct platform_device *ofdev) argument 1700 grcan_remove(struct platform_device *ofdev) argument [all...] |
/linux-master/arch/powerpc/platforms/pasemi/ |
H A D | gpio_mdio.c | 207 static int gpio_mdio_probe(struct platform_device *ofdev) argument 209 struct device *dev = &ofdev->dev; 210 struct device_node *np = ofdev->dev.of_node;
|
/linux-master/drivers/input/serio/ |
H A D | xilinx_ps2.c | 222 * @ofdev: pointer to OF device structure 229 static int xps2_of_probe(struct platform_device *ofdev) argument 234 struct device *dev = &ofdev->dev; 311 platform_set_drvdata(ofdev, drvdata);
|
/linux-master/drivers/net/ethernet/ibm/emac/ |
H A D | core.c | 133 printk(KERN_ERR "%pOF: %s\n", dev->ofdev->dev.of_node, error); 1082 dma_map_single(&dev->ofdev->dev, skb->data - NET_IP_ALIGN, 1185 dma_map_single(&dev->ofdev->dev, skb->data - NET_IP_ALIGN, 1474 dev->tx_desc[slot].data_ptr = dma_map_single(&dev->ofdev->dev, 1545 dma_map_single(&dev->ofdev->dev, skb->data, len, DMA_TO_DEVICE); 1559 pd = skb_frag_dma_map(&dev->ofdev->dev, frag, 0, len, 1680 dma_map_single(&dev->ofdev->dev, skb->data - NET_IP_ALIGN, 2291 dev->cell_index, dev->ofdev->dev.of_node); 2345 struct platform_device *ofdev; member in struct:emac_depentry 2384 if (deps[i].ofdev 3034 emac_probe(struct platform_device *ofdev) argument 3256 emac_remove(struct platform_device *ofdev) argument [all...] |
/linux-master/drivers/ata/ |
H A D | sata_fsl.c | 1422 static int sata_fsl_probe(struct platform_device *ofdev) argument 1436 dev_info(&ofdev->dev, "Sata FSL Platform/CSB Driver init\n"); 1438 hcr_base = of_iomap(ofdev->dev.of_node, 0); 1445 if (!of_device_is_compatible(ofdev->dev.of_node, "fsl,mpc8315-sata")) { 1451 dev_dbg(&ofdev->dev, "@reset i/o = 0x%x\n", 1462 irq = platform_get_irq(ofdev, 0); 1469 if (of_device_is_compatible(ofdev->dev.of_node, "fsl,pq-sata-v2")) 1475 host = ata_host_alloc_pinfo(&ofdev->dev, ppi, SATA_FSL_MAX_PORTS); 1511 device_remove_file(&ofdev->dev, &host_priv->intr_coalescing); 1529 static void sata_fsl_remove(struct platform_device *ofdev) argument [all...] |
H A D | pata_macio.c | 1126 dev_err(&mdev->ofdev.dev, 1135 priv = devm_kzalloc(&mdev->ofdev.dev, 1140 priv->node = of_node_get(mdev->ofdev.dev.of_node); 1142 priv->dev = &mdev->ofdev.dev; 1146 dev_err(&mdev->ofdev.dev, 1155 dev_err(&mdev->ofdev.dev, 1171 dev_warn(&mdev->ofdev.dev,
|
H A D | sata_dwc_460ex.c | 1125 static int sata_dwc_probe(struct platform_device *ofdev) argument 1127 struct device *dev = &ofdev->dev; 1149 base = devm_platform_get_and_ioremap_resource(ofdev, 0, &res); 1183 err = sata_dwc_dma_init_old(ofdev, hsdev); 1213 static void sata_dwc_remove(struct platform_device *ofdev) argument 1215 struct device *dev = &ofdev->dev;
|
/linux-master/drivers/dma/ |
H A D | fsl_raid.c | 623 static int fsl_re_chan_probe(struct platform_device *ofdev, argument 635 dev = &ofdev->dev; 646 dev_err(dev, "Not able to create ofdev for jr %d\n", q); 746 static int fsl_re_probe(struct platform_device *ofdev) argument 756 struct device *dev = &ofdev->dev; 762 res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); 838 fsl_re_chan_probe(ofdev, child, ridx++, off); 860 static void fsl_re_remove(struct platform_device *ofdev) argument 866 dev = &ofdev->dev;
|
/linux-master/drivers/net/ethernet/freescale/fs_enet/ |
H A D | mac-fcc.c | 86 struct platform_device *ofdev = to_platform_device(fep->dev); local 90 fep->interrupt = irq_of_parse_and_map(ofdev->dev.of_node, 0); 94 fep->fcc.fccp = of_iomap(ofdev->dev.of_node, 0); 98 fep->fcc.ep = of_iomap(ofdev->dev.of_node, 1); 102 fep->fcc.fcccp = of_iomap(ofdev->dev.of_node, 2);
|
H A D | mac-fec.c | 93 struct platform_device *ofdev = to_platform_device(fep->dev); local 95 fep->interrupt = irq_of_parse_and_map(ofdev->dev.of_node, 0); 99 fep->fec.fecp = of_iomap(ofdev->dev.of_node, 0);
|
H A D | mac-scc.c | 92 struct platform_device *ofdev = to_platform_device(fep->dev); local 94 fep->interrupt = irq_of_parse_and_map(ofdev->dev.of_node, 0); 98 fep->scc.sccp = of_iomap(ofdev->dev.of_node, 0); 102 fep->scc.ep = of_iomap(ofdev->dev.of_node, 1);
|
/linux-master/drivers/dma/ppc4xx/ |
H A D | adma.c | 3868 struct platform_device *ofdev; local 3872 ofdev = container_of(adev->dev, struct platform_device, dev); 3873 np = ofdev->dev.of_node; 4004 static int ppc440spe_adma_probe(struct platform_device *ofdev) argument 4006 struct device_node *np = ofdev->dev.of_node; 4028 dev_err(&ofdev->dev, "Device node %pOF has missing " 4051 dev_err(&ofdev->dev, "failed to get memory resource\n"); 4058 dev_driver_string(&ofdev->dev))) { 4059 dev_err(&ofdev->dev, "failed to request memory region %pR\n", 4077 adev->dma_desc_pool_virt = dma_alloc_coherent(&ofdev 4233 ppc440spe_adma_remove(struct platform_device *ofdev) argument [all...] |
/linux-master/drivers/usb/host/ |
H A D | fhci-hcd.c | 561 static int of_fhci_probe(struct platform_device *ofdev) argument 563 struct device *dev = &ofdev->dev; 777 static void of_fhci_remove(struct platform_device *ofdev) argument 779 fhci_remove(&ofdev->dev);
|
/linux-master/sound/aoa/soundbus/i2sbus/ |
H A D | control.c | 43 np = i2sdev->sound.ofdev.dev.of_node;
|
/linux-master/drivers/net/ethernet/ibm/ehea/ |
H A D | ehea.h | 381 struct platform_device *ofdev; member in struct:ehea_adapter 433 struct platform_device ofdev; /* Open Firmware Device */ member in struct:ehea_port
|
H A D | ehea_main.c | 2877 struct ehea_port *port = container_of(dev, struct ehea_port, ofdev.dev); 2885 struct ehea_port *port = container_of(dev, struct ehea_port, ofdev.dev); 2886 of_node_put(port->ofdev.dev.of_node); 2894 port->ofdev.dev.of_node = of_node_get(dn); 2895 port->ofdev.dev.parent = &port->adapter->ofdev->dev; 2896 port->ofdev.dev.bus = &ibmebus_bus_type; 2898 dev_set_name(&port->ofdev.dev, "port%d", port_name_cnt++); 2899 port->ofdev.dev.release = logical_port_release; 2901 ret = of_device_register(&port->ofdev); [all...] |
/linux-master/drivers/usb/gadget/udc/ |
H A D | fsl_qe_udc.c | 2337 static struct qe_udc *qe_udc_config(struct platform_device *ofdev) argument 2340 struct device_node *np = ofdev->dev.of_node; 2351 udc->dev = &ofdev->dev; 2472 static int qe_udc_probe(struct platform_device *ofdev) argument 2475 struct device_node *np = ofdev->dev.of_node; 2486 udc = qe_udc_config(ofdev); 2488 dev_err(&ofdev->dev, "failed to initialize\n"); 2492 udc->soc_type = (unsigned long)device_get_match_data(&ofdev->dev); 2517 udc->gadget.dev.parent = &ofdev->dev; 2535 udc->nullbuf = devm_kzalloc(&ofdev 2629 qe_udc_remove(struct platform_device *ofdev) argument [all...] |
/linux-master/drivers/tty/serial/ |
H A D | cpm_uart.c | 1523 static int cpm_uart_probe(struct platform_device *ofdev) argument 1534 platform_set_drvdata(ofdev, pinfo); 1537 pinfo->port.dev = &ofdev->dev; 1539 pinfo->port.irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); 1543 ret = cpm_uart_init_port(ofdev->dev.of_node, pinfo); 1552 static void cpm_uart_remove(struct platform_device *ofdev) argument 1554 struct uart_cpm_port *pinfo = platform_get_drvdata(ofdev);
|
/linux-master/drivers/crypto/amcc/ |
H A D | crypto4xx_core.c | 1333 static int crypto4xx_probe(struct platform_device *ofdev) argument 1337 struct device *dev = &ofdev->dev; 1343 rc = of_address_to_resource(ofdev->dev.of_node, 0, &res); 1382 core_dev->ofdev = ofdev; 1424 core_dev->dev->ce_base = of_iomap(ofdev->dev.of_node, 0); 1432 core_dev->irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); 1470 static void crypto4xx_remove(struct platform_device *ofdev) argument 1472 struct device *dev = &ofdev->dev;
|
/linux-master/drivers/block/ |
H A D | swim3.c | 209 #define swim3_err(fmt, arg...) dev_err(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) 210 #define swim3_warn(fmt, arg...) dev_warn(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) 211 #define swim3_info(fmt, arg...) dev_info(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) 214 #define swim3_dbg(fmt, arg...) dev_dbg(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) 1103 struct device_node *swim = mdev->ofdev.dev.of_node; 1128 dev_set_drvdata(&mdev->ofdev.dev, fs);
|
/linux-master/drivers/video/fbdev/mb862xx/ |
H A D | mb862xxfbdrv.c | 669 static int of_platform_mb862xx_probe(struct platform_device *ofdev) argument 671 struct device_node *np = ofdev->dev.of_node; 672 struct device *dev = &ofdev->dev; 784 static void of_platform_mb862xx_remove(struct platform_device *ofdev) argument 786 struct fb_info *fbi = dev_get_drvdata(&ofdev->dev); 804 device_remove_file(&ofdev->dev, &dev_attr_dispregs);
|
/linux-master/drivers/net/ethernet/aeroflex/ |
H A D | greth.c | 1341 static int greth_of_probe(struct platform_device *ofdev) argument 1360 greth->dev = &ofdev->dev; 1369 greth->regs = of_ioremap(&ofdev->resource[0], 0, 1370 resource_size(&ofdev->resource[0]), 1381 greth->irq = ofdev->archdata.irqs[0]; 1454 err = of_get_mac_address(ofdev->dev.of_node, addr); 1522 of_iounmap(&ofdev->resource[0], greth->regs, resource_size(&ofdev->resource[0]));
|