/linux-master/drivers/cpuidle/ |
H A D | cpuidle-psci.h | 10 int psci_dt_parse_state_node(struct device_node *np, u32 *state);
|
H A D | cpuidle-psci-domain.c | 50 static int psci_pd_init(struct device_node *np, bool use_osi) argument 57 pd = dt_idle_pd_alloc(np, psci_dt_parse_state_node); 83 ret = of_genpd_add_provider_simple(np, pd); 87 pd_provider->node = of_node_get(np); 100 pr_err("failed to init PM domain ret=%d %pOF\n", ret, np); 139 struct device_node *np = pdev->dev.of_node; local 144 if (!np) 151 for_each_child_of_node(np, node) { 169 ret = dt_idle_pd_init_topology(np); 183 dt_idle_pd_remove_topology(np); [all...] |
/linux-master/arch/arm/mach-axxia/ |
H A D | platsmp.c | 64 struct device_node *np; local 67 np = of_get_cpu_node(cpu, NULL); 68 if (!np) 70 if (of_property_read_u32(np, "cpu-release-addr", &release_phys))
|
/linux-master/arch/arm/mach-imx/ |
H A D | cpu-imx31.c | 37 struct device_node *np; local 40 np = of_find_compatible_node(NULL, NULL, "fsl,imx31-iim"); 41 iim_base = of_iomap(np, 0); 42 of_node_put(np);
|
H A D | anatop.c | 96 struct device_node *np, *src_np; local 103 np = of_find_compatible_node(NULL, NULL, "fsl,imx6q-anatop"); 104 anatop_base = of_iomap(np, 0); 106 if (of_device_is_compatible(np, "fsl,imx6sl-anatop")) 108 if (of_device_is_compatible(np, "fsl,imx7d-anatop")) 117 if (of_device_is_compatible(np, "fsl,imx7d-anatop")) { 152 of_node_put(np);
|
/linux-master/drivers/clk/mvebu/ |
H A D | armada-37xx-xtal.c | 21 struct device_node *np = pdev->dev.of_node; local 36 parent = np->parent; 59 of_property_read_string_index(np, "clock-output-names", 0, &xtal_name); 63 ret = of_clk_add_hw_provider(np, of_clk_hw_simple_get, xtal_hw);
|
/linux-master/drivers/clk/meson/ |
H A D | meson-eeclk.c | 21 struct device_node *np; local 30 np = of_get_parent(dev->of_node); 31 map = syscon_node_to_regmap(np); 32 of_node_put(np);
|
/linux-master/arch/powerpc/platforms/4xx/ |
H A D | cpm.c | 234 static int __init cpm_get_uint_property(struct device_node *np, argument 238 const unsigned int *prop = of_get_property(np, name, &len); 248 struct device_node *np; local 257 np = of_find_compatible_node(NULL, NULL, "ibm,cpm"); 258 if (!np) { 263 dcr_base = dcr_resource_start(np, 0); 264 dcr_len = dcr_resource_len(np, 0); 268 np); 273 cpm.dcr_host = dcr_map(np, dcr_base, dcr_len); 277 np); [all...] |
/linux-master/drivers/phy/tegra/ |
H A D | xusb.c | 38 if (pad->lanes[i]->dev.of_node == args->np) { 88 struct device_node *pads, *np; local 94 np = of_get_child_by_name(pads, name); 97 return np; 103 struct device_node *np, *lanes; local 109 np = of_get_child_by_name(lanes, pad->soc->lanes[index].name); 112 return np; 116 struct device_node *np) 122 err = of_property_read_string(np, "nvidia,function", &function); 129 function, np); 115 tegra_xusb_lane_parse_dt(struct tegra_xusb_lane *lane, struct device_node *np) argument 159 tegra_xusb_pad_init(struct tegra_xusb_pad *pad, struct tegra_xusb_padctl *padctl, struct device_node *np) argument 207 struct device_node *np = tegra_xusb_pad_find_phy_node(pad, i); local 269 struct device_node *np; local 454 struct device_node *ports, *np; local 478 struct device_node *np; local 532 tegra_xusb_port_init(struct tegra_xusb_port *port, struct tegra_xusb_padctl *padctl, struct device_node *np, const char *name, unsigned int index) argument 744 struct device_node *np = port->dev.of_node; local 786 struct device_node *np; local 846 struct device_node *np = port->dev.of_node; local 857 struct device_node *np; local 913 struct device_node *np; local 961 struct device_node *np = port->dev.of_node; local 993 struct device_node *np; local 1055 struct device_node *np; local 1175 struct device_node *np = pdev->dev.of_node; local 1336 struct device_node *np; local [all...] |
/linux-master/arch/sh/boards/ |
H A D | of-generic.c | 56 struct device_node *np; local 64 for_each_of_cpu_node(np) { 65 u64 id = of_get_cpu_hwid(np, 0); 69 of_property_read_string(np, "enable-method", &method); 77 np = of_find_node_by_name(NULL, "cpus"); 78 of_property_read_string(np, "enable-method", &method); 79 of_node_put(np);
|
/linux-master/arch/arm/mach-mvebu/ |
H A D | pm-board.c | 78 struct device_node *np; local 85 np = of_find_node_by_name(NULL, "pm_pic"); 86 if (!np) 99 pic_gpios[i] = fwnode_gpiod_get_index(of_fwnode_handle(np), 108 ret = of_parse_phandle_with_fixed_args(np, "ctrl-gpios", 2, 118 gpio_ctrl_np = args.np; 131 of_node_put(np);
|
/linux-master/drivers/char/tpm/eventlog/ |
H A D | of.c | 53 struct device_node *np; local 62 np = chip->dev.parent->of_node; 66 if (of_property_read_bool(np, "powered-while-suspended")) 69 sizep = of_get_property(np, "linux,sml-size", NULL); 70 basep = of_get_property(np, "linux,sml-base", NULL); 85 if (of_property_match_string(np, "compatible", "IBM,vtpm") < 0 && 86 of_property_match_string(np, "compatible", "IBM,vtpm20") < 0) {
|
/linux-master/arch/powerpc/platforms/85xx/ |
H A D | xes_mpc85xx.c | 77 struct device_node *np; local 84 for_each_node_by_name(np, "l2-cache-controller") { 89 if (!of_device_is_compatible(np, 91 !of_device_is_compatible(np, 93 !of_device_is_compatible(np, 97 err = of_address_to_resource(np, 0, &r[0]); 101 np);
|
/linux-master/drivers/irqchip/ |
H A D | irq-gic-v3-its-pci-msi.c | 135 struct device_node *np; local 137 for (np = of_find_matching_node(NULL, its_device_id); np; 138 np = of_find_matching_node(np, its_device_id)) { 139 if (!of_device_is_available(np)) 141 if (!of_property_read_bool(np, "msi-controller")) 144 if (its_pci_msi_init_one(of_node_to_fwnode(np), np->full_name)) 147 pr_info("PCI/MSI: %pOF domain created\n", np); [all...] |
/linux-master/drivers/clk/ |
H A D | clk-bulk.c | 15 static int __must_check of_clk_bulk_get(struct device_node *np, int num_clks, argument 27 of_property_read_string_index(np, "clock-names", i, &clks[i].id); 28 clks[i].clk = of_clk_get(np, i); 32 np, i, ret); 46 static int __must_check of_clk_bulk_get_all(struct device_node *np, argument 53 num_clks = of_clk_get_parent_count(np); 61 ret = of_clk_bulk_get(np, num_clks, clk_bulk); 142 struct device_node *np = dev_of_node(dev); local 144 if (!np) 147 return of_clk_bulk_get_all(np, clk [all...] |
/linux-master/arch/powerpc/sysdev/ |
H A D | tsi108_dev.c | 65 struct device_node *np; local 71 for_each_compatible_node(np, "network", "tsi108-ethernet") { 81 ret = of_address_to_resource(np, 0, &r[0]); 88 r[1].start = irq_of_parse_and_map(np, 0); 89 r[1].end = irq_of_parse_and_map(np, 0); 103 of_get_mac_address(np, tsi_eth_data.mac_addr); 105 ph = of_get_property(np, "mdio-handle", NULL); 112 ph = of_get_property(np, "phy-handle", NULL); 125 tsi_eth_data.irq_num = irq_of_parse_and_map(np, 0); 149 of_node_put(np); [all...] |
/linux-master/drivers/usb/host/ |
H A D | ehci-ppc-of.c | 103 struct device_node *np; local 136 np = of_find_compatible_node(NULL, NULL, "ibm,usb-ohci-440epx"); 137 if (np != NULL) { 139 if (!of_address_to_resource(np, 0, &res)) 151 of_node_put(np); 192 struct device_node *np; local 205 np = of_find_compatible_node(NULL, NULL, "ibm,usb-ohci-440epx"); 206 if (np != NULL) { 207 if (!of_address_to_resource(np, 0, &res)) 215 of_node_put(np); [all...] |
/linux-master/drivers/clocksource/ |
H A D | clps711x-timer.c | 76 static int __init clps711x_timer_init(struct device_node *np) argument 78 unsigned int irq = irq_of_parse_and_map(np, 0); 79 struct clk *clock = of_clk_get(np, 0); 80 void __iomem *base = of_iomap(np, 0); 89 switch (of_alias_get_id(np, "timer")) {
|
H A D | timer-sp804.c | 251 static int __init sp804_of_init(struct device_node *np, struct sp804_timer *timer) argument 260 const char *name = of_get_property(np, "compatible", NULL); 263 pr_debug("%pOF: skipping further SP804 timer device\n", np); 267 base = of_iomap(np, 0); 278 clk1 = of_clk_get(np, 0); 283 if (of_clk_get_parent_count(np) == 3) { 284 clk2 = of_clk_get(np, 1); 286 pr_err("%pOFn clock not found: %d\n", np, 293 irq = irq_of_parse_and_map(np, 0); 299 of_property_read_u32(np, "ar 329 arm_sp804_of_init(struct device_node *np) argument 335 hisi_sp804_of_init(struct device_node *np) argument 341 integrator_cp_of_init(struct device_node *np) argument [all...] |
/linux-master/drivers/reset/ |
H A D | reset-raspberrypi.c | 76 struct device_node *np; local 79 np = of_get_parent(dev->of_node); 80 if (!np) { 85 fw = devm_rpi_firmware_get(&pdev->dev, np); 86 of_node_put(np);
|
/linux-master/arch/powerpc/platforms/powernv/ |
H A D | opal-power.c | 140 struct device_node *np; local 149 np = of_find_node_by_path("/ibm,opal/epow"); 150 if (np) { 151 supported = of_device_is_compatible(np, "ibm,opal-v3-epow"); 152 of_node_put(np);
|
/linux-master/drivers/remoteproc/ |
H A D | qcom_pil_info.c | 32 struct device_node *np; local 41 np = of_find_compatible_node(NULL, NULL, "qcom,pil-reloc-info"); 42 if (!np) 45 ret = of_address_to_resource(np, 0, &imem); 46 of_node_put(np);
|
/linux-master/drivers/macintosh/ |
H A D | windfarm_mpu.h | 78 struct device_node *np; local 89 np = of_find_node_by_path(nodename); 90 if (!np) 92 data = of_get_property(np, "cpuid", &len); 93 of_node_put(np);
|
/linux-master/arch/arm/mach-socfpga/ |
H A D | pm.c | 31 struct device_node *np; local 37 np = of_find_compatible_node(NULL, NULL, "mmio-sram"); 38 if (!np) { 43 pdev = of_find_device_by_node(np); 89 of_node_put(np);
|
/linux-master/drivers/clk/sunxi/ |
H A D | clk-sun6i-apb0-gates.c | 37 struct device_node *np = pdev->dev.of_node; local 47 if (!np) 58 clk_parent = of_clk_get_parent_name(np, 0); 75 of_property_read_string_index(np, "clock-output-names", 88 return of_clk_add_provider(np, of_clk_src_onecell_get, clk_data);
|