Home
last modified time | relevance | path

Searched refs:phandle (Results 1 – 25 of 57) sorted by relevance

123

/drivers/of/unittest-data/
A Dtests-phandle.dtsi14 phandle-tests {
16 #phandle-cells = <0>;
20 #phandle-cells = <1>;
24 #phandle-cells = <2>;
28 #phandle-cells = <3>;
32 #phandle-cells = <2>;
39 phandle-map-mask = <0xff 0xf>;
44 #phandle-cells = <2>;
46 phandle-map-mask = <0xff 0xf>;
60 phandle-list-bad-phandle = <12345678 0 0>;
[all …]
A Doverlay_bad_phandle.dtso7 // is applied. There is already a phandle value
A Dtestcases_common.dtsi15 #include "tests-phandle.dtsi"
/drivers/of/
A Dresolver.c26 phandle phandle; in live_tree_max_phandle() local
30 phandle = 0; in live_tree_max_phandle()
33 node->phandle > phandle) in live_tree_max_phandle()
34 phandle = node->phandle; in live_tree_max_phandle()
38 return phandle; in live_tree_max_phandle()
46 phandle phandle; in adjust_overlay_phandles() local
49 if (overlay->phandle != 0 && overlay->phandle != OF_PHANDLE_ILLEGAL) in adjust_overlay_phandles()
50 overlay->phandle += phandle_delta; in adjust_overlay_phandles()
74 const struct property *prop_fixup, phandle phandle) in update_usages_of_a_phandle_reference() argument
255 phandle phandle, phandle_delta; in of_resolve_phandles() local
[all …]
A Dpdt.c51 if (!of_pdt_prom_ops->pkg2path(dp->phandle, path, sizeof(path), &len)) { in of_pdt_build_full_name()
67 static struct property * __init of_pdt_build_one_prop(phandle node, char *prev, in of_pdt_build_one_prop()
114 static struct property * __init of_pdt_build_prop_list(phandle node) in of_pdt_build_prop_list()
132 static char * __init of_pdt_get_one_property(phandle node, const char *name) in of_pdt_get_one_property()
146 static struct device_node * __init of_pdt_create_node(phandle node, in of_pdt_create_node()
160 dp->phandle = node; in of_pdt_create_node()
172 phandle node) in of_pdt_build_tree()
202 void __init of_pdt_build_devicetree(phandle root_node, struct of_pdt_ops *ops) in of_pdt_build_devicetree()
211 of_pdt_prom_ops->getchild(of_root->phandle)); in of_pdt_build_devicetree()
A Ddynamic.c202 const __be32 *phandle; in __of_attach_node() local
213 phandle = __of_get_property(np, "phandle", &sz); in __of_attach_node()
214 if (!phandle) in __of_attach_node()
215 phandle = __of_get_property(np, "linux,phandle", &sz); in __of_attach_node()
216 if (IS_ENABLED(CONFIG_PPC_PSERIES) && !phandle) in __of_attach_node()
217 phandle = __of_get_property(np, "ibm,phandle", &sz); in __of_attach_node()
218 if (phandle && (sz >= 4)) in __of_attach_node()
219 np->phandle = be32_to_cpup(phandle); in __of_attach_node()
221 np->phandle = 0; in __of_attach_node()
282 __of_phandle_cache_inv_entry(np->phandle); in __of_detach_node()
A Dbase.c161 static u32 of_phandle_cache_hash(phandle handle) in of_phandle_cache_hash()
169 void __of_phandle_cache_inv_entry(phandle handle) in __of_phandle_cache_inv_entry()
180 if (np && handle == np->phandle) in __of_phandle_cache_inv_entry()
200 if (np->phandle && !phandle_cache[of_phandle_cache_hash(np->phandle)]) in of_core_init()
1210 if (np->phandle == handle && in of_find_node_by_phandle()
1283 it->phandle = be32_to_cpup(it->cur++); in of_phandle_iterator_next()
1285 if (it->phandle) { in of_phandle_iterator_next()
1291 it->node = of_find_node_by_phandle(it->phandle); in of_phandle_iterator_next()
1296 it->parent, it->phandle); in of_phandle_iterator_next()
1392 if (!it.phandle) in __of_parse_phandle_with_args()
[all …]
A Doverlay.c409 const __be32 *phandle; in add_changeset_node() local
432 phandle = __of_get_property(node, "phandle", &size); in add_changeset_node()
433 if (phandle && (size == 4)) in add_changeset_node()
434 tchild->phandle = be32_to_cpup(phandle); in add_changeset_node()
450 if (node->phandle && tchild->phandle) { in add_changeset_node()
/drivers/char/tpm/
A Dtpm2-space.c233 u32 phandle; in tpm2_map_to_phandle() local
240 phandle = space->context_tbl[i]; in tpm2_map_to_phandle()
367 space->context_tbl[i] = phandle; in tpm2_map_to_vhandle()
385 u32 phandle; in tpm2_map_response_header() local
404 phandle_type = phandle & 0xFF000000; in tpm2_map_response_header()
416 if (!tpm2_add_session(chip, phandle)) in tpm2_map_response_header()
421 __func__, phandle); in tpm2_map_response_header()
427 tpm2_flush_context(chip, phandle); in tpm2_map_response_header()
429 phandle); in tpm2_map_response_header()
446 u32 phandle; in tpm2_map_response_body() local
[all …]
/drivers/sbus/char/
A Dopenprom.c187 phandle ph; in opromnext()
189 BUILD_BUG_ON(sizeof(phandle) != sizeof(int)); in opromnext()
191 if (bufsize < sizeof(phandle)) in opromnext()
223 ph = dp->phandle; in opromnext()
227 op->oprom_size = sizeof(phandle); in opromnext()
247 *((int *)op->oprom_array) = dp->phandle; in oprompci2node()
260 phandle ph = 0; in oprompath2node()
264 ph = dp->phandle; in oprompath2node()
498 phandle nd; in opiocgetnext()
520 nd = dp->phandle; in opiocgetnext()
[all …]
/drivers/clk/imx/
A Dclk.c65 struct of_phandle_args phandle; in imx_obtain_fixed_clock_from_dt() local
73 phandle.np = of_find_node_by_path(path); in imx_obtain_fixed_clock_from_dt()
76 if (phandle.np) { in imx_obtain_fixed_clock_from_dt()
77 clk = of_clk_get_from_provider(&phandle); in imx_obtain_fixed_clock_from_dt()
78 of_node_put(phandle.np); in imx_obtain_fixed_clock_from_dt()
/drivers/gpu/drm/bridge/
A Ddisplay-connector.c323 struct device_node *phandle; in display_connector_probe() local
325 phandle = of_parse_phandle(pdev->dev.of_node, "ddc-i2c-bus", 0); in display_connector_probe()
326 if (phandle) { in display_connector_probe()
327 conn->bridge.ddc = of_get_i2c_adapter_by_node(phandle); in display_connector_probe()
328 of_node_put(phandle); in display_connector_probe()
/drivers/net/wireless/mediatek/mt76/
A Deeprom.c38 phandle phandle; in mt76_get_of_data_from_mtd() local
47 phandle = be32_to_cpup(list++); in mt76_get_of_data_from_mtd()
48 if (!phandle) in mt76_get_of_data_from_mtd()
51 np = of_find_node_by_phandle(phandle); in mt76_get_of_data_from_mtd()
/drivers/pinctrl/
A Ddevicetree.c209 phandle phandle; in pinctrl_dt_to_map() local
256 phandle = be32_to_cpup(list++); in pinctrl_dt_to_map()
259 np_config = of_find_node_by_phandle(phandle); in pinctrl_dt_to_map()
/drivers/iommu/
A Dof_iommu.c241 u32 phandle; in of_iommu_get_resv_regions() local
243 phandle = be32_to_cpup(maps++); in of_iommu_get_resv_regions()
244 np = of_find_node_by_phandle(phandle); in of_iommu_get_resv_regions()
/drivers/gpu/drm/sun4i/
A Dsun4i_hdmi_enc.c217 struct device_node *phandle, *remote; in sun4i_hdmi_get_ddc() local
224 phandle = of_parse_phandle(remote, "ddc-i2c-bus", 0); in sun4i_hdmi_get_ddc()
226 if (!phandle) in sun4i_hdmi_get_ddc()
229 ddc = of_get_i2c_adapter_by_node(phandle); in sun4i_hdmi_get_ddc()
230 of_node_put(phandle); in sun4i_hdmi_get_ddc()
/drivers/gpu/drm/mediatek/
A Dmtk_drm_drv.c378 struct device_node *phandle = dev->parent->of_node; in mtk_drm_get_all_drm_priv() local
385 for_each_child_of_node(phandle->parent, node) { in mtk_drm_get_all_drm_priv()
1075 struct device_node *phandle = dev->parent->of_node; in mtk_drm_probe() local
1095 of_id = of_match_node(mtk_drm_of_ids, phandle); in mtk_drm_probe()
1104 if (of_graph_is_present(phandle)) { in mtk_drm_probe()
1112 ret = mtk_drm_of_ddp_path_build(dev, phandle, private->data); in mtk_drm_probe()
1140 for_each_child_of_node(phandle->parent, node) { in mtk_drm_probe()
/drivers/mailbox/
A Domap-mailbox.c414 phandle phandle = sp->args[0]; in omap_mbox_of_xlate() local
424 node = of_find_node_by_phandle(phandle); in omap_mbox_of_xlate()
427 __func__, phandle); in omap_mbox_of_xlate()
/drivers/bus/
A Dstm32_firewall.c68 if (ctrl->dev->of_node->phandle == it.phandle) { in stm32_firewall_get_firewall()
/drivers/staging/vc04_services/interface/vchiq_arm/
A Dvchiq_arm.c445 unsigned int *phandle) in vchiq_add_service() argument
451 *phandle = VCHIQ_SERVICE_HANDLE_INVALID; in vchiq_add_service()
460 *phandle = service->handle; in vchiq_add_service()
474 unsigned int *phandle) in vchiq_open_service() argument
480 *phandle = VCHIQ_SERVICE_HANDLE_INVALID; in vchiq_open_service()
488 *phandle = service->handle; in vchiq_open_service()
492 *phandle = VCHIQ_SERVICE_HANDLE_INVALID; in vchiq_open_service()
/drivers/acpi/numa/
A Dsrat.c680 acpi_handle phandle = h; in acpi_get_pxm() local
683 handle = phandle; in acpi_get_pxm()
687 status = acpi_get_parent(handle, &phandle); in acpi_get_pxm()
/drivers/usb/phy/
A Dphy.c588 const char *phandle, u8 index) in devm_usb_get_phy_by_phandle() argument
598 node = of_parse_phandle(dev->of_node, phandle, index); in devm_usb_get_phy_by_phandle()
600 dev_dbg(dev, "failed to get %s phandle in %pOF node\n", phandle, in devm_usb_get_phy_by_phandle()
/drivers/video/backlight/
A Drave-sp-backlight.c63 if (!dev->of_node->phandle) in rave_sp_backlight_probe()
A Dgpio_backlight.c81 if (!of_node || !of_node->phandle) in gpio_backlight_probe()
/drivers/pci/hotplug/
A Dacpiphp_ibm.c387 acpi_handle *phandle = (acpi_handle *)context; in ibm_find_acpi_device() local
407 *phandle = handle; in ibm_find_acpi_device()

Completed in 55 milliseconds

123