/linux-4.4.14/drivers/net/can/mscan/ |
D | mpc5xxx_can.c | 40 u32 (*get_clock)(struct platform_device *ofdev, const char *clock_name, 42 void (*put_clock)(struct platform_device *ofdev); 51 static u32 mpc52xx_can_get_clock(struct platform_device *ofdev, in mpc52xx_can_get_clock() argument 75 freq = mpc5xxx_get_bus_frequency(ofdev->dev.of_node); in mpc52xx_can_get_clock() 85 dev_err(&ofdev->dev, "can't get clock node!\n"); in mpc52xx_can_get_clock() 103 static u32 mpc52xx_can_get_clock(struct platform_device *ofdev, in mpc52xx_can_get_clock() argument 111 static u32 mpc512x_can_get_clock(struct platform_device *ofdev, in mpc512x_can_get_clock() argument 130 np = ofdev->dev.of_node; in mpc512x_can_get_clock() 133 dev_dbg(&ofdev->dev, "device tree specs: clk src[%s] div[%d]\n", in mpc512x_can_get_clock() 160 dev_dbg(&ofdev->dev, "got a clk source spec[%d]\n", clk_from); in mpc512x_can_get_clock() [all …]
|
/linux-4.4.14/drivers/net/ethernet/ibm/emac/ |
D | tah.c | 27 int tah_attach(struct platform_device *ofdev, int channel) in tah_attach() argument 29 struct tah_instance *dev = platform_get_drvdata(ofdev); in tah_attach() 39 void tah_detach(struct platform_device *ofdev, int channel) in tah_detach() argument 41 struct tah_instance *dev = platform_get_drvdata(ofdev); in tah_detach() 48 void tah_reset(struct platform_device *ofdev) in tah_reset() argument 50 struct tah_instance *dev = platform_get_drvdata(ofdev); in tah_reset() 62 ofdev->dev.of_node->full_name); in tah_reset() 70 int tah_get_regs_len(struct platform_device *ofdev) in tah_get_regs_len() argument 76 void *tah_dump_regs(struct platform_device *ofdev, void *buf) in tah_dump_regs() argument 78 struct tah_instance *dev = platform_get_drvdata(ofdev); in tah_dump_regs() [all …]
|
D | rgmii.c | 98 int rgmii_attach(struct platform_device *ofdev, int input, int mode) in rgmii_attach() argument 100 struct rgmii_instance *dev = platform_get_drvdata(ofdev); in rgmii_attach() 108 ofdev->dev.of_node->full_name); in rgmii_attach() 118 ofdev->dev.of_node->full_name, input, rgmii_mode_name(mode)); in rgmii_attach() 127 void rgmii_set_speed(struct platform_device *ofdev, int input, int speed) in rgmii_set_speed() argument 129 struct rgmii_instance *dev = platform_get_drvdata(ofdev); in rgmii_set_speed() 151 void rgmii_get_mdio(struct platform_device *ofdev, int input) in rgmii_get_mdio() argument 153 struct rgmii_instance *dev = platform_get_drvdata(ofdev); in rgmii_get_mdio() 172 void rgmii_put_mdio(struct platform_device *ofdev, int input) in rgmii_put_mdio() argument 174 struct rgmii_instance *dev = platform_get_drvdata(ofdev); in rgmii_put_mdio() [all …]
|
D | zmii.c | 86 int zmii_attach(struct platform_device *ofdev, int input, int *mode) in zmii_attach() argument 88 struct zmii_instance *dev = platform_get_drvdata(ofdev); in zmii_attach() 125 ofdev->dev.of_node->full_name, in zmii_attach() 132 ofdev->dev.of_node->full_name, *mode, input); in zmii_attach() 152 void zmii_get_mdio(struct platform_device *ofdev, int input) in zmii_get_mdio() argument 154 struct zmii_instance *dev = platform_get_drvdata(ofdev); in zmii_get_mdio() 165 void zmii_put_mdio(struct platform_device *ofdev, int input) in zmii_put_mdio() argument 167 struct zmii_instance *dev = platform_get_drvdata(ofdev); in zmii_put_mdio() 174 void zmii_set_speed(struct platform_device *ofdev, int input, int speed) in zmii_set_speed() argument 176 struct zmii_instance *dev = platform_get_drvdata(ofdev); in zmii_set_speed() [all …]
|
D | rgmii.h | 54 struct platform_device *ofdev; member 61 int rgmii_attach(struct platform_device *ofdev, int input, int mode); 62 void rgmii_detach(struct platform_device *ofdev, int input); 63 void rgmii_get_mdio(struct platform_device *ofdev, int input); 64 void rgmii_put_mdio(struct platform_device *ofdev, int input); 65 void rgmii_set_speed(struct platform_device *ofdev, int input, int speed); 66 int rgmii_get_regs_len(struct platform_device *ofdev); 67 void *rgmii_dump_regs(struct platform_device *ofdev, void *buf);
|
D | zmii.h | 51 struct platform_device *ofdev; member 58 int zmii_attach(struct platform_device *ofdev, int input, int *mode); 59 void zmii_detach(struct platform_device *ofdev, int input); 60 void zmii_get_mdio(struct platform_device *ofdev, int input); 61 void zmii_put_mdio(struct platform_device *ofdev, int input); 62 void zmii_set_speed(struct platform_device *ofdev, int input, int speed); 64 void *zmii_dump_regs(struct platform_device *ofdev, void *buf);
|
D | tah.h | 51 struct platform_device *ofdev; member 77 int tah_attach(struct platform_device *ofdev, int channel); 78 void tah_detach(struct platform_device *ofdev, int channel); 79 void tah_reset(struct platform_device *ofdev); 80 int tah_get_regs_len(struct platform_device *ofdev); 81 void *tah_dump_regs(struct platform_device *ofdev, void *buf);
|
D | mal.c | 520 static int mal_probe(struct platform_device *ofdev) in mal_probe() argument 536 mal->ofdev = ofdev; in mal_probe() 537 mal->version = of_device_is_compatible(ofdev->dev.of_node, "ibm,mcmal2") ? 2 : 1; in mal_probe() 541 prop = of_get_property(ofdev->dev.of_node, "num-tx-chans", NULL); in mal_probe() 551 prop = of_get_property(ofdev->dev.of_node, "num-rx-chans", NULL); in mal_probe() 561 dcr_base = dcr_resource_start(ofdev->dev.of_node, 0); in mal_probe() 568 mal->dcr_host = dcr_map(ofdev->dev.of_node, dcr_base, 0x100); in mal_probe() 576 if (of_device_is_compatible(ofdev->dev.of_node, "ibm,mcmal-405ez")) { in mal_probe() 583 ofdev->dev.of_node->full_name); in mal_probe() 589 mal->txeob_irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); in mal_probe() [all …]
|
D | debug.c | 36 p->ofdev->dev.of_node->full_name, in emac_desc_dump() 52 p->ofdev->dev.of_node->full_name, in emac_desc_dump() 80 dev->ofdev->dev.of_node->full_name, in emac_mac_dump() 132 mal->ofdev->dev.of_node->full_name, in emac_mal_dump()
|
D | core.c | 135 printk(KERN_ERR "%s: %s\n", dev->ofdev->dev.of_node->full_name, in emac_report_timeout_error() 1031 dma_map_single(&dev->ofdev->dev, skb->data - 2, rx_sync_size, in emac_resize_rx_ring() 1138 dma_map_single(&dev->ofdev->dev, skb->data - 2, dev->rx_sync_size, in emac_alloc_rx_skb() 1406 dev->tx_desc[slot].data_ptr = dma_map_single(&dev->ofdev->dev, in emac_start_xmit() 1476 dma_map_single(&dev->ofdev->dev, skb->data, len, DMA_TO_DEVICE); in emac_start_xmit_sg() 1490 pd = skb_frag_dma_map(&dev->ofdev->dev, frag, 0, len, in emac_start_xmit_sg() 1611 dma_map_single(&dev->ofdev->dev, skb->data - 2, in emac_recycle_rx_skb() 2206 dev->cell_index, dev->ofdev->dev.of_node->full_name); in emac_ethtool_get_drvinfo() 2260 struct platform_device *ofdev; member 2299 if (deps[i].ofdev == NULL) in emac_check_deps() [all …]
|
D | debug.h | 57 printk(KERN_DEBUG #name "%s: " fmt, d->ofdev->dev.of_node->full_name, ## arg)
|
D | mal.h | 209 struct platform_device *ofdev; member
|
D | core.h | 172 struct platform_device *ofdev; member
|
/linux-4.4.14/drivers/mtd/nand/ |
D | denali_dt.c | 42 static int denali_dt_probe(struct platform_device *ofdev) in denali_dt_probe() argument 50 of_id = of_match_device(denali_nand_dt_ids, &ofdev->dev); in denali_dt_probe() 52 ofdev->id_entry = of_id->data; in denali_dt_probe() 58 dt = devm_kzalloc(&ofdev->dev, sizeof(*dt), GFP_KERNEL); in denali_dt_probe() 64 denali->dev = &ofdev->dev; in denali_dt_probe() 65 denali->irq = platform_get_irq(ofdev, 0); in denali_dt_probe() 67 dev_err(&ofdev->dev, "no irq defined\n"); in denali_dt_probe() 71 denali_reg = platform_get_resource_byname(ofdev, IORESOURCE_MEM, "denali_reg"); in denali_dt_probe() 72 denali->flash_reg = devm_ioremap_resource(&ofdev->dev, denali_reg); in denali_dt_probe() 76 nand_data = platform_get_resource_byname(ofdev, IORESOURCE_MEM, "nand_data"); in denali_dt_probe() [all …]
|
D | fsl_upm.c | 205 static int fun_probe(struct platform_device *ofdev) in fun_probe() argument 219 ret = of_address_to_resource(ofdev->dev.of_node, 0, &io_res); in fun_probe() 221 dev_err(&ofdev->dev, "can't get IO base\n"); in fun_probe() 227 dev_err(&ofdev->dev, "can't find UPM\n"); in fun_probe() 231 prop = of_get_property(ofdev->dev.of_node, "fsl,upm-addr-offset", in fun_probe() 234 dev_err(&ofdev->dev, "can't get UPM address offset\n"); in fun_probe() 240 prop = of_get_property(ofdev->dev.of_node, "fsl,upm-cmd-offset", &size); in fun_probe() 242 dev_err(&ofdev->dev, "can't get UPM command offset\n"); in fun_probe() 248 prop = of_get_property(ofdev->dev.of_node, in fun_probe() 253 dev_err(&ofdev->dev, "too much multiple chips\n"); in fun_probe() [all …]
|
D | ndfc.c | 38 struct platform_device *ofdev; member 172 ndfc->mtd.dev.parent = &ndfc->ofdev->dev; in ndfc_chip_init() 180 dev_name(&ndfc->ofdev->dev), flash_np->name); in ndfc_chip_init() 199 static int ndfc_probe(struct platform_device *ofdev) in ndfc_probe() argument 208 reg = of_get_property(ofdev->dev.of_node, "reg", &len); in ndfc_probe() 210 dev_err(&ofdev->dev, "unable read reg property (%d)\n", len); in ndfc_probe() 216 dev_err(&ofdev->dev, "invalid CS number (%d)\n", cs); in ndfc_probe() 225 ndfc->ofdev = ofdev; in ndfc_probe() 226 dev_set_drvdata(&ofdev->dev, ndfc); in ndfc_probe() 228 ndfc->ndfcbase = of_iomap(ofdev->dev.of_node, 0); in ndfc_probe() [all …]
|
D | socrates_nand.c | 144 static int socrates_nand_probe(struct platform_device *ofdev) in socrates_nand_probe() argument 153 host = devm_kzalloc(&ofdev->dev, sizeof(*host), GFP_KERNEL); in socrates_nand_probe() 157 host->io_base = of_iomap(ofdev->dev.of_node, 0); in socrates_nand_probe() 159 dev_err(&ofdev->dev, "ioremap failed\n"); in socrates_nand_probe() 165 host->dev = &ofdev->dev; in socrates_nand_probe() 170 mtd->dev.parent = &ofdev->dev; in socrates_nand_probe() 171 ppdata.of_node = ofdev->dev.of_node; in socrates_nand_probe() 189 dev_set_drvdata(&ofdev->dev, host); in socrates_nand_probe() 217 static int socrates_nand_remove(struct platform_device *ofdev) in socrates_nand_remove() argument 219 struct socrates_nand_host *host = dev_get_drvdata(&ofdev->dev); in socrates_nand_remove()
|
D | pasemi_nand.c | 93 static int pasemi_nand_probe(struct platform_device *ofdev) in pasemi_nand_probe() argument 96 struct device_node *np = ofdev->dev.of_node; in pasemi_nand_probe() 127 pasemi_nand_mtd->dev.parent = &ofdev->dev; in pasemi_nand_probe() 188 static int pasemi_nand_remove(struct platform_device *ofdev) in pasemi_nand_remove() argument
|
/linux-4.4.14/drivers/macintosh/ |
D | macio_asic.c | 58 tmp = get_device(&dev->ofdev.dev); in macio_dev_get() 68 put_device(&dev->ofdev.dev); in macio_dev_put() 243 dev->interrupt[index].name = dev_name(&dev->ofdev.dev); in macio_create_fixup_irq() 251 struct device_node *np = dev->ofdev.dev.of_node; in macio_add_missing_resources() 292 struct device_node *np = dev->ofdev.dev.of_node; in macio_setup_interrupts() 307 res->name = dev_name(&dev->ofdev.dev); in macio_setup_interrupts() 320 struct device_node *np = dev->ofdev.dev.of_node; in macio_setup_resources() 330 res->name = dev_name(&dev->ofdev.dev); in macio_setup_resources() 343 index, dev_name(&dev->ofdev.dev)); in macio_setup_resources() 376 dev->ofdev.dev.of_node = np; in macio_add_one_device() [all …]
|
D | macio_sysfs.c | 12 return sprintf (buf, format_string, mdev->ofdev.dev.of_node->field); \ 23 of = &to_macio_device (dev)->ofdev; in compatible_show() 55 struct platform_device *ofdev; in devspec_show() local 57 ofdev = to_platform_device(dev); in devspec_show() 58 return sprintf(buf, "%s\n", ofdev->dev.of_node->full_name); in devspec_show()
|
D | rack-meter.c | 378 while ((i2s = of_get_next_child(mdev->ofdev.dev.of_node, i2s)) != NULL) in rackmeter_probe() 408 dev_set_drvdata(&mdev->ofdev.dev, rm); in rackmeter_probe() 415 mdev->ofdev.node->full_name); in rackmeter_probe() 422 mdev->ofdev.node->full_name); in rackmeter_probe() 434 mdev->ofdev.dev.of_node->full_name); in rackmeter_probe() 522 dev_set_drvdata(&mdev->ofdev.dev, NULL); in rackmeter_probe() 528 struct rackmeter *rm = dev_get_drvdata(&mdev->ofdev.dev); in rackmeter_remove() 534 dev_set_drvdata(&mdev->ofdev.dev, NULL); in rackmeter_remove() 567 struct rackmeter *rm = dev_get_drvdata(&mdev->ofdev.dev); in rackmeter_shutdown()
|
D | mediabay.c | 509 device_for_each_child(&bay->mdev->ofdev.dev, in media_bay_step() 523 device_for_each_child(&bay->mdev->ofdev.dev, in media_bay_step() 529 device_for_each_child(&bay->mdev->ofdev.dev, in media_bay_step() 568 ofnode = mdev->ofdev.dev.of_node; in media_bay_attach() 623 if (state.event != mdev->ofdev.dev.power.power_state.event in media_bay_suspend() 630 mdev->ofdev.dev.power.power_state = state; in media_bay_suspend() 639 if (mdev->ofdev.dev.power.power_state.event != PM_EVENT_ON) { in media_bay_resume() 640 mdev->ofdev.dev.power.power_state = PMSG_ON; in media_bay_resume()
|
/linux-4.4.14/drivers/ata/ |
D | pata_of_platform.c | 25 static int pata_of_platform_probe(struct platform_device *ofdev) in pata_of_platform_probe() argument 28 struct device_node *dn = ofdev->dev.of_node; in pata_of_platform_probe() 39 dev_err(&ofdev->dev, "can't get IO address from " in pata_of_platform_probe() 46 dev_err(&ofdev->dev, "can't get CTL address from " in pata_of_platform_probe() 51 irq_res = platform_get_resource(ofdev, IORESOURCE_IRQ, 0); in pata_of_platform_probe() 61 dev_err(&ofdev->dev, "invalid pio-mode\n"); in pata_of_platform_probe() 65 dev_info(&ofdev->dev, "pio-mode unspecified, assuming PIO0\n"); in pata_of_platform_probe() 71 return __pata_platform_probe(&ofdev->dev, &io_res, &ctl_res, irq_res, in pata_of_platform_probe()
|
D | sata_dwc_460ex.c | 1182 static int sata_dwc_probe(struct platform_device *ofdev) in sata_dwc_probe() argument 1193 struct device_node *np = ofdev->dev.of_node; in sata_dwc_probe() 1196 host = ata_host_alloc_pinfo(&ofdev->dev, ppi, SATA_DWC_MAX_PORTS); in sata_dwc_probe() 1197 hsdev = devm_kzalloc(&ofdev->dev, sizeof(*hsdev), GFP_KERNEL); in sata_dwc_probe() 1206 dev_err(&ofdev->dev, in sata_dwc_probe() 1211 dev_dbg(&ofdev->dev, "ioremap done for SATA register address\n"); in sata_dwc_probe() 1225 dev_notice(&ofdev->dev, "id %d, controller version %c.%c%c\n", in sata_dwc_probe() 1231 dev_err(&ofdev->dev, "no SATA DMA irq\n"); in sata_dwc_probe() 1239 dev_err(&ofdev->dev, in sata_dwc_probe() 1246 hsdev->dev = &ofdev->dev; in sata_dwc_probe() [all …]
|
D | sata_fsl.c | 1452 static int sata_fsl_probe(struct platform_device *ofdev) in sata_fsl_probe() argument 1466 dev_info(&ofdev->dev, "Sata FSL Platform/CSB Driver init\n"); in sata_fsl_probe() 1468 hcr_base = of_iomap(ofdev->dev.of_node, 0); in sata_fsl_probe() 1475 if (!of_device_is_compatible(ofdev->dev.of_node, "fsl,mpc8315-sata")) { in sata_fsl_probe() 1493 irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); in sata_fsl_probe() 1495 dev_err(&ofdev->dev, "invalid irq from platform\n"); in sata_fsl_probe() 1500 if (of_device_is_compatible(ofdev->dev.of_node, "fsl,pq-sata-v2")) in sata_fsl_probe() 1506 host = ata_host_alloc_pinfo(&ofdev->dev, ppi, SATA_FSL_MAX_PORTS); in sata_fsl_probe() 1526 platform_set_drvdata(ofdev, host); in sata_fsl_probe() 1544 device_remove_file(&ofdev->dev, &host_priv->intr_coalescing); in sata_fsl_probe() [all …]
|
D | pata_macio.c | 1123 dev_err(&mdev->ofdev.dev, in pata_macio_attach() 1132 priv = devm_kzalloc(&mdev->ofdev.dev, in pata_macio_attach() 1135 dev_err(&mdev->ofdev.dev, in pata_macio_attach() 1139 priv->node = of_node_get(mdev->ofdev.dev.of_node); in pata_macio_attach() 1141 priv->dev = &mdev->ofdev.dev; in pata_macio_attach() 1145 dev_err(&mdev->ofdev.dev, in pata_macio_attach() 1154 dev_err(&mdev->ofdev.dev, in pata_macio_attach() 1170 dev_warn(&mdev->ofdev.dev, in pata_macio_attach()
|
/linux-4.4.14/drivers/tty/serial/ |
D | of_serial.c | 61 static int of_platform_serial_setup(struct platform_device *ofdev, in of_platform_serial_setup() argument 66 struct device_node *np = ofdev->dev.of_node; in of_platform_serial_setup() 74 info->clk = devm_clk_get(&ofdev->dev, NULL); in of_platform_serial_setup() 76 dev_warn(&ofdev->dev, in of_platform_serial_setup() 93 dev_warn(&ofdev->dev, "invalid address\n"); in of_platform_serial_setup() 130 dev_warn(&ofdev->dev, "unsupported reg-io-width (%d)\n", in of_platform_serial_setup() 145 port->dev = &ofdev->dev; in of_platform_serial_setup() 173 static int of_platform_serial_probe(struct platform_device *ofdev) in of_platform_serial_probe() argument 181 match = of_match_device(of_platform_serial_table, &ofdev->dev); in of_platform_serial_probe() 185 if (of_find_property(ofdev->dev.of_node, "used-by-rtas", NULL)) in of_platform_serial_probe() [all …]
|
D | ucc_uart.c | 1193 static int ucc_uart_probe(struct platform_device *ofdev) in ucc_uart_probe() argument 1195 struct device_node *np = ofdev->dev.of_node; in ucc_uart_probe() 1206 dev_dbg(&ofdev->dev, "using Soft-UART mode\n"); in ucc_uart_probe() 1230 dev_err(&ofdev->dev, "unknown CPU model\n"); in ucc_uart_probe() 1236 dev_info(&ofdev->dev, "waiting for firmware %s\n", in ucc_uart_probe() 1247 FW_ACTION_HOTPLUG, filename, &ofdev->dev, in ucc_uart_probe() 1248 GFP_KERNEL, &ofdev->dev, uart_firmware_cont); in ucc_uart_probe() 1250 dev_err(&ofdev->dev, in ucc_uart_probe() 1260 dev_err(&ofdev->dev, "can't allocate QE port structure\n"); in ucc_uart_probe() 1267 dev_err(&ofdev->dev, "missing 'reg' property in device tree\n"); in ucc_uart_probe() [all …]
|
D | pmac_zilog.c | 1567 if (pmz_ports[i].node == mdev->ofdev.dev.of_node) in pmz_attach() 1575 uap->port.dev = &mdev->ofdev.dev; in pmz_attach() 1576 dev_set_drvdata(&mdev->ofdev.dev, uap); in pmz_attach() 1597 struct uart_pmac_port *uap = dev_get_drvdata(&mdev->ofdev.dev); in pmz_detach() 1608 dev_set_drvdata(&mdev->ofdev.dev, NULL); in pmz_detach() 1618 struct uart_pmac_port *uap = dev_get_drvdata(&mdev->ofdev.dev); in pmz_suspend() 1633 struct uart_pmac_port *uap = dev_get_drvdata(&mdev->ofdev.dev); in pmz_resume()
|
/linux-4.4.14/drivers/input/serio/ |
D | apbps2.c | 135 static int apbps2_of_probe(struct platform_device *ofdev) in apbps2_of_probe() argument 142 priv = devm_kzalloc(&ofdev->dev, sizeof(*priv), GFP_KERNEL); in apbps2_of_probe() 144 dev_err(&ofdev->dev, "memory allocation failed\n"); in apbps2_of_probe() 149 res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); in apbps2_of_probe() 150 priv->regs = devm_ioremap_resource(&ofdev->dev, res); in apbps2_of_probe() 158 irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); in apbps2_of_probe() 159 err = devm_request_irq(&ofdev->dev, irq, apbps2_isr, in apbps2_of_probe() 162 dev_err(&ofdev->dev, "request IRQ%d failed\n", irq); in apbps2_of_probe() 167 if (of_property_read_u32(ofdev->dev.of_node, "freq", &freq_hz)) { in apbps2_of_probe() 168 dev_err(&ofdev->dev, "unable to get core frequency\n"); in apbps2_of_probe() [all …]
|
D | xilinx_ps2.c | 236 static int xps2_of_probe(struct platform_device *ofdev) in xps2_of_probe() argument 241 struct device *dev = &ofdev->dev; in xps2_of_probe() 247 ofdev->dev.of_node->name); in xps2_of_probe() 250 error = of_address_to_resource(ofdev->dev.of_node, 0, &r_mem); in xps2_of_probe() 257 irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); in xps2_of_probe() 317 platform_set_drvdata(ofdev, drvdata); in xps2_of_probe()
|
/linux-4.4.14/drivers/i2c/busses/ |
D | i2c-cpm.c | 104 struct platform_device *ofdev; member 433 struct platform_device *ofdev = cpm->ofdev; in cpm_i2c_setup() local 441 dev_dbg(&cpm->ofdev->dev, "cpm_i2c_setup()\n"); in cpm_i2c_setup() 445 cpm->irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); in cpm_i2c_setup() 456 i2c_base = of_iomap(ofdev->dev.of_node, 1); in cpm_i2c_setup() 462 if (of_device_is_compatible(ofdev->dev.of_node, "fsl,cpm1-i2c")) { in cpm_i2c_setup() 479 } else if (of_device_is_compatible(ofdev->dev.of_node, "fsl,cpm2-i2c")) { in cpm_i2c_setup() 494 cpm->i2c_reg = of_iomap(ofdev->dev.of_node, 0); in cpm_i2c_setup() 500 data = of_get_property(ofdev->dev.of_node, "fsl,cpm-command", &len); in cpm_i2c_setup() 507 data = of_get_property(ofdev->dev.of_node, "linux,i2c-class", &len); in cpm_i2c_setup() [all …]
|
D | i2c-ibm_iic.c | 663 static int iic_request_irq(struct platform_device *ofdev, in iic_request_irq() argument 666 struct device_node *np = ofdev->dev.of_node; in iic_request_irq() 674 dev_err(&ofdev->dev, "irq_of_parse_and_map failed\n"); in iic_request_irq() 683 dev_err(&ofdev->dev, "request_irq %d failed\n", irq); in iic_request_irq() 694 static int iic_probe(struct platform_device *ofdev) in iic_probe() argument 696 struct device_node *np = ofdev->dev.of_node; in iic_probe() 704 dev_err(&ofdev->dev, "failed to allocate device data\n"); in iic_probe() 708 platform_set_drvdata(ofdev, dev); in iic_probe() 712 dev_err(&ofdev->dev, "failed to iomap device\n"); in iic_probe() 719 dev->irq = iic_request_irq(ofdev, dev); in iic_probe() [all …]
|
/linux-4.4.14/drivers/net/ethernet/freescale/fs_enet/ |
D | mii-fec.c | 99 static int fs_enet_mdio_probe(struct platform_device *ofdev) in fs_enet_mdio_probe() argument 108 match = of_match_device(fs_enet_mdio_fec_match, &ofdev->dev); in fs_enet_mdio_probe() 126 ret = of_address_to_resource(ofdev->dev.of_node, 0, &res); in fs_enet_mdio_probe() 139 clock = get_bus_freq(ofdev->dev.of_node); in fs_enet_mdio_probe() 142 dev_warn(&ofdev->dev, "could not determine IPS clock\n"); in fs_enet_mdio_probe() 155 dev_err(&ofdev->dev, in fs_enet_mdio_probe() 175 new_bus->parent = &ofdev->dev; in fs_enet_mdio_probe() 176 platform_set_drvdata(ofdev, new_bus); in fs_enet_mdio_probe() 178 ret = of_mdiobus_register(new_bus, ofdev->dev.of_node); in fs_enet_mdio_probe() 197 static int fs_enet_mdio_remove(struct platform_device *ofdev) in fs_enet_mdio_remove() argument [all …]
|
D | mii-bitbang.c | 152 static int fs_enet_mdio_probe(struct platform_device *ofdev) in fs_enet_mdio_probe() argument 170 ret = fs_mii_bitbang_init(new_bus, ofdev->dev.of_node); in fs_enet_mdio_probe() 181 new_bus->parent = &ofdev->dev; in fs_enet_mdio_probe() 182 platform_set_drvdata(ofdev, new_bus); in fs_enet_mdio_probe() 184 ret = of_mdiobus_register(new_bus, ofdev->dev.of_node); in fs_enet_mdio_probe() 202 static int fs_enet_mdio_remove(struct platform_device *ofdev) in fs_enet_mdio_remove() argument 204 struct mii_bus *bus = platform_get_drvdata(ofdev); in fs_enet_mdio_remove()
|
D | fs_enet-main.c | 938 static int fs_enet_probe(struct platform_device *ofdev) in fs_enet_probe() argument 951 match = of_match_device(fs_enet_match, &ofdev->dev); in fs_enet_probe() 960 data = of_get_property(ofdev->dev.of_node, "fsl,cpm-command", &len); in fs_enet_probe() 971 fpi->phy_node = of_parse_phandle(ofdev->dev.of_node, "phy-handle", 0); in fs_enet_probe() 972 if (!fpi->phy_node && of_phy_is_fixed_link(ofdev->dev.of_node)) { in fs_enet_probe() 973 err = of_phy_register_fixed_link(ofdev->dev.of_node); in fs_enet_probe() 980 fpi->phy_node = of_node_get(ofdev->dev.of_node); in fs_enet_probe() 983 if (of_device_is_compatible(ofdev->dev.of_node, "fsl,mpc5125-fec")) { in fs_enet_probe() 984 phy_connection_type = of_get_property(ofdev->dev.of_node, in fs_enet_probe() 994 clk = devm_clk_get(&ofdev->dev, "per"); in fs_enet_probe() [all …]
|
D | mac-fcc.c | 88 struct platform_device *ofdev = to_platform_device(fep->dev); in do_pd_setup() local 92 fep->interrupt = irq_of_parse_and_map(ofdev->dev.of_node, 0); in do_pd_setup() 96 fep->fcc.fccp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup() 100 fep->fcc.ep = of_iomap(ofdev->dev.of_node, 1); in do_pd_setup() 104 fep->fcc.fcccp = of_iomap(ofdev->dev.of_node, 2); in do_pd_setup()
|
D | mac-scc.c | 99 struct platform_device *ofdev = to_platform_device(fep->dev); in do_pd_setup() local 101 fep->interrupt = irq_of_parse_and_map(ofdev->dev.of_node, 0); in do_pd_setup() 105 fep->scc.sccp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup() 109 fep->scc.ep = of_iomap(ofdev->dev.of_node, 1); in do_pd_setup()
|
D | mac-fec.c | 99 struct platform_device *ofdev = to_platform_device(fep->dev); in do_pd_setup() local 101 fep->interrupt = irq_of_parse_and_map(ofdev->dev.of_node, 0); in do_pd_setup() 105 fep->fec.fecp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup()
|
/linux-4.4.14/arch/sparc/kernel/ |
D | leon_pci_grpci1.c | 510 static int grpci1_of_probe(struct platform_device *ofdev) in grpci1_of_probe() argument 520 dev_err(&ofdev->dev, "only one GRPCI1 supported\n"); in grpci1_of_probe() 524 if (ofdev->num_resources < 3) { in grpci1_of_probe() 525 dev_err(&ofdev->dev, "not enough APB/AHB resources\n"); in grpci1_of_probe() 529 priv = devm_kzalloc(&ofdev->dev, sizeof(*priv), GFP_KERNEL); in grpci1_of_probe() 531 dev_err(&ofdev->dev, "memory allocation failed\n"); in grpci1_of_probe() 534 platform_set_drvdata(ofdev, priv); in grpci1_of_probe() 535 priv->dev = &ofdev->dev; in grpci1_of_probe() 538 res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); in grpci1_of_probe() 539 regs = devm_ioremap_resource(&ofdev->dev, res); in grpci1_of_probe() [all …]
|
D | leon_pci_grpci2.c | 683 static int grpci2_of_probe(struct platform_device *ofdev) in grpci2_of_probe() argument 696 if (ofdev->num_resources < 3) { in grpci2_of_probe() 702 regs = of_ioremap(&ofdev->resource[0], 0, in grpci2_of_probe() 703 resource_size(&ofdev->resource[0]), in grpci2_of_probe() 727 priv->irq = ofdev->archdata.irqs[0]; /* BASE IRQ */ in grpci2_of_probe() 736 tmp = of_get_property(ofdev->dev.of_node, "barcfg", &len); in grpci2_of_probe() 743 tmp = of_get_property(ofdev->dev.of_node, "irq_mask", &len); in grpci2_of_probe() 750 tmp = of_get_property(ofdev->dev.of_node, "reset", &len); in grpci2_of_probe() 757 priv->pci_area = ofdev->resource[1].start; in grpci2_of_probe() 758 priv->pci_area_end = ofdev->resource[1].end+1; in grpci2_of_probe() [all …]
|
D | leon_pci.c | 24 void leon_pci_init(struct platform_device *ofdev, struct leon_pci_info *info) in leon_pci_init() argument 35 root_bus = pci_scan_root_bus(&ofdev->dev, 0, info->ops, info, in leon_pci_init()
|
/linux-4.4.14/drivers/usb/host/ |
D | fsl-mph-dr-of.c | 81 struct platform_device *ofdev, in fsl_usb2_device_register() argument 86 const struct resource *res = ofdev->resource; in fsl_usb2_device_register() 87 unsigned int num = ofdev->num_resources; in fsl_usb2_device_register() 96 pdev->dev.parent = &ofdev->dev; in fsl_usb2_device_register() 98 pdev->dev.coherent_dma_mask = ofdev->dev.coherent_dma_mask; in fsl_usb2_device_register() 99 *pdev->dev.dma_mask = *ofdev->dev.dma_mask; in fsl_usb2_device_register() 170 static int fsl_usb2_mph_dr_of_probe(struct platform_device *ofdev) in fsl_usb2_mph_dr_of_probe() argument 172 struct device_node *np = ofdev->dev.of_node; in fsl_usb2_mph_dr_of_probe() 184 match = of_match_device(fsl_usb2_mph_dr_of_match, &ofdev->dev); in fsl_usb2_mph_dr_of_probe() 240 dev_warn(&ofdev->dev, "Could not get controller version\n"); in fsl_usb2_mph_dr_of_probe() [all …]
|
D | fhci-hcd.c | 566 static int of_fhci_probe(struct platform_device *ofdev) in of_fhci_probe() argument 568 struct device *dev = &ofdev->dev; in of_fhci_probe() 810 static int of_fhci_remove(struct platform_device *ofdev) in of_fhci_remove() argument 812 return fhci_remove(&ofdev->dev); in of_fhci_remove()
|
/linux-4.4.14/drivers/gpio/ |
D | gpio-grgpio.c | 339 static int grgpio_probe(struct platform_device *ofdev) in grgpio_probe() argument 341 struct device_node *np = ofdev->dev.of_node; in grgpio_probe() 353 priv = devm_kzalloc(&ofdev->dev, sizeof(*priv), GFP_KERNEL); in grgpio_probe() 357 res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); in grgpio_probe() 358 regs = devm_ioremap_resource(&ofdev->dev, res); in grgpio_probe() 363 err = bgpio_init(bgc, &ofdev->dev, 4, regs + GRGPIO_DATA, in grgpio_probe() 367 dev_err(&ofdev->dev, "bgpio_init() failed\n"); in grgpio_probe() 373 priv->dev = &ofdev->dev; in grgpio_probe() 385 dev_dbg(&ofdev->dev, in grgpio_probe() 398 dev_err(&ofdev->dev, in grgpio_probe() [all …]
|
D | gpio-mpc5200.c | 151 static int mpc52xx_wkup_gpiochip_probe(struct platform_device *ofdev) in mpc52xx_wkup_gpiochip_probe() argument 158 chip = devm_kzalloc(&ofdev->dev, sizeof(*chip), GFP_KERNEL); in mpc52xx_wkup_gpiochip_probe() 162 platform_set_drvdata(ofdev, chip); in mpc52xx_wkup_gpiochip_probe() 172 ret = of_mm_gpiochip_add(ofdev->dev.of_node, &chip->mmchip); in mpc52xx_wkup_gpiochip_probe() 184 static int mpc52xx_gpiochip_remove(struct platform_device *ofdev) in mpc52xx_gpiochip_remove() argument 186 struct mpc52xx_gpiochip *chip = platform_get_drvdata(ofdev); in mpc52xx_gpiochip_remove() 316 static int mpc52xx_simple_gpiochip_probe(struct platform_device *ofdev) in mpc52xx_simple_gpiochip_probe() argument 323 chip = devm_kzalloc(&ofdev->dev, sizeof(*chip), GFP_KERNEL); in mpc52xx_simple_gpiochip_probe() 327 platform_set_drvdata(ofdev, chip); in mpc52xx_simple_gpiochip_probe() 337 ret = of_mm_gpiochip_add(ofdev->dev.of_node, &chip->mmchip); in mpc52xx_simple_gpiochip_probe()
|
/linux-4.4.14/drivers/of/ |
D | device.c | 54 int of_device_add(struct platform_device *ofdev) in of_device_add() argument 56 BUG_ON(ofdev->dev.of_node == NULL); in of_device_add() 60 ofdev->name = dev_name(&ofdev->dev); in of_device_add() 61 ofdev->id = -1; in of_device_add() 68 set_dev_node(&ofdev->dev, of_node_to_nid(ofdev->dev.of_node)); in of_device_add() 70 return device_add(&ofdev->dev); in of_device_add() 161 void of_device_unregister(struct platform_device *ofdev) in of_device_unregister() argument 163 device_unregister(&ofdev->dev); in of_device_unregister()
|
/linux-4.4.14/sound/aoa/soundbus/ |
D | core.c | 22 tmp = get_device(&dev->ofdev.dev); in soundbus_dev_get() 33 put_device(&dev->ofdev.dev); in soundbus_dev_put() 74 of = &soundbus_dev->ofdev; in soundbus_uevent() 146 !dev->ofdev.dev.of_node || in soundbus_add_one() 153 dev_set_name(&dev->ofdev.dev, "soundbus:%x", ++devcount); in soundbus_add_one() 154 dev->ofdev.dev.bus = &soundbus_bus_type; in soundbus_add_one() 155 return of_device_register(&dev->ofdev); in soundbus_add_one() 161 of_device_unregister(&dev->ofdev); in soundbus_remove_one()
|
D | soundbus.h | 144 struct platform_device ofdev; member 173 #define to_soundbus_device(d) container_of(d, struct soundbus_dev, ofdev.dev) 174 #define of_to_soundbus_device(d) container_of(d, struct soundbus_dev, ofdev)
|
D | sysfs.c | 12 return sprintf (buf, format_string, mdev->ofdev.dev.of_node->field); \ 19 struct platform_device *of = &sdev->ofdev; in modalias_show()
|
/linux-4.4.14/arch/powerpc/include/asm/ |
D | macio.h | 41 struct platform_device ofdev; member 48 #define to_macio_device(d) container_of(d, struct macio_dev, ofdev.dev) 49 #define of_to_macio_device(d) container_of(d, struct macio_dev, ofdev) 101 dev_set_drvdata(&dev->ofdev.dev, data); in macio_set_drvdata() 106 return dev_get_drvdata(&dev->ofdev.dev); in macio_get_drvdata() 111 return mdev->ofdev.dev.of_node; in macio_get_of_node()
|
/linux-4.4.14/drivers/watchdog/ |
D | mpc8xxx_wdt.c | 144 static int mpc8xxx_wdt_probe(struct platform_device *ofdev) in mpc8xxx_wdt_probe() argument 154 wdt_type = of_device_get_match_data(&ofdev->dev); in mpc8xxx_wdt_probe() 161 ddata = devm_kzalloc(&ofdev->dev, sizeof(*ddata), GFP_KERNEL); in mpc8xxx_wdt_probe() 165 res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); in mpc8xxx_wdt_probe() 166 ddata->base = devm_ioremap_resource(&ofdev->dev, res); in mpc8xxx_wdt_probe() 207 platform_set_drvdata(ofdev, ddata); in mpc8xxx_wdt_probe() 211 static int mpc8xxx_wdt_remove(struct platform_device *ofdev) in mpc8xxx_wdt_remove() argument 213 struct mpc8xxx_wdt_ddata *ddata = platform_get_drvdata(ofdev); in mpc8xxx_wdt_remove()
|
/linux-4.4.14/sound/aoa/soundbus/i2sbus/ |
D | core.c | 76 i2sdev = container_of(dev, struct i2sbus_dev, sound.ofdev.dev); in i2sbus_release_dev() 221 dev->sound.ofdev.archdata.dma_mask = macio->ofdev.archdata.dma_mask; in i2sbus_add_dev() 222 dev->sound.ofdev.dev.of_node = np; in i2sbus_add_dev() 223 dev->sound.ofdev.dev.dma_mask = &dev->sound.ofdev.archdata.dma_mask; in i2sbus_add_dev() 224 dev->sound.ofdev.dev.parent = &macio->ofdev.dev; in i2sbus_add_dev() 225 dev->sound.ofdev.dev.release = i2sbus_release_dev; in i2sbus_add_dev() 344 while ((np = of_get_next_child(dev->ofdev.dev.of_node, np))) { in i2sbus_probe() 357 dev_set_drvdata(&dev->ofdev.dev, control); in i2sbus_probe() 364 struct i2sbus_control *control = dev_get_drvdata(&dev->ofdev.dev); in i2sbus_remove() 376 struct i2sbus_control *control = dev_get_drvdata(&dev->ofdev.dev); in i2sbus_suspend() [all …]
|
D | control.c | 45 np = i2sdev->sound.ofdev.dev.of_node; in i2sbus_control_add_dev()
|
D | pcm.c | 991 &dev->ofdev.dev; in i2sbus_attach_codec() 1008 &dev->ofdev.dev; in i2sbus_attach_codec()
|
/linux-4.4.14/drivers/pcmcia/ |
D | electra_cf.c | 49 struct platform_device *ofdev; member 186 static int electra_cf_probe(struct platform_device *ofdev) in electra_cf_probe() argument 188 struct device *device = &ofdev->dev; in electra_cf_probe() 189 struct device_node *np = ofdev->dev.of_node; in electra_cf_probe() 212 cf->ofdev = ofdev; in electra_cf_probe() 291 cf->socket.dev.parent = &ofdev->dev; in electra_cf_probe() 326 device_init_wakeup(&ofdev->dev, 0); in electra_cf_probe() 332 static int electra_cf_remove(struct platform_device *ofdev) in electra_cf_remove() argument 334 struct device *device = &ofdev->dev; in electra_cf_remove()
|
/linux-4.4.14/arch/powerpc/platforms/83xx/ |
D | suspend.c | 325 static int pmc_probe(struct platform_device *ofdev) in pmc_probe() argument 328 struct device_node *np = ofdev->dev.of_node; in pmc_probe() 333 match = of_match_device(pmc_match, &ofdev->dev); in pmc_probe() 344 pmc_dev = ofdev; in pmc_probe() 357 "pmc", ofdev); in pmc_probe() 404 free_irq(pmc_irq, ofdev); in pmc_probe() 409 static int pmc_remove(struct platform_device *ofdev) in pmc_remove() argument
|
/linux-4.4.14/arch/powerpc/sysdev/ |
D | fsl_pmc.c | 63 static int pmc_probe(struct platform_device *ofdev) in pmc_probe() argument 65 pmc_regs = of_iomap(ofdev->dev.of_node, 0); in pmc_probe() 69 pmc_dev = &ofdev->dev; in pmc_probe()
|
D | fsl_msi.c | 329 static int fsl_of_msi_remove(struct platform_device *ofdev) in fsl_of_msi_remove() argument 331 struct fsl_msi *msi = platform_get_drvdata(ofdev); in fsl_of_msi_remove()
|
/linux-4.4.14/arch/powerpc/platforms/52xx/ |
D | mpc52xx_gpt.c | 723 static int mpc52xx_gpt_probe(struct platform_device *ofdev) in mpc52xx_gpt_probe() argument 727 gpt = devm_kzalloc(&ofdev->dev, sizeof *gpt, GFP_KERNEL); in mpc52xx_gpt_probe() 732 gpt->dev = &ofdev->dev; in mpc52xx_gpt_probe() 733 gpt->ipb_freq = mpc5xxx_get_bus_frequency(ofdev->dev.of_node); in mpc52xx_gpt_probe() 734 gpt->regs = of_iomap(ofdev->dev.of_node, 0); in mpc52xx_gpt_probe() 738 dev_set_drvdata(&ofdev->dev, gpt); in mpc52xx_gpt_probe() 740 mpc52xx_gpt_gpio_setup(gpt, ofdev->dev.of_node); in mpc52xx_gpt_probe() 741 mpc52xx_gpt_irq_setup(gpt, ofdev->dev.of_node); in mpc52xx_gpt_probe() 748 if (of_get_property(ofdev->dev.of_node, "fsl,has-wdt", NULL) || in mpc52xx_gpt_probe() 749 of_get_property(ofdev->dev.of_node, "has-wdt", NULL)) { in mpc52xx_gpt_probe() [all …]
|
/linux-4.4.14/drivers/net/ethernet/xilinx/ |
D | xilinx_emaclite.c | 1058 static bool get_bool(struct platform_device *ofdev, const char *s) in get_bool() argument 1060 u32 *p = (u32 *)of_get_property(ofdev->dev.of_node, s, NULL); in get_bool() 1065 dev_warn(&ofdev->dev, "Parameter %s not found," in get_bool() 1087 static int xemaclite_of_probe(struct platform_device *ofdev) in xemaclite_of_probe() argument 1092 struct device *dev = &ofdev->dev; in xemaclite_of_probe() 1105 SET_NETDEV_DEV(ndev, &ofdev->dev); in xemaclite_of_probe() 1111 res = platform_get_resource(ofdev, IORESOURCE_IRQ, 0); in xemaclite_of_probe() 1120 res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); in xemaclite_of_probe() 1121 lp->base_addr = devm_ioremap_resource(&ofdev->dev, res); in xemaclite_of_probe() 1133 lp->tx_ping_pong = get_bool(ofdev, "xlnx,tx-ping-pong"); in xemaclite_of_probe() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/82xx/ |
D | ep8248e.c | 114 static int ep8248e_mdio_probe(struct platform_device *ofdev) in ep8248e_mdio_probe() argument 121 node = of_get_parent(ofdev->dev.of_node); in ep8248e_mdio_probe() 126 ret = of_address_to_resource(ofdev->dev.of_node, 0, &res); in ep8248e_mdio_probe() 141 bus->parent = &ofdev->dev; in ep8248e_mdio_probe() 144 ret = of_mdiobus_register(bus, ofdev->dev.of_node); in ep8248e_mdio_probe() 156 static int ep8248e_mdio_remove(struct platform_device *ofdev) in ep8248e_mdio_remove() argument
|
/linux-4.4.14/drivers/spi/ |
D | spi-fsl-lib.c | 117 int of_mpc8xxx_spi_probe(struct platform_device *ofdev) in of_mpc8xxx_spi_probe() argument 119 struct device *dev = &ofdev->dev; in of_mpc8xxx_spi_probe() 120 struct device_node *np = ofdev->dev.of_node; in of_mpc8xxx_spi_probe() 126 pinfo = devm_kzalloc(&ofdev->dev, sizeof(*pinfo), GFP_KERNEL); in of_mpc8xxx_spi_probe()
|
D | spi-fsl-spi.c | 810 static int of_fsl_spi_probe(struct platform_device *ofdev) in of_fsl_spi_probe() argument 812 struct device *dev = &ofdev->dev; in of_fsl_spi_probe() 813 struct device_node *np = ofdev->dev.of_node; in of_fsl_spi_probe() 819 ret = of_mpc8xxx_spi_probe(ofdev); in of_fsl_spi_probe() 823 type = fsl_spi_get_type(&ofdev->dev); in of_fsl_spi_probe() 854 static int of_fsl_spi_remove(struct platform_device *ofdev) in of_fsl_spi_remove() argument 856 struct spi_master *master = platform_get_drvdata(ofdev); in of_fsl_spi_remove() 861 of_fsl_spi_free_chipselects(&ofdev->dev); in of_fsl_spi_remove()
|
D | spi-fsl-lib.h | 120 extern int of_mpc8xxx_spi_probe(struct platform_device *ofdev);
|
D | spi-fsl-espi.c | 780 static int of_fsl_espi_probe(struct platform_device *ofdev) in of_fsl_espi_probe() argument 782 struct device *dev = &ofdev->dev; in of_fsl_espi_probe() 783 struct device_node *np = ofdev->dev.of_node; in of_fsl_espi_probe() 789 ret = of_mpc8xxx_spi_probe(ofdev); in of_fsl_espi_probe()
|
/linux-4.4.14/drivers/char/hw_random/ |
D | stm32-rng.c | 119 static int stm32_rng_probe(struct platform_device *ofdev) in stm32_rng_probe() argument 121 struct device *dev = &ofdev->dev; in stm32_rng_probe() 122 struct device_node *np = ofdev->dev.of_node; in stm32_rng_probe() 139 priv->clk = devm_clk_get(&ofdev->dev, NULL); in stm32_rng_probe()
|
D | pasemi-rng.c | 98 static int rng_probe(struct platform_device *ofdev) in rng_probe() argument 101 struct device_node *rng_np = ofdev->dev.of_node; in rng_probe()
|
/linux-4.4.14/drivers/net/can/ |
D | grcan.c | 1554 static void grcan_sanitize_module_config(struct platform_device *ofdev) in grcan_sanitize_module_config() argument 1556 grcan_sanitize_enable0(ofdev); in grcan_sanitize_module_config() 1557 grcan_sanitize_enable1(ofdev); in grcan_sanitize_module_config() 1558 grcan_sanitize_select(ofdev); in grcan_sanitize_module_config() 1559 grcan_sanitize_txsize(ofdev); in grcan_sanitize_module_config() 1560 grcan_sanitize_rxsize(ofdev); in grcan_sanitize_module_config() 1585 static int grcan_setup_netdev(struct platform_device *ofdev, in grcan_setup_netdev() argument 1623 dev_dbg(&ofdev->dev, "Hardware supports triple-sampling\n"); in grcan_setup_netdev() 1640 SET_NETDEV_DEV(dev, &ofdev->dev); in grcan_setup_netdev() 1641 dev_info(&ofdev->dev, "regs=0x%p, irq=%d, clock=%d\n", in grcan_setup_netdev() [all …]
|
/linux-4.4.14/drivers/net/wireless/orinoco/ |
D | airport.c | 38 struct orinoco_private *priv = dev_get_drvdata(&mdev->ofdev.dev); in airport_suspend() 66 struct orinoco_private *priv = dev_get_drvdata(&mdev->ofdev.dev); in airport_resume() 90 struct orinoco_private *priv = dev_get_drvdata(&mdev->ofdev.dev); in airport_detach() 161 priv = alloc_orinocodev(sizeof(*card), &mdev->ofdev.dev, in airport_attach()
|
/linux-4.4.14/drivers/ide/ |
D | pmac.c | 1149 mdev->ofdev.dev.of_node->full_name); in pmac_ide_macio_attach() 1157 "%s!\n", mdev->ofdev.dev.of_node->full_name); in pmac_ide_macio_attach() 1169 "13\n", mdev->ofdev.dev.of_node->full_name); in pmac_ide_macio_attach() 1178 pmif->node = mdev->ofdev.dev.of_node; in pmac_ide_macio_attach() 1187 mdev->ofdev.dev.of_node->full_name); in pmac_ide_macio_attach() 1193 dev_set_drvdata(&mdev->ofdev.dev, pmif); in pmac_ide_macio_attach() 1199 hw.parent = &mdev->ofdev.dev; in pmac_ide_macio_attach() 1204 dev_set_drvdata(&mdev->ofdev.dev, NULL); in pmac_ide_macio_attach() 1224 pmac_ide_hwif_t *pmif = dev_get_drvdata(&mdev->ofdev.dev); in pmac_ide_macio_suspend() 1227 if (mesg.event != mdev->ofdev.dev.power.power_state.event in pmac_ide_macio_suspend() [all …]
|
/linux-4.4.14/include/linux/ |
D | of_device.h | 33 extern int of_device_register(struct platform_device *ofdev); 34 extern void of_device_unregister(struct platform_device *ofdev);
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | ibmebus.c | 387 struct platform_device *ofdev; in devspec_show() local 389 ofdev = to_platform_device(dev); in devspec_show() 390 return sprintf(buf, "%s\n", ofdev->dev.of_node->full_name); in devspec_show() 396 struct platform_device *ofdev; in name_show() local 398 ofdev = to_platform_device(dev); in name_show() 399 return sprintf(buf, "%s\n", ofdev->dev.of_node->name); in name_show()
|
/linux-4.4.14/arch/powerpc/platforms/pasemi/ |
D | gpio_mdio.c | 220 static int gpio_mdio_probe(struct platform_device *ofdev) in gpio_mdio_probe() argument 222 struct device *dev = &ofdev->dev; in gpio_mdio_probe() 223 struct device_node *np = ofdev->dev.of_node; in gpio_mdio_probe()
|
/linux-4.4.14/drivers/dma/ |
D | fsl_raid.c | 632 static int fsl_re_chan_probe(struct platform_device *ofdev, in fsl_re_chan_probe() argument 644 dev = &ofdev->dev; in fsl_re_chan_probe() 755 static int fsl_re_probe(struct platform_device *ofdev) in fsl_re_probe() argument 765 struct device *dev = &ofdev->dev; in fsl_re_probe() 771 res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); in fsl_re_probe() 846 fsl_re_chan_probe(ofdev, child, ridx++, off); in fsl_re_probe() 866 static int fsl_re_remove(struct platform_device *ofdev) in fsl_re_remove() argument 872 dev = &ofdev->dev; in fsl_re_remove()
|
/linux-4.4.14/arch/sparc/include/asm/ |
D | leon_pci.h | 19 void leon_pci_init(struct platform_device *ofdev,
|
/linux-4.4.14/drivers/dma/ppc4xx/ |
D | adma.c | 3886 struct platform_device *ofdev; in ppc440spe_adma_setup_irqs() local 3890 ofdev = container_of(adev->dev, struct platform_device, dev); in ppc440spe_adma_setup_irqs() 3891 np = ofdev->dev.of_node; in ppc440spe_adma_setup_irqs() 4022 static int ppc440spe_adma_probe(struct platform_device *ofdev) in ppc440spe_adma_probe() argument 4024 struct device_node *np = ofdev->dev.of_node; in ppc440spe_adma_probe() 4046 dev_err(&ofdev->dev, "Device node %s has missing " in ppc440spe_adma_probe() 4069 dev_err(&ofdev->dev, "failed to get memory resource\n"); in ppc440spe_adma_probe() 4076 dev_driver_string(&ofdev->dev))) { in ppc440spe_adma_probe() 4077 dev_err(&ofdev->dev, "failed to request memory region %pR\n", in ppc440spe_adma_probe() 4087 dev_err(&ofdev->dev, "failed to allocate device\n"); in ppc440spe_adma_probe() [all …]
|
/linux-4.4.14/drivers/usb/gadget/udc/ |
D | fsl_qe_udc.c | 2339 static struct qe_udc *qe_udc_config(struct platform_device *ofdev) in qe_udc_config() argument 2342 struct device_node *np = ofdev->dev.of_node; in qe_udc_config() 2351 dev_err(&ofdev->dev, "malloc udc failed\n"); in qe_udc_config() 2355 udc->dev = &ofdev->dev; in qe_udc_config() 2476 static int qe_udc_probe(struct platform_device *ofdev) in qe_udc_probe() argument 2480 struct device_node *np = ofdev->dev.of_node; in qe_udc_probe() 2486 match = of_match_device(qe_udc_match, &ofdev->dev); in qe_udc_probe() 2495 udc = qe_udc_config(ofdev); in qe_udc_probe() 2497 dev_err(&ofdev->dev, "failed to initialize\n"); in qe_udc_probe() 2526 udc->gadget.dev.parent = &ofdev->dev; in qe_udc_probe() [all …]
|
/linux-4.4.14/drivers/crypto/amcc/ |
D | crypto4xx_core.c | 1138 static int crypto4xx_probe(struct platform_device *ofdev) in crypto4xx_probe() argument 1142 struct device *dev = &ofdev->dev; in crypto4xx_probe() 1145 rc = of_address_to_resource(ofdev->dev.of_node, 0, &res); in crypto4xx_probe() 1176 core_dev->ofdev = ofdev; in crypto4xx_probe() 1202 core_dev->irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); in crypto4xx_probe() 1208 core_dev->dev->ce_base = of_iomap(ofdev->dev.of_node, 0); in crypto4xx_probe() 1246 static int crypto4xx_remove(struct platform_device *ofdev) in crypto4xx_remove() argument 1248 struct device *dev = &ofdev->dev; in crypto4xx_remove()
|
D | crypto4xx_core.h | 107 struct platform_device *ofdev; member
|
/linux-4.4.14/drivers/net/ethernet/ibm/ehea/ |
D | ehea_main.c | 2910 struct ehea_port *port = container_of(dev, struct ehea_port, ofdev.dev); in ehea_show_port_id() 2919 struct ehea_port *port = container_of(dev, struct ehea_port, ofdev.dev); in logical_port_release() 2920 of_node_put(port->ofdev.dev.of_node); in logical_port_release() 2928 port->ofdev.dev.of_node = of_node_get(dn); in ehea_register_port() 2929 port->ofdev.dev.parent = &port->adapter->ofdev->dev; in ehea_register_port() 2930 port->ofdev.dev.bus = &ibmebus_bus_type; in ehea_register_port() 2932 dev_set_name(&port->ofdev.dev, "port%d", port_name_cnt++); in ehea_register_port() 2933 port->ofdev.dev.release = logical_port_release; in ehea_register_port() 2935 ret = of_device_register(&port->ofdev); in ehea_register_port() 2941 ret = device_create_file(&port->ofdev.dev, &dev_attr_log_port_id); in ehea_register_port() [all …]
|
D | ehea.h | 394 struct platform_device *ofdev; member 446 struct platform_device ofdev; /* Open Firmware Device */ member
|
/linux-4.4.14/drivers/net/ethernet/aeroflex/ |
D | greth.c | 1379 static int greth_of_probe(struct platform_device *ofdev) in greth_of_probe() argument 1397 greth->dev = &ofdev->dev; in greth_of_probe() 1406 greth->regs = of_ioremap(&ofdev->resource[0], 0, in greth_of_probe() 1407 resource_size(&ofdev->resource[0]), in greth_of_probe() 1418 greth->irq = ofdev->archdata.irqs[0]; in greth_of_probe() 1493 addr = of_get_property(ofdev->dev.of_node, "local-mac-address", in greth_of_probe() 1561 of_iounmap(&ofdev->resource[0], greth->regs, resource_size(&ofdev->resource[0])); in greth_of_probe()
|
/linux-4.4.14/drivers/block/ |
D | swim3.c | 211 #define swim3_err(fmt, arg...) dev_err(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) 212 #define swim3_warn(fmt, arg...) dev_warn(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) 213 #define swim3_info(fmt, arg...) dev_info(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) 216 #define swim3_dbg(fmt, arg...) dev_dbg(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) 1114 struct device_node *swim = mdev->ofdev.dev.of_node; in swim3_add_device() 1141 dev_set_drvdata(&mdev->ofdev.dev, fs); in swim3_add_device()
|
/linux-4.4.14/drivers/video/fbdev/mb862xx/ |
D | mb862xxfbdrv.c | 671 static int of_platform_mb862xx_probe(struct platform_device *ofdev) in of_platform_mb862xx_probe() argument 673 struct device_node *np = ofdev->dev.of_node; in of_platform_mb862xx_probe() 674 struct device *dev = &ofdev->dev; in of_platform_mb862xx_probe() 788 static int of_platform_mb862xx_remove(struct platform_device *ofdev) in of_platform_mb862xx_remove() argument 790 struct fb_info *fbi = dev_get_drvdata(&ofdev->dev); in of_platform_mb862xx_remove() 808 device_remove_file(&ofdev->dev, &dev_attr_dispregs); in of_platform_mb862xx_remove()
|
/linux-4.4.14/drivers/tty/serial/cpm_uart/ |
D | cpm_uart_core.c | 1409 static int cpm_uart_probe(struct platform_device *ofdev) in cpm_uart_probe() argument 1420 platform_set_drvdata(ofdev, pinfo); in cpm_uart_probe() 1423 pinfo->port.dev = &ofdev->dev; in cpm_uart_probe() 1425 ret = cpm_uart_init_port(ofdev->dev.of_node, pinfo); in cpm_uart_probe() 1432 static int cpm_uart_remove(struct platform_device *ofdev) in cpm_uart_remove() argument 1434 struct uart_cpm_port *pinfo = platform_get_drvdata(ofdev); in cpm_uart_remove()
|
/linux-4.4.14/drivers/net/ethernet/freescale/ |
D | gianfar.c | 129 static int gfar_probe(struct platform_device *ofdev); 130 static int gfar_remove(struct platform_device *ofdev); 731 static int gfar_of_init(struct platform_device *ofdev, struct net_device **pdev) in gfar_of_init() argument 739 struct device_node *np = ofdev->dev.of_node; in gfar_of_init() 766 dev_err(&ofdev->dev, "Invalid # of int groups(%d)\n", in gfar_of_init() 1125 struct device *dev = &priv->ofdev->dev; in gfar_detect_errata() 1314 static int gfar_probe(struct platform_device *ofdev) in gfar_probe() argument 1320 err = gfar_of_init(ofdev, &dev); in gfar_probe() 1327 priv->ofdev = ofdev; in gfar_probe() 1328 priv->dev = &ofdev->dev; in gfar_probe() [all …]
|
D | ucc_geth.c | 3563 static int ucc_geth_suspend(struct platform_device *ofdev, pm_message_t state) in ucc_geth_suspend() argument 3565 struct net_device *ndev = platform_get_drvdata(ofdev); in ucc_geth_suspend() 3591 static int ucc_geth_resume(struct platform_device *ofdev) in ucc_geth_resume() argument 3593 struct net_device *ndev = platform_get_drvdata(ofdev); in ucc_geth_resume() 3693 static int ucc_geth_probe(struct platform_device* ofdev) in ucc_geth_probe() argument 3695 struct device *device = &ofdev->dev; in ucc_geth_probe() 3696 struct device_node *np = ofdev->dev.of_node; in ucc_geth_probe() 3928 static int ucc_geth_remove(struct platform_device* ofdev) in ucc_geth_remove() argument 3930 struct net_device *dev = platform_get_drvdata(ofdev); in ucc_geth_remove()
|
D | gianfar.h | 1166 struct platform_device *ofdev; member
|
/linux-4.4.14/sound/aoa/fabrics/ |
D | layout.c | 1003 while ((sound = of_get_next_child(sdev->ofdev.dev.of_node, sound))) { in aoa_fabric_layout_probe() 1049 dev_set_drvdata(&sdev->ofdev.dev, ldev); in aoa_fabric_layout_probe() 1065 err = aoa_fabric_register(&layout_fabric, &sdev->ofdev.dev); in aoa_fabric_layout_probe() 1093 struct layout_dev *ldev = dev_get_drvdata(&sdev->ofdev.dev); in aoa_fabric_layout_remove()
|
/linux-4.4.14/drivers/staging/rdma/ehca/ |
D | ehca_main.c | 296 shca->ofdev->dev.of_node->full_name); in ehca_sense_attributes() 297 loc_code = of_get_property(shca->ofdev->dev.of_node, "ibm,loc-code", in ehca_sense_attributes() 486 shca->ib_device.dma_device = &shca->ofdev->dev; in ehca_init_device() 776 shca->ofdev = dev; in ehca_probe()
|
D | ehca_classes.h | 115 struct platform_device *ofdev; member
|
/linux-4.4.14/drivers/crypto/ |
D | talitos.c | 2682 static int talitos_remove(struct platform_device *ofdev) in talitos_remove() argument 2684 struct device *dev = &ofdev->dev; in talitos_remove() 2804 static int talitos_probe_irq(struct platform_device *ofdev) in talitos_probe_irq() argument 2806 struct device *dev = &ofdev->dev; in talitos_probe_irq() 2807 struct device_node *np = ofdev->dev.of_node; in talitos_probe_irq() 2858 static int talitos_probe(struct platform_device *ofdev) in talitos_probe() argument 2860 struct device *dev = &ofdev->dev; in talitos_probe() 2861 struct device_node *np = ofdev->dev.of_node; in talitos_probe() 2875 priv->ofdev = ofdev; in talitos_probe() 2946 err = talitos_probe_irq(ofdev); in talitos_probe() [all …]
|
D | talitos.h | 108 struct platform_device *ofdev; member
|
/linux-4.4.14/arch/powerpc/sysdev/qe_lib/ |
D | qe.c | 675 static int qe_resume(struct platform_device *ofdev) in qe_resume() argument 682 static int qe_probe(struct platform_device *ofdev) in qe_probe() argument
|
/linux-4.4.14/drivers/video/fbdev/ |
D | fsl-diu-fb.c | 1621 static int fsl_diu_suspend(struct platform_device *ofdev, pm_message_t state) in fsl_diu_suspend() argument 1625 data = dev_get_drvdata(&ofdev->dev); in fsl_diu_suspend() 1631 static int fsl_diu_resume(struct platform_device *ofdev) in fsl_diu_resume() argument 1636 data = dev_get_drvdata(&ofdev->dev); in fsl_diu_resume()
|
/linux-4.4.14/drivers/scsi/ |
D | mac53c94.c | 489 rc = scsi_add_host(host, &mdev->ofdev.dev); in mac53c94_probe()
|
D | mesh.c | 1963 if (scsi_add_host(mesh_host, &mdev->ofdev.dev)) in mesh_probe()
|
/linux-4.4.14/drivers/net/ethernet/apple/ |
D | mace.c | 153 SET_NETDEV_DEV(dev, &mdev->ofdev.dev); in mace_probe()
|
D | bmac.c | 1274 SET_NETDEV_DEV(dev, &mdev->ofdev.dev); in bmac_probe()
|