/linux-4.4.14/drivers/scsi/sym53c8xx_2/ |
D | sym_hipd.c | 54 static void sym_int_ma (struct sym_hcb *np); 56 static struct sym_ccb *sym_alloc_ccb(struct sym_hcb *np); 57 static struct sym_ccb *sym_ccb_from_dsa(struct sym_hcb *np, u32 dsa); 58 static void sym_alloc_lcb_tags (struct sym_hcb *np, u_char tn, u_char ln); 59 static void sym_complete_error (struct sym_hcb *np, struct sym_ccb *cp); 60 static void sym_complete_ok (struct sym_hcb *np, struct sym_ccb *cp); 61 static int sym_compute_residual(struct sym_hcb *np, struct sym_ccb *cp); 81 static void sym_print_nego_msg(struct sym_hcb *np, int target, char *label, u_char *msg) in sym_print_nego_msg() argument 83 struct sym_tcb *tp = &np->target[target]; in sym_print_nego_msg() 133 static void sym_chip_reset (struct sym_hcb *np) in sym_chip_reset() argument [all …]
|
D | sym_nvram.c | 50 void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram) in sym_nvram_setup_host() argument 59 np->rv_scntl0 &= ~0x0a; in sym_nvram_setup_host() 60 np->myaddr = nvram->data.Symbios.host_id & 0x0f; in sym_nvram_setup_host() 62 np->verbose += 1; in sym_nvram_setup_host() 66 np->usrflags |= SYM_AVOID_BUS_RESET; in sym_nvram_setup_host() 69 np->myaddr = nvram->data.Tekram.host_id & 0x0f; in sym_nvram_setup_host() 74 np->myaddr = nvram->data.parisc.host_id; in sym_nvram_setup_host() 76 np->minsync = nvram->data.parisc.factor; in sym_nvram_setup_host() 78 np->maxwide = nvram->data.parisc.width; in sym_nvram_setup_host() 80 case 0: np->scsi_mode = SMODE_SE; break; in sym_nvram_setup_host() [all …]
|
D | sym_fw.c | 109 struct sym_hcb *np = sym_get_hcb(shost); in sym_fw1_patch() local 113 scripta0 = (struct sym_fw1a_scr *) np->scripta0; in sym_fw1_patch() 114 scriptb0 = (struct sym_fw1b_scr *) np->scriptb0; in sym_fw1_patch() 119 if (!(np->features & FE_LED0)) { in sym_fw1_patch() 139 scriptb0->startpos[0] = cpu_to_scr(np->squeue_ba); in sym_fw1_patch() 140 scriptb0->done_pos[0] = cpu_to_scr(np->dqueue_ba); in sym_fw1_patch() 141 scriptb0->targtbl[0] = cpu_to_scr(np->targtbl_ba); in sym_fw1_patch() 153 struct sym_hcb *np = sym_data->ncb; in sym_fw2_patch() local 157 scripta0 = (struct sym_fw2a_scr *) np->scripta0; in sym_fw2_patch() 158 scriptb0 = (struct sym_fw2b_scr *) np->scriptb0; in sym_fw2_patch() [all …]
|
D | sym_hipd.h | 88 #define sym_verbose (np->verbose) 197 #define INB_OFF(np, o) ioread8(np->s.ioaddr + (o)) argument 198 #define INW_OFF(np, o) ioread16(np->s.ioaddr + (o)) argument 199 #define INL_OFF(np, o) ioread32(np->s.ioaddr + (o)) argument 201 #define OUTB_OFF(np, o, val) iowrite8((val), np->s.ioaddr + (o)) argument 202 #define OUTW_OFF(np, o, val) iowrite16((val), np->s.ioaddr + (o)) argument 203 #define OUTL_OFF(np, o, val) iowrite32((val), np->s.ioaddr + (o)) argument 205 #define INB(np, r) INB_OFF(np, offsetof(struct sym_reg, r)) argument 206 #define INW(np, r) INW_OFF(np, offsetof(struct sym_reg, r)) argument 207 #define INL(np, r) INL_OFF(np, offsetof(struct sym_reg, r)) argument [all …]
|
D | sym_glue.c | 140 void sym_xpt_done(struct sym_hcb *np, struct scsi_cmnd *cmd) in sym_xpt_done() argument 155 void sym_xpt_async_bus_reset(struct sym_hcb *np) in sym_xpt_async_bus_reset() argument 157 printf_notice("%s: SCSI BUS has been reset.\n", sym_name(np)); in sym_xpt_async_bus_reset() 158 np->s.settle_time = jiffies + sym_driver_setup.settle_delay * HZ; in sym_xpt_async_bus_reset() 159 np->s.settle_time_valid = 1; in sym_xpt_async_bus_reset() 162 sym_name(np), sym_driver_setup.settle_delay); in sym_xpt_async_bus_reset() 187 void sym_set_cam_result_error(struct sym_hcb *np, struct sym_ccb *cp, int resid) in sym_set_cam_result_error() argument 223 sym_clear_tasks(np, DID_ABORT, in sym_set_cam_result_error() 234 sym_reset_scsi_target(np, cmd->device->id); in sym_set_cam_result_error() 258 static int sym_scatter(struct sym_hcb *np, struct sym_ccb *cp, struct scsi_cmnd *cmd) in sym_scatter() argument [all …]
|
/linux-4.4.14/drivers/net/ethernet/ |
D | fealnx.c | 483 struct netdev_private *np; in fealnx_init_one() local 549 np = netdev_priv(dev); in fealnx_init_one() 550 np->mem = ioaddr; in fealnx_init_one() 551 spin_lock_init(&np->lock); in fealnx_init_one() 552 np->pci_dev = pdev; in fealnx_init_one() 553 np->flags = skel_netdrv_tbl[chip_id].flags; in fealnx_init_one() 555 np->mii.dev = dev; in fealnx_init_one() 556 np->mii.mdio_read = mdio_read; in fealnx_init_one() 557 np->mii.mdio_write = mdio_write; in fealnx_init_one() 558 np->mii.phy_id_mask = 0x1f; in fealnx_init_one() [all …]
|
/linux-4.4.14/drivers/net/ethernet/nvidia/ |
D | forcedeth.c | 964 static bool nv_optimized(struct fe_priv *np) in nv_optimized() argument 966 if (np->desc_ver == DESC_VER_1 || np->desc_ver == DESC_VER_2) in nv_optimized() 1001 struct fe_priv *np = get_nvpriv(dev); in setup_hw_rings() local 1004 if (!nv_optimized(np)) { in setup_hw_rings() 1006 writel(dma_low(np->ring_addr), base + NvRegRxRingPhysAddr); in setup_hw_rings() 1008 …writel(dma_low(np->ring_addr + np->rx_ring_size*sizeof(struct ring_desc)), base + NvRegTxRingPhysA… in setup_hw_rings() 1011 writel(dma_low(np->ring_addr), base + NvRegRxRingPhysAddr); in setup_hw_rings() 1012 writel(dma_high(np->ring_addr), base + NvRegRxRingPhysAddrHigh); in setup_hw_rings() 1015 …writel(dma_low(np->ring_addr + np->rx_ring_size*sizeof(struct ring_desc_ex)), base + NvRegTxRingPh… in setup_hw_rings() 1016 …writel(dma_high(np->ring_addr + np->rx_ring_size*sizeof(struct ring_desc_ex)), base + NvRegTxRingP… in setup_hw_rings() [all …]
|
/linux-4.4.14/drivers/isdn/capi/ |
D | capilib.c | 31 static inline void mq_init(struct capilib_ncci *np) in mq_init() argument 34 np->msgidqueue = NULL; in mq_init() 35 np->msgidlast = NULL; in mq_init() 36 np->nmsg = 0; in mq_init() 37 memset(np->msgidpool, 0, sizeof(np->msgidpool)); in mq_init() 38 np->msgidfree = &np->msgidpool[0]; in mq_init() 39 for (i = 1; i < np->winsize; i++) { in mq_init() 40 np->msgidpool[i].next = np->msgidfree; in mq_init() 41 np->msgidfree = &np->msgidpool[i]; in mq_init() 45 static inline int mq_enqueue(struct capilib_ncci *np, u16 msgid) in mq_enqueue() argument [all …]
|
/linux-4.4.14/drivers/char/hw_random/ |
D | n2-drv.c | 146 static unsigned long n2rng_control_settle_v2(struct n2rng *np, int unit) in n2rng_control_settle_v2() argument 148 unsigned long ra = __pa(&np->scratch_control[0]); in n2rng_control_settle_v2() 153 static unsigned long n2rng_write_ctl_one(struct n2rng *np, int unit, in n2rng_write_ctl_one() argument 161 if (np->hvapi_major == 1) { in n2rng_write_ctl_one() 168 hv_err = n2rng_control_settle_v2(np, unit); in n2rng_write_ctl_one() 200 static unsigned long n2rng_read_diag_data_one(struct n2rng *np, in n2rng_read_diag_data_one() argument 208 if (np->hvapi_major == 1) { in n2rng_read_diag_data_one() 219 static int n2rng_generic_read_diag_data(struct n2rng *np, in n2rng_generic_read_diag_data() argument 228 hv_err = n2rng_read_diag_data_one(np, unit, in n2rng_generic_read_diag_data() 248 static int n2rng_generic_write_control(struct n2rng *np, in n2rng_generic_write_control() argument [all …]
|
/linux-4.4.14/drivers/net/ethernet/dec/tulip/ |
D | winbond-840.c | 332 static void free_rxtx_rings(struct netdev_private *np); 336 static void free_ringdesc(struct netdev_private *np); 364 struct netdev_private *np; in w840_probe1() local 383 dev = alloc_etherdev(sizeof(*np)); in w840_probe1() 402 np = netdev_priv(dev); in w840_probe1() 403 np->pci_dev = pdev; in w840_probe1() 404 np->chip_id = chip_idx; in w840_probe1() 405 np->drv_flags = pci_id_tbl[chip_idx].drv_flags; in w840_probe1() 406 spin_lock_init(&np->lock); in w840_probe1() 407 np->mii_if.dev = dev; in w840_probe1() [all …]
|
/linux-4.4.14/drivers/net/ethernet/dlink/ |
D | sundance.c | 455 struct netdev_private *np = netdev_priv(dev); in sundance_reset() local 456 void __iomem *ioaddr = np->base + ASICCtrl; in sundance_reset() 475 struct netdev_private *np = netdev_priv(dev); in sundance_poll_controller() local 477 disable_irq(np->pci_dev->irq); in sundance_poll_controller() 478 intr_handler(np->pci_dev->irq, dev); in sundance_poll_controller() 479 enable_irq(np->pci_dev->irq); in sundance_poll_controller() 503 struct netdev_private *np; in sundance_probe1() local 532 dev = alloc_etherdev(sizeof(*np)); in sundance_probe1() 548 np = netdev_priv(dev); in sundance_probe1() 549 np->base = ioaddr; in sundance_probe1() [all …]
|
D | dl2k.c | 60 static void dl2k_enable_int(struct netdev_private *np) in dl2k_enable_int() argument 62 void __iomem *ioaddr = np->ioaddr; in dl2k_enable_int() 117 struct netdev_private *np; in rio_probe1() local 142 dev = alloc_etherdev (sizeof (*np)); in rio_probe1() 147 np = netdev_priv(dev); in rio_probe1() 153 np->eeprom_addr = ioaddr; in rio_probe1() 161 np->ioaddr = ioaddr; in rio_probe1() 162 np->chip_id = chip_idx; in rio_probe1() 163 np->pdev = pdev; in rio_probe1() 164 spin_lock_init (&np->tx_lock); in rio_probe1() [all …]
|
/linux-4.4.14/drivers/net/ethernet/sun/ |
D | niu.c | 71 #define nr64(reg) readq(np->regs + (reg)) 72 #define nw64(reg, val) writeq((val), np->regs + (reg)) 74 #define nr64_mac(reg) readq(np->mac_regs + (reg)) 75 #define nw64_mac(reg, val) writeq((val), np->mac_regs + (reg)) 77 #define nr64_ipp(reg) readq(np->regs + np->ipp_off + (reg)) 78 #define nw64_ipp(reg, val) writeq((val), np->regs + np->ipp_off + (reg)) 80 #define nr64_pcs(reg) readq(np->regs + np->pcs_off + (reg)) 81 #define nw64_pcs(reg, val) writeq((val), np->regs + np->pcs_off + (reg)) 83 #define nr64_xpcs(reg) readq(np->regs + np->xpcs_off + (reg)) 84 #define nw64_xpcs(reg, val) writeq((val), np->regs + np->xpcs_off + (reg)) [all …]
|
/linux-4.4.14/drivers/net/ethernet/natsemi/ |
D | natsemi.c | 670 struct netdev_private *np = netdev_priv(to_net_dev(dev)); in natsemi_show_dspcfg_workaround() local 672 return sprintf(buf, "%s\n", np->dspcfg_workaround ? "on" : "off"); in natsemi_show_dspcfg_workaround() 679 struct netdev_private *np = netdev_priv(to_net_dev(dev)); in natsemi_set_dspcfg_workaround() local 692 spin_lock_irqsave(&np->lock, flags); in natsemi_set_dspcfg_workaround() 694 np->dspcfg_workaround = new_setting; in natsemi_set_dspcfg_workaround() 696 spin_unlock_irqrestore(&np->lock, flags); in natsemi_set_dspcfg_workaround() 703 struct netdev_private *np = netdev_priv(dev); in ns_ioaddr() local 705 return np->ioaddr; in ns_ioaddr() 722 struct netdev_private *np = netdev_priv(dev); in move_int_phy() local 738 if (target == np->phy_addr_external) in move_int_phy() [all …]
|
/linux-4.4.14/drivers/net/ethernet/adaptec/ |
D | starfire.c | 600 struct netdev_private *np = netdev_priv(dev); in netdev_vlan_rx_add_vid() local 602 spin_lock(&np->lock); in netdev_vlan_rx_add_vid() 605 set_bit(vid, np->active_vlans); in netdev_vlan_rx_add_vid() 607 spin_unlock(&np->lock); in netdev_vlan_rx_add_vid() 615 struct netdev_private *np = netdev_priv(dev); in netdev_vlan_rx_kill_vid() local 617 spin_lock(&np->lock); in netdev_vlan_rx_kill_vid() 620 clear_bit(vid, np->active_vlans); in netdev_vlan_rx_kill_vid() 622 spin_unlock(&np->lock); in netdev_vlan_rx_kill_vid() 650 struct netdev_private *np; in starfire_init_one() local 675 dev = alloc_etherdev(sizeof(*np)); in starfire_init_one() [all …]
|
/linux-4.4.14/drivers/of/ |
D | unittest.c | 49 struct device_node *np; in of_unittest_find_node_by_name() local 52 np = of_find_node_by_path("/testcase-data"); in of_unittest_find_node_by_name() 53 unittest(np && !strcmp("/testcase-data", np->full_name), in of_unittest_find_node_by_name() 55 of_node_put(np); in of_unittest_find_node_by_name() 58 np = of_find_node_by_path("/testcase-data/"); in of_unittest_find_node_by_name() 59 unittest(!np, "trailing '/' on /testcase-data/ should fail\n"); in of_unittest_find_node_by_name() 61 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); in of_unittest_find_node_by_name() 62 unittest(np && !strcmp("/testcase-data/phandle-tests/consumer-a", np->full_name), in of_unittest_find_node_by_name() 64 of_node_put(np); in of_unittest_find_node_by_name() 66 np = of_find_node_by_path("testcase-alias"); in of_unittest_find_node_by_name() [all …]
|
D | base.c | 57 int of_n_addr_cells(struct device_node *np) in of_n_addr_cells() argument 62 if (np->parent) in of_n_addr_cells() 63 np = np->parent; in of_n_addr_cells() 64 ip = of_get_property(np, "#address-cells", NULL); in of_n_addr_cells() 67 } while (np->parent); in of_n_addr_cells() 73 int of_n_size_cells(struct device_node *np) in of_n_size_cells() argument 78 if (np->parent) in of_n_size_cells() 79 np = np->parent; in of_n_size_cells() 80 ip = of_get_property(np, "#size-cells", NULL); in of_n_size_cells() 83 } while (np->parent); in of_n_size_cells() [all …]
|
D | dynamic.c | 44 void __of_detach_node_sysfs(struct device_node *np) in __of_detach_node_sysfs() argument 51 BUG_ON(!of_node_is_initialized(np)); in __of_detach_node_sysfs() 56 if (of_node_is_attached(np)) { in __of_detach_node_sysfs() 57 for_each_property_of_node(np, pp) in __of_detach_node_sysfs() 58 sysfs_remove_bin_file(&np->kobj, &pp->attr); in __of_detach_node_sysfs() 59 kobject_del(&np->kobj); in __of_detach_node_sysfs() 63 of_node_put(np); in __of_detach_node_sysfs() 202 int of_property_notify(int action, struct device_node *np, in of_property_notify() argument 208 if (!of_node_is_attached(np)) in of_property_notify() 211 pr.dn = np; in of_property_notify() [all …]
|
D | of_private.h | 29 struct device_node *np; member 45 extern int of_property_notify(int action, struct device_node *np, 49 static inline int of_property_notify(int action, struct device_node *np, in of_property_notify() argument 64 __printf(2, 3) struct device_node *__of_node_dup(const struct device_node *np, const char *fmt, ...… 66 extern const void *__of_get_property(const struct device_node *np, 68 extern int __of_add_property(struct device_node *np, struct property *prop); 69 extern int __of_add_property_sysfs(struct device_node *np, 71 extern int __of_remove_property(struct device_node *np, struct property *prop); 72 extern void __of_remove_property_sysfs(struct device_node *np, 74 extern int __of_update_property(struct device_node *np, [all …]
|
D | of_mtd.c | 35 int of_get_nand_ecc_mode(struct device_node *np) in of_get_nand_ecc_mode() argument 40 err = of_property_read_string(np, "nand-ecc-mode", &pm); in of_get_nand_ecc_mode() 59 int of_get_nand_ecc_step_size(struct device_node *np) in of_get_nand_ecc_step_size() argument 64 ret = of_property_read_u32(np, "nand-ecc-step-size", &val); in of_get_nand_ecc_step_size() 76 int of_get_nand_ecc_strength(struct device_node *np) in of_get_nand_ecc_strength() argument 81 ret = of_property_read_u32(np, "nand-ecc-strength", &val); in of_get_nand_ecc_strength() 92 int of_get_nand_bus_width(struct device_node *np) in of_get_nand_bus_width() argument 96 if (of_property_read_u32(np, "nand-bus-width", &val)) in of_get_nand_bus_width() 115 bool of_get_nand_on_flash_bbt(struct device_node *np) in of_get_nand_on_flash_bbt() argument 117 return of_property_read_bool(np, "nand-on-flash-bbt"); in of_get_nand_on_flash_bbt()
|
D | of_net.c | 22 int of_get_phy_mode(struct device_node *np) in of_get_phy_mode() argument 27 err = of_property_read_string(np, "phy-mode", &pm); in of_get_phy_mode() 29 err = of_property_read_string(np, "phy-connection-type", &pm); in of_get_phy_mode() 41 static const void *of_get_mac_addr(struct device_node *np, const char *name) in of_get_mac_addr() argument 43 struct property *pp = of_find_property(np, name, NULL); in of_get_mac_addr() 68 const void *of_get_mac_address(struct device_node *np) in of_get_mac_address() argument 72 addr = of_get_mac_addr(np, "mac-address"); in of_get_mac_address() 76 addr = of_get_mac_addr(np, "local-mac-address"); in of_get_mac_address() 80 return of_get_mac_addr(np, "address"); in of_get_mac_address()
|
D | of_mdio.c | 95 int of_mdio_parse_addr(struct device *dev, const struct device_node *np) in of_mdio_parse_addr() argument 100 ret = of_property_read_u32(np, "reg", &addr); in of_mdio_parse_addr() 102 dev_err(dev, "%s has invalid PHY address\n", np->full_name); in of_mdio_parse_addr() 109 np->full_name, addr); in of_mdio_parse_addr() 125 int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np) in of_mdiobus_register() argument 141 mdio->dev.of_node = np; in of_mdiobus_register() 149 for_each_available_child_of_node(np, child) { in of_mdiobus_register() 165 for_each_available_child_of_node(np, child) { in of_mdiobus_register() 286 bool of_phy_is_fixed_link(struct device_node *np) in of_phy_is_fixed_link() argument 293 dn = of_get_child_by_name(np, "fixed-link"); in of_phy_is_fixed_link() [all …]
|
D | irq.c | 110 ipar = of_node_get(out_irq->np); in of_irq_parse_raw() 265 out_irq->np = newpar; in of_irq_parse_raw() 343 out_irq->np = p; in of_irq_parse_one() 407 domain = irq_find_host(oirq.np); in of_irq_get() 489 struct device_node *np, *parent = NULL; in of_irq_init() local 496 for_each_matching_node(np, matches) { in of_irq_init() 497 if (!of_find_property(np, "interrupt-controller", NULL) || in of_irq_init() 498 !of_device_is_available(np)) in of_irq_init() 506 of_node_put(np); in of_irq_init() 510 desc->dev = of_node_get(np); in of_irq_init() [all …]
|
D | platform.c | 46 struct platform_device *of_find_device_by_node(struct device_node *np) in of_find_device_by_node() argument 50 dev = bus_find_device(&platform_bus_type, NULL, np, of_dev_node_match); in of_find_device_by_node() 105 struct platform_device *of_device_alloc(struct device_node *np, in of_device_alloc() argument 118 while (of_address_to_resource(np, num_reg, &temp_res) == 0) in of_device_alloc() 120 num_irq = of_irq_count(np); in of_device_alloc() 133 rc = of_address_to_resource(np, i, res); in of_device_alloc() 136 if (of_irq_to_resource_table(np, res, num_irq) != num_irq) in of_device_alloc() 138 np->name); in of_device_alloc() 141 dev->dev.of_node = of_node_get(np); in of_device_alloc() 169 struct device_node *np, in of_platform_device_create_pdata() argument [all …]
|
/linux-4.4.14/drivers/scsi/ |
D | ncr53c8xx.c | 513 #define _m_calloc_dma(np, s, n) __m_calloc_dma(np->dev, s, n) argument 514 #define _m_free_dma(np, p, s, n) __m_free_dma(np->dev, p, s, n) argument 515 #define m_calloc_dma(s, n) _m_calloc_dma(np, s, n) 516 #define m_free_dma(p, s, n) _m_free_dma(np, p, s, n) 517 #define _vtobus(np, p) __vtobus(np->dev, p) argument 518 #define vtobus(p) _vtobus(np, p) 552 #define unmap_scsi_data(np, cmd) __unmap_scsi_data(np->dev, cmd) argument 553 #define map_scsi_sg_data(np, cmd) __map_scsi_sg_data(np->dev, cmd) argument 576 #define bootverbose (np->verbose) 1016 #define bootverbose (np->verbose) [all …]
|
/linux-4.4.14/net/core/ |
D | netpoll.c | 65 #define np_info(np, fmt, ...) \ argument 66 pr_info("%s: " fmt, np->name, ##__VA_ARGS__) 67 #define np_err(np, fmt, ...) \ argument 68 pr_err("%s: " fmt, np->name, ##__VA_ARGS__) 69 #define np_notice(np, fmt, ...) \ argument 70 pr_notice("%s: " fmt, np->name, ##__VA_ARGS__) 285 static struct sk_buff *find_skb(struct netpoll *np, int len, int reserve) in find_skb() argument 300 netpoll_poll_dev(np->dev); in find_skb() 323 void netpoll_send_skb_on_dev(struct netpoll *np, struct sk_buff *skb, in netpoll_send_skb_on_dev() argument 333 npinfo = rcu_dereference_bh(np->dev->npinfo); in netpoll_send_skb_on_dev() [all …]
|
/linux-4.4.14/drivers/video/ |
D | of_display_timing.c | 26 static int parse_timing_property(const struct device_node *np, const char *name, in parse_timing_property() argument 32 prop = of_find_property(np, name, &length); in parse_timing_property() 35 of_node_full_name(np), name); in parse_timing_property() 41 ret = of_property_read_u32(np, name, &result->typ); in parse_timing_property() 45 ret = of_property_read_u32_array(np, name, &result->min, cells); in parse_timing_property() 48 of_node_full_name(np), name); in parse_timing_property() 59 static int of_parse_display_timing(const struct device_node *np, in of_parse_display_timing() argument 67 ret |= parse_timing_property(np, "hback-porch", &dt->hback_porch); in of_parse_display_timing() 68 ret |= parse_timing_property(np, "hfront-porch", &dt->hfront_porch); in of_parse_display_timing() 69 ret |= parse_timing_property(np, "hactive", &dt->hactive); in of_parse_display_timing() [all …]
|
/linux-4.4.14/arch/powerpc/sysdev/ |
D | mv64x60_dev.c | 34 static int __init mv64x60_mpsc_register_shared_pdev(struct device_node *np) in mv64x60_mpsc_register_shared_pdev() argument 43 ph = of_get_property(np, "mpscrouting", NULL); in mv64x60_mpsc_register_shared_pdev() 53 ph = of_get_property(np, "mpscintr", NULL); in mv64x60_mpsc_register_shared_pdev() 89 static int __init mv64x60_mpsc_device_setup(struct device_node *np, int id) in mv64x60_mpsc_device_setup() argument 101 if (id == 0 && (err = mv64x60_mpsc_register_shared_pdev(np))) in mv64x60_mpsc_device_setup() 106 err = of_address_to_resource(np, 0, &r[0]); in mv64x60_mpsc_device_setup() 110 of_irq_to_resource(np, 0, &r[4]); in mv64x60_mpsc_device_setup() 112 ph = of_get_property(np, "sdma", NULL); in mv64x60_mpsc_device_setup() 123 ph = of_get_property(np, "brg", NULL); in mv64x60_mpsc_device_setup() 133 prop = of_get_property(np, "cell-index", NULL); in mv64x60_mpsc_device_setup() [all …]
|
D | ppc4xx_soc.c | 76 struct device_node *np; in ppc4xx_l2c_probe() local 86 np = of_find_compatible_node(NULL, NULL, "ibm,l2-cache"); in ppc4xx_l2c_probe() 87 if (!np) in ppc4xx_l2c_probe() 91 prop = of_get_property(np, "cache-size", NULL); in ppc4xx_l2c_probe() 93 printk(KERN_ERR "%s: Can't get cache-size!\n", np->full_name); in ppc4xx_l2c_probe() 94 of_node_put(np); in ppc4xx_l2c_probe() 100 dcrreg = of_get_property(np, "dcr-reg", &len); in ppc4xx_l2c_probe() 103 np->full_name); in ppc4xx_l2c_probe() 104 of_node_put(np); in ppc4xx_l2c_probe() 111 irq = irq_of_parse_and_map(np, 0); in ppc4xx_l2c_probe() [all …]
|
D | rtc_cmos_setup.c | 22 struct device_node *np; in add_rtc() local 30 np = of_find_compatible_node(NULL, NULL, "pnpPNP,b00"); in add_rtc() 31 if (!np) in add_rtc() 34 ret = of_address_to_resource(np, 0, &res[0]); in add_rtc() 35 of_node_put(np); in add_rtc() 46 np = of_find_compatible_node(NULL, NULL, "chrp,iic"); in add_rtc() 47 if (!np) in add_rtc() 48 np = of_find_compatible_node(NULL, NULL, "pnpPNP,000"); in add_rtc() 49 if (np) { in add_rtc() 50 of_node_put(np); in add_rtc()
|
D | ppc4xx_cpm.c | 248 static int cpm_get_uint_property(struct device_node *np, in cpm_get_uint_property() argument 252 const unsigned int *prop = of_get_property(np, name, &len); in cpm_get_uint_property() 262 struct device_node *np; in cpm_init() local 271 np = of_find_compatible_node(NULL, NULL, "ibm,cpm"); in cpm_init() 272 if (!np) { in cpm_init() 277 dcr_base = dcr_resource_start(np, 0); in cpm_init() 278 dcr_len = dcr_resource_len(np, 0); in cpm_init() 282 np->full_name); in cpm_init() 287 cpm.dcr_host = dcr_map(np, dcr_base, dcr_len); in cpm_init() 291 np->full_name); in cpm_init() [all …]
|
D | mv64x60_udbg.c | 72 struct device_node *np, *mpscintr, *stdout = NULL; in mv64x60_udbg_init() local 88 for_each_compatible_node(np, NULL, "marvell,mv64360-mpsc") { in mv64x60_udbg_init() 89 if (np == stdout) in mv64x60_udbg_init() 94 if (!np) in mv64x60_udbg_init() 97 block_index = of_get_property(np, "cell-index", NULL); in mv64x60_udbg_init() 112 err = of_address_to_resource(np, 0, &r[0]); in mv64x60_udbg_init() 116 ph = of_get_property(np, "mpscintr", NULL); in mv64x60_udbg_init() 126 of_node_put(np); in mv64x60_udbg_init() 146 of_node_put(np); in mv64x60_udbg_init()
|
D | tsi108_dev.c | 68 struct device_node *np; in tsi108_eth_of_init() local 74 for_each_compatible_node(np, "network", "tsi108-ethernet") { in tsi108_eth_of_init() 85 ret = of_address_to_resource(np, 0, &r[0]); in tsi108_eth_of_init() 92 r[1].start = irq_of_parse_and_map(np, 0); in tsi108_eth_of_init() 93 r[1].end = irq_of_parse_and_map(np, 0); in tsi108_eth_of_init() 107 mac_addr = of_get_mac_address(np); in tsi108_eth_of_init() 111 ph = of_get_property(np, "mdio-handle", NULL); in tsi108_eth_of_init() 118 ph = of_get_property(np, "phy-handle", NULL); in tsi108_eth_of_init() 131 tsi_eth_data.irq_num = irq_of_parse_and_map(np, 0); in tsi108_eth_of_init() 155 of_node_put(np); in tsi108_eth_of_init()
|
D | cpm1.c | 133 struct device_node *np = NULL; in cpm_pic_init() local 140 np = of_find_compatible_node(NULL, NULL, "fsl,cpm1-pic"); in cpm_pic_init() 141 if (np == NULL) in cpm_pic_init() 142 np = of_find_compatible_node(NULL, "cpm-pic", "CPM"); in cpm_pic_init() 143 if (np == NULL) { in cpm_pic_init() 148 ret = of_address_to_resource(np, 0, &res); in cpm_pic_init() 156 sirq = irq_of_parse_and_map(np, 0); in cpm_pic_init() 168 cpm_pic_host = irq_domain_add_linear(np, 64, &cpm_pic_host_ops, NULL); in cpm_pic_init() 176 np = of_find_compatible_node(NULL, NULL, "fsl,cpm1"); in cpm_pic_init() 177 if (np == NULL) in cpm_pic_init() [all …]
|
D | ppc4xx_pci.c | 99 int np = pna + 5; in ppc4xx_parse_dma_ranges() local 113 while ((rlen -= np * 4) >= 0) { in ppc4xx_parse_dma_ranges() 118 ranges += np; in ppc4xx_parse_dma_ranges() 323 static void __init ppc4xx_probe_pci_bridge(struct device_node *np) in ppc4xx_probe_pci_bridge() argument 335 if (!of_device_is_available(np)) { in ppc4xx_probe_pci_bridge() 337 np->full_name); in ppc4xx_probe_pci_bridge() 342 if (of_address_to_resource(np, 0, &rsrc_cfg)) { in ppc4xx_probe_pci_bridge() 344 np->full_name); in ppc4xx_probe_pci_bridge() 348 if (of_address_to_resource(np, 3, &rsrc_reg)) { in ppc4xx_probe_pci_bridge() 350 np->full_name); in ppc4xx_probe_pci_bridge() [all …]
|
D | mpc8xx_pic.c | 131 struct device_node *np; in mpc8xx_pic_init() local 134 np = of_find_compatible_node(NULL, NULL, "fsl,pq1-pic"); in mpc8xx_pic_init() 135 if (np == NULL) in mpc8xx_pic_init() 136 np = of_find_node_by_type(NULL, "mpc8xx-pic"); in mpc8xx_pic_init() 137 if (np == NULL) { in mpc8xx_pic_init() 142 ret = of_address_to_resource(np, 0, &res); in mpc8xx_pic_init() 152 mpc8xx_pic_host = irq_domain_add_linear(np, 64, &mpc8xx_pic_host_ops, NULL); in mpc8xx_pic_init() 161 of_node_put(np); in mpc8xx_pic_init()
|
D | mv64x60_pci.c | 85 struct device_node *np; in mv64x60_sysfs_init() local 89 np = of_find_compatible_node(NULL, NULL, "marvell,mv64360"); in mv64x60_sysfs_init() 90 if (!np) in mv64x60_sysfs_init() 93 prop = of_get_property(np, "hs_reg_valid", NULL); in mv64x60_sysfs_init() 94 of_node_put(np); in mv64x60_sysfs_init() 167 struct device_node *np; in mv64x60_pci_init() local 169 for_each_compatible_node(np, "pci", "marvell,mv64360-pci") in mv64x60_pci_init() 170 mv64x60_add_bridge(np); in mv64x60_pci_init()
|
/linux-4.4.14/drivers/memory/ |
D | of_memory.c | 30 const struct lpddr2_min_tck *of_get_min_tck(struct device_node *np, in of_get_min_tck() argument 40 ret |= of_property_read_u32(np, "tRPab-min-tck", &min->tRPab); in of_get_min_tck() 41 ret |= of_property_read_u32(np, "tRCD-min-tck", &min->tRCD); in of_get_min_tck() 42 ret |= of_property_read_u32(np, "tWR-min-tck", &min->tWR); in of_get_min_tck() 43 ret |= of_property_read_u32(np, "tRASmin-min-tck", &min->tRASmin); in of_get_min_tck() 44 ret |= of_property_read_u32(np, "tRRD-min-tck", &min->tRRD); in of_get_min_tck() 45 ret |= of_property_read_u32(np, "tWTR-min-tck", &min->tWTR); in of_get_min_tck() 46 ret |= of_property_read_u32(np, "tXP-min-tck", &min->tXP); in of_get_min_tck() 47 ret |= of_property_read_u32(np, "tRTP-min-tck", &min->tRTP); in of_get_min_tck() 48 ret |= of_property_read_u32(np, "tCKE-min-tck", &min->tCKE); in of_get_min_tck() [all …]
|
D | pl172.c | 60 const struct device_node *np, const char *name, in pl172_timing_prop() argument 67 if (!of_property_read_u32(np, name, &val)) { in pl172_timing_prop() 86 struct device_node *np, u32 cs) in pl172_setup_static() argument 93 if (!of_property_read_u32(np, "mpmc,memory-width", &cfg)) { in pl172_setup_static() 109 if (of_property_read_bool(np, "mpmc,async-page-mode")) in pl172_setup_static() 112 if (of_property_read_bool(np, "mpmc,cs-active-high")) in pl172_setup_static() 115 if (of_property_read_bool(np, "mpmc,byte-lane-low")) in pl172_setup_static() 118 if (of_property_read_bool(np, "mpmc,extended-wait")) in pl172_setup_static() 122 of_property_read_bool(np, "mpmc,buffer-enable")) in pl172_setup_static() 125 if (of_property_read_bool(np, "mpmc,write-protect")) in pl172_setup_static() [all …]
|
/linux-4.4.14/drivers/clk/at91/ |
D | pmc.h | 59 int of_at91_get_clk_range(struct device_node *np, const char *propname, 62 void of_at91sam9260_clk_slow_setup(struct device_node *np, 65 void of_at91rm9200_clk_main_osc_setup(struct device_node *np, 67 void of_at91sam9x5_clk_main_rc_osc_setup(struct device_node *np, 69 void of_at91rm9200_clk_main_setup(struct device_node *np, 71 void of_at91sam9x5_clk_main_setup(struct device_node *np, 74 void of_at91rm9200_clk_pll_setup(struct device_node *np, 76 void of_at91sam9g45_clk_pll_setup(struct device_node *np, 78 void of_at91sam9g20_clk_pllb_setup(struct device_node *np, 80 void of_sama5d3_clk_pll_setup(struct device_node *np, [all …]
|
D | pmc.c | 45 int of_at91_get_clk_range(struct device_node *np, const char *propname, in of_at91_get_clk_range() argument 51 ret = of_property_read_u32_index(np, propname, 0, &min); in of_at91_get_clk_range() 55 ret = of_property_read_u32_index(np, propname, 1, &max); in of_at91_get_clk_range() 225 static struct at91_pmc *__init at91_pmc_init(struct device_node *np, in at91_pmc_init() argument 245 pmc->irqdomain = irq_domain_add_linear(np, 32, &pmc_irq_ops, pmc); in at91_pmc_init() 389 static void __init of_at91_pmc_setup(struct device_node *np, in of_at91_pmc_setup() argument 396 void __iomem *regbase = of_iomap(np, 0); in of_at91_pmc_setup() 402 virq = irq_of_parse_and_map(np, 0); in of_at91_pmc_setup() 406 pmc = at91_pmc_init(np, regbase, virq, caps); in of_at91_pmc_setup() 409 for_each_child_of_node(np, childnp) { in of_at91_pmc_setup() [all …]
|
D | clk-slow.c | 162 void __init of_at91sam9x5_clk_slow_osc_setup(struct device_node *np, in of_at91sam9x5_clk_slow_osc_setup() argument 167 const char *name = np->name; in of_at91sam9x5_clk_slow_osc_setup() 171 parent_name = of_clk_get_parent_name(np, 0); in of_at91sam9x5_clk_slow_osc_setup() 172 of_property_read_string(np, "clock-output-names", &name); in of_at91sam9x5_clk_slow_osc_setup() 173 of_property_read_u32(np, "atmel,startup-time-usec", &startup); in of_at91sam9x5_clk_slow_osc_setup() 174 bypass = of_property_read_bool(np, "atmel,osc-bypass"); in of_at91sam9x5_clk_slow_osc_setup() 181 of_clk_add_provider(np, of_clk_src_simple_get, clk); in of_at91sam9x5_clk_slow_osc_setup() 272 void __init of_at91sam9x5_clk_slow_rc_osc_setup(struct device_node *np, in of_at91sam9x5_clk_slow_rc_osc_setup() argument 279 const char *name = np->name; in of_at91sam9x5_clk_slow_rc_osc_setup() 281 of_property_read_string(np, "clock-output-names", &name); in of_at91sam9x5_clk_slow_rc_osc_setup() [all …]
|
D | clk-master.c | 195 of_at91_clk_master_get_characteristics(struct device_node *np) in of_at91_clk_master_get_characteristics() argument 203 if (of_at91_get_clk_range(np, "atmel,clk-output-range", &characteristics->output)) in of_at91_clk_master_get_characteristics() 206 of_property_read_u32_array(np, "atmel,clk-divisors", in of_at91_clk_master_get_characteristics() 210 of_property_read_bool(np, "atmel,master-clk-have-div3-pres"); in of_at91_clk_master_get_characteristics() 220 of_at91_clk_master_setup(struct device_node *np, struct at91_pmc *pmc, in of_at91_clk_master_setup() argument 227 const char *name = np->name; in of_at91_clk_master_setup() 230 num_parents = of_clk_get_parent_count(np); in of_at91_clk_master_setup() 234 of_clk_parent_fill(np, parent_names, num_parents); in of_at91_clk_master_setup() 236 of_property_read_string(np, "clock-output-names", &name); in of_at91_clk_master_setup() 238 characteristics = of_at91_clk_master_get_characteristics(np); in of_at91_clk_master_setup() [all …]
|
D | clk-pll.c | 390 of_at91_clk_pll_get_characteristics(struct device_node *np) in of_at91_clk_pll_get_characteristics() argument 403 if (of_at91_get_clk_range(np, "atmel,clk-input-range", &input)) in of_at91_clk_pll_get_characteristics() 406 if (of_property_read_u32(np, "#atmel,pll-clk-output-range-cells", in of_at91_clk_pll_get_characteristics() 413 if (!of_get_property(np, "atmel,pll-clk-output-ranges", &tmp)) in of_at91_clk_pll_get_characteristics() 439 if (of_property_read_u32_index(np, in of_at91_clk_pll_get_characteristics() 444 if (of_property_read_u32_index(np, in of_at91_clk_pll_get_characteristics() 453 if (of_property_read_u32_index(np, in of_at91_clk_pll_get_characteristics() 462 if (of_property_read_u32_index(np, in of_at91_clk_pll_get_characteristics() 486 of_at91_clk_pll_setup(struct device_node *np, struct at91_pmc *pmc, in of_at91_clk_pll_setup() argument 493 const char *name = np->name; in of_at91_clk_pll_setup() [all …]
|
D | clk-main.c | 194 void __init of_at91rm9200_clk_main_osc_setup(struct device_node *np, in of_at91rm9200_clk_main_osc_setup() argument 199 const char *name = np->name; in of_at91rm9200_clk_main_osc_setup() 203 of_property_read_string(np, "clock-output-names", &name); in of_at91rm9200_clk_main_osc_setup() 204 bypass = of_property_read_bool(np, "atmel,osc-bypass"); in of_at91rm9200_clk_main_osc_setup() 205 parent_name = of_clk_get_parent_name(np, 0); in of_at91rm9200_clk_main_osc_setup() 207 irq = irq_of_parse_and_map(np, 0); in of_at91rm9200_clk_main_osc_setup() 215 of_clk_add_provider(np, of_clk_src_simple_get, clk); in of_at91rm9200_clk_main_osc_setup() 342 void __init of_at91sam9x5_clk_main_rc_osc_setup(struct device_node *np, in of_at91sam9x5_clk_main_rc_osc_setup() argument 349 const char *name = np->name; in of_at91sam9x5_clk_main_rc_osc_setup() 351 of_property_read_string(np, "clock-output-names", &name); in of_at91sam9x5_clk_main_rc_osc_setup() [all …]
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | legacy_serial.c | 31 struct device_node *np; member 72 static int __init add_legacy_port(struct device_node *np, int want_index, in add_legacy_port() argument 83 clk = of_get_property(np, "clock-frequency", NULL); in add_legacy_port() 88 spd = of_get_property(np, "current-speed", NULL); in add_legacy_port() 91 rs = of_get_property(np, "reg-shift", NULL); in add_legacy_port() 111 if (legacy_serial_infos[index].np != NULL) { in add_legacy_port() 140 legacy_serial_infos[index].np = of_node_get(np); in add_legacy_port() 151 index, np->full_name); in add_legacy_port() 161 static int __init add_legacy_soc_port(struct device_node *np, in add_legacy_soc_port() argument 166 struct device_node *tsi = of_get_parent(np); in add_legacy_soc_port() [all …]
|
D | btext.c | 172 int btext_initialize(struct device_node *np) in btext_initialize() argument 178 prop = of_get_property(np, "linux,bootx-width", NULL); in btext_initialize() 180 prop = of_get_property(np, "width", NULL); in btext_initialize() 184 prop = of_get_property(np, "linux,bootx-height", NULL); in btext_initialize() 186 prop = of_get_property(np, "height", NULL); in btext_initialize() 190 prop = of_get_property(np, "linux,bootx-depth", NULL); in btext_initialize() 192 prop = of_get_property(np, "depth", NULL); in btext_initialize() 197 prop = of_get_property(np, "linux,bootx-linebytes", NULL); in btext_initialize() 199 prop = of_get_property(np, "linebytes", NULL); in btext_initialize() 204 prop = of_get_property(np, "linux,bootx-addr", NULL); in btext_initialize() [all …]
|
D | setup-common.c | 558 struct device_node *np; in add_pcspkr() local 562 np = of_find_compatible_node(NULL, NULL, "pnpPNP,100"); in add_pcspkr() 563 of_node_put(np); in add_pcspkr() 564 if (!np) in add_pcspkr() 614 struct device_node *parent, *np = NULL; in check_legacy_ioport() local 619 if (!(np = of_find_compatible_node(NULL, NULL, "pnpPNP,303"))) in check_legacy_ioport() 620 np = of_find_compatible_node(NULL, NULL, "pnpPNP,f03"); in check_legacy_ioport() 621 if (np) { in check_legacy_ioport() 622 parent = of_get_parent(np); in check_legacy_ioport() 632 of_node_put(np); in check_legacy_ioport() [all …]
|
D | smp.c | 556 struct device_node *np; in cpu_to_core_id() local 560 np = of_get_cpu_node(cpu, NULL); in cpu_to_core_id() 561 if (!np) in cpu_to_core_id() 564 reg = of_get_property(np, "reg", NULL); in cpu_to_core_id() 570 of_node_put(np); in cpu_to_core_id() 590 struct device_node *np; in traverse_siblings_chip_id() local 596 np = of_get_cpu_node(i, NULL); in traverse_siblings_chip_id() 597 if (!np) in traverse_siblings_chip_id() 599 prop = of_get_property(np, "ibm,chip-id", &plen); in traverse_siblings_chip_id() 610 of_node_put(np); in traverse_siblings_chip_id() [all …]
|
/linux-4.4.14/lib/mpi/ |
D | mpih-div.c | 59 mpi_ptr_t np, mpi_size_t nsize, mpi_ptr_t dp, mpi_size_t dsize) in mpihelp_divrem() argument 80 n1 = np[nsize - 1]; in mpihelp_divrem() 89 udiv_qrnnd(qp[i], n1, n1, np[i], d); in mpihelp_divrem() 95 np[0] = n1; in mpihelp_divrem() 105 np += nsize - 2; in mpihelp_divrem() 108 n1 = np[1]; in mpihelp_divrem() 109 n0 = np[0]; in mpihelp_divrem() 121 np--; in mpihelp_divrem() 123 np[0] = 0; in mpihelp_divrem() 134 np[0], 0, d0); in mpihelp_divrem() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/85xx/ |
D | common.c | 66 struct device_node *np; in mpc85xx_cpm2_pic_init() local 70 np = of_find_compatible_node(NULL, NULL, "fsl,cpm2-pic"); in mpc85xx_cpm2_pic_init() 71 if (np == NULL) { in mpc85xx_cpm2_pic_init() 75 irq = irq_of_parse_and_map(np, 0); in mpc85xx_cpm2_pic_init() 77 of_node_put(np); in mpc85xx_cpm2_pic_init() 82 cpm2_pic_init(np); in mpc85xx_cpm2_pic_init() 83 of_node_put(np); in mpc85xx_cpm2_pic_init() 91 struct device_node *np; in mpc85xx_qe_init() local 93 np = of_find_compatible_node(NULL, NULL, "fsl,qe"); in mpc85xx_qe_init() 94 if (!np) { in mpc85xx_qe_init() [all …]
|
D | mpc85xx_mds.c | 163 struct device_node *np; in mpc85xx_mds_reset_ucc_phys() local 167 np = of_find_node_by_name(NULL, "bcsr"); in mpc85xx_mds_reset_ucc_phys() 168 if (!np) in mpc85xx_mds_reset_ucc_phys() 171 bcsr_regs = of_iomap(np, 0); in mpc85xx_mds_reset_ucc_phys() 172 of_node_put(np); in mpc85xx_mds_reset_ucc_phys() 209 for_each_compatible_node(np, "network", "ucc_geth") { in mpc85xx_mds_reset_ucc_phys() 213 prop = of_get_property(np, "cell-index", NULL); in mpc85xx_mds_reset_ucc_phys() 219 prop = of_get_property(np, "phy-connection-type", NULL); in mpc85xx_mds_reset_ucc_phys() 239 struct device_node *np; in mpc85xx_mds_qe_init() local 249 np = of_find_node_by_name(NULL, "global-utilities"); in mpc85xx_mds_qe_init() [all …]
|
D | twr_p102x.c | 39 struct device_node *np; in twr_p1025_pic_init() local 50 np = of_find_compatible_node(NULL, NULL, "fsl,qe-ic"); in twr_p1025_pic_init() 51 if (np) { in twr_p1025_pic_init() 52 qe_ic_init(np, 0, qe_ic_cascade_low_mpic, in twr_p1025_pic_init() 54 of_node_put(np); in twr_p1025_pic_init() 68 struct device_node *np; in twr_p1025_setup_arch() local 86 np = of_find_compatible_node(NULL, NULL, "fsl,p1021-guts"); in twr_p1025_setup_arch() 87 if (np) { in twr_p1025_setup_arch() 88 guts = of_iomap(np, 0); in twr_p1025_setup_arch() 118 of_node_put(np); in twr_p1025_setup_arch()
|
D | mpc85xx_cds.c | 233 struct device_node *np = NULL; in mpc85xx_cds_8259_attach() local 238 for_each_node_by_type(np, "interrupt-controller") in mpc85xx_cds_8259_attach() 239 if (of_device_is_compatible(np, "chrp,iic")) { in mpc85xx_cds_8259_attach() 240 cascade_node = np; in mpc85xx_cds_8259_attach() 281 struct device_node *np; in mpc85xx_cds_pci_assign_primary() local 292 np = of_find_node_by_name(NULL, "i8259"); in mpc85xx_cds_pci_assign_primary() 293 while ((fsl_pci_primary = of_get_parent(np))) { in mpc85xx_cds_pci_assign_primary() 294 of_node_put(np); in mpc85xx_cds_pci_assign_primary() 295 np = fsl_pci_primary; in mpc85xx_cds_pci_assign_primary() 297 if ((of_device_is_compatible(np, "fsl,mpc8540-pci") || in mpc85xx_cds_pci_assign_primary() [all …]
|
D | ge_imp3a.c | 48 struct device_node *np; in ge_imp3a_pic_init() local 71 for_each_node_by_type(np, "interrupt-controller") in ge_imp3a_pic_init() 72 if (of_device_is_compatible(np, "gef,fpga-pic-1.00")) { in ge_imp3a_pic_init() 73 cascade_node = np; in ge_imp3a_pic_init() 89 struct device_node *np; in ge_imp3a_pci_assign_primary() local 92 for_each_node_by_type(np, "pci") { in ge_imp3a_pci_assign_primary() 93 if (of_device_is_compatible(np, "fsl,mpc8540-pci") || in ge_imp3a_pci_assign_primary() 94 of_device_is_compatible(np, "fsl,mpc8548-pcie") || in ge_imp3a_pci_assign_primary() 95 of_device_is_compatible(np, "fsl,p2020-pcie")) { in ge_imp3a_pci_assign_primary() 96 of_address_to_resource(np, 0, &rsrc); in ge_imp3a_pci_assign_primary() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/83xx/ |
D | misc.c | 76 struct device_node *np; in mpc83xx_ipic_init_IRQ() local 79 np = of_find_compatible_node(NULL, NULL, "fsl,ipic"); in mpc83xx_ipic_init_IRQ() 80 if (!np) in mpc83xx_ipic_init_IRQ() 81 np = of_find_node_by_type(NULL, "ipic"); in mpc83xx_ipic_init_IRQ() 82 if (!np) in mpc83xx_ipic_init_IRQ() 85 ipic_init(np, 0); in mpc83xx_ipic_init_IRQ() 87 of_node_put(np); in mpc83xx_ipic_init_IRQ() 98 struct device_node *np; in mpc83xx_qe_init_IRQ() local 100 np = of_find_compatible_node(NULL, NULL, "fsl,qe-ic"); in mpc83xx_qe_init_IRQ() 101 if (!np) { in mpc83xx_qe_init_IRQ() [all …]
|
D | mpc836x_mds.c | 66 struct device_node *np; in mpc836x_mds_setup_arch() local 73 np = of_find_node_by_name(NULL, "bcsr"); in mpc836x_mds_setup_arch() 74 if (np) { in mpc836x_mds_setup_arch() 77 of_address_to_resource(np, 0, &res); in mpc836x_mds_setup_arch() 79 of_node_put(np); in mpc836x_mds_setup_arch() 87 if ((np = of_find_node_by_name(NULL, "par_io")) != NULL) { in mpc836x_mds_setup_arch() 88 par_io_init(np); in mpc836x_mds_setup_arch() 89 of_node_put(np); in mpc836x_mds_setup_arch() 91 for (np = NULL; (np = of_find_node_by_name(np, "ucc")) != NULL;) in mpc836x_mds_setup_arch() 92 par_io_of_config(np); in mpc836x_mds_setup_arch() [all …]
|
D | usb.c | 31 struct device_node *np = NULL; in mpc834x_usb_cfg() local 45 np = of_find_compatible_node(NULL, NULL, "fsl-usb2-dr"); in mpc834x_usb_cfg() 46 if (np) { in mpc834x_usb_cfg() 49 prop = of_get_property(np, "phy_type", NULL); in mpc834x_usb_cfg() 57 dr_mode = of_get_property(np, "dr_mode", NULL); in mpc834x_usb_cfg() 69 of_node_put(np); in mpc834x_usb_cfg() 71 np = of_find_compatible_node(NULL, NULL, "fsl-usb2-mph"); in mpc834x_usb_cfg() 72 if (np) { in mpc834x_usb_cfg() 75 prop = of_get_property(np, "port0", NULL); in mpc834x_usb_cfg() 82 prop = of_get_property(np, "port1", NULL); in mpc834x_usb_cfg() [all …]
|
D | mpc832x_mds.c | 58 struct device_node *np; in mpc832x_sys_setup_arch() local 65 np = of_find_node_by_name(NULL, "bcsr"); in mpc832x_sys_setup_arch() 66 if (np) { in mpc832x_sys_setup_arch() 69 of_address_to_resource(np, 0, &res); in mpc832x_sys_setup_arch() 71 of_node_put(np); in mpc832x_sys_setup_arch() 79 if ((np = of_find_node_by_name(NULL, "par_io")) != NULL) { in mpc832x_sys_setup_arch() 80 par_io_init(np); in mpc832x_sys_setup_arch() 81 of_node_put(np); in mpc832x_sys_setup_arch() 83 for (np = NULL; (np = of_find_node_by_name(np, "ucc")) != NULL;) in mpc832x_sys_setup_arch() 84 par_io_of_config(np); in mpc832x_sys_setup_arch() [all …]
|
D | km83xx.c | 130 struct device_node *np; in mpc83xx_km_setup_arch() local 141 np = of_find_node_by_name(NULL, "par_io"); in mpc83xx_km_setup_arch() 142 if (np != NULL) { in mpc83xx_km_setup_arch() 143 par_io_init(np); in mpc83xx_km_setup_arch() 144 of_node_put(np); in mpc83xx_km_setup_arch() 146 for_each_node_by_name(np, "spi") in mpc83xx_km_setup_arch() 147 par_io_of_config(np); in mpc83xx_km_setup_arch() 149 for_each_node_by_name(np, "ucc") in mpc83xx_km_setup_arch() 150 par_io_of_config(np); in mpc83xx_km_setup_arch() 153 np = of_find_compatible_node(NULL, "network", "ucc_geth"); in mpc83xx_km_setup_arch() [all …]
|
D | mpc832x_rdb.c | 49 struct device_node *np; in of_fsl_spi_probe() local 52 for_each_compatible_node(np, type, compatible) { in of_fsl_spi_probe() 66 prop = of_get_property(np, "reg", NULL); in of_fsl_spi_probe() 71 prop = of_get_property(np, "cell-index", NULL); in of_fsl_spi_probe() 75 prop = of_get_property(np, "mode", NULL); in of_fsl_spi_probe() 87 ret = of_address_to_resource(np, 0, &res[0]); in of_fsl_spi_probe() 91 ret = of_irq_to_resource(np, 0, &res[1]); in of_fsl_spi_probe() 116 pr_err("%s: registration failed\n", np->full_name); in of_fsl_spi_probe() 197 struct device_node *np; in mpc832x_rdb_setup_arch() local 208 if ((np = of_find_node_by_name(NULL, "par_io")) != NULL) { in mpc832x_rdb_setup_arch() [all …]
|
D | mpc837x_mds.c | 32 struct device_node *np; in mpc837xmds_usb_cfg() local 42 np = of_find_compatible_node(NULL, NULL, "fsl,mpc837xmds-bcsr"); in mpc837xmds_usb_cfg() 43 if (np) { in mpc837xmds_usb_cfg() 44 bcsr_regs = of_iomap(np, 0); in mpc837xmds_usb_cfg() 45 of_node_put(np); in mpc837xmds_usb_cfg() 50 np = of_find_node_by_name(NULL, "usb"); in mpc837xmds_usb_cfg() 51 if (!np) { in mpc837xmds_usb_cfg() 55 phy_type = of_get_property(np, "phy_type", NULL); in mpc837xmds_usb_cfg() 59 mode = of_get_property(np, "dr_mode", NULL); in mpc837xmds_usb_cfg() 69 of_node_put(np); in mpc837xmds_usb_cfg()
|
/linux-4.4.14/drivers/cpufreq/ |
D | arm_big_little_dt.c | 36 struct device_node *np = of_cpu_device_node_get(cpu); in get_cpu_node_with_valid_op() local 38 if (!of_get_property(np, "operating-points", NULL)) { in get_cpu_node_with_valid_op() 39 of_node_put(np); in get_cpu_node_with_valid_op() 40 np = NULL; in get_cpu_node_with_valid_op() 43 return np; in get_cpu_node_with_valid_op() 48 struct device_node *np; in dt_init_opp_table() local 51 np = of_node_get(cpu_dev->of_node); in dt_init_opp_table() 52 if (!np) { in dt_init_opp_table() 58 of_node_put(np); in dt_init_opp_table() 65 struct device_node *np; in dt_get_transition_latency() local [all …]
|
D | qoriq-cpufreq.c | 104 struct device_node *np, *clk_np; in cpu_to_clk_node() local 109 np = of_get_cpu_node(cpu, NULL); in cpu_to_clk_node() 110 if (!np) in cpu_to_clk_node() 113 clk_np = of_parse_phandle(np, "clocks", 0); in cpu_to_clk_node() 117 of_node_put(np); in cpu_to_clk_node() 125 struct device_node *np, *clk_np; in set_affected_cpus() local 129 np = cpu_to_clk_node(policy->cpu); in set_affected_cpus() 130 if (!np) in set_affected_cpus() 138 if (clk_np == np) in set_affected_cpus() 143 of_node_put(np); in set_affected_cpus() [all …]
|
D | kirkwood-cpufreq.c | 107 struct device_node *np; in kirkwood_cpufreq_probe() local 118 np = of_cpu_device_node_get(0); in kirkwood_cpufreq_probe() 119 if (!np) { in kirkwood_cpufreq_probe() 124 priv.cpu_clk = of_clk_get_by_name(np, "cpu_clk"); in kirkwood_cpufreq_probe() 133 priv.ddr_clk = of_clk_get_by_name(np, "ddrclk"); in kirkwood_cpufreq_probe() 143 priv.powersave_clk = of_clk_get_by_name(np, "powersave"); in kirkwood_cpufreq_probe() 151 of_node_put(np); in kirkwood_cpufreq_probe() 152 np = NULL; in kirkwood_cpufreq_probe() 165 of_node_put(np); in kirkwood_cpufreq_probe()
|
/linux-4.4.14/include/linux/ |
D | of.h | 73 struct device_node *np; member 234 static inline const char *of_node_full_name(const struct device_node *np) in of_node_full_name() argument 236 return np ? np->full_name : "<no-node>"; in of_node_full_name() 276 extern struct property *of_find_property(const struct device_node *np, 279 extern int of_property_count_elems_of_size(const struct device_node *np, 281 extern int of_property_read_u32_index(const struct device_node *np, 284 extern int of_property_read_u8_array(const struct device_node *np, 286 extern int of_property_read_u16_array(const struct device_node *np, 288 extern int of_property_read_u32_array(const struct device_node *np, 292 extern int of_property_read_u64(const struct device_node *np, [all …]
|
D | of_mtd.h | 15 int of_get_nand_ecc_mode(struct device_node *np); 16 int of_get_nand_ecc_step_size(struct device_node *np); 17 int of_get_nand_ecc_strength(struct device_node *np); 18 int of_get_nand_bus_width(struct device_node *np); 19 bool of_get_nand_on_flash_bbt(struct device_node *np); 23 static inline int of_get_nand_ecc_mode(struct device_node *np) in of_get_nand_ecc_mode() argument 28 static inline int of_get_nand_ecc_step_size(struct device_node *np) in of_get_nand_ecc_step_size() argument 33 static inline int of_get_nand_ecc_strength(struct device_node *np) in of_get_nand_ecc_strength() argument 38 static inline int of_get_nand_bus_width(struct device_node *np) in of_get_nand_bus_width() argument 43 static inline bool of_get_nand_on_flash_bbt(struct device_node *np) in of_get_nand_on_flash_bbt() argument
|
D | of_gpio.h | 51 extern int of_get_named_gpio_flags(struct device_node *np, 54 extern int of_mm_gpiochip_add(struct device_node *np, 67 static inline int of_get_named_gpio_flags(struct device_node *np, in of_get_named_gpio_flags() argument 105 static inline int of_gpio_named_count(struct device_node *np, const char* propname) in of_gpio_named_count() argument 107 return of_count_phandle_with_args(np, propname, "#gpio-cells"); in of_gpio_named_count() 116 static inline int of_gpio_count(struct device_node *np) in of_gpio_count() argument 118 return of_gpio_named_count(np, "gpios"); in of_gpio_count() 121 static inline int of_get_gpio_flags(struct device_node *np, int index, in of_get_gpio_flags() argument 124 return of_get_named_gpio_flags(np, "gpios", index, flags); in of_get_gpio_flags() 136 static inline int of_get_named_gpio(struct device_node *np, in of_get_named_gpio() argument [all …]
|
D | netpoll.h | 57 void netpoll_send_udp(struct netpoll *np, const char *msg, int len); 58 void netpoll_print_options(struct netpoll *np); 59 int netpoll_parse_options(struct netpoll *np, char *opt); 60 int __netpoll_setup(struct netpoll *np, struct net_device *ndev); 61 int netpoll_setup(struct netpoll *np); 62 void __netpoll_cleanup(struct netpoll *np); 63 void __netpoll_free_async(struct netpoll *np); 64 void netpoll_cleanup(struct netpoll *np); 65 void netpoll_send_skb_on_dev(struct netpoll *np, struct sk_buff *skb, 67 static inline void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb) in netpoll_send_skb() argument [all …]
|
D | of_dma.h | 38 extern int of_dma_controller_register(struct device_node *np, 42 extern void of_dma_controller_free(struct device_node *np); 44 extern int of_dma_router_register(struct device_node *np, 50 extern struct dma_chan *of_dma_request_slave_channel(struct device_node *np, 58 static inline int of_dma_controller_register(struct device_node *np, in of_dma_controller_register() argument 66 static inline void of_dma_controller_free(struct device_node *np) in of_dma_controller_free() argument 70 static inline int of_dma_router_register(struct device_node *np, in of_dma_router_register() argument 80 static inline struct dma_chan *of_dma_request_slave_channel(struct device_node *np, in of_dma_request_slave_channel() argument
|
D | of_net.h | 14 extern int of_get_phy_mode(struct device_node *np); 15 extern const void *of_get_mac_address(struct device_node *np); 16 extern struct net_device *of_find_net_device_by_node(struct device_node *np); 18 static inline int of_get_phy_mode(struct device_node *np) in of_get_phy_mode() argument 23 static inline const void *of_get_mac_address(struct device_node *np) in of_get_mac_address() argument 28 static inline struct net_device *of_find_net_device_by_node(struct device_node *np) in of_find_net_device_by_node() argument
|
D | of_mdio.h | 16 extern int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np); 27 extern int of_mdio_parse_addr(struct device *dev, const struct device_node *np); 30 static inline int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np) in of_mdiobus_register() argument 66 const struct device_node *np) in of_mdio_parse_addr() argument 73 extern int of_phy_register_fixed_link(struct device_node *np); 74 extern bool of_phy_is_fixed_link(struct device_node *np); 76 static inline int of_phy_register_fixed_link(struct device_node *np) in of_phy_register_fixed_link() argument 80 static inline bool of_phy_is_fixed_link(struct device_node *np) in of_phy_is_fixed_link() argument
|
D | of_address.h | 11 int np; member 31 extern u64 of_translate_address(struct device_node *np, const __be32 *addr); 56 extern int of_dma_get_range(struct device_node *np, u64 *dma_addr, 58 extern bool of_dma_is_coherent(struct device_node *np); 61 static inline u64 of_translate_address(struct device_node *np, in of_translate_address() argument 99 static inline int of_dma_get_range(struct device_node *np, u64 *dma_addr, in of_dma_get_range() argument 105 static inline bool of_dma_is_coherent(struct device_node *np) in of_dma_is_coherent() argument 145 struct device_node *np, 160 struct device_node *np, in of_pci_range_to_resource() argument
|
D | cpu_cooling.h | 53 of_cpufreq_cooling_register(struct device_node *np, 57 of_cpufreq_power_cooling_register(struct device_node *np, 63 of_cpufreq_cooling_register(struct device_node *np, in of_cpufreq_cooling_register() argument 70 of_cpufreq_power_cooling_register(struct device_node *np, in of_cpufreq_power_cooling_register() argument 100 of_cpufreq_cooling_register(struct device_node *np, in of_cpufreq_cooling_register() argument 107 of_cpufreq_power_cooling_register(struct device_node *np, in of_cpufreq_power_cooling_register() argument
|
/linux-4.4.14/drivers/gpio/ |
D | gpiolib-of.c | 43 if ((gc->of_node != gg_data->gpiospec.np) || in of_gpiochip_find_and_xlate() 74 struct gpio_desc *of_get_named_gpiod_flags(struct device_node *np, in of_get_named_gpiod_flags() argument 90 ret = of_parse_phandle_with_args(np, propname, "#gpio-cells", index, in of_get_named_gpiod_flags() 94 __func__, propname, np->full_name, index); in of_get_named_gpiod_flags() 100 of_node_put(gg_data.gpiospec.np); in of_get_named_gpiod_flags() 102 __func__, propname, np->full_name, index, in of_get_named_gpiod_flags() 107 int of_get_named_gpio_flags(struct device_node *np, const char *list_name, in of_get_named_gpio_flags() argument 112 desc = of_get_named_gpiod_flags(np, list_name, index, flags); in of_get_named_gpio_flags() 132 static struct gpio_desc *of_parse_own_gpio(struct device_node *np, in of_parse_own_gpio() argument 145 chip_np = np->parent; in of_parse_own_gpio() [all …]
|
/linux-4.4.14/drivers/clk/shmobile/ |
D | clk-emev2.c | 54 struct device_node *np; in emev2_smu_init() local 56 np = of_find_matching_node(NULL, smu_id); in emev2_smu_init() 57 BUG_ON(!np); in emev2_smu_init() 58 smu_base = of_iomap(np, 0); in emev2_smu_init() 60 of_node_put(np); in emev2_smu_init() 77 static void __init emev2_smu_clkdiv_init(struct device_node *np) in emev2_smu_clkdiv_init() argument 81 const char *parent_name = of_clk_get_parent_name(np, 0); in emev2_smu_clkdiv_init() 82 if (WARN_ON(of_property_read_u32_array(np, "reg", reg, 2))) in emev2_smu_clkdiv_init() 86 clk = clk_register_divider(NULL, np->name, parent_name, 0, in emev2_smu_clkdiv_init() 88 of_clk_add_provider(np, of_clk_src_simple_get, clk); in emev2_smu_clkdiv_init() [all …]
|
D | clk-mstp.c | 162 static void __init cpg_mstp_clocks_init(struct device_node *np) in cpg_mstp_clocks_init() argument 181 group->smstpcr = of_iomap(np, 0); in cpg_mstp_clocks_init() 182 group->mstpsr = of_iomap(np, 1); in cpg_mstp_clocks_init() 194 if (of_find_property(np, "clock-indices", &i)) in cpg_mstp_clocks_init() 206 ret = of_property_read_string_index(np, "clock-output-names", in cpg_mstp_clocks_init() 211 parent_name = of_clk_get_parent_name(np, i); in cpg_mstp_clocks_init() 212 ret = of_property_read_u32_index(np, idxname, i, &clkidx); in cpg_mstp_clocks_init() 218 __func__, np->name, name, clkidx); in cpg_mstp_clocks_init() 238 __func__, np->name, name, PTR_ERR(clks[clkidx])); in cpg_mstp_clocks_init() 242 of_clk_add_provider(np, of_clk_src_onecell_get, &group->data); in cpg_mstp_clocks_init() [all …]
|
D | clk-r8a7740.c | 65 r8a7740_cpg_register_clock(struct device_node *np, struct r8a7740_cpg *cpg, in r8a7740_cpg_register_clock() argument 78 parent_name = of_clk_get_parent_name(np, 0); in r8a7740_cpg_register_clock() 83 parent_name = of_clk_get_parent_name(np, 0); in r8a7740_cpg_register_clock() 88 parent_name = of_clk_get_parent_name(np, 2); in r8a7740_cpg_register_clock() 92 parent_name = of_clk_get_parent_name(np, 0); in r8a7740_cpg_register_clock() 117 parent_name = of_clk_get_parent_name(np, 1); in r8a7740_cpg_register_clock() 147 static void __init r8a7740_cpg_clocks_init(struct device_node *np) in r8a7740_cpg_clocks_init() argument 154 if (of_property_read_u32(np, "renesas,mode", &cpg_mode)) in r8a7740_cpg_clocks_init() 157 num_clks = of_property_count_strings(np, "clock-output-names"); in r8a7740_cpg_clocks_init() 177 cpg->reg = of_iomap(np, 0); in r8a7740_cpg_clocks_init() [all …]
|
D | clk-r8a7778.c | 52 r8a7778_cpg_register_clock(struct device_node *np, struct r8a7778_cpg *cpg, in r8a7778_cpg_register_clock() argument 57 of_clk_get_parent_name(np, 0), 0, in r8a7778_cpg_register_clock() 61 of_clk_get_parent_name(np, 0), 0, in r8a7778_cpg_register_clock() 80 static void __init r8a7778_cpg_clocks_init(struct device_node *np) in r8a7778_cpg_clocks_init() argument 87 num_clks = of_property_count_strings(np, "clock-output-names"); in r8a7778_cpg_clocks_init() 107 cpg->reg = of_iomap(np, 0); in r8a7778_cpg_clocks_init() 115 of_property_read_string_index(np, "clock-output-names", i, in r8a7778_cpg_clocks_init() 118 clk = r8a7778_cpg_register_clock(np, cpg, name); in r8a7778_cpg_clocks_init() 121 __func__, np->name, name, PTR_ERR(clk)); in r8a7778_cpg_clocks_init() 126 of_clk_add_provider(np, of_clk_src_onecell_get, &cpg->data); in r8a7778_cpg_clocks_init() [all …]
|
D | clk-rz.c | 33 rz_cpg_register_clock(struct device_node *np, struct rz_cpg *cpg, const char *name) in rz_cpg_register_clock() argument 42 const char *parent_name = of_clk_get_parent_name(np, cpg_mode); in rz_cpg_register_clock() 68 static void __init rz_cpg_clocks_init(struct device_node *np) in rz_cpg_clocks_init() argument 75 num_clks = of_property_count_strings(np, "clock-output-names"); in rz_cpg_clocks_init() 86 cpg->reg = of_iomap(np, 0); in rz_cpg_clocks_init() 92 of_property_read_string_index(np, "clock-output-names", i, &name); in rz_cpg_clocks_init() 94 clk = rz_cpg_register_clock(np, cpg, name); in rz_cpg_clocks_init() 97 __func__, np->name, name, PTR_ERR(clk)); in rz_cpg_clocks_init() 102 of_clk_add_provider(np, of_clk_src_onecell_get, &cpg->data); in rz_cpg_clocks_init() 104 cpg_mstp_add_clk_domain(np); in rz_cpg_clocks_init()
|
D | clk-r8a73a4.c | 63 r8a73a4_cpg_register_clock(struct device_node *np, struct r8a73a4_cpg *cpg, in r8a73a4_cpg_register_clock() argument 78 parent_name = of_clk_get_parent_name(np, 0); in r8a73a4_cpg_register_clock() 81 parent_name = of_clk_get_parent_name(np, 0); in r8a73a4_cpg_register_clock() 85 parent_name = of_clk_get_parent_name(np, 1); in r8a73a4_cpg_register_clock() 88 parent_name = of_clk_get_parent_name(np, 1); in r8a73a4_cpg_register_clock() 192 static void __init r8a73a4_cpg_clocks_init(struct device_node *np) in r8a73a4_cpg_clocks_init() argument 199 num_clks = of_property_count_strings(np, "clock-output-names"); in r8a73a4_cpg_clocks_init() 219 cpg->reg = of_iomap(np, 0); in r8a73a4_cpg_clocks_init() 227 of_property_read_string_index(np, "clock-output-names", i, in r8a73a4_cpg_clocks_init() 230 clk = r8a73a4_cpg_register_clock(np, cpg, name); in r8a73a4_cpg_clocks_init() [all …]
|
D | clk-r8a7779.c | 94 r8a7779_cpg_register_clock(struct device_node *np, struct r8a7779_cpg *cpg, in r8a7779_cpg_register_clock() argument 103 parent_name = of_clk_get_parent_name(np, 0); in r8a7779_cpg_register_clock() 123 static void __init r8a7779_cpg_clocks_init(struct device_node *np) in r8a7779_cpg_clocks_init() argument 131 num_clks = of_property_count_strings(np, "clock-output-names"); in r8a7779_cpg_clocks_init() 158 of_property_read_string_index(np, "clock-output-names", i, in r8a7779_cpg_clocks_init() 161 clk = r8a7779_cpg_register_clock(np, cpg, config, in r8a7779_cpg_clocks_init() 165 __func__, np->name, name, PTR_ERR(clk)); in r8a7779_cpg_clocks_init() 170 of_clk_add_provider(np, of_clk_src_onecell_get, &cpg->data); in r8a7779_cpg_clocks_init() 172 cpg_mstp_add_clk_domain(np); in r8a7779_cpg_clocks_init()
|
/linux-4.4.14/arch/powerpc/platforms/powermac/ |
D | setup.c | 107 struct device_node *np; in pmac_show_cpuinfo() local 124 np = of_find_node_by_path("/"); in pmac_show_cpuinfo() 125 if (np != NULL) { in pmac_show_cpuinfo() 126 pp = of_get_property(np, "model", NULL); in pmac_show_cpuinfo() 131 pp = of_get_property(np, "compatible", &plen); in pmac_show_cpuinfo() 142 of_node_put(np); in pmac_show_cpuinfo() 151 np = of_find_node_by_name(NULL, "l2-cache"); in pmac_show_cpuinfo() 152 if (np == NULL) in pmac_show_cpuinfo() 153 np = of_find_node_by_type(NULL, "cache"); in pmac_show_cpuinfo() 154 if (np != NULL) { in pmac_show_cpuinfo() [all …]
|
D | pic.c | 429 out_irq->np = NULL; in of_irq_parse_oldworld() 455 static struct mpic * __init pmac_setup_one_mpic(struct device_node *np, in pmac_setup_one_mpic() argument 462 pmac_call_feature(PMAC_FTR_ENABLE_MPIC, np, 0, 0); in pmac_setup_one_mpic() 464 if (of_get_property(np, "big-endian", NULL)) in pmac_setup_one_mpic() 473 mpic = mpic_alloc(np, 0, flags, 0, 0, name); in pmac_setup_one_mpic() 485 struct device_node *np, *master = NULL, *slave = NULL; in pmac_pic_probe_mpic() local 488 for (np = NULL; (np = of_find_node_by_type(np, "open-pic")) in pmac_pic_probe_mpic() 491 of_get_property(np, "interrupts", NULL) == NULL) in pmac_pic_probe_mpic() 492 master = of_node_get(np); in pmac_pic_probe_mpic() 494 slave = of_node_get(np); in pmac_pic_probe_mpic() [all …]
|
D | pci.c | 179 struct device_node *np; in chaos_map_bus() local 184 np = of_pci_find_child_device(bus->dev.of_node, devfn); in chaos_map_bus() 185 if (np == NULL) in chaos_map_bus() 188 vendor = of_get_property(np, "vendor-id", NULL); in chaos_map_bus() 189 device = of_get_property(np, "device-id", NULL); in chaos_map_bus() 534 struct device_node *np = of_find_node_by_name(NULL, "pci106b,7"); in init_second_ohare() local 538 if (np == NULL) in init_second_ohare() 544 if (pci_device_from_OF_node(np, &bus, &devfn) == 0) { in init_second_ohare() 546 pci_find_hose_for_OF_device(np); in init_second_ohare() 549 of_node_put(np); in init_second_ohare() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/pseries/ |
D | reconfig.c | 29 struct device_node *np; in pSeries_reconfig_add_node() local 32 np = kzalloc(sizeof(*np), GFP_KERNEL); in pSeries_reconfig_add_node() 33 if (!np) in pSeries_reconfig_add_node() 36 np->full_name = kstrdup(path, GFP_KERNEL); in pSeries_reconfig_add_node() 37 if (!np->full_name) in pSeries_reconfig_add_node() 40 np->properties = proplist; in pSeries_reconfig_add_node() 41 of_node_set_flag(np, OF_DYNAMIC); in pSeries_reconfig_add_node() 42 of_node_init(np); in pSeries_reconfig_add_node() 44 np->parent = pseries_of_derive_parent(path); in pSeries_reconfig_add_node() 45 if (IS_ERR(np->parent)) { in pSeries_reconfig_add_node() [all …]
|
D | setup.c | 128 struct device_node *np, *old, *found = NULL; in pseries_setup_i8259_cascade() local 134 for_each_node_by_type(np, "interrupt-controller") { in pseries_setup_i8259_cascade() 135 if (of_device_is_compatible(np, "chrp,iic")) { in pseries_setup_i8259_cascade() 136 found = np; in pseries_setup_i8259_cascade() 153 for (old = of_node_get(found); old != NULL ; old = np) { in pseries_setup_i8259_cascade() 154 np = of_get_parent(old); in pseries_setup_i8259_cascade() 156 if (np == NULL) in pseries_setup_i8259_cascade() 158 if (strcmp(np->name, "pci") != 0) in pseries_setup_i8259_cascade() 160 addrp = of_get_property(np, "8259-interrupt-acknowledge", NULL); in pseries_setup_i8259_cascade() 163 naddr = of_n_addr_cells(np); in pseries_setup_i8259_cascade() [all …]
|
D | event_sources.c | 23 void request_event_sources_irqs(struct device_node *np, in request_event_sources_irqs() argument 37 opicprop = of_get_property(np, "open-pic-interrupt", &opicplen); in request_event_sources_irqs() 47 np->full_name); in request_event_sources_irqs() 58 for (index = 0; of_irq_parse_one(np, index, &oirq) == 0; in request_event_sources_irqs() 66 np->full_name); in request_event_sources_irqs() 78 "%d for %s\n", virqs[i], np->full_name); in request_event_sources_irqs()
|
/linux-4.4.14/arch/powerpc/platforms/cell/ |
D | cbe_regs.c | 51 static struct cbe_regs_map *cbe_find_map(struct device_node *np) in cbe_find_map() argument 56 if (strcasecmp(np->type, "spe")) { in cbe_find_map() 58 if (cbe_regs_maps[i].cpu_node == np || in cbe_find_map() 59 cbe_regs_maps[i].be_node == np) in cbe_find_map() 64 if (np->data) in cbe_find_map() 65 return np->data; in cbe_find_map() 68 tmp_np = np; in cbe_find_map() 76 np->data = cbe_find_map(tmp_np); in cbe_find_map() 78 return np->data; in cbe_find_map() 81 struct cbe_pmd_regs __iomem *cbe_get_pmd_regs(struct device_node *np) in cbe_get_pmd_regs() argument [all …]
|
D | iommu.c | 271 struct device_node *np; in cell_iommu_find_ioc() local 277 for_each_node_by_name(np, "ioc") { in cell_iommu_find_ioc() 278 if (of_node_to_nid(np) != nid) in cell_iommu_find_ioc() 280 if (of_address_to_resource(np, 0, &r)) { in cell_iommu_find_ioc() 282 np->full_name); in cell_iommu_find_ioc() 286 of_node_put(np); in cell_iommu_find_ioc() 291 for_each_node_by_type(np, "cpu") { in cell_iommu_find_ioc() 295 nidp = of_get_property(np, "node-id", NULL); in cell_iommu_find_ioc() 297 tmp = of_get_property(np, "ioc-translation", NULL); in cell_iommu_find_ioc() 300 of_node_put(np); in cell_iommu_find_ioc() [all …]
|
D | setup.c | 124 struct device_node *np; in cell_setup_phb() local 132 np = phb->dn; in cell_setup_phb() 133 model = of_get_property(np, "model", NULL); in cell_setup_phb() 134 if (model == NULL || strcmp(np->name, "pci")) in cell_setup_phb() 161 struct device_node *np; in cell_publish_devices() local 170 for_each_child_of_node(root, np) { in cell_publish_devices() 171 if (np->type == NULL || (strcmp(np->type, "pci") != 0 && in cell_publish_devices() 172 strcmp(np->type, "pciex") != 0)) in cell_publish_devices() 174 of_platform_device_create(np, NULL, NULL); in cell_publish_devices()
|
D | ras.c | 169 struct device_node *np; in cbe_ptcal_enable() local 172 np = of_find_node_by_path("/rtas"); in cbe_ptcal_enable() 173 if (!np) in cbe_ptcal_enable() 176 size = of_get_property(np, "ibm,cbe-ptcal-size", NULL); in cbe_ptcal_enable() 178 of_node_put(np); in cbe_ptcal_enable() 184 of_node_put(np); in cbe_ptcal_enable() 187 for_each_node_by_type(np, "mic-tm") { in cbe_ptcal_enable() 188 cbe_ptcal_enable_on_node(of_node_to_nid(np), order); in cbe_ptcal_enable() 196 for_each_node_by_type(np, "cpu") { in cbe_ptcal_enable() 197 const u32 *nid = of_get_property(np, "node-id", NULL); in cbe_ptcal_enable() [all …]
|
/linux-4.4.14/drivers/macintosh/ |
D | macio_asic.c | 186 static int macio_resource_quirks(struct device_node *np, struct resource *res, in macio_resource_quirks() argument 194 if (index == 0 && !strcmp(np->name, "gc")) in macio_resource_quirks() 198 if (index >= 2 && !strcmp(np->name, "radio")) in macio_resource_quirks() 211 if (!strcmp(np->name, "escc")) in macio_resource_quirks() 215 if (index >= 3 && !(strcmp(np->name, "ch-a") && in macio_resource_quirks() 216 strcmp(np->name, "ch-b"))) in macio_resource_quirks() 220 if (index > 0 && !strcmp(np->name, "media-bay")) in macio_resource_quirks() 224 if (!(strcmp(np->name, "IDE") && strcmp(np->name, "ATA") && in macio_resource_quirks() 225 strcmp(np->type, "ide") && strcmp(np->type, "ata"))) { in macio_resource_quirks() 251 struct device_node *np = dev->ofdev.dev.of_node; in macio_add_missing_resources() local [all …]
|
/linux-4.4.14/scripts/coccinelle/iterators/ |
D | fen.cocci | 19 expression np,E; 23 for_each_node_by_name(np,...) { 27 ... when != np = E 28 - of_node_put(np); 32 expression np,E; 36 for_each_node_by_type(np,...) { 40 ... when != np = E 41 - of_node_put(np); 45 expression np,E; 49 for_each_compatible_node(np,...) { [all …]
|
/linux-4.4.14/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_platform.c | 110 struct device_node *np = pdev->dev.of_node; in stmmac_probe_config_dt() local 118 *mac = of_get_mac_address(np); in stmmac_probe_config_dt() 119 plat->interface = of_get_phy_mode(np); in stmmac_probe_config_dt() 122 if (of_property_read_u32(np, "max-speed", &plat->max_speed)) in stmmac_probe_config_dt() 125 plat->bus_id = of_alias_get_id(np, "ethernet"); in stmmac_probe_config_dt() 133 plat->phy_node = of_parse_phandle(np, "phy-handle", 0); in stmmac_probe_config_dt() 136 if (!plat->phy_node && of_phy_is_fixed_link(np)) { in stmmac_probe_config_dt() 137 if ((of_phy_register_fixed_link(np) < 0)) in stmmac_probe_config_dt() 140 plat->phy_node = of_node_get(np); in stmmac_probe_config_dt() 146 if (of_property_read_u32(np, "snps,phy-addr", &plat->phy_addr) == 0) in stmmac_probe_config_dt() [all …]
|
/linux-4.4.14/drivers/net/fddi/skfp/ |
D | pcmplc.c | 207 static void sm_ph_lem_start(struct s_smc *smc, int np, int threshold); 208 static void sm_ph_lem_stop(struct s_smc *smc, int np); 221 EV_TOKEN(EVENT_PCM+phy->np,event)) ; in start_pcm_timer0() 240 int np ; in pcm_init() local 244 for (np = 0,phy = smc->y ; np < NUMPHYS ; np++,phy++) { in pcm_init() 248 phy->np = np ; in pcm_init() 252 mib->fddiPORTMy_Type = (np == PS) ? TS : TM ; in pcm_init() 255 mib->fddiPORTMy_Type = (np == PA) ? TA : in pcm_init() 256 (np == PB) ? TB : TM ; in pcm_init() 263 mib->fddiPORTMy_Type = (np == PS) ? TS : TNONE ; in pcm_init() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/512x/ |
D | mpc512x_shared.c | 38 struct device_node *np; in mpc512x_restart_init() local 42 np = of_find_compatible_node(NULL, NULL, reset_compat); in mpc512x_restart_init() 43 if (!np) in mpc512x_restart_init() 46 reset_module_base = of_iomap(np, 0); in mpc512x_restart_init() 47 of_node_put(np); in mpc512x_restart_init() 75 struct device_node *np; in mpc512x_set_pixel_clock() local 81 np = of_find_compatible_node(NULL, NULL, "fsl,mpc5121-diu"); in mpc512x_set_pixel_clock() 82 if (!np) { in mpc512x_set_pixel_clock() 86 clk_diu = of_clk_get(np, 0); in mpc512x_set_pixel_clock() 89 clk_diu = clk_get_sys(np->name, "ipg"); in mpc512x_set_pixel_clock() [all …]
|
D | mpc5121_ads_cpld.c | 150 struct device_node *np = NULL; in mpc5121_ads_cpld_map() local 152 np = of_find_compatible_node(NULL, NULL, "fsl,mpc5121ads-cpld-pic"); in mpc5121_ads_cpld_map() 153 if (!np) { in mpc5121_ads_cpld_map() 158 cpld_regs = of_iomap(np, 0); in mpc5121_ads_cpld_map() 159 of_node_put(np); in mpc5121_ads_cpld_map() 166 struct device_node *np = NULL; in mpc5121_ads_cpld_pic_init() local 170 np = of_find_compatible_node(NULL, NULL, "fsl,mpc5121ads-cpld-pic"); in mpc5121_ads_cpld_pic_init() 171 if (!np) { in mpc5121_ads_cpld_pic_init() 179 cascade_irq = irq_of_parse_and_map(np, 0); in mpc5121_ads_cpld_pic_init() 193 cpld_pic_node = of_node_get(np); in mpc5121_ads_cpld_pic_init() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/44x/ |
D | warp.c | 71 struct device_node *np; in warp_post_info() local 76 np = of_find_compatible_node(NULL, NULL, "pika,fpga-sd"); in warp_post_info() 77 if (np == NULL) in warp_post_info() 80 fpga = of_iomap(np, 0); in warp_post_info() 81 of_node_put(np); in warp_post_info() 175 struct device_node *np, *child; in pika_setup_leds() local 177 np = of_find_compatible_node(NULL, NULL, "gpio-leds"); in pika_setup_leds() 178 if (!np) { in pika_setup_leds() 183 for_each_child_of_node(np, child) in pika_setup_leds() 189 of_node_put(np); in pika_setup_leds() [all …]
|
D | canyonlands.c | 70 struct device_node *np; in ppc460ex_canyonlands_fixup() local 73 np = of_find_compatible_node(NULL, NULL, "amcc,ppc460ex-bcsr"); in ppc460ex_canyonlands_fixup() 74 if (!np) { in ppc460ex_canyonlands_fixup() 79 bcsr = of_iomap(np, 0); in ppc460ex_canyonlands_fixup() 80 of_node_put(np); in ppc460ex_canyonlands_fixup() 88 np = of_find_compatible_node(NULL, NULL, "ibm,ppc4xx-gpio"); in ppc460ex_canyonlands_fixup() 89 if (!np) { in ppc460ex_canyonlands_fixup() 94 vaddr = of_iomap(np, 0); in ppc460ex_canyonlands_fixup() 95 of_node_put(np); in ppc460ex_canyonlands_fixup()
|
D | ppc476.c | 125 struct device_node *np; in ppc47x_init_irq() local 128 for_each_node_with_property(np, "interrupt-controller") { in ppc47x_init_irq() 129 if (of_get_property(np, "interrupts", NULL) == NULL) in ppc47x_init_irq() 132 if (np == NULL) in ppc47x_init_irq() 136 if (of_device_is_compatible(np, "chrp,open-pic")) { in ppc47x_init_irq() 141 mpic_alloc(np, 0, MPIC_NO_RESET, 0, 0, " MPIC "); in ppc47x_init_irq() 227 struct device_node *np = NULL; in ppc47x_get_board_rev() local 230 np = of_find_compatible_node(NULL, NULL, "ibm,currituck-fpga"); in ppc47x_get_board_rev() 233 np = of_find_compatible_node(NULL, NULL, "ibm,akebono-fpga"); in ppc47x_get_board_rev() 237 if (!np) in ppc47x_get_board_rev() [all …]
|
D | iss4xx.c | 55 struct device_node *np; in iss4xx_init_irq() local 58 for_each_node_with_property(np, "interrupt-controller") { in iss4xx_init_irq() 59 if (of_get_property(np, "interrupts", NULL) == NULL) in iss4xx_init_irq() 62 if (np == NULL) in iss4xx_init_irq() 66 if (of_device_is_compatible(np, "ibm,uic")) { in iss4xx_init_irq() 70 } else if (of_device_is_compatible(np, "chrp,open-pic")) { in iss4xx_init_irq() 74 struct mpic *mpic = mpic_alloc(np, 0, MPIC_NO_RESET, 0, 0, " MPIC "); in iss4xx_init_irq()
|
/linux-4.4.14/drivers/target/iscsi/ |
D | iscsi_target_login.c | 695 struct iscsi_np *np, in iscsi_post_login_handler() argument 823 struct iscsi_np *np = (struct iscsi_np *) data; in iscsi_handle_login_thread_timeout() local 825 spin_lock_bh(&np->np_thread_lock); in iscsi_handle_login_thread_timeout() 827 &np->np_sockaddr); in iscsi_handle_login_thread_timeout() 829 if (np->np_login_timer_flags & ISCSI_TF_STOP) { in iscsi_handle_login_thread_timeout() 830 spin_unlock_bh(&np->np_thread_lock); in iscsi_handle_login_thread_timeout() 834 if (np->np_thread) in iscsi_handle_login_thread_timeout() 835 send_sig(SIGINT, np->np_thread, 1); in iscsi_handle_login_thread_timeout() 837 np->np_login_timer_flags &= ~ISCSI_TF_RUNNING; in iscsi_handle_login_thread_timeout() 838 spin_unlock_bh(&np->np_thread_lock); in iscsi_handle_login_thread_timeout() [all …]
|
/linux-4.4.14/drivers/irqchip/ |
D | irq-orion.c | 52 static int __init orion_irq_init(struct device_node *np, in orion_irq_init() argument 60 while (of_address_to_resource(np, num_chips, &r) == 0) in orion_irq_init() 63 orion_irq_domain = irq_domain_add_linear(np, in orion_irq_init() 67 panic("%s: unable to add irq domain\n", np->name); in orion_irq_init() 70 ORION_IRQS_PER_CHIP, 1, np->name, in orion_irq_init() 74 panic("%s: unable to alloc irq domain gc\n", np->name); in orion_irq_init() 80 of_address_to_resource(np, n, &r); in orion_irq_init() 82 if (!request_mem_region(r.start, resource_size(&r), np->name)) in orion_irq_init() 84 np->name, n); in orion_irq_init() 88 panic("%s: unable to map resource %d", np->name, n); in orion_irq_init() [all …]
|
D | irq-gic-v3-its-platform-msi.c | 43 if (args.np == irq_domain_get_of_node(domain)) { in its_pmsi_prepare() 78 struct device_node *np; in its_pmsi_init() local 81 for (np = of_find_matching_node(NULL, its_device_id); np; in its_pmsi_init() 82 np = of_find_matching_node(np, its_device_id)) { in its_pmsi_init() 83 if (!of_property_read_bool(np, "msi-controller")) in its_pmsi_init() 86 parent = irq_find_matching_host(np, DOMAIN_BUS_NEXUS); in its_pmsi_init() 89 np->full_name); in its_pmsi_init() 93 if (!platform_msi_create_irq_domain(of_node_to_fwnode(np), in its_pmsi_init() 97 np->full_name); in its_pmsi_init() 101 pr_info("Platform MSI: %s domain created\n", np->full_name); in its_pmsi_init()
|
D | irq-gic-v3-its-pci-msi.c | 111 struct device_node *np; in its_pci_msi_init() local 114 for (np = of_find_matching_node(NULL, its_device_id); np; in its_pci_msi_init() 115 np = of_find_matching_node(np, its_device_id)) { in its_pci_msi_init() 116 if (!of_property_read_bool(np, "msi-controller")) in its_pci_msi_init() 119 parent = irq_find_matching_host(np, DOMAIN_BUS_NEXUS); in its_pci_msi_init() 122 np->full_name); in its_pci_msi_init() 126 if (!pci_msi_create_irq_domain(of_node_to_fwnode(np), in its_pci_msi_init() 130 np->full_name); in its_pci_msi_init() 134 pr_info("PCI/MSI: %s domain created\n", np->full_name); in its_pci_msi_init()
|
D | irq-mxs.c | 171 static void __init icoll_add_domain(struct device_node *np, in icoll_add_domain() argument 174 icoll_domain = irq_domain_add_linear(np, num, in icoll_add_domain() 178 panic("%s: unable to create irq domain", np->full_name); in icoll_add_domain() 181 static void __iomem * __init icoll_init_iobase(struct device_node *np) in icoll_init_iobase() argument 185 icoll_base = of_io_request_and_map(np, 0, np->name); in icoll_init_iobase() 187 panic("%s: unable to map resource", np->full_name); in icoll_init_iobase() 191 static int __init icoll_of_init(struct device_node *np, in icoll_of_init() argument 198 icoll_base = icoll_init_iobase(np); in icoll_of_init() 212 icoll_add_domain(np, ICOLL_NUM_IRQS); in icoll_of_init() 218 static int __init asm9260_of_init(struct device_node *np, in asm9260_of_init() argument [all …]
|
D | irq-dw-apb-ictl.c | 68 static int __init dw_apb_ictl_init(struct device_node *np, in dw_apb_ictl_init() argument 80 irq = irq_of_parse_and_map(np, 0); in dw_apb_ictl_init() 82 pr_err("%s: unable to parse irq\n", np->full_name); in dw_apb_ictl_init() 86 ret = of_address_to_resource(np, 0, &r); in dw_apb_ictl_init() 88 pr_err("%s: unable to get resource\n", np->full_name); in dw_apb_ictl_init() 92 if (!request_mem_region(r.start, resource_size(&r), np->full_name)) { in dw_apb_ictl_init() 93 pr_err("%s: unable to request mem region\n", np->full_name); in dw_apb_ictl_init() 99 pr_err("%s: unable to map resource\n", np->full_name); in dw_apb_ictl_init() 123 domain = irq_domain_add_linear(np, nrirqs, in dw_apb_ictl_init() 126 pr_err("%s: unable to add irq domain\n", np->full_name); in dw_apb_ictl_init() [all …]
|
/linux-4.4.14/drivers/usb/host/ |
D | fsl-mph-dr-of.c | 45 static struct fsl_usb2_dev_data *get_dr_mode_data(struct device_node *np) in get_dr_mode_data() argument 50 prop = of_get_property(np, "dr_mode", NULL); in get_dr_mode_data() 58 np->full_name); in get_dr_mode_data() 124 static enum fsl_usb2_controller_ver usb_get_ver_info(struct device_node *np) in usb_get_ver_info() argument 135 if (of_device_is_compatible(np, "fsl-usb2-dr")) { in usb_get_ver_info() 136 if (of_device_is_compatible(np, "fsl-usb2-dr-v1.6")) in usb_get_ver_info() 138 else if (of_device_is_compatible(np, "fsl-usb2-dr-v2.2")) in usb_get_ver_info() 140 else if (of_device_is_compatible(np, "fsl-usb2-dr-v2.4")) in usb_get_ver_info() 142 else if (of_device_is_compatible(np, "fsl-usb2-dr-v2.5")) in usb_get_ver_info() 151 if (of_device_is_compatible(np, "fsl,mpc5121-usb2-dr")) in usb_get_ver_info() [all …]
|
/linux-4.4.14/drivers/mmc/core/ |
D | host.c | 159 struct device_node *np; in mmc_of_parse() local 168 np = host->parent->of_node; in mmc_of_parse() 171 if (of_property_read_u32(np, "bus-width", &bus_width) < 0) { in mmc_of_parse() 193 of_property_read_u32(np, "max-frequency", &host->f_max); in mmc_of_parse() 208 if (of_property_read_bool(np, "non-removable")) { in mmc_of_parse() 211 cd_cap_invert = of_property_read_bool(np, "cd-inverted"); in mmc_of_parse() 213 if (of_property_read_bool(np, "broken-cd")) in mmc_of_parse() 239 ro_cap_invert = of_property_read_bool(np, "wp-inverted"); in mmc_of_parse() 247 if (of_property_read_bool(np, "disable-wp")) in mmc_of_parse() 254 if (of_property_read_bool(np, "cap-sd-highspeed")) in mmc_of_parse() [all …]
|
D | pwrseq.c | 35 static struct mmc_pwrseq_match *mmc_pwrseq_find(struct device_node *np) in mmc_pwrseq_find() argument 41 if (of_device_is_compatible(np, pwrseq_match[i].compatible)) { in mmc_pwrseq_find() 53 struct device_node *np; in mmc_pwrseq_alloc() local 58 np = of_parse_phandle(host->parent->of_node, "mmc-pwrseq", 0); in mmc_pwrseq_alloc() 59 if (!np) in mmc_pwrseq_alloc() 62 pdev = of_find_device_by_node(np); in mmc_pwrseq_alloc() 68 match = mmc_pwrseq_find(np); in mmc_pwrseq_alloc() 84 of_node_put(np); in mmc_pwrseq_alloc()
|
/linux-4.4.14/drivers/dma/ |
D | of-dma.c | 38 if (ofdma->of_node == dma_spec->np) in of_dma_find_controller() 42 dma_spec->np->full_name); in of_dma_find_controller() 87 of_node_put(dma_spec_target.np); in of_dma_router_xlate() 104 int of_dma_controller_register(struct device_node *np, in of_dma_controller_register() argument 111 if (!np || !of_dma_xlate) { in of_dma_controller_register() 120 ofdma->of_node = np; in of_dma_controller_register() 139 void of_dma_controller_free(struct device_node *np) in of_dma_controller_free() argument 146 if (ofdma->of_node == np) { in of_dma_controller_free() 171 int of_dma_router_register(struct device_node *np, in of_dma_router_register() argument 178 if (!np || !of_dma_route_allocate || !dma_router) { in of_dma_router_register() [all …]
|
/linux-4.4.14/net/ipv6/ |
D | ipv6_sockglue.c | 143 struct ipv6_pinfo *np = inet6_sk(sk); in do_ipv6_setsockopt() local 235 opt = xchg((__force struct ipv6_txoptions **)&np->opt, in do_ipv6_setsockopt() 241 pktopt = xchg(&np->pktoptions, NULL); in do_ipv6_setsockopt() 267 np->rxopt.bits.rxinfo = valbool; in do_ipv6_setsockopt() 274 np->rxopt.bits.rxoinfo = valbool; in do_ipv6_setsockopt() 281 np->rxopt.bits.rxhlim = valbool; in do_ipv6_setsockopt() 288 np->rxopt.bits.rxohlim = valbool; in do_ipv6_setsockopt() 295 np->rxopt.bits.srcrt = valbool; in do_ipv6_setsockopt() 302 np->rxopt.bits.osrcrt = valbool; in do_ipv6_setsockopt() 309 np->rxopt.bits.hopopts = valbool; in do_ipv6_setsockopt() [all …]
|
D | datagram.c | 47 struct ipv6_pinfo *np = inet6_sk(sk); in __ip6_datagram_connect() local 70 if (np->sndflow) { in __ip6_datagram_connect() 111 if (ipv6_addr_any(&np->saddr) || in __ip6_datagram_connect() 112 ipv6_mapped_addr_any(&np->saddr)) in __ip6_datagram_connect() 113 ipv6_addr_set_v4mapped(inet->inet_saddr, &np->saddr); in __ip6_datagram_connect() 138 sk->sk_bound_dev_if = np->mcast_oif; in __ip6_datagram_connect() 148 np->flow_label = fl6.flowlabel; in __ip6_datagram_connect() 159 fl6.saddr = np->saddr; in __ip6_datagram_connect() 166 fl6.flowi6_oif = np->sticky_pktinfo.ipi6_ifindex; in __ip6_datagram_connect() 169 fl6.flowi6_oif = np->mcast_oif; in __ip6_datagram_connect() [all …]
|
/linux-4.4.14/arch/arm/mach-mvebu/ |
D | pmsu.c | 164 struct device_node *np; in mvebu_v7_pmsu_init() local 168 np = of_find_matching_node(NULL, of_pmsu_table); in mvebu_v7_pmsu_init() 169 if (!np) in mvebu_v7_pmsu_init() 174 if (of_address_to_resource(np, 0, &res)) { in mvebu_v7_pmsu_init() 180 if (of_device_is_compatible(np, "marvell,armada-370-xp-pmsu")) { in mvebu_v7_pmsu_init() 187 np->full_name)) { in mvebu_v7_pmsu_init() 204 of_node_put(np); in mvebu_v7_pmsu_init() 382 static int broken_idle(struct device_node *np) in broken_idle() argument 384 if (of_property_read_bool(np, "broken-idle")) { in broken_idle() 394 struct device_node *np; in armada_370_cpuidle_init() local [all …]
|
D | cpu-reset.c | 42 static int mvebu_cpu_reset_map(struct device_node *np, int res_idx) in mvebu_cpu_reset_map() argument 46 if (of_address_to_resource(np, res_idx, &res)) { in mvebu_cpu_reset_map() 52 np->full_name)) { in mvebu_cpu_reset_map() 71 struct device_node *np; in mvebu_cpu_reset_init() local 75 np = of_find_compatible_node(NULL, NULL, in mvebu_cpu_reset_init() 77 if (np) { in mvebu_cpu_reset_init() 84 np = of_find_compatible_node(NULL, NULL, in mvebu_cpu_reset_init() 86 if (np) { in mvebu_cpu_reset_init() 93 if (!np) in mvebu_cpu_reset_init() 96 ret = mvebu_cpu_reset_map(np, res_idx); in mvebu_cpu_reset_init() [all …]
|
D | coherency.c | 128 static void __init armada_370_coherency_init(struct device_node *np) in armada_370_coherency_init() argument 133 of_address_to_resource(np, 0, &res); in armada_370_coherency_init() 142 coherency_base = of_iomap(np, 0); in armada_370_coherency_init() 143 coherency_cpu_base = of_iomap(np, 1); in armada_370_coherency_init() 184 static void __init armada_375_380_coherency_init(struct device_node *np) in armada_375_380_coherency_init() argument 188 coherency_cpu_base = of_iomap(np, 0); in armada_375_380_coherency_init() 216 struct device_node *np; in coherency_type() local 244 np = of_find_matching_node_and_match(NULL, of_coherency_table, &match); in coherency_type() 245 if (!np) in coherency_type() 250 of_node_put(np); in coherency_type() [all …]
|
D | pm.c | 91 struct device_node *np; in mvebu_internal_reg_base() local 94 np = of_find_node_by_name(NULL, "internal-regs"); in mvebu_internal_reg_base() 95 BUG_ON(!np); in mvebu_internal_reg_base() 105 return of_translate_address(np, in_addr); in mvebu_internal_reg_base() 238 struct device_node *np; in mvebu_pm_suspend_init() local 241 np = of_find_compatible_node(NULL, NULL, in mvebu_pm_suspend_init() 243 if (!np) in mvebu_pm_suspend_init() 246 if (of_address_to_resource(np, 0, &res)) { in mvebu_pm_suspend_init() 247 of_node_put(np); in mvebu_pm_suspend_init() 252 np->full_name)) { in mvebu_pm_suspend_init() [all …]
|
D | pm-board.c | 81 struct device_node *np; in mvebu_armada_pm_init() local 88 np = of_find_node_by_name(NULL, "pm_pic"); in mvebu_armada_pm_init() 89 if (!np) in mvebu_armada_pm_init() 96 pic_gpios[i] = of_get_named_gpio(np, "ctrl-gpios", i); in mvebu_armada_pm_init() 121 ret = of_parse_phandle_with_fixed_args(np, "ctrl-gpios", 2, in mvebu_armada_pm_init() 129 gpio_ctrl_np = args.np; in mvebu_armada_pm_init() 140 of_node_put(np); in mvebu_armada_pm_init()
|
/linux-4.4.14/arch/arm/mach-vt8500/ |
D | vt8500.c | 77 struct device_node *np; in vt8500_init() local 86 np = of_find_compatible_node(NULL, NULL, "via,vt8500-gpio"); in vt8500_init() 87 if (np) { in vt8500_init() 88 gpio_base = of_iomap(np, 0); in vt8500_init() 94 of_node_put(np); in vt8500_init() 115 np = of_find_compatible_node(NULL, NULL, "wm,wm8505-gpio"); in vt8500_init() 116 if (!np) in vt8500_init() 117 np = of_find_compatible_node(NULL, NULL, in vt8500_init() 119 if (np) { in vt8500_init() 120 gpio_base = of_iomap(np, 0); in vt8500_init() [all …]
|
/linux-4.4.14/drivers/iommu/ |
D | of_iommu.c | 100 struct device_node *np; member 106 void of_iommu_set_ops(struct device_node *np, struct iommu_ops *ops) in of_iommu_set_ops() argument 114 iommu->np = np; in of_iommu_set_ops() 121 struct iommu_ops *of_iommu_get_ops(struct device_node *np) in of_iommu_get_ops() argument 128 if (node->np == np) { in of_iommu_get_ops() 140 struct device_node *np; in of_iommu_configure() local 159 np = iommu_spec.np; in of_iommu_configure() 160 ops = of_iommu_get_ops(np); in of_iommu_configure() 165 of_node_put(np); in of_iommu_configure() 172 of_node_put(np); in of_iommu_configure() [all …]
|
/linux-4.4.14/drivers/net/ |
D | netconsole.c | 115 struct netpoll np; member 191 nt->np.name = "netconsole"; in alloc_param_target() 192 strlcpy(nt->np.dev_name, "eth0", IFNAMSIZ); in alloc_param_target() 193 nt->np.local_port = 6665; in alloc_param_target() 194 nt->np.remote_port = 6666; in alloc_param_target() 195 eth_broadcast_addr(nt->np.remote_mac); in alloc_param_target() 203 err = netpoll_parse_options(&nt->np, target_config); in alloc_param_target() 207 err = netpoll_setup(&nt->np); in alloc_param_target() 223 netpoll_cleanup(&nt->np); in free_param_target() 270 return snprintf(buf, PAGE_SIZE, "%s\n", to_target(item)->np.dev_name); in dev_name_show() [all …]
|
/linux-4.4.14/arch/arm/mach-shmobile/ |
D | pm-rmobile.c | 185 static void __init add_special_pd(struct device_node *np, enum pd_types type) in add_special_pd() argument 190 pd = of_parse_phandle(np, "power-domains", 0); in add_special_pd() 207 np->full_name); in add_special_pd() 216 struct device_node *np; in get_special_pds() local 220 for_each_node_by_type(np, "cpu") in get_special_pds() 221 add_special_pd(np, PD_CPU); in get_special_pds() 228 for_each_matching_node_and_match(np, special_ids, &id) in get_special_pds() 229 add_special_pd(np, (enum pd_types)id->data); in get_special_pds() 251 static void __init rmobile_setup_pm_domain(struct device_node *np, in rmobile_setup_pm_domain() argument 256 switch (pd_type(np)) { in rmobile_setup_pm_domain() [all …]
|
D | timer.c | 40 struct device_node *np, *cpus; in shmobile_init_delay() local 50 for_each_child_of_node(cpus, np) { in shmobile_init_delay() 53 if (!of_property_read_u32(np, "clock-frequency", &freq)) in shmobile_init_delay() 56 if (of_device_is_compatible(np, "arm,cortex-a8") || in shmobile_init_delay() 57 of_device_is_compatible(np, "arm,cortex-a9")) { in shmobile_init_delay() 59 } else if (of_device_is_compatible(np, "arm,cortex-a7")) { in shmobile_init_delay() 62 } else if (of_device_is_compatible(np, "arm,cortex-a15")) { in shmobile_init_delay()
|
/linux-4.4.14/drivers/thermal/ |
D | of-thermal.c | 228 if (tbp->cooling_device == cdev->np) { in of_thermal_bind() 257 if (tbp->cooling_device == cdev->np) { in of_thermal_unbind() 464 struct device_node *np, *child, *sensor_np; in thermal_zone_of_sensor_register() local 467 np = of_find_node_by_name(NULL, "thermal-zones"); in thermal_zone_of_sensor_register() 468 if (!np) in thermal_zone_of_sensor_register() 472 of_node_put(np); in thermal_zone_of_sensor_register() 478 for_each_child_of_node(np, child) { in thermal_zone_of_sensor_register() 497 sensor_specs.np->name, sensor_specs.args_count); in thermal_zone_of_sensor_register() 502 if (sensor_specs.np == sensor_np && id == sensor_id) { in thermal_zone_of_sensor_register() 508 of_node_put(sensor_specs.np); in thermal_zone_of_sensor_register() [all …]
|
/linux-4.4.14/drivers/gpu/drm/exynos/ |
D | exynos_drm_dpi.c | 179 struct device_node *np; in of_get_child_by_name_reg() local 181 for_each_child_of_node(parent, np) { in of_get_child_by_name_reg() 184 if (!np->name || of_node_cmp(np->name, name)) in of_get_child_by_name_reg() 187 if (of_property_read_u32(np, "reg", &r) < 0) in of_get_child_by_name_reg() 194 return np; in of_get_child_by_name_reg() 222 struct device_node *np; in of_graph_get_remote_port_parent() local 225 np = of_parse_phandle(node, "remote-endpoint", 0); in of_graph_get_remote_port_parent() 228 for (depth = 3; depth && np; depth--) { in of_graph_get_remote_port_parent() 229 np = of_get_next_parent(np); in of_graph_get_remote_port_parent() 230 if (depth == 2 && of_node_cmp(np->name, "ports")) in of_graph_get_remote_port_parent() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/52xx/ |
D | mpc52xx_common.c | 59 struct device_node *np; in mpc5200_setup_xlb_arbiter() local 62 np = of_find_matching_node(NULL, mpc52xx_xlb_ids); in mpc5200_setup_xlb_arbiter() 63 xlb = of_iomap(np, 0); in mpc5200_setup_xlb_arbiter() 64 of_node_put(np); in mpc5200_setup_xlb_arbiter() 137 struct device_node *np; in mpc52xx_map_common_devices() local 143 for_each_matching_node(np, mpc52xx_gpt_ids) { in mpc52xx_map_common_devices() 144 if (of_get_property(np, "fsl,has-wdt", NULL) || in mpc52xx_map_common_devices() 145 of_get_property(np, "has-wdt", NULL)) { in mpc52xx_map_common_devices() 146 mpc52xx_wdt = of_iomap(np, 0); in mpc52xx_map_common_devices() 147 of_node_put(np); in mpc52xx_map_common_devices() [all …]
|
D | lite5200.c | 59 struct device_node *np; in lite5200_fix_clock_config() local 62 np = of_find_matching_node(NULL, mpc5200_cdm_ids); in lite5200_fix_clock_config() 63 cdm = of_iomap(np, 0); in lite5200_fix_clock_config() 64 of_node_put(np); in lite5200_fix_clock_config() 93 struct device_node *np; in lite5200_fix_port_config() local 97 np = of_find_matching_node(NULL, mpc5200_gpio_ids); in lite5200_fix_port_config() 98 gpio = of_iomap(np, 0); in lite5200_fix_port_config() 99 of_node_put(np); in lite5200_fix_port_config()
|
/linux-4.4.14/drivers/media/v4l2-core/ |
D | v4l2-of.c | 276 struct device_node *np; in v4l2_of_parse_link() local 280 np = of_get_parent(node); in v4l2_of_parse_link() 281 of_property_read_u32(np, "reg", &link->local_port); in v4l2_of_parse_link() 282 np = of_get_next_parent(np); in v4l2_of_parse_link() 283 if (of_node_cmp(np->name, "ports") == 0) in v4l2_of_parse_link() 284 np = of_get_next_parent(np); in v4l2_of_parse_link() 285 link->local_node = np; in v4l2_of_parse_link() 287 np = of_parse_phandle(node, "remote-endpoint", 0); in v4l2_of_parse_link() 288 if (!np) { in v4l2_of_parse_link() 293 np = of_get_parent(np); in v4l2_of_parse_link() [all …]
|
/linux-4.4.14/drivers/net/cris/ |
D | eth_v10.c | 200 static void e100_hardware_send_packet(struct net_local* np, char *buf, int length); 288 struct net_local* np; in etrax_ethernet_init() local 303 np = netdev_priv(dev); in etrax_ethernet_init() 320 spin_lock_init(&np->lock); in etrax_ethernet_init() 321 spin_lock_init(&np->led_lock); in etrax_ethernet_init() 322 spin_lock_init(&np->transceiver_lock); in etrax_ethernet_init() 400 np->mii_if.phy_id_mask = 0x1f; in etrax_ethernet_init() 401 np->mii_if.reg_num_mask = 0x1f; in etrax_ethernet_init() 402 np->mii_if.dev = dev; in etrax_ethernet_init() 403 np->mii_if.mdio_read = e100_get_mdio_reg; in etrax_ethernet_init() [all …]
|
/linux-4.4.14/drivers/regulator/ |
D | of_regulator.c | 27 static void of_get_regulation_constraints(struct device_node *np, in of_get_regulation_constraints() argument 38 constraints->name = of_get_property(np, "regulator-name", NULL); in of_get_regulation_constraints() 40 min_uV = of_get_property(np, "regulator-min-microvolt", NULL); in of_get_regulation_constraints() 43 max_uV = of_get_property(np, "regulator-max-microvolt", NULL); in of_get_regulation_constraints() 54 if (!of_property_read_u32(np, "regulator-microvolt-offset", &pval)) in of_get_regulation_constraints() 56 if (!of_property_read_u32(np, "regulator-min-microamp", &pval)) in of_get_regulation_constraints() 58 if (!of_property_read_u32(np, "regulator-max-microamp", &pval)) in of_get_regulation_constraints() 61 if (!of_property_read_u32(np, "regulator-input-current-limit-microamp", in of_get_regulation_constraints() 69 constraints->boot_on = of_property_read_bool(np, "regulator-boot-on"); in of_get_regulation_constraints() 70 constraints->always_on = of_property_read_bool(np, "regulator-always-on"); in of_get_regulation_constraints() [all …]
|
D | gpio-regulator.c | 136 of_get_gpio_regulator_config(struct device *dev, struct device_node *np, in of_get_gpio_regulator_config() argument 150 config->init_data = of_get_regulator_init_data(dev, np, desc); in of_get_gpio_regulator_config() 156 if (of_property_read_bool(np, "enable-active-high")) in of_get_gpio_regulator_config() 159 if (of_property_read_bool(np, "enable-at-boot")) in of_get_gpio_regulator_config() 162 of_property_read_u32(np, "startup-delay-us", &config->startup_delay); in of_get_gpio_regulator_config() 164 config->enable_gpio = of_get_named_gpio(np, "enable-gpio", 0); in of_get_gpio_regulator_config() 167 ret = of_gpio_count(np); in of_get_gpio_regulator_config() 179 proplen = of_property_count_u32_elems(np, "gpios-states"); in of_get_gpio_regulator_config() 190 gpio = of_get_named_gpio(np, "gpios", i); in of_get_gpio_regulator_config() 195 of_property_read_u32_index(np, "gpios-states", in of_get_gpio_regulator_config() [all …]
|
/linux-4.4.14/arch/arm/mach-ux500/ |
D | platsmp.c | 37 struct device_node *np; in wakeup_secondary() local 40 np = of_find_compatible_node(NULL, NULL, "ste,dbx500-backupram"); in wakeup_secondary() 41 if (!np) { in wakeup_secondary() 45 backupram = of_iomap(np, 0); in wakeup_secondary() 46 of_node_put(np); in wakeup_secondary() 70 struct device_node *np; in ux500_smp_prepare_cpus() local 75 np = of_find_compatible_node(NULL, NULL, "arm,cortex-a9-scu"); in ux500_smp_prepare_cpus() 76 if (!np) { in ux500_smp_prepare_cpus() 80 scu_base = of_iomap(np, 0); in ux500_smp_prepare_cpus() 81 of_node_put(np); in ux500_smp_prepare_cpus()
|
/linux-4.4.14/arch/arm/mach-zx/ |
D | platsmp.c | 46 struct device_node *np; in zx_smp_prepare_cpus() local 60 np = of_find_compatible_node(NULL, NULL, "zte,sysctrl"); in zx_smp_prepare_cpus() 61 if (!np) { in zx_smp_prepare_cpus() 66 aonsysctrl_base = of_iomap(np, 0); in zx_smp_prepare_cpus() 69 of_node_put(np); in zx_smp_prepare_cpus() 83 of_node_put(np); in zx_smp_prepare_cpus() 85 np = of_find_compatible_node(NULL, NULL, "zte,zx296702-pcu"); in zx_smp_prepare_cpus() 86 pcu_base = of_iomap(np, 0); in zx_smp_prepare_cpus() 87 of_node_put(np); in zx_smp_prepare_cpus() 90 np = of_find_compatible_node(NULL, NULL, "zte,zx-bus-matrix"); in zx_smp_prepare_cpus() [all …]
|
/linux-4.4.14/drivers/video/fbdev/omap2/dss/ |
D | dss-of.c | 93 struct device_node *np; in dss_of_port_get_parent_device() local 99 np = of_get_parent(port); in dss_of_port_get_parent_device() 101 for (i = 0; i < 2 && np; ++i) { in dss_of_port_get_parent_device() 104 prop = of_find_property(np, "compatible", NULL); in dss_of_port_get_parent_device() 107 return np; in dss_of_port_get_parent_device() 109 np = of_get_next_parent(np); in dss_of_port_get_parent_device() 129 struct device_node *np; in omapdss_of_get_remote_port() local 131 np = of_parse_phandle(node, "remote-endpoint", 0); in omapdss_of_get_remote_port() 132 if (!np) in omapdss_of_get_remote_port() 135 np = of_get_next_parent(np); in omapdss_of_get_remote_port() [all …]
|
/linux-4.4.14/drivers/mfd/ |
D | syscon.c | 34 struct device_node *np; member 45 static struct syscon *of_syscon_register(struct device_node *np) in of_syscon_register() argument 53 if (!of_device_is_compatible(np, "syscon")) in of_syscon_register() 60 base = of_iomap(np, 0); in of_syscon_register() 67 if (of_property_read_bool(np, "big-endian")) in of_syscon_register() 69 else if (of_property_read_bool(np, "little-endian")) in of_syscon_register() 80 syscon->np = np; in of_syscon_register() 95 struct regmap *syscon_node_to_regmap(struct device_node *np) in syscon_node_to_regmap() argument 102 if (entry->np == np) { in syscon_node_to_regmap() 110 syscon = of_syscon_register(np); in syscon_node_to_regmap() [all …]
|
/linux-4.4.14/drivers/mmc/host/ |
D | sdhci-pltfm.c | 55 static bool sdhci_of_wp_inverted(struct device_node *np) in sdhci_of_wp_inverted() argument 57 if (of_get_property(np, "sdhci,wp-inverted", NULL) || in sdhci_of_wp_inverted() 58 of_get_property(np, "wp-inverted", NULL)) in sdhci_of_wp_inverted() 71 struct device_node *np = pdev->dev.of_node; in sdhci_get_of_property() local 76 if (of_get_property(np, "sdhci,auto-cmd12", NULL)) in sdhci_get_of_property() 79 if (of_get_property(np, "sdhci,1-bit-only", NULL) || in sdhci_get_of_property() 80 (of_property_read_u32(np, "bus-width", &bus_width) == 0 && in sdhci_get_of_property() 84 if (sdhci_of_wp_inverted(np)) in sdhci_get_of_property() 87 if (of_get_property(np, "broken-cd", NULL)) in sdhci_get_of_property() 90 if (of_get_property(np, "no-1-8-v", NULL)) in sdhci_get_of_property() [all …]
|
/linux-4.4.14/arch/mips/bmips/ |
D | setup.c | 127 struct device_node *np; in plat_time_init() local 130 np = of_find_node_by_name(NULL, "cpus"); in plat_time_init() 131 if (!np) in plat_time_init() 133 if (of_property_read_u32(np, "mips-hpt-frequency", &freq) < 0) in plat_time_init() 135 of_node_put(np); in plat_time_init() 171 struct device_node *np; in device_tree_init() local 176 np = of_find_node_by_name(NULL, "cpus"); in device_tree_init() 177 if (np && of_get_available_child_count(np) <= 1) in device_tree_init() 179 of_node_put(np); in device_tree_init()
|
/linux-4.4.14/drivers/char/tpm/ |
D | tpm_of.c | 25 struct device_node *np; in read_log() local 34 np = of_find_node_by_name(NULL, "vtpm"); in read_log() 35 if (!np) { in read_log() 40 sizep = of_get_property(np, "linux,sml-size", NULL); in read_log() 50 basep = of_get_property(np, "linux,sml-base", NULL); in read_log() 60 of_node_put(np); in read_log() 67 of_node_put(np); in read_log() 72 of_node_put(np); in read_log()
|
/linux-4.4.14/drivers/clk/versatile/ |
D | clk-versatile.c | 58 static void __init cm_osc_setup(struct device_node *np, in cm_osc_setup() argument 62 const char *clk_name = np->name; in cm_osc_setup() 69 parent = of_get_parent(np); in cm_osc_setup() 81 parent_name = of_clk_get_parent_name(np, 0); in cm_osc_setup() 84 of_clk_add_provider(np, of_clk_src_simple_get, clk); in cm_osc_setup() 87 static void __init of_integrator_cm_osc_setup(struct device_node *np) in of_integrator_cm_osc_setup() argument 89 cm_osc_setup(np, &cm_auxosc_desc); in of_integrator_cm_osc_setup() 94 static void __init of_versatile_cm_osc_setup(struct device_node *np) in of_versatile_cm_osc_setup() argument 96 cm_osc_setup(np, &versatile_auxosc_desc); in of_versatile_cm_osc_setup()
|
/linux-4.4.14/arch/powerpc/platforms/embedded6xx/ |
D | mvme5100.c | 59 struct device_node *np; in mvme5100_pic_init() local 65 np = of_find_node_by_type(NULL, "open-pic"); in mvme5100_pic_init() 66 if (!np) { in mvme5100_pic_init() 71 mpic = mpic_alloc(np, pci_membase, 0, 16, 256, " OpenPIC "); in mvme5100_pic_init() 74 of_node_put(np); in mvme5100_pic_init() 92 np = of_find_compatible_node(NULL, "pci", "mpc10x-pci"); in mvme5100_pic_init() 93 if (np) { in mvme5100_pic_init() 94 prop = of_get_property(np, "8259-interrupt-acknowledge", NULL); in mvme5100_pic_init() 99 of_node_put(np); in mvme5100_pic_init() 162 struct device_node *np; in mvme5100_setup_arch() local [all …]
|
D | c2k.c | 44 struct device_node *np; in c2k_setup_arch() local 52 np = of_find_compatible_node(NULL, NULL, "marvell,mv64360-mpp"); in c2k_setup_arch() 53 reg = of_get_property(np, "reg", NULL); in c2k_setup_arch() 54 paddr = of_translate_address(np, reg); in c2k_setup_arch() 55 of_node_put(np); in c2k_setup_arch() 58 np = of_find_compatible_node(NULL, NULL, "marvell,mv64360-gpp"); in c2k_setup_arch() 59 reg = of_get_property(np, "reg", NULL); in c2k_setup_arch() 60 paddr = of_translate_address(np, reg); in c2k_setup_arch() 61 of_node_put(np); in c2k_setup_arch()
|
D | flipper-pic.c | 111 static int flipper_pic_match(struct irq_domain *h, struct device_node *np, in flipper_pic_match() argument 135 struct irq_domain * __init flipper_pic_init(struct device_node *np) in flipper_pic_init() argument 143 pi = of_get_parent(np); in flipper_pic_init() 164 irq_domain = irq_domain_add_linear(np, FLIPPER_NR_IRQS, in flipper_pic_init() 197 struct device_node *np; in flipper_pic_probe() local 199 np = of_find_compatible_node(NULL, NULL, "nintendo,flipper-pic"); in flipper_pic_probe() 200 BUG_ON(!np); in flipper_pic_probe() 202 flipper_irq_host = flipper_pic_init(np); in flipper_pic_probe() 207 of_node_put(np); in flipper_pic_probe()
|
/linux-4.4.14/arch/powerpc/platforms/82xx/ |
D | pq2.c | 47 static void __init pq2_pci_add_bridge(struct device_node *np) in pq2_pci_add_bridge() argument 52 if (of_address_to_resource(np, 0, &r) || r.end - r.start < 0x10b) in pq2_pci_add_bridge() 57 hose = pcibios_alloc_controller(np); in pq2_pci_add_bridge() 61 hose->dn = np; in pq2_pci_add_bridge() 64 pci_process_bridge_OF_ranges(hose, np, 1); in pq2_pci_add_bridge() 74 struct device_node *np; in pq2_init_pci() local 78 for_each_compatible_node(np, NULL, "fsl,pq2-pci") in pq2_init_pci() 79 pq2_pci_add_bridge(np); in pq2_init_pci()
|
D | pq2ads-pci-pic.c | 122 struct device_node *np; in pq2ads_pci_init_irq() local 126 np = of_find_compatible_node(NULL, NULL, "fsl,pq2ads-pci-pic"); in pq2ads_pci_init_irq() 127 if (!np) { in pq2ads_pci_init_irq() 129 of_node_put(np); in pq2ads_pci_init_irq() 133 irq = irq_of_parse_and_map(np, 0); in pq2ads_pci_init_irq() 136 of_node_put(np); in pq2ads_pci_init_irq() 142 of_node_put(np); in pq2ads_pci_init_irq() 148 priv->regs = of_iomap(np, 0); in pq2ads_pci_init_irq() 158 host = irq_domain_add_linear(np, NUM_IRQS, &pci_pic_host_ops, priv); in pq2ads_pci_init_irq() 168 of_node_put(np); in pq2ads_pci_init_irq() [all …]
|
D | pq2fads.c | 36 struct device_node *np = of_find_compatible_node(NULL, NULL, "fsl,cpm2-pic"); in pq2fads_pic_init() local 37 if (!np) { in pq2fads_pic_init() 42 cpm2_pic_init(np); in pq2fads_pic_init() 43 of_node_put(np); in pq2fads_pic_init() 120 struct device_node *np; in pq2fads_setup_arch() local 128 np = of_find_compatible_node(NULL, NULL, "fsl,pq2fads-bcsr"); in pq2fads_setup_arch() 129 if (!np) { in pq2fads_setup_arch() 134 bcsr = of_iomap(np, 0); in pq2fads_setup_arch() 135 of_node_put(np); in pq2fads_setup_arch()
|
/linux-4.4.14/arch/arm/mach-mxs/ |
D | mach-mxs.c | 92 struct device_node *np; in mxs_get_ocotp() local 101 np = of_find_compatible_node(NULL, NULL, "fsl,ocotp"); in mxs_get_ocotp() 102 ocotp_base = of_iomap(np, 0); in mxs_get_ocotp() 166 struct device_node *np, *from = NULL; in update_fec_mac_prop() local 174 np = of_find_compatible_node(from, NULL, "fsl,imx28-fec"); in update_fec_mac_prop() 175 if (!np) in update_fec_mac_prop() 178 from = np; in update_fec_mac_prop() 180 if (of_get_property(np, "local-mac-address", NULL)) in update_fec_mac_prop() 232 of_update_property(np, newmac); in update_fec_mac_prop() 302 struct device_node *np; in tx28_post_init() local [all …]
|
/linux-4.4.14/drivers/clk/ |
D | clkdev.c | 31 static struct clk *__of_clk_get(struct device_node *np, int index, in __of_clk_get() argument 41 rc = of_parse_phandle_with_args(np, "clocks", "#clock-cells", index, in __of_clk_get() 47 of_node_put(clkspec.np); in __of_clk_get() 52 struct clk *of_clk_get(struct device_node *np, int index) in of_clk_get() argument 54 return __of_clk_get(np, index, np->full_name, NULL); in of_clk_get() 58 static struct clk *__of_clk_get_by_name(struct device_node *np, in __of_clk_get_by_name() argument 65 while (np) { in __of_clk_get_by_name() 74 index = of_property_match_string(np, "clock-names", name); in __of_clk_get_by_name() 75 clk = __of_clk_get(np, index, dev_id, name); in __of_clk_get_by_name() 81 np->full_name, name ? name : "", index); in __of_clk_get_by_name() [all …]
|
D | clk-xgene.c | 163 static void xgene_pllclk_init(struct device_node *np, enum xgene_pll_type pll_type) in xgene_pllclk_init() argument 165 const char *clk_name = np->full_name; in xgene_pllclk_init() 169 reg = of_iomap(np, 0); in xgene_pllclk_init() 171 pr_err("Unable to map CSR register for %s\n", np->full_name); in xgene_pllclk_init() 174 of_property_read_string(np, "clock-output-names", &clk_name); in xgene_pllclk_init() 176 clk_name, of_clk_get_parent_name(np, 0), in xgene_pllclk_init() 179 of_clk_add_provider(np, of_clk_src_simple_get, clk); in xgene_pllclk_init() 185 static void xgene_socpllclk_init(struct device_node *np) in xgene_socpllclk_init() argument 187 xgene_pllclk_init(np, PLL_TYPE_SOC); in xgene_socpllclk_init() 190 static void xgene_pcppllclk_init(struct device_node *np) in xgene_pcppllclk_init() argument [all …]
|
D | clk-nomadik.c | 90 struct device_node *np; in nomadik_src_init() local 93 np = of_find_matching_node(NULL, nomadik_src_match); in nomadik_src_init() 94 if (!np) { in nomadik_src_init() 98 src_base = of_iomap(np, 0); in nomadik_src_init() 101 __func__, np->name); in nomadik_src_init() 122 if (of_property_read_bool(np, "disable-sxtalo")) { in nomadik_src_init() 127 if (of_property_read_bool(np, "disable-mxtalo")) { in nomadik_src_init() 509 static void __init of_nomadik_pll_setup(struct device_node *np) in of_nomadik_pll_setup() argument 512 const char *clk_name = np->name; in of_nomadik_pll_setup() 519 if (of_property_read_u32(np, "pll-id", &pll_id)) { in of_nomadik_pll_setup() [all …]
|
/linux-4.4.14/drivers/clocksource/ |
D | timer-sp804.c | 218 static void __init sp804_of_init(struct device_node *np) in sp804_of_init() argument 225 const char *name = of_get_property(np, "compatible", NULL); in sp804_of_init() 227 base = of_iomap(np, 0); in sp804_of_init() 235 if (initialized || !of_device_is_available(np)) in sp804_of_init() 238 clk1 = of_clk_get(np, 0); in sp804_of_init() 243 if (of_count_phandle_with_args(np, "clocks", "#clock-cells") == 3) { in sp804_of_init() 244 clk2 = of_clk_get(np, 1); in sp804_of_init() 246 pr_err("sp804: %s clock not found: %d\n", np->name, in sp804_of_init() 253 irq = irq_of_parse_and_map(np, 0); in sp804_of_init() 257 of_property_read_u32(np, "arm,sp804-has-irq", &irq_num); in sp804_of_init() [all …]
|
D | dw_apb_timer_of.c | 26 static void __init timer_get_base_and_rate(struct device_node *np, in timer_get_base_and_rate() argument 32 *base = of_iomap(np, 0); in timer_get_base_and_rate() 35 panic("Unable to map regs for %s", np->name); in timer_get_base_and_rate() 41 pclk = of_clk_get_by_name(np, "pclk"); in timer_get_base_and_rate() 45 np->name); in timer_get_base_and_rate() 47 timer_clk = of_clk_get_by_name(np, "timer"); in timer_get_base_and_rate() 57 if (of_property_read_u32(np, "clock-freq", rate) && in timer_get_base_and_rate() 58 of_property_read_u32(np, "clock-frequency", rate)) in timer_get_base_and_rate() 59 panic("No clock nor clock-frequency property for %s", np->name); in timer_get_base_and_rate()
|
D | time-armada-370-xp.c | 263 static void __init armada_370_xp_timer_common_init(struct device_node *np) in armada_370_xp_timer_common_init() argument 268 timer_base = of_iomap(np, 0); in armada_370_xp_timer_common_init() 270 local_base = of_iomap(np, 1); in armada_370_xp_timer_common_init() 286 armada_370_xp_clkevt_irq = irq_of_parse_and_map(np, 4); in armada_370_xp_timer_common_init() 332 static void __init armada_xp_timer_init(struct device_node *np) in armada_xp_timer_init() argument 334 struct clk *clk = of_clk_get_by_name(np, "fixed"); in armada_xp_timer_init() 341 armada_370_xp_timer_common_init(np); in armada_xp_timer_init() 346 static void __init armada_375_timer_init(struct device_node *np) in armada_375_timer_init() argument 350 clk = of_clk_get_by_name(np, "fixed"); in armada_375_timer_init() 360 clk = of_clk_get(np, 0); in armada_375_timer_init() [all …]
|
D | tango_xtal.c | 35 static void __init tango_clocksource_init(struct device_node *np) in tango_clocksource_init() argument 40 xtal_in_cnt = of_iomap(np, 0); in tango_clocksource_init() 42 pr_err("%s: invalid address\n", np->full_name); in tango_clocksource_init() 46 clk = of_clk_get(np, 0); in tango_clocksource_init() 48 pr_err("%s: invalid clock\n", np->full_name); in tango_clocksource_init() 58 pr_err("%s: registration failed\n", np->full_name); in tango_clocksource_init()
|
D | time-orion.c | 107 static void __init orion_timer_init(struct device_node *np) in orion_timer_init() argument 113 timer_base = of_iomap(np, 0); in orion_timer_init() 115 panic("%s: unable to map resource\n", np->name); in orion_timer_init() 117 clk = of_clk_get(np, 0); in orion_timer_init() 119 panic("%s: unable to get clk\n", np->name); in orion_timer_init() 123 irq = irq_of_parse_and_map(np, 1); in orion_timer_init() 125 panic("%s: unable to parse timer1 irq\n", np->name); in orion_timer_init() 140 panic("%s: unable to setup irq\n", np->name); in orion_timer_init()
|
D | time-lpc32xx.c | 119 static int __init lpc32xx_clocksource_init(struct device_node *np) in lpc32xx_clocksource_init() argument 126 clk = of_clk_get_by_name(np, "timerclk"); in lpc32xx_clocksource_init() 138 base = of_iomap(np, 0); in lpc32xx_clocksource_init() 178 static int __init lpc32xx_clockevent_init(struct device_node *np) in lpc32xx_clockevent_init() argument 185 clk = of_clk_get_by_name(np, "timerclk"); in lpc32xx_clockevent_init() 197 base = of_iomap(np, 0); in lpc32xx_clockevent_init() 204 irq = irq_of_parse_and_map(np, 0); in lpc32xx_clockevent_init() 251 static void __init lpc32xx_timer_init(struct device_node *np) in lpc32xx_timer_init() argument 257 ret = lpc32xx_clocksource_init(np); in lpc32xx_timer_init() 265 ret = lpc32xx_clockevent_init(np); in lpc32xx_timer_init()
|
/linux-4.4.14/drivers/hwmon/ |
D | ibmpowernv.c | 128 static void __init make_sensor_label(struct device_node *np, in make_sensor_label() argument 140 if (!of_property_read_u32(np, "ibm,pir", &id)) { in make_sensor_label() 161 if (!of_property_read_u32(np, "ibm,chip-id", &id)) in make_sensor_label() 239 static int get_sensor_type(struct device_node *np) in get_sensor_type() argument 245 if (of_device_is_compatible(np, sensor_groups[type].compatible)) in get_sensor_type() 252 if (!of_device_is_compatible(np, "ibm,opal-sensor")) in get_sensor_type() 255 if (of_property_read_string(np, "sensor-type", &str)) in get_sensor_type() 286 struct device_node *opal, *np; in populate_attr_groups() local 290 for_each_child_of_node(opal, np) { in populate_attr_groups() 293 if (np->name == NULL) in populate_attr_groups() [all …]
|
/linux-4.4.14/arch/arm/mach-exynos/ |
D | pm_domains.c | 124 struct device_node *np; in exynos4_pm_init_power_domain() local 126 for_each_compatible_node(np, NULL, "samsung,exynos4210-pd") { in exynos4_pm_init_power_domain() 134 of_node_put(np); in exynos4_pm_init_power_domain() 137 pd->pd.name = kstrdup_const(strrchr(np->full_name, '/') + 1, in exynos4_pm_init_power_domain() 141 of_node_put(np); in exynos4_pm_init_power_domain() 146 pd->base = of_iomap(np, 0); in exynos4_pm_init_power_domain() 161 pd->asb_clk[i] = of_clk_get_by_name(np, clk_name); in exynos4_pm_init_power_domain() 166 pd->oscclk = of_clk_get_by_name(np, "oscclk"); in exynos4_pm_init_power_domain() 174 pd->clk[i] = of_clk_get_by_name(np, clk_name); in exynos4_pm_init_power_domain() 191 of_genpd_add_provider_simple(np, &pd->pd); in exynos4_pm_init_power_domain() [all …]
|
/linux-4.4.14/arch/c6x/platforms/ |
D | timer64.c | 181 struct device_node *np, *first = NULL; in timer64_init() local 185 for_each_compatible_node(np, NULL, "ti,c64x+timer64") { in timer64_init() 186 err = of_property_read_u32(np, "ti,core-mask", &val); in timer64_init() 193 first = np; in timer64_init() 198 np = of_node_get(first); in timer64_init() 205 timer = of_iomap(np, 0); in timer64_init() 207 pr_debug("%s: Cannot map timer registers.\n", np->full_name); in timer64_init() 210 pr_debug("%s: Timer registers=%p.\n", np->full_name, timer); in timer64_init() 212 cd->irq = irq_of_parse_and_map(np, 0); in timer64_init() 214 pr_debug("%s: Cannot find interrupt.\n", np->full_name); in timer64_init() [all …]
|
D | megamod-pic.c | 181 struct device_node *np = irq_domain_get_of_node(pic->irqhost); in parse_priority_map() local 186 map = of_get_property(np, "ti,c64x+megamod-pic-mux", &maplen); in parse_priority_map() 201 static struct megamod_pic * __init init_megamod_pic(struct device_node *np) in init_megamod_pic() argument 211 pr_err("%s: Could not alloc PIC structure.\n", np->full_name); in init_megamod_pic() 215 pic->irqhost = irq_domain_add_linear(np, NR_COMBINERS * 32, in init_megamod_pic() 218 pr_err("%s: Could not alloc host.\n", np->full_name); in init_megamod_pic() 226 pic->regs = of_iomap(np, 0); in init_megamod_pic() 228 pr_err("%s: Could not map registers.\n", np->full_name); in init_megamod_pic() 250 irq = irq_of_parse_and_map(np, i); in init_megamod_pic() 257 np->full_name, i, irq); in init_megamod_pic() [all …]
|
/linux-4.4.14/arch/arm/mach-omap2/ |
D | timer.c | 171 struct device_node *np; in omap_get_timer_dt() local 173 for_each_matching_node(np, match) { in omap_get_timer_dt() 174 if (!of_device_is_available(np)) in omap_get_timer_dt() 177 if (property && !of_get_property(np, property, NULL)) in omap_get_timer_dt() 180 if (!property && (of_get_property(np, "ti,timer-alwon", NULL) || in omap_get_timer_dt() 181 of_get_property(np, "ti,timer-dsp", NULL) || in omap_get_timer_dt() 182 of_get_property(np, "ti,timer-pwm", NULL) || in omap_get_timer_dt() 183 of_get_property(np, "ti,timer-secure", NULL))) in omap_get_timer_dt() 186 if (!of_device_is_compatible(np, "ti,omap-counter32k")) in omap_get_timer_dt() 187 of_add_property(np, &device_disabled); in omap_get_timer_dt() [all …]
|
D | omap4-common.c | 131 struct device_node *np; in omap4_sram_init() local 134 np = of_find_compatible_node(NULL, NULL, "ti,omap4-mpu"); in omap4_sram_init() 135 if (!np) in omap4_sram_init() 138 sram_pool = of_gen_pool_get(np, "sram", 0); in omap4_sram_init() 315 irq_data.np = intc_node; in omap4_xlate_irq() 330 struct device_node *np; in omap_gic_of_init() local 342 np = of_find_compatible_node(NULL, NULL, "arm,cortex-a9-gic"); in omap_gic_of_init() 343 gic_dist_base_addr = of_iomap(np, 0); in omap_gic_of_init() 346 np = of_find_compatible_node(NULL, NULL, "arm,cortex-a9-twd-timer"); in omap_gic_of_init() 347 twd_base = of_iomap(np, 0); in omap_gic_of_init()
|
/linux-4.4.14/arch/arm/mach-socfpga/ |
D | socfpga.c | 37 struct device_node *np; in socfpga_sysmgr_init() local 39 np = of_find_compatible_node(NULL, NULL, "altr,sys-mgr"); in socfpga_sysmgr_init() 41 if (of_property_read_u32(np, "cpu1-start-addr", in socfpga_sysmgr_init() 49 sys_manager_base_addr = of_iomap(np, 0); in socfpga_sysmgr_init() 51 np = of_find_compatible_node(NULL, NULL, "altr,rst-mgr"); in socfpga_sysmgr_init() 52 rst_manager_base_addr = of_iomap(np, 0); in socfpga_sysmgr_init() 54 np = of_find_compatible_node(NULL, NULL, "altr,sdr-ctl"); in socfpga_sysmgr_init() 55 sdr_ctl_base_addr = of_iomap(np, 0); in socfpga_sysmgr_init()
|
/linux-4.4.14/arch/powerpc/platforms/chrp/ |
D | setup.c | 217 struct device_node *np; in pegasos_set_l2cr() local 224 np = of_find_node_by_type(NULL, "cpu"); in pegasos_set_l2cr() 225 if (np != NULL) { in pegasos_set_l2cr() 226 const unsigned int *l2cr = of_get_property(np, "l2cr", NULL); in pegasos_set_l2cr() 239 of_node_put(np); in pegasos_set_l2cr() 382 struct device_node *np, *root; in chrp_find_openpic() local 390 np = of_find_node_by_type(NULL, "open-pic"); in chrp_find_openpic() 391 if (np == NULL) in chrp_find_openpic() 403 if (of_address_to_resource(np, 0, &r)) { in chrp_find_openpic() 412 iranges = of_get_property(np, "interrupt-ranges", &len); in chrp_find_openpic() [all …]
|
/linux-4.4.14/include/linux/usb/ |
D | of.h | 15 bool of_usb_host_tpl_support(struct device_node *np); 16 int of_usb_update_otg_caps(struct device_node *np, 19 static inline bool of_usb_host_tpl_support(struct device_node *np) in of_usb_host_tpl_support() argument 23 static inline int of_usb_update_otg_caps(struct device_node *np, in of_usb_update_otg_caps() argument 31 enum usb_phy_interface of_usb_get_phy_mode(struct device_node *np); 33 static inline enum usb_phy_interface of_usb_get_phy_mode(struct device_node *np) in of_usb_get_phy_mode() argument
|
/linux-4.4.14/arch/arm/mach-sti/ |
D | platsmp.c | 101 struct device_node *np; in sti_smp_prepare_cpus() local 108 np = of_find_compatible_node(NULL, NULL, "arm,cortex-a9-scu"); in sti_smp_prepare_cpus() 110 if (np) { in sti_smp_prepare_cpus() 111 scu_base = of_iomap(np, 0); in sti_smp_prepare_cpus() 113 of_node_put(np); in sti_smp_prepare_cpus() 121 np = of_get_cpu_node(cpu, NULL); in sti_smp_prepare_cpus() 123 if (!np) in sti_smp_prepare_cpus() 126 if (of_property_read_u32(np, "cpu-release-addr", in sti_smp_prepare_cpus()
|
/linux-4.4.14/include/video/ |
D | of_display_timing.h | 19 int of_get_display_timing(struct device_node *np, const char *name, 21 struct display_timings *of_get_display_timings(struct device_node *np); 22 int of_display_timings_exist(struct device_node *np); 24 static inline int of_get_display_timing(struct device_node *np, const char *name, in of_get_display_timing() argument 29 static inline struct display_timings *of_get_display_timings(struct device_node *np) in of_get_display_timings() argument 33 static inline int of_display_timings_exist(struct device_node *np) in of_display_timings_exist() argument
|
/linux-4.4.14/drivers/firmware/ |
D | psci.c | 190 static int get_set_conduit_method(struct device_node *np) in get_set_conduit_method() argument 196 if (of_property_read_string(np, "method", &method)) { in get_set_conduit_method() 365 static int __init psci_0_2_init(struct device_node *np) in psci_0_2_init() argument 369 err = get_set_conduit_method(np); in psci_0_2_init() 383 of_node_put(np); in psci_0_2_init() 390 static int __init psci_0_1_init(struct device_node *np) in psci_0_1_init() argument 395 err = get_set_conduit_method(np); in psci_0_1_init() 402 if (!of_property_read_u32(np, "cpu_suspend", &id)) { in psci_0_1_init() 407 if (!of_property_read_u32(np, "cpu_off", &id)) { in psci_0_1_init() 412 if (!of_property_read_u32(np, "cpu_on", &id)) { in psci_0_1_init() [all …]
|
/linux-4.4.14/arch/arm/mm/ |
D | cache-uniphier.c | 381 struct device_node *np) in uniphier_cache_get_next_level_node() argument 385 if (of_property_read_u32(np, "next-level-cache", &phandle)) in uniphier_cache_get_next_level_node() 391 static int __init __uniphier_cache_init(struct device_node *np, in __uniphier_cache_init() argument 399 if (!of_match_node(uniphier_cache_match, np)) { in __uniphier_cache_init() 405 if (of_property_read_u32(np, "cache-level", &level)) { in __uniphier_cache_init() 416 if (!of_property_read_bool(np, "cache-unified")) { in __uniphier_cache_init() 425 if (of_property_read_u32(np, "cache-line-size", &data->line_size) || in __uniphier_cache_init() 433 if (of_property_read_u32(np, "cache-sets", &data->nsets) || in __uniphier_cache_init() 441 if (of_property_read_u32(np, "cache-size", &cache_size) || in __uniphier_cache_init() 452 data->ctrl_base = of_iomap(np, 0); in __uniphier_cache_init() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/maple/ |
D | pci.c | 573 struct device_node *np, *root; in maple_pci_init() local 586 for (np = NULL; (np = of_get_next_child(root, np)) != NULL;) { in maple_pci_init() 587 if (!np->type) in maple_pci_init() 589 if (strcmp(np->type, "pci") && strcmp(np->type, "ht")) in maple_pci_init() 591 if ((of_device_is_compatible(np, "u4-pcie") || in maple_pci_init() 592 of_device_is_compatible(np, "u3-agp")) && in maple_pci_init() 593 maple_add_bridge(np) == 0) in maple_pci_init() 594 of_node_get(np); in maple_pci_init() 596 if (of_device_is_compatible(np, "u3-ht")) { in maple_pci_init() 597 of_node_get(np); in maple_pci_init() [all …]
|
D | setup.c | 218 struct device_node *root, *np, *mpic_node = NULL; in maple_init_IRQ() local 230 for_each_node_by_type(np, "interrupt-controller") in maple_init_IRQ() 231 if (of_device_is_compatible(np, "open-pic")) { in maple_init_IRQ() 232 mpic_node = np; in maple_init_IRQ() 236 for_each_node_by_type(np, "open-pic") { in maple_init_IRQ() 237 mpic_node = np; in maple_init_IRQ() 260 if (of_get_property(np, "big-endian", NULL) != NULL) in maple_init_IRQ() 346 struct device_node *np = NULL; in maple_cpc925_edac_setup() local 352 np = of_find_node_by_type(NULL, "memory-controller"); in maple_cpc925_edac_setup() 353 if (!np) { in maple_cpc925_edac_setup() [all …]
|
/linux-4.4.14/drivers/pinctrl/ |
D | pinctrl-lantiq.c | 69 struct device_node *np, in ltq_pinctrl_dt_subnode_to_map() argument 73 struct property *pins = of_find_property(np, "lantiq,pins", NULL); in ltq_pinctrl_dt_subnode_to_map() 74 struct property *groups = of_find_property(np, "lantiq,groups", NULL); in ltq_pinctrl_dt_subnode_to_map() 84 np->name); in ltq_pinctrl_dt_subnode_to_map() 90 np->name); in ltq_pinctrl_dt_subnode_to_map() 94 ret = of_property_read_string(np, "lantiq,function", &function); in ltq_pinctrl_dt_subnode_to_map() 96 of_property_for_each_string(np, "lantiq,groups", prop, group) { in ltq_pinctrl_dt_subnode_to_map() 107 int ret = of_property_read_u32(np, in ltq_pinctrl_dt_subnode_to_map() 118 of_property_for_each_string(np, "lantiq,pins", prop, pin) { in ltq_pinctrl_dt_subnode_to_map() 128 of_property_for_each_string(np, "lantiq,groups", prop, group) { in ltq_pinctrl_dt_subnode_to_map() [all …]
|
D | pinconf-generic.c | 190 static void parse_dt_cfg(struct device_node *np, in parse_dt_cfg() argument 202 ret = of_property_read_u32(np, par->property, &val); in parse_dt_cfg() 225 int pinconf_generic_parse_dt_config(struct device_node *np, in pinconf_generic_parse_dt_config() argument 234 if (!np) in pinconf_generic_parse_dt_config() 245 parse_dt_cfg(np, dt_params, ARRAY_SIZE(dt_params), cfg, &ncfg); in pinconf_generic_parse_dt_config() 248 parse_dt_cfg(np, pctldev->desc->custom_params, in pinconf_generic_parse_dt_config() 278 struct device_node *np, struct pinctrl_map **map, in pinconf_generic_dt_subnode_to_map() argument 292 ret = of_property_count_strings(np, "pins"); in pinconf_generic_dt_subnode_to_map() 294 ret = of_property_count_strings(np, "groups"); in pinconf_generic_dt_subnode_to_map() 307 ret = of_property_read_string(np, "function", &function); in pinconf_generic_dt_subnode_to_map() [all …]
|
/linux-4.4.14/arch/arm/mach-imx/ |
D | mach-imx6q.c | 185 struct device_node *np; in imx6q_1588_init() local 191 np = of_find_compatible_node(NULL, NULL, "fsl,imx6q-fec"); in imx6q_1588_init() 192 if (!np) { in imx6q_1588_init() 197 ptp_clk = of_clk_get(np, 2); in imx6q_1588_init() 229 of_node_put(np); in imx6q_1588_init() 294 struct device_node *np; in imx6q_opp_check_speed_grading() local 298 np = of_find_compatible_node(NULL, NULL, "fsl,imx6q-ocotp"); in imx6q_opp_check_speed_grading() 299 if (!np) { in imx6q_opp_check_speed_grading() 304 base = of_iomap(np, 0); in imx6q_opp_check_speed_grading() 335 of_node_put(np); in imx6q_opp_check_speed_grading() [all …]
|
D | system.c | 96 struct device_node *np; in imx_init_l2cache() local 99 np = of_find_compatible_node(NULL, NULL, "arm,pl310-cache"); in imx_init_l2cache() 100 if (!np) in imx_init_l2cache() 103 l2x0_base = of_iomap(np, 0); in imx_init_l2cache() 105 of_node_put(np); in imx_init_l2cache() 126 of_node_put(np); in imx_init_l2cache()
|
/linux-4.4.14/arch/powerpc/platforms/8xx/ |
D | mpc885ads_setup.c | 131 struct device_node *np; in mpc885ads_setup_arch() local 136 np = of_find_compatible_node(NULL, NULL, "fsl,mpc885ads-bcsr"); in mpc885ads_setup_arch() 137 if (!np) { in mpc885ads_setup_arch() 142 bcsr = of_iomap(np, 0); in mpc885ads_setup_arch() 143 bcsr5 = of_iomap(np, 1); in mpc885ads_setup_arch() 144 of_node_put(np); in mpc885ads_setup_arch() 179 np = of_find_node_by_path("/soc@ff000000/cpm@9c0/serial@a80"); in mpc885ads_setup_arch() 181 np = of_find_node_by_path("/soc@ff000000/cpm@9c0/ethernet@a40"); in mpc885ads_setup_arch() 188 if (np) { in mpc885ads_setup_arch() 189 of_detach_node(np); in mpc885ads_setup_arch() [all …]
|
/linux-4.4.14/drivers/misc/lis3lv02d/ |
D | lis3lv02d.c | 951 struct device_node *np = lis3->of_node; in lis3lv02d_init_dt() local 962 if (of_get_property(np, "st,click-single-x", NULL)) in lis3lv02d_init_dt() 964 if (of_get_property(np, "st,click-double-x", NULL)) in lis3lv02d_init_dt() 967 if (of_get_property(np, "st,click-single-y", NULL)) in lis3lv02d_init_dt() 969 if (of_get_property(np, "st,click-double-y", NULL)) in lis3lv02d_init_dt() 972 if (of_get_property(np, "st,click-single-z", NULL)) in lis3lv02d_init_dt() 974 if (of_get_property(np, "st,click-double-z", NULL)) in lis3lv02d_init_dt() 977 if (!of_property_read_u32(np, "st,click-threshold-x", &val)) in lis3lv02d_init_dt() 979 if (!of_property_read_u32(np, "st,click-threshold-y", &val)) in lis3lv02d_init_dt() 981 if (!of_property_read_u32(np, "st,click-threshold-z", &val)) in lis3lv02d_init_dt() [all …]
|
/linux-4.4.14/sound/soc/sh/rcar/ |
D | rsrc-card.c | 151 struct device_node *np, in rsrc_card_parse_daifmt() argument 158 struct device_node *codec = is_fe ? NULL : np; in rsrc_card_parse_daifmt() 183 static int rsrc_card_parse_links(struct device_node *np, in rsrc_card_parse_links() argument 196 ret = of_parse_phandle_with_args(np, "sound-dai", in rsrc_card_parse_links() 210 dai_link->cpu_of_node = args.np; in rsrc_card_parse_links() 211 snd_soc_of_get_dai_name(np, &dai_link->cpu_dai_name); in rsrc_card_parse_links() 242 dai_link->codec_of_node = args.np; in rsrc_card_parse_links() 243 snd_soc_of_get_dai_name(np, &dai_link->codec_dai_name); in rsrc_card_parse_links() 273 static int rsrc_card_parse_clk(struct device_node *np, in rsrc_card_parse_clk() argument 290 if (of_property_read_bool(np, "clocks")) { in rsrc_card_parse_clk() [all …]
|
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/ |
D | of.c | 30 struct device_node *np = dev->of_node; in brcmf_of_probe() local 35 if (!np || !of_device_is_compatible(np, "brcm,bcm4329-fmac")) in brcmf_of_probe() 42 if (of_property_read_u32(np, "brcm,drive-strength", &val) == 0) in brcmf_of_probe() 46 if (!of_find_property(np, "interrupts", NULL)) in brcmf_of_probe() 49 irq = irq_of_parse_and_map(np, 0); in brcmf_of_probe()
|
/linux-4.4.14/drivers/clk/st/ |
D | clkgen-mux.c | 25 static const char ** __init clkgen_mux_get_parents(struct device_node *np, in clkgen_mux_get_parents() argument 31 nparents = of_clk_get_parent_count(np); in clkgen_mux_get_parents() 39 *num_parents = of_clk_parent_fill(np, parents, nparents); in clkgen_mux_get_parents() 371 static void __iomem * __init clkgen_get_register_base(struct device_node *np) in clkgen_get_register_base() argument 376 pnode = of_get_parent(np); in clkgen_get_register_base() 386 static void __init st_of_clkgena_divmux_setup(struct device_node *np) in st_of_clkgena_divmux_setup() argument 395 match = of_match_node(clkgena_divmux_of_match, np); in st_of_clkgena_divmux_setup() 401 reg = clkgen_get_register_base(np); in st_of_clkgena_divmux_setup() 405 parents = clkgen_mux_get_parents(np, &num_parents); in st_of_clkgena_divmux_setup() 424 if (of_property_read_string_index(np, "clock-output-names", in st_of_clkgena_divmux_setup() [all …]
|
/linux-4.4.14/arch/arm/mach-prima2/ |
D | pm.c | 98 struct device_node *np; in sirfsoc_of_pwrc_init() local 100 np = of_find_matching_node(NULL, pwrc_ids); in sirfsoc_of_pwrc_init() 101 if (!np) { in sirfsoc_of_pwrc_init() 111 if (of_property_read_u32(np, "reg", &sirfsoc_pwrc_base)) in sirfsoc_of_pwrc_init() 114 of_node_put(np); in sirfsoc_of_pwrc_init() 126 struct device_node *np = op->dev.of_node; in sirfsoc_memc_probe() local 128 sirfsoc_memc_base = of_iomap(np, 0); in sirfsoc_memc_probe()
|
/linux-4.4.14/arch/arm/mach-at91/ |
D | soc.c | 35 struct device_node *np; in at91_soc_init() local 39 np = of_find_compatible_node(NULL, NULL, "atmel,at91rm9200-dbgu"); in at91_soc_init() 40 if (!np) in at91_soc_init() 41 np = of_find_compatible_node(NULL, NULL, in at91_soc_init() 44 if (!np) { in at91_soc_init() 49 regs = of_iomap(np, 0); in at91_soc_init() 50 of_node_put(np); in at91_soc_init()
|
/linux-4.4.14/arch/powerpc/platforms/amigaone/ |
D | setup.c | 73 struct device_node *np; in amigaone_setup_arch() local 77 for_each_compatible_node(np, "pci", "mai-logic,articia-s") in amigaone_setup_arch() 78 phb = amigaone_add_bridge(np); in amigaone_setup_arch() 88 struct device_node *pic, *np = NULL; in amigaone_init_IRQ() local 98 np = of_find_compatible_node(NULL, "pci", "mai-logic,articia-s"); in amigaone_init_IRQ() 99 if (np) { in amigaone_init_IRQ() 100 prop = of_get_property(np, "8259-interrupt-acknowledge", NULL); in amigaone_init_IRQ() 103 of_node_put(np); in amigaone_init_IRQ()
|
/linux-4.4.14/drivers/power/reset/ |
D | keystone-reset.c | 87 struct device_node *np = dev->of_node; in rsctrl_probe() local 89 if (!np) in rsctrl_probe() 93 pllctrl_regs = syscon_regmap_lookup_by_phandle(np, "ti,syscon-pll"); in rsctrl_probe() 97 devctrl_regs = syscon_regmap_lookup_by_phandle(np, "ti,syscon-dev"); in rsctrl_probe() 101 ret = of_property_read_u32_index(np, "ti,syscon-pll", 1, &rspll_offset); in rsctrl_probe() 107 ret = of_property_read_u32_index(np, "ti,syscon-dev", 1, &rsmux_offset); in rsctrl_probe() 114 val = of_property_read_bool(np, "ti,soft-reset"); in rsctrl_probe() 132 ret = of_property_read_u32_index(np, "ti,wdt-list", i, &val); in rsctrl_probe()
|
/linux-4.4.14/arch/arm/mach-berlin/ |
D | platsmp.c | 62 struct device_node *np; in berlin_smp_prepare_cpus() local 66 np = of_find_compatible_node(NULL, NULL, "arm,cortex-a9-scu"); in berlin_smp_prepare_cpus() 67 scu_base = of_iomap(np, 0); in berlin_smp_prepare_cpus() 68 of_node_put(np); in berlin_smp_prepare_cpus() 72 np = of_find_compatible_node(NULL, NULL, "marvell,berlin-cpu-ctrl"); in berlin_smp_prepare_cpus() 73 cpu_ctrl = of_iomap(np, 0); in berlin_smp_prepare_cpus() 74 of_node_put(np); in berlin_smp_prepare_cpus()
|
/linux-4.4.14/drivers/pinctrl/freescale/ |
D | pinctrl-imx.c | 104 struct device_node *np, in imx_dt_node_to_map() argument 119 grp = imx_pinctrl_find_group_by_name(info, np->name); in imx_dt_node_to_map() 122 np->name); in imx_dt_node_to_map() 139 parent = of_get_parent(np); in imx_dt_node_to_map() 146 new_map[0].data.mux.group = np->name; in imx_dt_node_to_map() 502 static int imx_pinctrl_parse_groups(struct device_node *np, in imx_pinctrl_parse_groups() argument 512 dev_dbg(info->dev, "group(%d): %s\n", index, np->name); in imx_pinctrl_parse_groups() 519 grp->name = np->name; in imx_pinctrl_parse_groups() 525 list = of_get_property(np, "fsl,pins", &size); in imx_pinctrl_parse_groups() 527 dev_err(info->dev, "no fsl,pins property in node %s\n", np->full_name); in imx_pinctrl_parse_groups() [all …]
|
D | pinctrl-mxs.c | 69 struct device_node *np, in mxs_dt_node_to_map() argument 77 int length = strlen(np->name) + SUFFIX_LEN; in mxs_dt_node_to_map() 83 if (of_property_read_u32(np, "reg", ®)) in mxs_dt_node_to_map() 86 ret = of_property_read_u32(np, "fsl,drive-strength", &val); in mxs_dt_node_to_map() 89 ret = of_property_read_u32(np, "fsl,voltage", &val); in mxs_dt_node_to_map() 92 ret = of_property_read_u32(np, "fsl,pull-up", &val); in mxs_dt_node_to_map() 106 new_map[i].data.mux.function = np->name; in mxs_dt_node_to_map() 114 snprintf(group, length, "%s.%d", np->name, reg); in mxs_dt_node_to_map() 127 new_map[i].data.configs.group_or_pin = purecfg ? np->name : in mxs_dt_node_to_map() 348 struct device_node *np, int idx, in mxs_pinctrl_parse_group() argument [all …]
|
/linux-4.4.14/drivers/iio/frequency/ |
D | adf4350.c | 383 struct device_node *np = dev->of_node; in adf4350_parse_dt() local 392 strncpy(&pdata->name[0], np->name, SPI_NAME_SIZE - 1); in adf4350_parse_dt() 395 of_property_read_u32(np, "adi,channel-spacing", &tmp); in adf4350_parse_dt() 399 of_property_read_u32(np, "adi,power-up-frequency", &tmp); in adf4350_parse_dt() 403 of_property_read_u32(np, "adi,reference-div-factor", &tmp); in adf4350_parse_dt() 406 ret = of_get_gpio(np, 0); in adf4350_parse_dt() 412 pdata->ref_doubler_en = of_property_read_bool(np, in adf4350_parse_dt() 414 pdata->ref_div2_en = of_property_read_bool(np, in adf4350_parse_dt() 418 pdata->r2_user_settings = of_property_read_bool(np, in adf4350_parse_dt() 421 pdata->r2_user_settings |= of_property_read_bool(np, in adf4350_parse_dt() [all …]
|
/linux-4.4.14/drivers/soc/brcmstb/ |
D | biuctrl.c | 54 struct device_node *np; in setup_hifcpubiuctrl_regs() local 57 np = of_find_compatible_node(NULL, NULL, "brcm,brcmstb-cpu-biu-ctrl"); in setup_hifcpubiuctrl_regs() 58 if (!np) { in setup_hifcpubiuctrl_regs() 63 cpubiuctrl_base = of_iomap(np, 0); in setup_hifcpubiuctrl_regs() 70 mcp_wr_pairing_en = of_property_read_bool(np, "brcm,write-pairing"); in setup_hifcpubiuctrl_regs() 72 of_node_put(np); in setup_hifcpubiuctrl_regs()
|
/linux-4.4.14/arch/mips/ralink/ |
D | ill_acc.c | 52 struct device_node *np; in ill_acc_of_setup() local 59 np = of_find_compatible_node(NULL, NULL, "ralink,rt3050-memc"); in ill_acc_of_setup() 60 if (!np) in ill_acc_of_setup() 63 pdev = of_find_device_by_node(np); in ill_acc_of_setup() 65 pr_err("%s: failed to lookup pdev\n", np->name); in ill_acc_of_setup() 69 irq = irq_of_parse_and_map(np, 0); in ill_acc_of_setup()
|
D | cevt-rt3352.c | 120 static void __init ralink_systick_init(struct device_node *np) in ralink_systick_init() argument 122 systick.membase = of_iomap(np, 0); in ralink_systick_init() 126 systick_irqaction.name = np->name; in ralink_systick_init() 127 systick.dev.name = np->name; in ralink_systick_init() 131 systick.dev.irq = irq_of_parse_and_map(np, 0); in ralink_systick_init() 133 pr_err("%s: request_irq failed", np->name); in ralink_systick_init() 137 clocksource_mmio_init(systick.membase + SYSTICK_COUNT, np->name, in ralink_systick_init() 143 np->name, systick.dev.mult, systick.dev.shift); in ralink_systick_init()
|
/linux-4.4.14/drivers/usb/common/ |
D | common.c | 134 bool of_usb_host_tpl_support(struct device_node *np) in of_usb_host_tpl_support() argument 136 if (of_find_property(np, "tpl-support", NULL)) in of_usb_host_tpl_support() 151 int of_usb_update_otg_caps(struct device_node *np, in of_usb_update_otg_caps() argument 159 if (!of_property_read_u32(np, "otg-rev", &otg_rev)) { in of_usb_update_otg_caps() 174 np->full_name, otg_rev); in of_usb_update_otg_caps() 186 if (of_find_property(np, "hnp-disable", NULL)) in of_usb_update_otg_caps() 188 if (of_find_property(np, "srp-disable", NULL)) in of_usb_update_otg_caps() 190 if (of_find_property(np, "adp-disable", NULL) || in of_usb_update_otg_caps()
|
/linux-4.4.14/drivers/input/ |
D | matrix-keymap.c | 56 struct device_node *np = dev->of_node; in matrix_keypad_parse_of_params() local 58 if (!np) { in matrix_keypad_parse_of_params() 62 of_property_read_u32(np, "keypad,num-rows", rows); in matrix_keypad_parse_of_params() 63 of_property_read_u32(np, "keypad,num-columns", cols); in matrix_keypad_parse_of_params() 78 struct device_node *np = dev->of_node; in matrix_keypad_parse_of_keymap() local 84 if (!np) in matrix_keypad_parse_of_keymap() 90 prop = of_get_property(np, propname, &proplen); in matrix_keypad_parse_of_keymap() 93 propname, np->full_name); in matrix_keypad_parse_of_keymap() 99 propname, np->full_name); in matrix_keypad_parse_of_keymap()
|
/linux-4.4.14/drivers/tty/serial/ |
D | of_serial.c | 66 struct device_node *np = ofdev->dev.of_node; in of_platform_serial_setup() local 71 if (of_property_read_u32(np, "clock-frequency", &clk)) { in of_platform_serial_setup() 88 if (of_property_read_u32(np, "current-speed", &spd) == 0) in of_platform_serial_setup() 91 ret = of_address_to_resource(np, 0, &resource); in of_platform_serial_setup() 102 if (of_property_read_u32(np, "reg-offset", &prop) == 0) in of_platform_serial_setup() 106 if (of_property_read_u32(np, "reg-shift", &prop) == 0) in of_platform_serial_setup() 110 if (of_property_read_u32(np, "fifo-size", &prop) == 0) in of_platform_serial_setup() 114 ret = of_alias_get_id(np, "serial"); in of_platform_serial_setup() 118 port->irq = irq_of_parse_and_map(np, 0); in of_platform_serial_setup() 120 if (of_property_read_u32(np, "reg-io-width", &prop) == 0) { in of_platform_serial_setup() [all …]
|
/linux-4.4.14/sound/aoa/soundbus/i2sbus/ |
D | core.c | 115 static int i2sbus_get_and_fixup_rsrc(struct device_node *np, int index, in i2sbus_get_and_fixup_rsrc() argument 132 return of_address_to_resource(np, index, res); in i2sbus_get_and_fixup_rsrc() 134 parent = of_get_parent(np); in i2sbus_get_and_fixup_rsrc() 139 reg = of_get_property(np, "reg", NULL); in i2sbus_get_and_fixup_rsrc() 154 struct device_node *np) in i2sbus_add_dev() argument 169 if (strlen(np->name) != 5) in i2sbus_add_dev() 171 if (strncmp(np->name, "i2s-", 4)) in i2sbus_add_dev() 179 while ((child = of_get_next_child(np, child))) { in i2sbus_add_dev() 222 dev->sound.ofdev.dev.of_node = np; in i2sbus_add_dev() 231 dev->bus_number = np->name[4] - 'a'; in i2sbus_add_dev() [all …]
|
/linux-4.4.14/arch/powerpc/sysdev/xics/ |
D | icp-native.c | 251 static int __init icp_native_init_one_node(struct device_node *np, in icp_native_init_one_node() argument 265 ireg = of_get_property(np, "ibm,interrupt-server-ranges", &ilen); in icp_native_init_one_node() 278 ireg = of_get_property(np, "reg", &ilen); in icp_native_init_one_node() 284 reg_tuple_size = (of_n_addr_cells(np) + of_n_size_cells(np)) * 4; in icp_native_init_one_node() 296 err = of_address_to_resource(np, i, &r); in icp_native_init_one_node() 325 struct device_node *np; in icp_native_init() local 329 for_each_compatible_node(np, NULL, "ibm,ppc-xicp") in icp_native_init() 330 if (icp_native_init_one_node(np, &indx) == 0) in icp_native_init() 333 for_each_node_by_type(np, in icp_native_init() 335 if (icp_native_init_one_node(np, &indx) == 0) in icp_native_init()
|
/linux-4.4.14/drivers/net/ethernet/packetengines/ |
D | yellowfin.c | 374 struct yellowfin_private *np; in yellowfin_init_one() local 399 dev = alloc_etherdev(sizeof(*np)); in yellowfin_init_one() 405 np = netdev_priv(dev); in yellowfin_init_one() 431 spin_lock_init(&np->lock); in yellowfin_init_one() 433 np->pci_dev = pdev; in yellowfin_init_one() 434 np->chip_id = chip_idx; in yellowfin_init_one() 435 np->drv_flags = drv_flags; in yellowfin_init_one() 436 np->base = ioaddr; in yellowfin_init_one() 441 np->tx_ring = ring_space; in yellowfin_init_one() 442 np->tx_ring_dma = ring_dma; in yellowfin_init_one() [all …]
|
/linux-4.4.14/arch/arm/mach-zynq/ |
D | pm.c | 46 struct device_node *np; in zynq_pm_ioremap() local 49 np = of_find_compatible_node(NULL, NULL, comp); in zynq_pm_ioremap() 50 if (np) { in zynq_pm_ioremap() 51 base = of_iomap(np, 0); in zynq_pm_ioremap() 52 of_node_put(np); in zynq_pm_ioremap()
|
/linux-4.4.14/drivers/pci/host/ |
D | pcie-iproc-platform.c | 32 struct device_node *np = pdev->dev.of_node; in iproc_pcie_pltfm_probe() local 45 ret = of_address_to_resource(np, 0, ®); in iproc_pcie_pltfm_probe() 57 if (of_property_read_bool(np, "brcm,pcie-ob")) { in iproc_pcie_pltfm_probe() 60 ret = of_property_read_u32(np, "brcm,pcie-ob-axi-offset", in iproc_pcie_pltfm_probe() 69 ret = of_property_read_u32(np, "brcm,pcie-ob-window-size", in iproc_pcie_pltfm_probe() 78 if (of_property_read_bool(np, "brcm,pcie-ob-oarr-size")) in iproc_pcie_pltfm_probe() 92 ret = of_pci_get_host_bridge_resources(np, 0, 0xff, &res, &iobase); in iproc_pcie_pltfm_probe()
|
/linux-4.4.14/arch/powerpc/platforms/pasemi/ |
D | gpio_mdio.c | 223 struct device_node *np = ofdev->dev.of_node; in gpio_mdio_probe() local 244 prop = of_get_property(np, "reg", NULL); in gpio_mdio_probe() 250 prop = of_get_property(np, "mdc-pin", NULL); in gpio_mdio_probe() 253 prop = of_get_property(np, "mdio-pin", NULL); in gpio_mdio_probe() 259 err = of_mdiobus_register(new_bus, np); in gpio_mdio_probe() 314 struct device_node *np; in gpio_mdio_init() local 316 np = of_find_compatible_node(NULL, NULL, "1682m-gpio"); in gpio_mdio_init() 317 if (!np) in gpio_mdio_init() 318 np = of_find_compatible_node(NULL, NULL, in gpio_mdio_init() 320 if (!np) in gpio_mdio_init() [all …]
|