Home
last modified time | relevance | path

Searched refs:of_node (Results 1 – 25 of 769) sorted by relevance

12345678910>>...31

/linux-4.19.296/drivers/of/
Ddevice.c29 if ((!matches) || (!dev->of_node)) in of_match_device()
31 return of_match_node(matches, dev->of_node); in of_match_device()
58 BUG_ON(ofdev->dev.of_node == NULL); in of_device_add()
70 set_dev_node(&ofdev->dev, of_node_to_nid(ofdev->dev.of_node)); in of_device_add()
220 if ((!dev) || (!dev->of_node)) in of_device_get_modalias()
225 csize = snprintf(str, len, "of:N%pOFn%c%s", dev->of_node, 'T', in of_device_get_modalias()
226 dev->of_node->type); in of_device_get_modalias()
232 of_property_for_each_string(dev->of_node, "compatible", p, compat) { in of_device_get_modalias()
304 if ((!dev) || (!dev->of_node)) in of_device_uevent()
307 add_uevent_var(env, "OF_NAME=%pOFn", dev->of_node); in of_device_uevent()
[all …]
Dplatform.c42 return dev->of_node == data; in of_dev_node_match()
82 struct device_node *node = dev->of_node; in of_device_make_bus_id()
149 dev->dev.of_node = of_node_get(np); in of_device_alloc()
193 of_msi_configure(&dev->dev, dev->dev.of_node); in of_platform_device_create_pdata()
249 dev->dev.of_node = of_node_get(node); in of_amba_device_create()
552 if (!dev->of_node || !of_node_check_flag(dev->of_node, OF_POPULATED)) in of_platform_device_destroy()
556 if (of_node_check_flag(dev->of_node, OF_POPULATED_BUS)) in of_platform_device_destroy()
559 of_node_clear_flag(dev->of_node, OF_POPULATED); in of_platform_device_destroy()
560 of_node_clear_flag(dev->of_node, OF_POPULATED_BUS); in of_platform_device_destroy()
584 if (parent->of_node && of_node_check_flag(parent->of_node, OF_POPULATED_BUS)) { in of_platform_depopulate()
[all …]
/linux-4.19.296/drivers/pci/
Dof.c20 if (!dev->bus->dev.of_node) in pci_set_of_node()
22 dev->dev.of_node = of_pci_find_child_device(dev->bus->dev.of_node, in pci_set_of_node()
28 of_node_put(dev->dev.of_node); in pci_release_of_node()
29 dev->dev.of_node = NULL; in pci_release_of_node()
35 bus->dev.of_node = pcibios_get_phb_of_node(bus); in pci_set_bus_of_node()
37 bus->dev.of_node = of_node_get(bus->self->dev.of_node); in pci_set_bus_of_node()
42 of_node_put(bus->dev.of_node); in pci_release_bus_of_node()
43 bus->dev.of_node = NULL; in pci_release_bus_of_node()
57 if (bus->bridge->of_node) in pcibios_get_phb_of_node()
58 return of_node_get(bus->bridge->of_node); in pcibios_get_phb_of_node()
[all …]
/linux-4.19.296/drivers/misc/
Datmel-ssc.c36 if (ssc->pdev->dev.of_node) { in ssc_request()
37 if (of_alias_get_id(ssc->pdev->dev.of_node, "ssc") in ssc_request()
138 if (pdev->dev.of_node) { in atmel_ssc_get_driver_data()
140 match = of_match_node(atmel_ssc_dt_ids, pdev->dev.of_node); in atmel_ssc_get_driver_data()
153 struct device_node *np = ssc->pdev->dev.of_node; in ssc_sound_dai_probe()
177 atmel_ssc_put_audio(of_alias_get_id(ssc->pdev->dev.of_node, "ssc")); in ssc_sound_dai_remove()
182 if (of_property_read_bool(ssc->pdev->dev.of_node, "#sound-dai-cells")) in ssc_sound_dai_probe()
212 if (pdev->dev.of_node) { in ssc_probe()
213 struct device_node *np = pdev->dev.of_node; in ssc_probe()
/linux-4.19.296/drivers/gpio/
Dgpio-ge.c63 regs = of_iomap(pdev->dev.of_node, 0); in gef_gpio_probe()
76 gc->label = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%pOF", pdev->dev.of_node); in gef_gpio_probe()
85 gc->of_node = pdev->dev.of_node; in gef_gpio_probe()
95 pr_err("%pOF: GPIO chip registration failed\n", pdev->dev.of_node); in gef_gpio_probe()
Dgpiolib-of.c33 return chip->gpiodev->dev.of_node == gpiospec->np && in of_gpiochip_match_node_and_xlate()
170 struct device_node *np = dev->of_node; in of_find_spi_gpio()
205 struct device_node *np = dev->of_node; in of_find_regulator_gpio()
241 desc = of_get_named_gpiod_flags(dev->of_node, prop_name, idx, in of_find_gpio()
314 chip_np = chip->of_node; in of_parse_own_gpio()
381 for_each_available_child_of_node(chip->of_node, np) { in of_gpiochip_scan_gpios()
479 of_node_put(mm_gc->gc.of_node); in of_mm_gpiochip_add_data()
480 mm_gc->gc.of_node = of_node_get(np); in of_mm_gpiochip_add_data()
519 struct device_node *np = chip->of_node; in of_gpiochip_init_valid_mask()
540 struct device_node *np = chip->of_node; in of_gpiochip_add_pin_range()
[all …]
Dgpio-stp-xway.c238 if (!of_property_read_u32(pdev->dev.of_node, "lantiq,shadow", &shadow)) in xway_stp_probe()
242 if (!of_property_read_u32(pdev->dev.of_node, "lantiq,groups", &groups)) in xway_stp_probe()
249 if (!of_property_read_u32(pdev->dev.of_node, "lantiq,dsl", &dsl)) in xway_stp_probe()
256 if (!of_property_read_u32(pdev->dev.of_node, "lantiq,phy1", &phy)) in xway_stp_probe()
258 if (!of_property_read_u32(pdev->dev.of_node, "lantiq,phy2", &phy)) in xway_stp_probe()
263 if (!of_find_property(pdev->dev.of_node, "lantiq,rising", NULL)) in xway_stp_probe()
/linux-4.19.296/drivers/irqchip/
Dirq-mips-cpu.c238 static void mips_cpu_register_ipi_domain(struct device_node *of_node) in mips_cpu_register_ipi_domain() argument
245 2, of_node, in mips_cpu_register_ipi_domain()
255 static inline void mips_cpu_register_ipi_domain(struct device_node *of_node) {} in mips_cpu_register_ipi_domain() argument
259 static void __init __mips_cpu_irq_init(struct device_node *of_node) in __mips_cpu_irq_init() argument
265 irq_domain = irq_domain_add_legacy(of_node, 8, MIPS_CPU_IRQ_BASE, 0, in __mips_cpu_irq_init()
276 mips_cpu_register_ipi_domain(of_node); in __mips_cpu_irq_init()
284 int __init mips_cpu_irq_of_init(struct device_node *of_node, in mips_cpu_irq_of_init() argument
287 __mips_cpu_irq_init(of_node); in mips_cpu_irq_of_init()
Dirq-goldfish-pic.c60 static int __init goldfish_pic_of_init(struct device_node *of_node, in goldfish_pic_of_init() argument
75 parent_irq = irq_of_parse_and_map(of_node, 0); in goldfish_pic_of_init()
82 gfpic->base = of_iomap(of_node, 0); in goldfish_pic_of_init()
109 gfpic->irq_domain = irq_domain_add_legacy(of_node, GFPIC_NR_IRQS, in goldfish_pic_of_init()
/linux-4.19.296/drivers/regulator/
Das3711-regulator.c186 struct device_node **of_node, const int count) in as3711_regulator_parse_dt() argument
190 of_get_child_by_name(dev->parent->of_node, "regulators"); in as3711_regulator_parse_dt()
208 if (match->of_node) { in as3711_regulator_parse_dt()
210 of_node[i] = match->of_node; in as3711_regulator_parse_dt()
223 struct device_node *of_node[AS3711_REGULATOR_NUM] = {}; in as3711_regulator_probe() local
234 if (pdev->dev.parent->of_node) { in as3711_regulator_probe()
235 ret = as3711_regulator_parse_dt(&pdev->dev, of_node, AS3711_REGULATOR_NUM); in as3711_regulator_probe()
256 config.of_node = of_node[id]; in as3711_regulator_probe()
Dmax8660.c332 struct device_node **of_node, in max8660_pdata_from_dt() argument
340 np = of_get_child_by_name(dev->of_node, "regulators"); in max8660_pdata_from_dt()
368 of_node[i] = rmatch[i].of_node; in max8660_pdata_from_dt()
376 struct device_node **of_node, in max8660_pdata_from_dt() argument
391 struct device_node *of_node[MAX8660_V_END]; in max8660_probe() local
394 if (dev->of_node && !pdata) { in max8660_probe()
401 ret = max8660_pdata_from_dt(dev, of_node, &pdata_of); in max8660_probe()
409 memset(of_node, 0, sizeof(of_node)); in max8660_probe()
495 config.of_node = of_node[i]; in max8660_probe()
Dfixed.c54 struct device_node *np = dev->of_node; in of_get_fixed_voltage_config()
62 config->init_data = of_get_regulator_init_data(dev, dev->of_node, desc); in of_get_fixed_voltage_config()
112 if (pdev->dev.of_node) { in reg_fixed_voltage_probe()
155 if (pdev->dev.of_node) in reg_fixed_voltage_probe()
176 cfg.of_node = pdev->dev.of_node; in reg_fixed_voltage_probe()
Dti-abb-regulator.c427 ret = of_property_read_u32(dev->of_node, pname, &abb->settling_time); in ti_abb_init_timings()
440 ret = of_property_read_u32(dev->of_node, pname, &clock_cycles); in ti_abb_init_timings()
522 num_entries = of_property_count_u32_elems(dev->of_node, pname); in ti_abb_init_table()
556 of_property_read_u32_index(dev->of_node, pname, i * num_values, in ti_abb_init_table()
558 of_property_read_u32_index(dev->of_node, pname, in ti_abb_init_table()
560 of_property_read_u32_index(dev->of_node, pname, in ti_abb_init_table()
562 of_property_read_u32_index(dev->of_node, pname, in ti_abb_init_table()
564 of_property_read_u32_index(dev->of_node, pname, in ti_abb_init_table()
566 of_property_read_u32_index(dev->of_node, pname, in ti_abb_init_table()
802 of_property_read_u32(pdev->dev.of_node, pname, in ti_abb_probe()
[all …]
Dof_regulator.c287 of_node_put(devm_matches->matches[i].of_node); in devm_of_regulator_put_matches()
335 match->of_node = NULL; in of_regulator_match()
345 if (match->of_node) in of_regulator_match()
361 match->of_node = of_node_get(child); in of_regulator_match()
380 if (!dev->of_node || !desc->of_match) in regulator_of_get_init_data()
384 search = of_get_child_by_name(dev->of_node, in regulator_of_get_init_data()
387 search = of_node_get(dev->of_node); in regulator_of_get_init_data()
433 return dev->of_node == data; in of_node_match()
450 struct device_node *node = rdev->dev.of_node; in of_get_n_coupled()
507 struct device_node *node = rdev->dev.of_node; in of_check_coupling_data()
[all …]
Dsy8106a-regulator.c84 error = of_property_read_u32(dev->of_node, "silergy,fixed-microvolt", in sy8106a_i2c_probe()
104 config.of_node = dev->of_node; in sy8106a_i2c_probe()
105 config.init_data = of_get_regulator_init_data(dev, dev->of_node, in sy8106a_i2c_probe()
Dstw481x-vmmc.c75 config.of_node = pdev->dev.of_node; in stw481x_vmmc_regulator_probe()
77 pdev->dev.of_node, in stw481x_vmmc_regulator_probe()
Dtps65090-regulator.c324 struct device_node *np = pdev->dev.parent->of_node; in tps65090_parse_dt_reg_data()
362 if (!ri_data || !tps65090_matches[idx].of_node) in tps65090_parse_dt_reg_data()
367 tps65090_matches[idx].of_node, in tps65090_parse_dt_reg_data()
379 tps65090_matches[idx].of_node, in tps65090_parse_dt_reg_data()
390 if (of_property_read_u32(tps65090_matches[idx].of_node, in tps65090_parse_dt_reg_data()
425 if (!tps65090_pdata && tps65090_mfd->dev->of_node) in tps65090_regulator_probe()
478 config.of_node = tps65090_reg_matches[num].of_node; in tps65090_regulator_probe()
480 config.of_node = NULL; in tps65090_regulator_probe()
/linux-4.19.296/drivers/clk/
Dclk-max77686.c237 if (parent->of_node && in max77686_clk_probe()
238 !of_property_read_string_index(parent->of_node, in max77686_clk_probe()
261 if (parent->of_node) { in max77686_clk_probe()
262 ret = of_clk_add_hw_provider(parent->of_node, of_clk_max77686_get, in max77686_clk_probe()
286 if (parent->of_node) in max77686_clk_probe()
287 of_clk_del_provider(parent->of_node); in max77686_clk_probe()
296 if (parent->of_node) in max77686_clk_remove()
297 of_clk_del_provider(parent->of_node); in max77686_clk_remove()
/linux-4.19.296/drivers/i2c/
Di2c-core-of.c55 info->of_node = node; in of_i2c_get_board_info()
94 if (!adap->dev.of_node) in of_i2c_register_devices()
99 bus = of_get_child_by_name(adap->dev.of_node, "i2c-bus"); in of_i2c_register_devices()
101 bus = of_node_get(adap->dev.of_node); in of_i2c_register_devices()
121 return dev->of_node == data; in of_dev_node_match()
126 if (dev->of_node == data) in of_dev_or_parent_node_match()
130 return dev->parent->of_node == data; in of_dev_or_parent_node_match()
/linux-4.19.296/include/linux/
Dirqdomain.h258 struct irq_domain *irq_domain_add_simple(struct device_node *of_node,
263 struct irq_domain *irq_domain_add_legacy(struct device_node *of_node,
327 static inline struct irq_domain *irq_domain_add_linear(struct device_node *of_node, in irq_domain_add_linear() argument
332 return __irq_domain_add(of_node_to_fwnode(of_node), size, size, 0, ops, host_data); in irq_domain_add_linear()
334 static inline struct irq_domain *irq_domain_add_nomap(struct device_node *of_node, in irq_domain_add_nomap() argument
339 return __irq_domain_add(of_node_to_fwnode(of_node), 0, max_irq, max_irq, ops, host_data); in irq_domain_add_nomap()
342 struct device_node *of_node, in irq_domain_add_legacy_isa() argument
346 return irq_domain_add_legacy(of_node, NUM_ISA_INTERRUPTS, 0, 0, ops, in irq_domain_add_legacy_isa()
349 static inline struct irq_domain *irq_domain_add_tree(struct device_node *of_node, in irq_domain_add_tree() argument
353 return __irq_domain_add(of_node_to_fwnode(of_node), 0, ~0, 0, ops, host_data); in irq_domain_add_tree()
/linux-4.19.296/drivers/reset/
Dreset-lantiq.c131 priv->regmap = syscon_node_to_regmap(dev->of_node->parent); in lantiq_rcu_reset_of_parse()
137 offset = of_get_address(dev->of_node, 0, NULL, NULL); in lantiq_rcu_reset_of_parse()
144 offset = of_get_address(dev->of_node, 1, NULL, NULL); in lantiq_rcu_reset_of_parse()
186 priv->rcdev.of_node = pdev->dev.of_node; in lantiq_rcu_reset_probe()
Dreset-berlin.c71 struct device_node *parent_np = of_get_parent(pdev->dev.of_node); in berlin2_reset_probe()
85 priv->rcdev.of_node = pdev->dev.of_node; in berlin2_reset_probe()
/linux-4.19.296/drivers/clk/meson/
Dmeson-aoclk.c50 regmap = syscon_node_to_regmap(of_get_parent(dev->of_node)); in meson_aoclkc_probe()
61 rstc->reset.of_node = dev->of_node; in meson_aoclkc_probe()
/linux-4.19.296/drivers/bus/
Duniphier-system-bus.c205 pna = of_n_addr_cells(dev->of_node); in uniphier_system_bus_probe()
207 ret = of_property_read_u32(dev->of_node, "#address-cells", &cells); in uniphier_system_bus_probe()
217 ret = of_property_read_u32(dev->of_node, "#size-cells", &cells); in uniphier_system_bus_probe()
227 ranges = of_get_property(dev->of_node, "ranges", &rlen); in uniphier_system_bus_probe()
239 paddr = of_translate_address(dev->of_node, ranges); in uniphier_system_bus_probe()
262 return of_platform_default_populate(dev->of_node, NULL, dev); in uniphier_system_bus_probe()
/linux-4.19.296/drivers/cpufreq/
Dsti-cpufreq.c59 struct device_node *np = ddata.cpu->of_node; in sti_cpufreq_fetch_major()
86 struct device_node *np = dev->of_node; in sti_cpufreq_fetch_minor()
157 struct device_node *np = dev->of_node; in sti_cpufreq_set_opp_info()
243 struct device_node *np = dev->of_node; in sti_cpufreq_fetch_syscon_registers()
275 if (!of_get_property(ddata.cpu->of_node, "operating-points-v2", NULL)) { in sti_cpufreq_init()

12345678910>>...31