/linux-6.6.21/sound/soc/kirkwood/ |
D | armada-370-db.c | 111 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() 124 of_parse_phandle(pdev->dev.of_node, in a370db_probe() 127 a370db_dai[2].cpus->of_node = a370db_dai[0].cpus->of_node; in a370db_probe() [all …]
|
/linux-6.6.21/drivers/of/ |
D | device.c | 29 if (!matches || !dev->of_node || dev->of_node_reused) in of_match_device() 31 return of_match_node(matches, dev->of_node); in of_match_device() 38 struct device_node *node, *of_node = dev->of_node; in of_dma_set_restricted_buffer() local 44 count = of_property_count_elems_of_size(of_node, "memory-region", in of_dma_set_restricted_buffer() 51 of_node = np; in of_dma_set_restricted_buffer() 53 of_node, "memory-region", sizeof(u32)); in of_dma_set_restricted_buffer() 57 node = of_parse_phandle(of_node, "memory-region", i); in of_dma_set_restricted_buffer() 74 if (i < count && of_reserved_mem_device_init_by_idx(dev, of_node, i)) in of_dma_set_restricted_buffer() 104 if (np == dev->of_node) in of_dma_configure_id() 227 if (!dev || !dev->of_node || dev->of_node_reused) in of_device_modalias() [all …]
|
/linux-6.6.21/sound/soc/samsung/ |
D | snow.c | 158 cpu = of_get_child_by_name(dev->of_node, "cpu"); in snow_probe() 163 link->cpus->of_node = of_parse_phandle(cpu, "sound-dai", 0); in snow_probe() 166 if (!link->cpus->of_node) { in snow_probe() 171 codec = of_get_child_by_name(dev->of_node, "codec"); in snow_probe() 176 of_node_put(link->cpus->of_node); in snow_probe() 181 priv->clk_i2s_bus = of_clk_get_by_name(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() [all …]
|
D | arndale.c | 141 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.6.21/sound/soc/rockchip/ |
D | rockchip_rt5645.c | 171 struct device_node *np = pdev->dev.of_node; in snd_rk_mc_probe() 176 rk_dailink.codecs->of_node = of_parse_phandle(np, in snd_rk_mc_probe() 178 if (!rk_dailink.codecs->of_node) { in snd_rk_mc_probe() 184 rk_dailink.cpus->of_node = of_parse_phandle(np, in snd_rk_mc_probe() 186 if (!rk_dailink.cpus->of_node) { in snd_rk_mc_probe() 193 rk_dailink.platforms->of_node = rk_dailink.cpus->of_node; in snd_rk_mc_probe() 212 of_node_put(rk_dailink.cpus->of_node); in snd_rk_mc_probe() 213 rk_dailink.cpus->of_node = NULL; in snd_rk_mc_probe() 215 of_node_put(rk_dailink.codecs->of_node); in snd_rk_mc_probe() 216 rk_dailink.codecs->of_node = NULL; in snd_rk_mc_probe() [all …]
|
D | rockchip_max98090.c | 365 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() 401 card->dai_link[DAILINK_MAX98090].codecs->of_node = np_audio; in snd_rk_mc_probe() 402 card->dai_link[DAILINK_HDMI].codecs->of_node = np_hdmi; in snd_rk_mc_probe() 403 card->dai_link[DAILINK_MAX98090].cpus->of_node = np_cpu; in snd_rk_mc_probe() 404 card->dai_link[DAILINK_MAX98090].platforms->of_node = np_cpu; in snd_rk_mc_probe() 405 card->dai_link[DAILINK_HDMI].cpus->of_node = np_cpu; in snd_rk_mc_probe() 406 card->dai_link[DAILINK_HDMI].platforms->of_node = np_cpu; in snd_rk_mc_probe() 409 card->dai_link[0].codecs->of_node = np_audio; in snd_rk_mc_probe() [all …]
|
/linux-6.6.21/drivers/gpu/drm/tiny/ |
D | ofdrm.c | 150 static int display_read_u32_of(struct drm_device *dev, struct device_node *of_node, in display_read_u32_of() argument 153 int ret = of_property_read_u32(of_node, name, value); in display_read_u32_of() 160 static bool display_get_big_endian_of(struct drm_device *dev, struct device_node *of_node) in display_get_big_endian_of() argument 165 big_endian = !of_property_read_bool(of_node, "little-endian"); in display_get_big_endian_of() 167 big_endian = of_property_read_bool(of_node, "big-endian"); in display_get_big_endian_of() 173 static int display_get_width_of(struct drm_device *dev, struct device_node *of_node) in display_get_width_of() argument 176 int ret = display_read_u32_of(dev, of_node, "width", &width); in display_get_width_of() 183 static int display_get_height_of(struct drm_device *dev, struct device_node *of_node) in display_get_height_of() argument 186 int ret = display_read_u32_of(dev, of_node, "height", &height); in display_get_height_of() 193 static int display_get_depth_of(struct drm_device *dev, struct device_node *of_node) in display_get_depth_of() argument [all …]
|
D | simpledrm.c | 121 simplefb_read_u32_of(struct drm_device *dev, struct device_node *of_node, in simplefb_read_u32_of() argument 124 int ret = of_property_read_u32(of_node, name, value); in simplefb_read_u32_of() 133 simplefb_read_string_of(struct drm_device *dev, struct device_node *of_node, in simplefb_read_string_of() argument 136 int ret = of_property_read_string(of_node, name, value); in simplefb_read_string_of() 145 simplefb_get_width_of(struct drm_device *dev, struct device_node *of_node) in simplefb_get_width_of() argument 148 int ret = simplefb_read_u32_of(dev, of_node, "width", &width); in simplefb_get_width_of() 156 simplefb_get_height_of(struct drm_device *dev, struct device_node *of_node) in simplefb_get_height_of() argument 159 int ret = simplefb_read_u32_of(dev, of_node, "height", &height); in simplefb_get_height_of() 167 simplefb_get_stride_of(struct drm_device *dev, struct device_node *of_node) in simplefb_get_stride_of() argument 170 int ret = simplefb_read_u32_of(dev, of_node, "stride", &stride); in simplefb_get_stride_of() [all …]
|
/linux-6.6.21/sound/soc/mediatek/mt8173/ |
D | mt8173-rt5650-rt5676.c | 254 platform_node = of_parse_phandle(pdev->dev.of_node, in mt8173_rt5650_rt5676_dev_probe() 264 dai_link->platforms->of_node = platform_node; in mt8173_rt5650_rt5676_dev_probe() 267 mt8173_rt5650_rt5676_dais[DAI_LINK_CODEC_I2S].codecs[0].of_node = in mt8173_rt5650_rt5676_dev_probe() 268 of_parse_phandle(pdev->dev.of_node, "mediatek,audio-codec", 0); in mt8173_rt5650_rt5676_dev_probe() 269 if (!mt8173_rt5650_rt5676_dais[DAI_LINK_CODEC_I2S].codecs[0].of_node) { in mt8173_rt5650_rt5676_dev_probe() 275 mt8173_rt5650_rt5676_dais[DAI_LINK_CODEC_I2S].codecs[1].of_node = in mt8173_rt5650_rt5676_dev_probe() 276 of_parse_phandle(pdev->dev.of_node, "mediatek,audio-codec", 1); in mt8173_rt5650_rt5676_dev_probe() 277 if (!mt8173_rt5650_rt5676_dais[DAI_LINK_CODEC_I2S].codecs[1].of_node) { in mt8173_rt5650_rt5676_dev_probe() 283 mt8173_rt5650_rt5676_codec_conf[0].dlc.of_node = in mt8173_rt5650_rt5676_dev_probe() 284 mt8173_rt5650_rt5676_dais[DAI_LINK_CODEC_I2S].codecs[1].of_node; in mt8173_rt5650_rt5676_dev_probe() [all …]
|
D | mt8173-rt5650-rt5514.c | 198 platform_node = of_parse_phandle(pdev->dev.of_node, in mt8173_rt5650_rt5514_dev_probe() 208 dai_link->platforms->of_node = platform_node; in mt8173_rt5650_rt5514_dev_probe() 211 mt8173_rt5650_rt5514_dais[DAI_LINK_CODEC_I2S].codecs[0].of_node = in mt8173_rt5650_rt5514_dev_probe() 212 of_parse_phandle(pdev->dev.of_node, "mediatek,audio-codec", 0); in mt8173_rt5650_rt5514_dev_probe() 213 if (!mt8173_rt5650_rt5514_dais[DAI_LINK_CODEC_I2S].codecs[0].of_node) { in mt8173_rt5650_rt5514_dev_probe() 219 mt8173_rt5650_rt5514_dais[DAI_LINK_CODEC_I2S].codecs[1].of_node = in mt8173_rt5650_rt5514_dev_probe() 220 of_parse_phandle(pdev->dev.of_node, "mediatek,audio-codec", 1); in mt8173_rt5650_rt5514_dev_probe() 221 if (!mt8173_rt5650_rt5514_dais[DAI_LINK_CODEC_I2S].codecs[1].of_node) { in mt8173_rt5650_rt5514_dev_probe() 227 mt8173_rt5650_rt5514_codec_conf[0].dlc.of_node = in mt8173_rt5650_rt5514_dev_probe() 228 mt8173_rt5650_rt5514_dais[DAI_LINK_CODEC_I2S].codecs[1].of_node; in mt8173_rt5650_rt5514_dev_probe()
|
D | mt8173-rt5650.c | 278 platform_node = of_parse_phandle(pdev->dev.of_node, in mt8173_rt5650_dev_probe() 288 dai_link->platforms->of_node = platform_node; in mt8173_rt5650_dev_probe() 291 mt8173_rt5650_dais[DAI_LINK_CODEC_I2S].codecs[0].of_node = in mt8173_rt5650_dev_probe() 292 of_parse_phandle(pdev->dev.of_node, "mediatek,audio-codec", 0); in mt8173_rt5650_dev_probe() 293 if (!mt8173_rt5650_dais[DAI_LINK_CODEC_I2S].codecs[0].of_node) { in mt8173_rt5650_dev_probe() 299 mt8173_rt5650_dais[DAI_LINK_CODEC_I2S].codecs[1].of_node = in mt8173_rt5650_dev_probe() 300 mt8173_rt5650_dais[DAI_LINK_CODEC_I2S].codecs[0].of_node; in mt8173_rt5650_dev_probe() 302 np = of_get_child_by_name(pdev->dev.of_node, "codec-capture"); in mt8173_rt5650_dev_probe() 327 mt8173_rt5650_dais[DAI_LINK_HDMI_I2S].codecs->of_node = in mt8173_rt5650_dev_probe() 328 of_parse_phandle(pdev->dev.of_node, "mediatek,audio-codec", 1); in mt8173_rt5650_dev_probe() [all …]
|
/linux-6.6.21/arch/powerpc/sysdev/ |
D | msi_bitmap.c | 80 if (!bmp->of_node) in msi_bitmap_reserve_dt_hwirqs() 83 p = of_get_property(bmp->of_node, "msi-available-ranges", &len); 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() [all …]
|
/linux-6.6.21/drivers/gpu/drm/logicvc/ |
D | logicvc_of.c | 126 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()
|
D | logicvc_drm.c | 91 struct device_node *of_node = dev->of_node; in logicvc_drm_config_parse() local 96 logicvc_of_property_parse_bool(of_node, LOGICVC_OF_PROPERTY_DITHERING, in logicvc_drm_config_parse() 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() 129 layers_node = of_get_child_by_name(of_node, "layers"); in logicvc_drm_config_parse() 294 struct device_node *of_node = pdev->dev.of_node; in logicvc_drm_probe() local [all …]
|
/linux-6.6.21/drivers/pci/ |
D | of.c | 30 if (!dev->bus->dev.of_node) in pci_set_of_node() 33 node = of_pci_find_child_device(dev->bus->dev.of_node, dev->devfn); in pci_set_of_node() 43 of_node_put(dev->dev.of_node); in pci_release_of_node() 54 node = of_node_get(bus->self->dev.of_node); in pci_set_bus_of_node() 64 of_node_put(bus->dev.of_node); in pci_release_bus_of_node() 79 if (bus->bridge->of_node) in pcibios_get_phb_of_node() 80 return of_node_get(bus->bridge->of_node); in pcibios_get_phb_of_node() 81 if (bus->bridge->parent && bus->bridge->parent->of_node) in pcibios_get_phb_of_node() 82 return of_node_get(bus->bridge->parent->of_node); in pcibios_get_phb_of_node() 91 if (!bus->dev.of_node) in pci_host_bridge_of_msi_domain() [all …]
|
/linux-6.6.21/drivers/soc/qcom/ |
D | smem_state.c | 30 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.6.21/sound/soc/qcom/ |
D | storm.c | 71 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()
|
D | common.c | 37 if (of_property_read_bool(dev->of_node, "widgets")) { in qcom_snd_parse_of() 44 if (of_property_read_bool(dev->of_node, "audio-routing")) { in qcom_snd_parse_of() 50 if (of_property_read_bool(dev->of_node, "qcom,audio-routing")) { in qcom_snd_parse_of() 65 num_links = of_get_available_child_count(dev->of_node); in qcom_snd_parse_of() 75 for_each_available_child_of_node(dev->of_node, np) { in qcom_snd_parse_of() 114 link->platforms->of_node = of_parse_phandle(platform, in qcom_snd_parse_of() 117 if (!link->platforms->of_node) { in qcom_snd_parse_of() 123 link->platforms->of_node = link->cpus->of_node; in qcom_snd_parse_of()
|
/linux-6.6.21/drivers/usb/host/ |
D | ohci-exynos.c | 32 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() 178 exynos_ohci->of_node = pdev->dev.of_node; in exynos_ohci_probe() 180 pdev->dev.of_node = NULL; in exynos_ohci_probe() 192 pdev->dev.of_node = exynos_ohci->of_node; in exynos_ohci_probe() 205 pdev->dev.of_node = exynos_ohci->of_node; in exynos_ohci_remove()
|
D | ehci-exynos.c | 41 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() 204 exynos_ehci->of_node = pdev->dev.of_node; in exynos_ehci_probe() 206 pdev->dev.of_node = NULL; in exynos_ehci_probe() 224 pdev->dev.of_node = exynos_ehci->of_node; in exynos_ehci_probe() 237 pdev->dev.of_node = exynos_ehci->of_node; in exynos_ehci_remove()
|
/linux-6.6.21/drivers/power/reset/ |
D | syscon-reboot.c | 53 ctx->map = syscon_regmap_lookup_by_phandle(dev->of_node, "regmap"); in syscon_reboot_probe() 55 ctx->map = syscon_node_to_regmap(dev->parent->of_node); in syscon_reboot_probe() 60 if (of_property_read_s32(pdev->dev.of_node, "priority", &priority)) in syscon_reboot_probe() 63 if (of_property_read_u32(pdev->dev.of_node, "offset", &ctx->offset)) in syscon_reboot_probe() 66 value_err = of_property_read_u32(pdev->dev.of_node, "value", &ctx->value); in syscon_reboot_probe() 67 mask_err = of_property_read_u32(pdev->dev.of_node, "mask", &ctx->mask); in syscon_reboot_probe()
|
/linux-6.6.21/drivers/remoteproc/ |
D | qcom_wcnss_iris.c | 109 of_node_put(iris->dev.of_node); in qcom_iris_release() 117 struct device_node *of_node; in qcom_iris_probe() local 122 of_node = of_get_child_by_name(parent->of_node, "iris"); in qcom_iris_probe() 123 if (!of_node) { in qcom_iris_probe() 130 of_node_put(of_node); in qcom_iris_probe() 137 iris->dev.of_node = of_node; in qcom_iris_probe()
|
/linux-6.6.21/drivers/misc/ |
D | atmel-ssc.c | 33 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.6.21/drivers/regulator/ |
D | as3711-regulator.c | 173 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.6.21/drivers/irqchip/ |
D | irq-mips-cpu.c | 236 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()
|