Home
last modified time | relevance | path

Searched refs:ofdev (Results 1 – 99 of 99) sorted by relevance

/linux-4.1.27/drivers/net/can/mscan/
Dmpc5xxx_can.c40 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.1.27/drivers/net/ethernet/ibm/emac/
Dtah.c27 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 …]
Drgmii.c98 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 …]
Dzmii.c86 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 …]
Drgmii.h54 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);
Dzmii.h51 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);
Dtah.h51 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);
Dmal.c520 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 …]
Ddebug.c36 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()
Dcore.c135 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()
2261 struct platform_device *ofdev; member
2300 if (deps[i].ofdev == NULL) in emac_check_deps()
[all …]
Ddebug.h57 printk(KERN_DEBUG #name "%s: " fmt, d->ofdev->dev.of_node->full_name, ## arg)
Dmal.h209 struct platform_device *ofdev; member
Dcore.h172 struct platform_device *ofdev; member
/linux-4.1.27/drivers/mtd/nand/
Ddenali_dt.c42 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 …]
Dfsl_upm.c205 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 …]
Dndfc.c40 struct platform_device *ofdev; member
182 dev_name(&ndfc->ofdev->dev), flash_np->name); in ndfc_chip_init()
201 static int ndfc_probe(struct platform_device *ofdev) in ndfc_probe() argument
210 reg = of_get_property(ofdev->dev.of_node, "reg", &len); in ndfc_probe()
212 dev_err(&ofdev->dev, "unable read reg property (%d)\n", len); in ndfc_probe()
218 dev_err(&ofdev->dev, "invalid CS number (%d)\n", cs); in ndfc_probe()
227 ndfc->ofdev = ofdev; in ndfc_probe()
228 dev_set_drvdata(&ofdev->dev, ndfc); in ndfc_probe()
230 ndfc->ndfcbase = of_iomap(ofdev->dev.of_node, 0); in ndfc_probe()
232 dev_err(&ofdev->dev, "failed to get memory\n"); in ndfc_probe()
[all …]
Dsocrates_nand.c144 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()
171 mtd->dev.parent = &ofdev->dev; in socrates_nand_probe()
172 ppdata.of_node = ofdev->dev.of_node; in socrates_nand_probe()
190 dev_set_drvdata(&ofdev->dev, host); in socrates_nand_probe()
218 static int socrates_nand_remove(struct platform_device *ofdev) in socrates_nand_remove() argument
220 struct socrates_nand_host *host = dev_get_drvdata(&ofdev->dev); in socrates_nand_remove()
Dpasemi_nand.c93 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()
188 static int pasemi_nand_remove(struct platform_device *ofdev) in pasemi_nand_remove() argument
/linux-4.1.27/drivers/macintosh/
Dmacio_asic.c58 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 …]
Dmacio_sysfs.c12 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()
Drack-meter.c378 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()
Dmediabay.c509 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.1.27/drivers/ata/
Dpata_of_platform.c25 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()
Dsata_dwc_460ex.c1182 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 …]
Dsata_fsl.c1451 static int sata_fsl_probe(struct platform_device *ofdev) in sata_fsl_probe() argument
1465 dev_info(&ofdev->dev, "Sata FSL Platform/CSB Driver init\n"); in sata_fsl_probe()
1467 hcr_base = of_iomap(ofdev->dev.of_node, 0); in sata_fsl_probe()
1474 if (!of_device_is_compatible(ofdev->dev.of_node, "fsl,mpc8315-sata")) { in sata_fsl_probe()
1492 irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); in sata_fsl_probe()
1494 dev_err(&ofdev->dev, "invalid irq from platform\n"); in sata_fsl_probe()
1499 if (of_device_is_compatible(ofdev->dev.of_node, "fsl,pq-sata-v2")) in sata_fsl_probe()
1505 host = ata_host_alloc_pinfo(&ofdev->dev, ppi, SATA_FSL_MAX_PORTS); in sata_fsl_probe()
1525 platform_set_drvdata(ofdev, host); in sata_fsl_probe()
1543 device_remove_file(&ofdev->dev, &host_priv->intr_coalescing); in sata_fsl_probe()
[all …]
Dpata_macio.c1123 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.1.27/drivers/tty/serial/
Dof_serial.c57 static int of_platform_serial_setup(struct platform_device *ofdev, in of_platform_serial_setup() argument
62 struct device_node *np = ofdev->dev.of_node; in of_platform_serial_setup()
70 info->clk = clk_get(&ofdev->dev, NULL); in of_platform_serial_setup()
72 dev_warn(&ofdev->dev, in of_platform_serial_setup()
86 dev_warn(&ofdev->dev, "invalid address\n"); in of_platform_serial_setup()
123 dev_warn(&ofdev->dev, "unsupported reg-io-width (%d)\n", in of_platform_serial_setup()
138 port->dev = &ofdev->dev; in of_platform_serial_setup()
161 static int of_platform_serial_probe(struct platform_device *ofdev) in of_platform_serial_probe() argument
169 match = of_match_device(of_platform_serial_table, &ofdev->dev); in of_platform_serial_probe()
173 if (of_find_property(ofdev->dev.of_node, "used-by-rtas", NULL)) in of_platform_serial_probe()
[all …]
Ducc_uart.c1193 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 …]
Dpmac_zilog.c1567 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.1.27/drivers/input/serio/
Dapbps2.c135 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 …]
Dxilinx_ps2.c236 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.1.27/drivers/i2c/busses/
Di2c-cpm.c104 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 …]
Di2c-ibm_iic.c663 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.1.27/drivers/net/ethernet/freescale/fs_enet/
Dmii-fec.c99 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 …]
Dmii-bitbang.c152 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()
Dfs_enet-main.c920 static int fs_enet_probe(struct platform_device *ofdev) in fs_enet_probe() argument
933 match = of_match_device(fs_enet_match, &ofdev->dev); in fs_enet_probe()
942 data = of_get_property(ofdev->dev.of_node, "fsl,cpm-command", &len); in fs_enet_probe()
953 fpi->phy_node = of_parse_phandle(ofdev->dev.of_node, "phy-handle", 0); in fs_enet_probe()
954 if (!fpi->phy_node && of_phy_is_fixed_link(ofdev->dev.of_node)) { in fs_enet_probe()
955 err = of_phy_register_fixed_link(ofdev->dev.of_node); in fs_enet_probe()
962 fpi->phy_node = of_node_get(ofdev->dev.of_node); in fs_enet_probe()
965 if (of_device_is_compatible(ofdev->dev.of_node, "fsl,mpc5125-fec")) { in fs_enet_probe()
966 phy_connection_type = of_get_property(ofdev->dev.of_node, in fs_enet_probe()
976 clk = devm_clk_get(&ofdev->dev, "per"); in fs_enet_probe()
[all …]
Dmac-fcc.c88 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()
Dmac-scc.c99 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()
Dmac-fec.c99 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.1.27/arch/sparc/kernel/
Dleon_pci_grpci1.c510 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 …]
Dleon_pci_grpci2.c683 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 …]
Dleon_pci.c24 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.1.27/drivers/usb/host/
Dfsl-mph-dr-of.c79 struct platform_device *ofdev, in fsl_usb2_device_register() argument
84 const struct resource *res = ofdev->resource; in fsl_usb2_device_register()
85 unsigned int num = ofdev->num_resources; in fsl_usb2_device_register()
94 pdev->dev.parent = &ofdev->dev; in fsl_usb2_device_register()
96 pdev->dev.coherent_dma_mask = ofdev->dev.coherent_dma_mask; in fsl_usb2_device_register()
97 *pdev->dev.dma_mask = *ofdev->dev.dma_mask; in fsl_usb2_device_register()
160 static int fsl_usb2_mph_dr_of_probe(struct platform_device *ofdev) in fsl_usb2_mph_dr_of_probe() argument
162 struct device_node *np = ofdev->dev.of_node; in fsl_usb2_mph_dr_of_probe()
174 match = of_match_device(fsl_usb2_mph_dr_of_match, &ofdev->dev); in fsl_usb2_mph_dr_of_probe()
211 dev_warn(&ofdev->dev, "Could not get controller version\n"); in fsl_usb2_mph_dr_of_probe()
[all …]
Dfhci-hcd.c566 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.1.27/drivers/of/
Ddevice.c54 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()
66 if (!ofdev->dev.parent) in of_device_add()
67 set_dev_node(&ofdev->dev, of_node_to_nid(ofdev->dev.of_node)); in of_device_add()
69 return device_add(&ofdev->dev); in of_device_add()
160 void of_device_unregister(struct platform_device *ofdev) in of_device_unregister() argument
162 device_unregister(&ofdev->dev); in of_device_unregister()
/linux-4.1.27/drivers/gpio/
Dgpio-grgpio.c342 static int grgpio_probe(struct platform_device *ofdev) in grgpio_probe() argument
344 struct device_node *np = ofdev->dev.of_node; in grgpio_probe()
356 priv = devm_kzalloc(&ofdev->dev, sizeof(*priv), GFP_KERNEL); in grgpio_probe()
360 res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); in grgpio_probe()
361 regs = devm_ioremap_resource(&ofdev->dev, res); in grgpio_probe()
366 err = bgpio_init(bgc, &ofdev->dev, 4, regs + GRGPIO_DATA, in grgpio_probe()
370 dev_err(&ofdev->dev, "bgpio_init() failed\n"); in grgpio_probe()
376 priv->dev = &ofdev->dev; in grgpio_probe()
388 dev_dbg(&ofdev->dev, in grgpio_probe()
401 dev_err(&ofdev->dev, in grgpio_probe()
[all …]
Dgpio-mpc5200.c151 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.1.27/arch/powerpc/include/asm/
Dmacio.h41 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.1.27/sound/aoa/soundbus/
Dcore.c22 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()
172 !dev->ofdev.dev.of_node || in soundbus_add_one()
179 dev_set_name(&dev->ofdev.dev, "soundbus:%x", ++devcount); in soundbus_add_one()
180 dev->ofdev.dev.bus = &soundbus_bus_type; in soundbus_add_one()
181 return of_device_register(&dev->ofdev); in soundbus_add_one()
187 of_device_unregister(&dev->ofdev); in soundbus_remove_one()
Dsoundbus.h144 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)
Dsysfs.c12 return sprintf (buf, format_string, mdev->ofdev.dev.of_node->field); \
19 struct platform_device *of = &sdev->ofdev; in modalias_show()
/linux-4.1.27/sound/aoa/soundbus/i2sbus/
Dcore.c76 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 …]
Dcontrol.c45 np = i2sdev->sound.ofdev.dev.of_node; in i2sbus_control_add_dev()
Dpcm.c991 &dev->ofdev.dev; in i2sbus_attach_codec()
1008 &dev->ofdev.dev; in i2sbus_attach_codec()
/linux-4.1.27/drivers/pcmcia/
Delectra_cf.c49 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()
289 cf->socket.dev.parent = &ofdev->dev; in electra_cf_probe()
323 device_init_wakeup(&ofdev->dev, 0); in electra_cf_probe()
329 static int electra_cf_remove(struct platform_device *ofdev) in electra_cf_remove() argument
331 struct device *device = &ofdev->dev; in electra_cf_remove()
/linux-4.1.27/arch/powerpc/platforms/83xx/
Dsuspend.c325 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.1.27/arch/powerpc/sysdev/
Dfsl_pmc.c63 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()
Dfsl_msi.c329 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.1.27/drivers/net/ethernet/xilinx/
Dxilinx_emaclite.c1056 static bool get_bool(struct platform_device *ofdev, const char *s) in get_bool() argument
1058 u32 *p = (u32 *)of_get_property(ofdev->dev.of_node, s, NULL); in get_bool()
1063 dev_warn(&ofdev->dev, "Parameter %s not found," in get_bool()
1085 static int xemaclite_of_probe(struct platform_device *ofdev) in xemaclite_of_probe() argument
1090 struct device *dev = &ofdev->dev; in xemaclite_of_probe()
1103 SET_NETDEV_DEV(ndev, &ofdev->dev); in xemaclite_of_probe()
1109 res = platform_get_resource(ofdev, IORESOURCE_IRQ, 0); in xemaclite_of_probe()
1118 res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); in xemaclite_of_probe()
1119 lp->base_addr = devm_ioremap_resource(&ofdev->dev, res); in xemaclite_of_probe()
1131 lp->tx_ping_pong = get_bool(ofdev, "xlnx,tx-ping-pong"); in xemaclite_of_probe()
[all …]
/linux-4.1.27/arch/powerpc/platforms/82xx/
Dep8248e.c114 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.1.27/arch/powerpc/platforms/52xx/
Dmpc52xx_gpt.c723 static int mpc52xx_gpt_probe(struct platform_device *ofdev) in mpc52xx_gpt_probe() argument
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()
740 dev_set_drvdata(&ofdev->dev, gpt); in mpc52xx_gpt_probe()
742 mpc52xx_gpt_gpio_setup(gpt, ofdev->dev.of_node); in mpc52xx_gpt_probe()
743 mpc52xx_gpt_irq_setup(gpt, ofdev->dev.of_node); in mpc52xx_gpt_probe()
750 if (of_get_property(ofdev->dev.of_node, "fsl,has-wdt", NULL) || in mpc52xx_gpt_probe()
751 of_get_property(ofdev->dev.of_node, "has-wdt", NULL)) { in mpc52xx_gpt_probe()
755 on_boot_wdt = of_get_property(ofdev->dev.of_node, in mpc52xx_gpt_probe()
[all …]
/linux-4.1.27/drivers/spi/
Dspi-fsl-lib.c136 int of_mpc8xxx_spi_probe(struct platform_device *ofdev) in of_mpc8xxx_spi_probe() argument
138 struct device *dev = &ofdev->dev; in of_mpc8xxx_spi_probe()
139 struct device_node *np = ofdev->dev.of_node; in of_mpc8xxx_spi_probe()
145 pinfo = devm_kzalloc(&ofdev->dev, sizeof(*pinfo), GFP_KERNEL); in of_mpc8xxx_spi_probe()
Dspi-fsl-spi.c821 static int of_fsl_spi_probe(struct platform_device *ofdev) in of_fsl_spi_probe() argument
823 struct device *dev = &ofdev->dev; in of_fsl_spi_probe()
824 struct device_node *np = ofdev->dev.of_node; in of_fsl_spi_probe()
830 ret = of_mpc8xxx_spi_probe(ofdev); in of_fsl_spi_probe()
834 type = fsl_spi_get_type(&ofdev->dev); in of_fsl_spi_probe()
865 static int of_fsl_spi_remove(struct platform_device *ofdev) in of_fsl_spi_remove() argument
867 struct spi_master *master = platform_get_drvdata(ofdev); in of_fsl_spi_remove()
871 ret = mpc8xxx_spi_remove(&ofdev->dev); in of_fsl_spi_remove()
875 of_fsl_spi_free_chipselects(&ofdev->dev); in of_fsl_spi_remove()
Dspi-fsl-lib.h123 extern int of_mpc8xxx_spi_probe(struct platform_device *ofdev);
Dspi-fsl-espi.c767 static int of_fsl_espi_probe(struct platform_device *ofdev) in of_fsl_espi_probe() argument
769 struct device *dev = &ofdev->dev; in of_fsl_espi_probe()
770 struct device_node *np = ofdev->dev.of_node; in of_fsl_espi_probe()
776 ret = of_mpc8xxx_spi_probe(ofdev); in of_fsl_espi_probe()
/linux-4.1.27/drivers/watchdog/
Dmpc8xxx_wdt.c152 static int mpc8xxx_wdt_probe(struct platform_device *ofdev) in mpc8xxx_wdt_probe() argument
156 struct device_node *np = ofdev->dev.of_node; in mpc8xxx_wdt_probe()
162 match = of_match_device(mpc8xxx_wdt_match, &ofdev->dev); in mpc8xxx_wdt_probe()
211 static int mpc8xxx_wdt_remove(struct platform_device *ofdev) in mpc8xxx_wdt_remove() argument
/linux-4.1.27/drivers/net/can/
Dgrcan.c1553 static void grcan_sanitize_module_config(struct platform_device *ofdev) in grcan_sanitize_module_config() argument
1555 grcan_sanitize_enable0(ofdev); in grcan_sanitize_module_config()
1556 grcan_sanitize_enable1(ofdev); in grcan_sanitize_module_config()
1557 grcan_sanitize_select(ofdev); in grcan_sanitize_module_config()
1558 grcan_sanitize_txsize(ofdev); in grcan_sanitize_module_config()
1559 grcan_sanitize_rxsize(ofdev); in grcan_sanitize_module_config()
1584 static int grcan_setup_netdev(struct platform_device *ofdev, in grcan_setup_netdev() argument
1622 dev_dbg(&ofdev->dev, "Hardware supports triple-sampling\n"); in grcan_setup_netdev()
1639 SET_NETDEV_DEV(dev, &ofdev->dev); in grcan_setup_netdev()
1640 dev_info(&ofdev->dev, "regs=0x%p, irq=%d, clock=%d\n", in grcan_setup_netdev()
[all …]
/linux-4.1.27/drivers/net/wireless/orinoco/
Dairport.c38 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.1.27/drivers/ide/
Dpmac.c1149 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.1.27/include/linux/
Dof_device.h33 extern int of_device_register(struct platform_device *ofdev);
34 extern void of_device_unregister(struct platform_device *ofdev);
/linux-4.1.27/drivers/char/hw_random/
Dpasemi-rng.c98 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.1.27/arch/powerpc/kernel/
Dibmebus.c387 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.1.27/arch/powerpc/platforms/pasemi/
Dgpio_mdio.c220 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.1.27/drivers/dma/
Dfsl_raid.c632 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.1.27/arch/sparc/include/asm/
Dleon_pci.h19 void leon_pci_init(struct platform_device *ofdev,
/linux-4.1.27/drivers/dma/ppc4xx/
Dadma.c3886 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.1.27/drivers/usb/gadget/udc/
Dfsl_qe_udc.c2339 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()
2465 static int qe_udc_probe(struct platform_device *ofdev) in qe_udc_probe() argument
2469 struct device_node *np = ofdev->dev.of_node; in qe_udc_probe()
2475 match = of_match_device(qe_udc_match, &ofdev->dev); in qe_udc_probe()
2484 udc = qe_udc_config(ofdev); in qe_udc_probe()
2486 dev_err(&ofdev->dev, "failed to initialize\n"); in qe_udc_probe()
2515 udc->gadget.dev.parent = &ofdev->dev; in qe_udc_probe()
[all …]
/linux-4.1.27/sound/aoa/fabrics/
Dlayout.c1003 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()
1126 struct layout_dev *ldev = dev_get_drvdata(&sdev->ofdev.dev); in aoa_fabric_layout_suspend()
1136 struct layout_dev *ldev = dev_get_drvdata(&sdev->ofdev.dev); in aoa_fabric_layout_resume()
/linux-4.1.27/drivers/crypto/amcc/
Dcrypto4xx_core.c1158 static int crypto4xx_probe(struct platform_device *ofdev) in crypto4xx_probe() argument
1162 struct device *dev = &ofdev->dev; in crypto4xx_probe()
1165 rc = of_address_to_resource(ofdev->dev.of_node, 0, &res); in crypto4xx_probe()
1196 core_dev->ofdev = ofdev; in crypto4xx_probe()
1222 core_dev->irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); in crypto4xx_probe()
1228 core_dev->dev->ce_base = of_iomap(ofdev->dev.of_node, 0); in crypto4xx_probe()
1266 static int crypto4xx_remove(struct platform_device *ofdev) in crypto4xx_remove() argument
1268 struct device *dev = &ofdev->dev; in crypto4xx_remove()
Dcrypto4xx_core.h107 struct platform_device *ofdev; member
/linux-4.1.27/drivers/net/ethernet/ibm/ehea/
Dehea_main.c2910 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 …]
Dehea.h394 struct platform_device *ofdev; member
446 struct platform_device ofdev; /* Open Firmware Device */ member
/linux-4.1.27/drivers/net/ethernet/aeroflex/
Dgreth.c1381 static int greth_of_probe(struct platform_device *ofdev) in greth_of_probe() argument
1399 greth->dev = &ofdev->dev; in greth_of_probe()
1408 greth->regs = of_ioremap(&ofdev->resource[0], 0, in greth_of_probe()
1409 resource_size(&ofdev->resource[0]), in greth_of_probe()
1420 greth->irq = ofdev->archdata.irqs[0]; in greth_of_probe()
1495 addr = of_get_property(ofdev->dev.of_node, "local-mac-address", in greth_of_probe()
1563 of_iounmap(&ofdev->resource[0], greth->regs, resource_size(&ofdev->resource[0])); in greth_of_probe()
/linux-4.1.27/drivers/block/
Dswim3.c211 #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.1.27/drivers/video/fbdev/mb862xx/
Dmb862xxfbdrv.c671 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.1.27/drivers/tty/serial/cpm_uart/
Dcpm_uart_core.c1409 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.1.27/drivers/net/ethernet/freescale/
Dgianfar.c129 static int gfar_probe(struct platform_device *ofdev);
130 static int gfar_remove(struct platform_device *ofdev);
772 static int gfar_of_init(struct platform_device *ofdev, struct net_device **pdev) in gfar_of_init() argument
780 struct device_node *np = ofdev->dev.of_node; in gfar_of_init()
807 dev_err(&ofdev->dev, "Invalid # of int groups(%d)\n", in gfar_of_init()
1162 struct device *dev = &priv->ofdev->dev; in gfar_detect_errata()
1353 static int gfar_probe(struct platform_device *ofdev) in gfar_probe() argument
1359 err = gfar_of_init(ofdev, &dev); in gfar_probe()
1366 priv->ofdev = ofdev; in gfar_probe()
1367 priv->dev = &ofdev->dev; in gfar_probe()
[all …]
Ducc_geth.c3557 static int ucc_geth_suspend(struct platform_device *ofdev, pm_message_t state) in ucc_geth_suspend() argument
3559 struct net_device *ndev = platform_get_drvdata(ofdev); in ucc_geth_suspend()
3585 static int ucc_geth_resume(struct platform_device *ofdev) in ucc_geth_resume() argument
3587 struct net_device *ndev = platform_get_drvdata(ofdev); in ucc_geth_resume()
3687 static int ucc_geth_probe(struct platform_device* ofdev) in ucc_geth_probe() argument
3689 struct device *device = &ofdev->dev; in ucc_geth_probe()
3690 struct device_node *np = ofdev->dev.of_node; in ucc_geth_probe()
3922 static int ucc_geth_remove(struct platform_device* ofdev) in ucc_geth_remove() argument
3924 struct net_device *dev = platform_get_drvdata(ofdev); in ucc_geth_remove()
Dgianfar.h1155 struct platform_device *ofdev; member
/linux-4.1.27/drivers/crypto/
Dtalitos.c2456 static int talitos_remove(struct platform_device *ofdev) in talitos_remove() argument
2458 struct device *dev = &ofdev->dev; in talitos_remove()
2580 static int talitos_probe_irq(struct platform_device *ofdev) in talitos_probe_irq() argument
2582 struct device *dev = &ofdev->dev; in talitos_probe_irq()
2583 struct device_node *np = ofdev->dev.of_node; in talitos_probe_irq()
2628 static int talitos_probe(struct platform_device *ofdev) in talitos_probe() argument
2630 struct device *dev = &ofdev->dev; in talitos_probe()
2631 struct device_node *np = ofdev->dev.of_node; in talitos_probe()
2644 priv->ofdev = ofdev; in talitos_probe()
2648 err = talitos_probe_irq(ofdev); in talitos_probe()
[all …]
Dtalitos.h98 struct platform_device *ofdev; member
/linux-4.1.27/drivers/infiniband/hw/ehca/
Dehca_main.c295 shca->ofdev->dev.of_node->full_name); in ehca_sense_attributes()
296 loc_code = of_get_property(shca->ofdev->dev.of_node, "ibm,loc-code", in ehca_sense_attributes()
467 shca->ib_device.dma_device = &shca->ofdev->dev; in ehca_init_device()
753 shca->ofdev = dev; in ehca_probe()
Dehca_classes.h115 struct platform_device *ofdev; member
/linux-4.1.27/arch/powerpc/sysdev/qe_lib/
Dqe.c675 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.1.27/drivers/video/fbdev/
Dfsl-diu-fb.c1618 static int fsl_diu_suspend(struct platform_device *ofdev, pm_message_t state) in fsl_diu_suspend() argument
1622 data = dev_get_drvdata(&ofdev->dev); in fsl_diu_suspend()
1628 static int fsl_diu_resume(struct platform_device *ofdev) in fsl_diu_resume() argument
1632 data = dev_get_drvdata(&ofdev->dev); in fsl_diu_resume()
/linux-4.1.27/drivers/scsi/
Dmac53c94.c490 rc = scsi_add_host(host, &mdev->ofdev.dev); in mac53c94_probe()
Dmesh.c1963 if (scsi_add_host(mesh_host, &mdev->ofdev.dev)) in mesh_probe()
/linux-4.1.27/drivers/net/ethernet/apple/
Dmace.c153 SET_NETDEV_DEV(dev, &mdev->ofdev.dev); in mace_probe()
Dbmac.c1274 SET_NETDEV_DEV(dev, &mdev->ofdev.dev); in bmac_probe()