Home
last modified time | relevance | path

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

12

/drivers/of/unittest-data/
Dtests-phandle.dtsi12 phandle-tests {
14 #phandle-cells = <0>;
18 #phandle-cells = <1>;
22 #phandle-cells = <2>;
26 #phandle-cells = <3>;
30 #phandle-cells = <2>;
31 phandle-map = <0 1 &provider1 3>,
37 phandle-map-mask = <0xff 0xf>;
38 phandle-map-pass-thru = <0x0 0xf0>;
42 phandle-list = <&provider1 1>,
[all …]
Doverlay_bad_phandle.dts8 // is applied. There is already a phandle value
Dtestcases.dts15 #include "tests-phandle.dtsi"
/drivers/of/
Dresolver.c22 static phandle live_tree_max_phandle(void) in live_tree_max_phandle()
25 phandle phandle; in live_tree_max_phandle() local
29 phandle = 0; in live_tree_max_phandle()
31 if (node->phandle != OF_PHANDLE_ILLEGAL && in live_tree_max_phandle()
32 node->phandle > phandle) in live_tree_max_phandle()
33 phandle = node->phandle; in live_tree_max_phandle()
37 return phandle; in live_tree_max_phandle()
45 phandle phandle; in adjust_overlay_phandles() local
48 if (overlay->phandle != 0 && overlay->phandle != OF_PHANDLE_ILLEGAL) in adjust_overlay_phandles()
49 overlay->phandle += phandle_delta; in adjust_overlay_phandles()
[all …]
Dpdt.c49 if (!of_pdt_prom_ops->pkg2path(dp->phandle, path, sizeof(path), &len)) { in of_pdt_build_full_name()
65 static struct property * __init of_pdt_build_one_prop(phandle node, char *prev, in of_pdt_build_one_prop()
112 static struct property * __init of_pdt_build_prop_list(phandle node) in of_pdt_build_prop_list()
130 static char * __init of_pdt_get_one_property(phandle node, const char *name) in of_pdt_get_one_property()
144 static struct device_node * __init of_pdt_create_node(phandle node, in of_pdt_create_node()
158 dp->phandle = node; in of_pdt_create_node()
170 phandle node) in of_pdt_build_tree()
200 void __init of_pdt_build_devicetree(phandle root_node, struct of_pdt_ops *ops) in of_pdt_build_devicetree()
209 of_pdt_prom_ops->getchild(of_root->phandle)); in of_pdt_build_devicetree()
Ddynamic.c205 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()
279 __of_free_phandle_cache_entry(np->phandle); in __of_detach_node()
Dbase.c175 void __of_free_phandle_cache_entry(phandle handle) in __of_free_phandle_cache_entry()
177 phandle masked_handle; in __of_free_phandle_cache_entry()
187 if (np && handle == np->phandle) { in __of_free_phandle_cache_entry()
206 if (np->phandle && np->phandle != OF_PHANDLE_ILLEGAL) in of_populate_phandle_cache()
221 if (np->phandle && np->phandle != OF_PHANDLE_ILLEGAL) { in of_populate_phandle_cache()
223 phandle_cache[np->phandle & phandle_cache_mask] = np; in of_populate_phandle_cache()
1222 struct device_node *of_find_node_by_phandle(phandle handle) in of_find_node_by_phandle()
1226 phandle masked_handle; in of_find_node_by_phandle()
1237 handle == phandle_cache[masked_handle]->phandle) in of_find_node_by_phandle()
1249 if (np->phandle == handle && in of_find_node_by_phandle()
[all …]
Dof_reserved_mem.c257 rmem->phandle = of_read_number(prop, len/4); in fdt_init_reserved_mem()
279 if (!node->phandle) in __find_rmem()
283 if (reserved_mem[i].phandle == node->phandle) in __find_rmem()
Doverlay.c411 const __be32 *phandle; in add_changeset_node() local
434 phandle = __of_get_property(node, "phandle", &size); in add_changeset_node()
435 if (phandle && (size == 4)) in add_changeset_node()
436 tchild->phandle = be32_to_cpup(phandle); in add_changeset_node()
452 if (node->phandle && tchild->phandle) { in add_changeset_node()
Dproperty.c1243 struct device_node *phandle; in of_link_property() local
1257 while ((phandle = s->parse_prop(con_np, prop_name, i))) { in of_link_property()
1260 if (of_link_to_phandle(dev, phandle, dl_flags) in of_link_property()
1263 of_node_put(phandle); in of_link_property()
/drivers/char/tpm/
Dtpm2-space.c224 u32 phandle; in tpm2_map_to_phandle() local
231 phandle = space->context_tbl[i]; in tpm2_map_to_phandle()
232 *((__be32 *)handle) = cpu_to_be32(phandle); in tpm2_map_to_phandle()
349 static u32 tpm2_map_to_vhandle(struct tpm_space *space, u32 phandle, bool alloc) in tpm2_map_to_vhandle() argument
356 space->context_tbl[i] = phandle; in tpm2_map_to_vhandle()
359 } else if (space->context_tbl[i] == phandle) in tpm2_map_to_vhandle()
374 u32 phandle; in tpm2_map_response_header() local
392 phandle = be32_to_cpup((__be32 *)&rsp[TPM_HEADER_SIZE]); in tpm2_map_response_header()
393 phandle_type = phandle & 0xFF000000; in tpm2_map_response_header()
397 vhandle = tpm2_map_to_vhandle(space, phandle, true); in tpm2_map_response_header()
[all …]
/drivers/sbus/char/
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()
363 static struct device_node *get_node(phandle n, DATA *data) in get_node()
498 phandle nd; in opiocgetnext()
[all …]
/drivers/net/wireless/mediatek/mt76/
Deeprom.c20 phandle phandle; in mt76_get_of_eeprom() local
33 phandle = be32_to_cpup(list++); in mt76_get_of_eeprom()
34 if (!phandle) in mt76_get_of_eeprom()
37 np = of_find_node_by_phandle(phandle); in mt76_get_of_eeprom()
/drivers/clk/imx/
Dclk.c57 struct of_phandle_args phandle; in imx_obtain_fixed_clock_from_dt() local
65 phandle.np = of_find_node_by_path(path); in imx_obtain_fixed_clock_from_dt()
68 if (phandle.np) { in imx_obtain_fixed_clock_from_dt()
69 clk = of_clk_get_from_provider(&phandle); in imx_obtain_fixed_clock_from_dt()
70 of_node_put(phandle.np); in imx_obtain_fixed_clock_from_dt()
/drivers/gpu/drm/bridge/
Ddumb-vga-dac.c157 struct device_node *phandle, *remote; in dumb_vga_retrieve_ddc() local
164 phandle = of_parse_phandle(remote, "ddc-i2c-bus", 0); in dumb_vga_retrieve_ddc()
166 if (!phandle) in dumb_vga_retrieve_ddc()
169 ddc = of_get_i2c_adapter_by_node(phandle); in dumb_vga_retrieve_ddc()
170 of_node_put(phandle); in dumb_vga_retrieve_ddc()
/drivers/misc/cxl/
Dflash.c34 __be32 phandle; member
106 static int update_node(__be32 phandle, s32 scope) in update_node() argument
125 dn = of_find_node_by_phandle(be32_to_cpu(phandle)); in update_node()
132 upwa->phandle = phandle; in update_node()
178 __be32 *data, drc_index, phandle; in update_devicetree() local
205 phandle = *data++; in update_devicetree()
212 update_node(phandle, scope); in update_devicetree()
/drivers/pinctrl/
Ddevicetree.c208 phandle phandle; in pinctrl_dt_to_map() local
251 phandle = be32_to_cpup(list++); in pinctrl_dt_to_map()
254 np_config = of_find_node_by_phandle(phandle); in pinctrl_dt_to_map()
/drivers/acpi/
Dpci_root.c271 acpi_handle phandle; in acpi_get_pci_dev() local
281 phandle = handle; in acpi_get_pci_dev()
282 while (!acpi_is_root_bridge(phandle)) { in acpi_get_pci_dev()
288 node->handle = phandle; in acpi_get_pci_dev()
291 status = acpi_get_parent(phandle, &phandle); in acpi_get_pci_dev()
296 root = acpi_pci_find_root(phandle); in acpi_get_pci_dev()
Dnuma.c469 acpi_handle phandle = h; in acpi_get_pxm() local
472 handle = phandle; in acpi_get_pxm()
476 status = acpi_get_parent(handle, &phandle); in acpi_get_pxm()
/drivers/gpu/drm/rcar-du/
Drcar_du_of.c143 value[0] = cpu_to_be32(clk->np->phandle); in rcar_du_of_lvds_patch_one()
161 value[0] = cpu_to_be32(local->phandle); in rcar_du_of_lvds_patch_one()
162 value[1] = cpu_to_be32(remote->phandle); in rcar_du_of_lvds_patch_one()
/drivers/gpu/drm/sun4i/
Dsun4i_hdmi_enc.c235 struct device_node *phandle, *remote; in sun4i_hdmi_get_ddc() local
242 phandle = of_parse_phandle(remote, "ddc-i2c-bus", 0); in sun4i_hdmi_get_ddc()
244 if (!phandle) in sun4i_hdmi_get_ddc()
247 ddc = of_get_i2c_adapter_by_node(phandle); in sun4i_hdmi_get_ddc()
248 of_node_put(phandle); in sun4i_hdmi_get_ddc()
/drivers/video/backlight/
Drave-sp-backlight.c63 if (!dev->of_node->phandle) in rave_sp_backlight_probe()
/drivers/usb/phy/
Dphy.c546 const char *phandle, u8 index) in devm_usb_get_phy_by_phandle() argument
556 node = of_parse_phandle(dev->of_node, phandle, index); in devm_usb_get_phy_by_phandle()
558 dev_dbg(dev, "failed to get %s phandle in %pOF node\n", phandle, in devm_usb_get_phy_by_phandle()
/drivers/pci/hotplug/
Dacpiphp_ibm.c387 acpi_handle *phandle = (acpi_handle *)context; in ibm_find_acpi_device() local
407 *phandle = handle; in ibm_find_acpi_device()
/drivers/mailbox/
Domap-mailbox.c675 phandle phandle = sp->args[0]; in omap_mbox_of_xlate() local
684 node = of_find_node_by_phandle(phandle); in omap_mbox_of_xlate()
687 __func__, phandle); in omap_mbox_of_xlate()

12