Home
last modified time | relevance | path

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

12345678910>>...110

/linux-6.3-rc2/sound/soc/kirkwood/
A Darmada-370-db.c111 a370db_dai[0].cpus->of_node = in a370db_probe()
112 of_parse_phandle(pdev->dev.of_node, in a370db_probe()
114 a370db_dai[0].platforms->of_node = a370db_dai[0].cpus->of_node; in a370db_probe()
116 a370db_dai[0].codecs->of_node = in a370db_probe()
117 of_parse_phandle(pdev->dev.of_node, in a370db_probe()
120 a370db_dai[1].cpus->of_node = a370db_dai[0].cpus->of_node; in a370db_probe()
121 a370db_dai[1].platforms->of_node = a370db_dai[0].cpus->of_node; in a370db_probe()
123 a370db_dai[1].codecs->of_node = in a370db_probe()
127 a370db_dai[2].cpus->of_node = a370db_dai[0].cpus->of_node; in a370db_probe()
128 a370db_dai[2].platforms->of_node = a370db_dai[0].cpus->of_node; in a370db_probe()
[all …]
/linux-6.3-rc2/sound/soc/samsung/
A Dsnow.c166 if (!link->cpus->of_node) { in snow_probe()
176 of_node_put(link->cpus->of_node); in snow_probe()
185 of_node_put(link->cpus->of_node); in snow_probe()
191 link->cpus->of_node = of_parse_phandle(dev->of_node, in snow_probe()
193 if (!link->cpus->of_node) { in snow_probe()
198 link->codecs->of_node = of_parse_phandle(dev->of_node, in snow_probe()
200 if (!link->codecs->of_node) { in snow_probe()
201 of_node_put(link->cpus->of_node); in snow_probe()
207 link->platforms->of_node = link->cpus->of_node; in snow_probe()
227 of_node_put(link->cpus->of_node); in snow_remove()
[all …]
A Darndale.c141 of_node_put(dai_link->cpus->of_node); in arndale_put_of_nodes()
142 of_node_put(dai_link->codecs->of_node); in arndale_put_of_nodes()
148 struct device_node *np = pdev->dev.of_node; in arndale_audio_probe()
157 dai_link->cpus->of_node = of_parse_phandle(np, "samsung,audio-cpu", 0); in arndale_audio_probe()
158 if (!dai_link->cpus->of_node) { in arndale_audio_probe()
165 dai_link->platforms->of_node = dai_link->cpus->of_node; in arndale_audio_probe()
167 dai_link->codecs->of_node = of_parse_phandle(np, "samsung,audio-codec", 0); in arndale_audio_probe()
168 if (!dai_link->codecs->of_node) { in arndale_audio_probe()
/linux-6.3-rc2/drivers/of/
A Ddevice.c31 if (!matches || !dev->of_node || dev->of_node_reused) in of_match_device()
33 return of_match_node(matches, dev->of_node); in of_match_device()
39 BUG_ON(ofdev->dev.of_node == NULL); in of_device_add()
59 struct device_node *node, *of_node = dev->of_node; in of_dma_set_restricted_buffer() local
72 of_node = np; in of_dma_set_restricted_buffer()
74 of_node, "memory-region", sizeof(u32)); in of_dma_set_restricted_buffer()
125 if (np == dev->of_node) in of_dma_configure_id()
265 of_node_get_device_type(dev->of_node)); in of_device_get_modalias()
345 if ((!dev) || (!dev->of_node)) in of_device_uevent()
350 type = of_node_get_device_type(dev->of_node); in of_device_uevent()
[all …]
/linux-6.3-rc2/sound/soc/rockchip/
A Drockchip_rt5645.c166 if (!rk_dailink.codecs->of_node) { in snd_rk_mc_probe()
174 if (!rk_dailink.cpus->of_node) { in snd_rk_mc_probe()
181 rk_dailink.platforms->of_node = rk_dailink.cpus->of_node; in snd_rk_mc_probe()
200 of_node_put(rk_dailink.cpus->of_node); in snd_rk_mc_probe()
201 rk_dailink.cpus->of_node = NULL; in snd_rk_mc_probe()
203 of_node_put(rk_dailink.codecs->of_node); in snd_rk_mc_probe()
204 rk_dailink.codecs->of_node = NULL; in snd_rk_mc_probe()
211 of_node_put(rk_dailink.cpus->of_node); in snd_rk_mc_remove()
212 rk_dailink.cpus->of_node = NULL; in snd_rk_mc_remove()
213 of_node_put(rk_dailink.codecs->of_node); in snd_rk_mc_remove()
[all …]
A Drockchip_max98090.c365 rk_98090_headset_dev.dlc.of_node = of_parse_phandle( in rk_parse_headset_from_of()
367 if (!rk_98090_headset_dev.dlc.of_node) { in rk_parse_headset_from_of()
380 struct device_node *np = pdev->dev.of_node; in snd_rk_mc_probe()
402 card->dai_link[DAILINK_HDMI].codecs->of_node = np_hdmi; in snd_rk_mc_probe()
405 card->dai_link[DAILINK_HDMI].cpus->of_node = np_cpu; in snd_rk_mc_probe()
409 card->dai_link[0].codecs->of_node = np_audio; in snd_rk_mc_probe()
410 card->dai_link[0].cpus->of_node = np_cpu; in snd_rk_mc_probe()
411 card->dai_link[0].platforms->of_node = np_cpu; in snd_rk_mc_probe()
414 card->dai_link[0].codecs->of_node = np_hdmi; in snd_rk_mc_probe()
415 card->dai_link[0].cpus->of_node = np_cpu; in snd_rk_mc_probe()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/tiny/
A Dofdrm.c265 of_parent = of_get_parent(of_node); in display_get_model_of()
291 struct device_node *of_node,
364 struct device_node *of_node = pdev->dev.of_node; in ofdrm_device_init_pci() local
491 struct device_node *of_node, in ofdrm_rage128_cmap_ioremap() argument
509 struct device_node *of_node, in ofdrm_rage_m3a_cmap_ioremap() argument
535 struct device_node *of_node, in ofdrm_rage_m3b_cmap_ioremap() argument
568 struct device_node *of_node, in ofdrm_gxt2000_cmap_ioremap() argument
584 struct device_node *of_node, in ofdrm_avivo_cmap_ioremap() argument
590 of_parent = of_get_parent(of_node); in ofdrm_avivo_cmap_ioremap()
617 struct device_node *of_node, in ofdrm_qemu_cmap_ioremap() argument
[all …]
A Dsimpledrm.c207 if (of_get_property(of_node, "reg", NULL)) in simplefb_get_memory_of()
294 struct device_node *of_node = pdev->dev.of_node; in simpledrm_device_init_clocks() local
299 if (dev_get_platdata(&pdev->dev) || !of_node) in simpledrm_device_init_clocks()
312 clock = of_clk_get(of_node, i); in simpledrm_device_init_clocks()
392 struct device_node *of_node = pdev->dev.of_node; in simpledrm_device_init_regulators() local
399 if (dev_get_platdata(&pdev->dev) || !of_node) in simpledrm_device_init_regulators()
403 for_each_property_of_node(of_node, prop) { in simpledrm_device_init_regulators()
418 for_each_property_of_node(of_node, prop) { in simpledrm_device_init_regulators()
628 struct device_node *of_node = pdev->dev.of_node; in simpledrm_device_create() local
672 } else if (of_node) { in simpledrm_device_create()
[all …]
/linux-6.3-rc2/drivers/pci/
A Dof.c21 if (!dev->bus->dev.of_node) in pci_set_of_node()
23 dev->dev.of_node = of_pci_find_child_device(dev->bus->dev.of_node, in pci_set_of_node()
25 if (dev->dev.of_node) in pci_set_of_node()
32 dev->dev.of_node = NULL; in pci_release_of_node()
48 bus->dev.of_node = node; in pci_set_bus_of_node()
50 if (bus->dev.of_node) in pci_set_bus_of_node()
57 bus->dev.of_node = NULL; in pci_release_bus_of_node()
72 if (bus->bridge->of_node) in pcibios_get_phb_of_node()
84 if (!bus->dev.of_node) in pci_host_bridge_of_msi_domain()
108 if (dev && dev->of_node) in pci_host_of_has_msi_map()
[all …]
/linux-6.3-rc2/arch/powerpc/sysdev/
A Dmsi_bitmap.c80 if (!bmp->of_node) in msi_bitmap_reserve_dt_hwirqs()
86 "found on %pOF\n", bmp->of_node); in msi_bitmap_reserve_dt_hwirqs()
92 " property on %pOF\n", bmp->of_node); in msi_bitmap_reserve_dt_hwirqs()
113 struct device_node *of_node) in msi_bitmap_alloc() argument
142 bmp->of_node = of_node_get(of_node); in msi_bitmap_alloc()
152 of_node_put(bmp->of_node); in msi_bitmap_free()
224 struct device_node of_node; in test_of_node() local
231 memset(&of_node, 0, sizeof(of_node)); in test_of_node()
232 of_node_init(&of_node); in test_of_node()
233 of_node.full_name = node_name; in test_of_node()
[all …]
/linux-6.3-rc2/sound/soc/mediatek/mt8173/
A Dmt8173-rt5650-rt5676.c241 platform_node = of_parse_phandle(pdev->dev.of_node, in mt8173_rt5650_rt5676_dev_probe()
251 dai_link->platforms->of_node = platform_node; in mt8173_rt5650_rt5676_dev_probe()
254 mt8173_rt5650_rt5676_dais[DAI_LINK_CODEC_I2S].codecs[0].of_node = in mt8173_rt5650_rt5676_dev_probe()
255 of_parse_phandle(pdev->dev.of_node, "mediatek,audio-codec", 0); in mt8173_rt5650_rt5676_dev_probe()
262 mt8173_rt5650_rt5676_dais[DAI_LINK_CODEC_I2S].codecs[1].of_node = in mt8173_rt5650_rt5676_dev_probe()
263 of_parse_phandle(pdev->dev.of_node, "mediatek,audio-codec", 1); in mt8173_rt5650_rt5676_dev_probe()
270 mt8173_rt5650_rt5676_codec_conf[0].dlc.of_node = in mt8173_rt5650_rt5676_dev_probe()
271 mt8173_rt5650_rt5676_dais[DAI_LINK_CODEC_I2S].codecs[1].of_node; in mt8173_rt5650_rt5676_dev_probe()
273 mt8173_rt5650_rt5676_dais[DAI_LINK_INTERCODEC].codecs->of_node = in mt8173_rt5650_rt5676_dev_probe()
276 mt8173_rt5650_rt5676_dais[DAI_LINK_HDMI_I2S].codecs->of_node = in mt8173_rt5650_rt5676_dev_probe()
[all …]
A Dmt8173-rt5650-rt5514.c185 platform_node = of_parse_phandle(pdev->dev.of_node, in mt8173_rt5650_rt5514_dev_probe()
195 dai_link->platforms->of_node = platform_node; in mt8173_rt5650_rt5514_dev_probe()
198 mt8173_rt5650_rt5514_dais[DAI_LINK_CODEC_I2S].codecs[0].of_node = in mt8173_rt5650_rt5514_dev_probe()
199 of_parse_phandle(pdev->dev.of_node, "mediatek,audio-codec", 0); in mt8173_rt5650_rt5514_dev_probe()
200 if (!mt8173_rt5650_rt5514_dais[DAI_LINK_CODEC_I2S].codecs[0].of_node) { in mt8173_rt5650_rt5514_dev_probe()
206 mt8173_rt5650_rt5514_dais[DAI_LINK_CODEC_I2S].codecs[1].of_node = in mt8173_rt5650_rt5514_dev_probe()
207 of_parse_phandle(pdev->dev.of_node, "mediatek,audio-codec", 1); in mt8173_rt5650_rt5514_dev_probe()
208 if (!mt8173_rt5650_rt5514_dais[DAI_LINK_CODEC_I2S].codecs[1].of_node) { in mt8173_rt5650_rt5514_dev_probe()
214 mt8173_rt5650_rt5514_codec_conf[0].dlc.of_node = in mt8173_rt5650_rt5514_dev_probe()
215 mt8173_rt5650_rt5514_dais[DAI_LINK_CODEC_I2S].codecs[1].of_node; in mt8173_rt5650_rt5514_dev_probe()
A Dmt8173-rt5650.c265 platform_node = of_parse_phandle(pdev->dev.of_node, in mt8173_rt5650_dev_probe()
275 dai_link->platforms->of_node = platform_node; in mt8173_rt5650_dev_probe()
278 mt8173_rt5650_dais[DAI_LINK_CODEC_I2S].codecs[0].of_node = in mt8173_rt5650_dev_probe()
279 of_parse_phandle(pdev->dev.of_node, "mediatek,audio-codec", 0); in mt8173_rt5650_dev_probe()
280 if (!mt8173_rt5650_dais[DAI_LINK_CODEC_I2S].codecs[0].of_node) { in mt8173_rt5650_dev_probe()
286 mt8173_rt5650_dais[DAI_LINK_CODEC_I2S].codecs[1].of_node = in mt8173_rt5650_dev_probe()
287 mt8173_rt5650_dais[DAI_LINK_CODEC_I2S].codecs[0].of_node; in mt8173_rt5650_dev_probe()
289 np = of_get_child_by_name(pdev->dev.of_node, "codec-capture"); in mt8173_rt5650_dev_probe()
314 mt8173_rt5650_dais[DAI_LINK_HDMI_I2S].codecs->of_node = in mt8173_rt5650_dev_probe()
315 of_parse_phandle(pdev->dev.of_node, "mediatek,audio-codec", 1); in mt8173_rt5650_dev_probe()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/logicvc/
A Dlogicvc_of.c126 int logicvc_of_property_parse_u32(struct device_node *of_node, in logicvc_of_property_parse_u32() argument
140 !of_property_read_bool(of_node, property->name)) in logicvc_of_property_parse_u32()
144 ret = of_property_read_string(of_node, property->name, &string); in logicvc_of_property_parse_u32()
153 ret = of_property_read_u32(of_node, property->name, &value); in logicvc_of_property_parse_u32()
167 void logicvc_of_property_parse_bool(struct device_node *of_node, in logicvc_of_property_parse_bool() argument
179 *target = of_property_read_bool(of_node, property->name); in logicvc_of_property_parse_bool()
182 bool logicvc_of_node_is_layer(struct device_node *of_node) in logicvc_of_node_is_layer() argument
184 return !of_node_cmp(of_node->name, "layer"); in logicvc_of_node_is_layer()
A Dlogicvc_drm.c91 struct device_node *of_node = dev->of_node; in logicvc_drm_config_parse() local
98 logicvc_of_property_parse_bool(of_node, in logicvc_drm_config_parse()
101 logicvc_of_property_parse_bool(of_node, in logicvc_drm_config_parse()
105 ret = logicvc_of_property_parse_u32(of_node, in logicvc_drm_config_parse()
111 ret = logicvc_of_property_parse_u32(of_node, in logicvc_drm_config_parse()
117 ret = logicvc_of_property_parse_u32(of_node, in logicvc_drm_config_parse()
123 ret = logicvc_of_property_parse_u32(of_node, in logicvc_drm_config_parse()
294 struct device_node *of_node = pdev->dev.of_node; in logicvc_drm_probe() local
321 if (of_node->parent) in logicvc_drm_probe()
322 regmap = syscon_node_to_regmap(of_node->parent); in logicvc_drm_probe()
[all …]
/linux-6.3-rc2/sound/soc/qcom/
A Dcommon.c32 if (of_property_read_bool(dev->of_node, "widgets")) { in qcom_snd_parse_of()
39 if (of_property_read_bool(dev->of_node, "audio-routing")) { in qcom_snd_parse_of()
45 if (of_property_read_bool(dev->of_node, "qcom,audio-routing")) { in qcom_snd_parse_of()
60 num_links = of_get_available_child_count(dev->of_node); in qcom_snd_parse_of()
70 for_each_available_child_of_node(dev->of_node, np) { in qcom_snd_parse_of()
105 link->cpus->of_node = args.np; in qcom_snd_parse_of()
116 link->platforms->of_node = of_parse_phandle(platform, in qcom_snd_parse_of()
119 if (!link->platforms->of_node) { in qcom_snd_parse_of()
125 link->platforms->of_node = link->cpus->of_node; in qcom_snd_parse_of()
A Dstorm.c71 struct device_node *np = card->dev->of_node; in storm_parse_of()
73 dai_link->cpus->of_node = of_parse_phandle(np, "cpu", 0); in storm_parse_of()
74 if (!dai_link->cpus->of_node) { in storm_parse_of()
78 dai_link->platforms->of_node = dai_link->cpus->of_node; in storm_parse_of()
80 dai_link->codecs->of_node = of_parse_phandle(np, "codec", 0); in storm_parse_of()
81 if (!dai_link->codecs->of_node) { in storm_parse_of()
/linux-6.3-rc2/drivers/soc/qcom/
A Dsmem_state.c30 struct device_node *of_node; member
66 if (state->of_node == np) { in of_node_to_state()
98 index = of_property_match_string(dev->of_node, in qcom_smem_state_get()
107 ret = of_parse_phandle_with_args(dev->of_node, in qcom_smem_state_get()
139 of_node_put(state->of_node); in qcom_smem_state_release()
197 struct qcom_smem_state *qcom_smem_state_register(struct device_node *of_node, in qcom_smem_state_register() argument
209 state->of_node = of_node_get(of_node); in qcom_smem_state_register()
/linux-6.3-rc2/drivers/usb/host/
A Dohci-exynos.c32 struct device_node *of_node; member
46 num_phys = of_count_phandle_with_args(dev->of_node, "phys", in exynos_ohci_get_phy()
49 phy = devm_of_phy_get_by_index(dev, dev->of_node, phy_number); in exynos_ohci_get_phy()
58 for_each_available_child_of_node(dev->of_node, child) { in exynos_ohci_get_phy()
179 exynos_ohci->of_node = pdev->dev.of_node; in exynos_ohci_probe()
181 pdev->dev.of_node = NULL; in exynos_ohci_probe()
193 pdev->dev.of_node = exynos_ohci->of_node; in exynos_ohci_probe()
206 pdev->dev.of_node = exynos_ohci->of_node; in exynos_ohci_remove()
A Dehci-exynos.c41 struct device_node *of_node; member
57 num_phys = of_count_phandle_with_args(dev->of_node, "phys", in exynos_ehci_get_phy()
60 phy = devm_of_phy_get_by_index(dev, dev->of_node, phy_number); in exynos_ehci_get_phy()
69 for_each_available_child_of_node(dev->of_node, child) { in exynos_ehci_get_phy()
205 exynos_ehci->of_node = pdev->dev.of_node; in exynos_ehci_probe()
207 pdev->dev.of_node = NULL; in exynos_ehci_probe()
225 pdev->dev.of_node = exynos_ehci->of_node; in exynos_ehci_probe()
238 pdev->dev.of_node = exynos_ehci->of_node; in exynos_ehci_remove()
/linux-6.3-rc2/drivers/power/reset/
A Dsyscon-reboot.c54 ctx->map = syscon_regmap_lookup_by_phandle(dev->of_node, "regmap"); in syscon_reboot_probe()
56 ctx->map = syscon_node_to_regmap(dev->parent->of_node); in syscon_reboot_probe()
61 if (of_property_read_s32(pdev->dev.of_node, "priority", &priority)) in syscon_reboot_probe()
64 if (of_property_read_u32(pdev->dev.of_node, "offset", &ctx->offset)) in syscon_reboot_probe()
67 value_err = of_property_read_u32(pdev->dev.of_node, "value", &ctx->value); in syscon_reboot_probe()
68 mask_err = of_property_read_u32(pdev->dev.of_node, "mask", &ctx->mask); in syscon_reboot_probe()
/linux-6.3-rc2/drivers/remoteproc/
A Dqcom_wcnss_iris.c108 of_node_put(iris->dev.of_node); in qcom_iris_release()
116 struct device_node *of_node; in qcom_iris_probe() local
121 of_node = of_get_child_by_name(parent->of_node, "iris"); in qcom_iris_probe()
122 if (!of_node) { in qcom_iris_probe()
129 of_node_put(of_node); in qcom_iris_probe()
136 iris->dev.of_node = of_node; in qcom_iris_probe()
/linux-6.3-rc2/drivers/misc/
A Datmel-ssc.c33 if (ssc->pdev->dev.of_node) { in ssc_request()
34 if (of_alias_get_id(ssc->pdev->dev.of_node, "ssc") in ssc_request()
135 if (pdev->dev.of_node) { in atmel_ssc_get_driver_data()
137 match = of_match_node(atmel_ssc_dt_ids, pdev->dev.of_node); in atmel_ssc_get_driver_data()
150 struct device_node *np = ssc->pdev->dev.of_node; in ssc_sound_dai_probe()
174 atmel_ssc_put_audio(of_alias_get_id(ssc->pdev->dev.of_node, "ssc")); in ssc_sound_dai_remove()
179 if (of_property_read_bool(ssc->pdev->dev.of_node, "#sound-dai-cells")) in ssc_sound_dai_probe()
209 if (pdev->dev.of_node) { in ssc_probe()
210 struct device_node *np = pdev->dev.of_node; in ssc_probe()
/linux-6.3-rc2/drivers/regulator/
A Das3711-regulator.c173 struct device_node **of_node, const int count) in as3711_regulator_parse_dt() argument
177 of_get_child_by_name(dev->parent->of_node, "regulators"); in as3711_regulator_parse_dt()
195 if (match->of_node) { in as3711_regulator_parse_dt()
197 of_node[i] = match->of_node; in as3711_regulator_parse_dt()
208 struct device_node *of_node[AS3711_REGULATOR_NUM] = {}; in as3711_regulator_probe() local
218 if (pdev->dev.parent->of_node) { in as3711_regulator_probe()
219 ret = as3711_regulator_parse_dt(&pdev->dev, of_node, AS3711_REGULATOR_NUM); in as3711_regulator_probe()
229 config.of_node = of_node[id]; in as3711_regulator_probe()
/linux-6.3-rc2/drivers/irqchip/
A Dirq-mips-cpu.c236 static void mips_cpu_register_ipi_domain(struct device_node *of_node) in mips_cpu_register_ipi_domain() argument
243 2, of_node, in mips_cpu_register_ipi_domain()
253 static inline void mips_cpu_register_ipi_domain(struct device_node *of_node) {} in mips_cpu_register_ipi_domain() argument
257 static void __init __mips_cpu_irq_init(struct device_node *of_node) in __mips_cpu_irq_init() argument
263 irq_domain = irq_domain_add_legacy(of_node, 8, MIPS_CPU_IRQ_BASE, 0, in __mips_cpu_irq_init()
274 mips_cpu_register_ipi_domain(of_node); in __mips_cpu_irq_init()
282 int __init mips_cpu_irq_of_init(struct device_node *of_node, in mips_cpu_irq_of_init() argument
285 __mips_cpu_irq_init(of_node); in mips_cpu_irq_of_init()

Completed in 259 milliseconds

12345678910>>...110