| /linux/arch/sparc/include/asm/ |
| H A D | oplib_32.h | 34 extern phandle prom_root_node; 115 phandle prom_getchild(phandle parent_node); 120 phandle prom_getsibling(phandle node); 125 int prom_getproplen(phandle thisnode, const char *property); 130 int __must_check prom_getproperty(phandle thisnode, const char *property, 134 int prom_getint(phandle node, char *property); 137 int prom_getintdefault(phandle node, char *property, int defval); 140 int prom_getbool(phandle node, char *prop); 143 void prom_getstring(phandle node, char *prop, char *buf, int bufsize); 148 phandle prom_searchsiblings(phandle node_start, char *name); [all …]
|
| H A D | oplib_64.h | 20 extern phandle prom_root_node; 28 extern phandle prom_chosen_node; 183 phandle prom_getchild(phandle parent_node); 188 phandle prom_getsibling(phandle node); 193 int prom_getproplen(phandle thisnode, const char *property); 198 int prom_getproperty(phandle thisnode, const char *property, 202 int prom_getint(phandle node, const char *property); 205 int prom_getintdefault(phandle node, const char *property, int defval); 208 int prom_getbool(phandle node, const char *prop); 211 void prom_getstring(phandle node, const char *prop, char *buf, [all …]
|
| /linux/drivers/of/unittest-data/ |
| H A D | tests-phandle.dtsi | 14 phandle-tests { 16 #phandle-cells = <0>; 20 #phandle-cells = <1>; 24 #phandle-cells = <2>; 28 #phandle-cells = <3>; 32 #phandle-cells = <2>; 33 phandle-map = <0 1 &provider1 3>, 39 phandle-map-mask = <0xff 0xf>; 40 phandle-map-pass-thru = <0x0 0xf0>; 44 #phandle-cells = <2>; [all …]
|
| /linux/arch/sparc/prom/ |
| H A D | tree_32.c | 24 static phandle __prom_getchild(phandle node) in __prom_getchild() 27 phandle cnode; in __prom_getchild() 40 phandle prom_getchild(phandle node) in prom_getchild() 42 phandle cnode; in prom_getchild() 56 static phandle __prom_getsibling(phandle node) in __prom_getsibling() 59 phandle cnode; in __prom_getsibling() 72 phandle prom_getsibling(phandle node) in prom_getsibling() 74 phandle sibnode; in prom_getsibling() 90 int prom_getproplen(phandle node, const char *prop) in prom_getproplen() 110 int prom_getproperty(phandle node, const char *prop, char *buffer, int bufsize) in prom_getproperty() [all …]
|
| /linux/arch/sparc/kernel/ |
| H A D | devices.c | 34 static int check_cpu_node(phandle nd, int *cur_inst, in check_cpu_node() 35 int (*compare)(phandle, int, void *), void *compare_arg, in check_cpu_node() argument 36 phandle *prom_node, int *mid) in check_cpu_node() 54 static int __cpu_find_by(int (*compare)(phandle, int, void *), in __cpu_find_by() argument 55 void *compare_arg, phandle *prom_node, int *mid) in __cpu_find_by() 62 int err = check_cpu_node(dp->phandle, &cur_inst, in __cpu_find_by() 74 static int cpu_instance_compare(phandle nd, int instance, void *_arg) in cpu_instance_compare() 83 int cpu_find_by_instance(int instance, phandle *prom_node, int *mid) in cpu_find_by_instance() 89 static int cpu_mid_compare(phandle nd, int instance, void *_arg) in cpu_mid_compare() 101 int cpu_find_by_mid(int mid, phandle *prom_node) in cpu_find_by_mid() [all …]
|
| /linux/include/linux/ |
| H A D | of_pdt.h | 18 int (*nextprop)(phandle node, char *prev, char *buf); 21 int (*getproplen)(phandle node, const char *prop); 22 int (*getproperty)(phandle node, const char *prop, char *buf, 26 phandle (*getchild)(phandle parent); 27 phandle (*getsibling)(phandle node); 30 int (*pkg2path)(phandle node, char *buf, const int buflen, int *len); 36 extern void of_pdt_build_devicetree(phandle root_node, struct of_pdt_ops *ops);
|
| /linux/arch/powerpc/boot/ |
| H A D | oflib.c | 115 phandle oprom, chosen; in check_of_version() 119 if (oprom == (phandle) -1) in check_of_version() 129 if (chosen == (phandle) -1) { in check_of_version() 131 if (chosen == (phandle) -1) { in check_of_version() 209 int of_getprop(const void *phandle, const char *name, void *buf, in of_getprop() argument 212 return of_call_prom("getprop", 4, 1, phandle, name, buf, buflen); in of_getprop() 215 int of_setprop(const void *phandle, const char *name, const void *buf, in of_setprop() argument 218 return of_call_prom("setprop", 4, 1, phandle, name, buf, buflen); in of_setprop()
|
| H A D | ops.h | 38 int (*getprop)(const void *phandle, const char *name, void *buf, 40 int (*setprop)(const void *phandle, const char *name, 42 int (*del_node)(const void *phandle); 43 void *(*get_parent)(const void *phandle); 52 char *(*get_path)(const void *phandle, char *buf, int len); 201 static inline char *get_path(const void *phandle, char *buf, int len) in get_path() argument 204 return dt_ops.get_path(phandle, buf, len); in get_path()
|
| H A D | of.h | 7 typedef void *phandle; typedef 17 int of_getprop(const void *phandle, const char *name, void *buf, 19 int of_setprop(const void *phandle, const char *name, const void *buf,
|
| /linux/drivers/char/tpm/ |
| H A D | tpm2-space.c | 233 u32 phandle; in tpm2_map_to_phandle() local 240 phandle = space->context_tbl[i]; in tpm2_map_to_phandle() 241 *((__be32 *)handle) = cpu_to_be32(phandle); in tpm2_map_to_phandle() 360 static u32 tpm2_map_to_vhandle(struct tpm_space *space, u32 phandle, bool alloc) in tpm2_map_to_vhandle() argument 367 space->context_tbl[i] = phandle; in tpm2_map_to_vhandle() 370 } else if (space->context_tbl[i] == phandle) in tpm2_map_to_vhandle() 385 u32 phandle; in tpm2_map_response_header() local 403 phandle = be32_to_cpup((__be32 *)&rsp[TPM_HEADER_SIZE]); in tpm2_map_response_header() 404 phandle_type = phandle & 0xFF000000; in tpm2_map_response_header() 408 vhandle = tpm2_map_to_vhandle(space, phandle, true); in tpm2_map_response_header() [all …]
|
| /linux/drivers/sbus/char/ |
| H A D | openprom.c | 187 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 …]
|
| /linux/Documentation/devicetree/bindings/remoteproc/ |
| H A D | qcom,q6v5.txt | 36 Value type: <phandle> 53 Value type: <phandle> 65 Value type: <phandle> 72 Value type: <phandle> 78 Value type: <phandle> 90 Definition: a phandle reference to a syscon representing TCSR followed 96 Value type: <phandle>
|
| /linux/Documentation/translations/zh_CN/devicetree/ |
| H A D | dynamic-resolution-notes.rst | 26 1. 从实时树中获取最大的设备树phandle值 + 1. 30 5. 检索fixup的目标的phandle。 31 6. 对于属性中的每个fixup,找到节点:属性:偏移的位置,并用phandle值替换它。
|
| /linux/Documentation/devicetree/bindings/regulator/ |
| H A D | isl9305.txt | 11 - VINDCD1-supply: A phandle to a regulator node supplying VINDCD1. 12 VINDCD2-supply: A phandle to a regulator node supplying VINDCD2. 13 VINLDO1-supply: A phandle to a regulator node supplying VINLDO1. 14 VINLDO2-supply: A phandle to a regulator node supplying VINLDO2.
|
| /linux/drivers/clk/imx/ |
| H A D | clk.c | 65 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()
|
| /linux/Documentation/devicetree/bindings/sound/ |
| H A D | rockchip-max98090.txt | 6 - rockchip,i2s-controller: The phandle of the Rockchip I2S controller that's 10 - rockchip,audio-codec: The phandle of the MAX98090 audio codec. 11 - rockchip,headset-codec: The phandle of Ext chip for jack detection. This is 13 - rockchip,hdmi-codec: The phandle of HDMI device for HDMI codec.
|
| H A D | rockchip,rk3288-hdmi-analog.txt | 6 - rockchip,i2s-controller: The phandle of the Rockchip I2S controller that's 8 - rockchip,audio-codec: The phandle of the analog audio codec. 16 - rockchip,hp-en-gpios = The phandle of the GPIO that power up/down the 18 - rockchip,hp-det-gpios = The phandle of the GPIO that detects the headphone
|
| /linux/Documentation/devicetree/bindings/usb/ |
| H A D | omap-usb.txt | 18 - usb-phy : the phandle for the PHY device 19 - phys : the phandle for the PHY device (used by generic PHY framework) 21 *phy* phandle. 24 - ctrl-module : phandle of the control module this glue uses to write to 60 - extcon : phandle for the extcon device omap dwc3 uses to detect 62 - vbus-supply : phandle to the regulator device tree node if needed.
|
| H A D | ehci-st.txt | 9 - pinctrl-0 : phandle referencing pin configuration of the USB controller 11 - clocks : phandle list of usb clocks 15 - phys : phandle for the PHY device 17 - resets : phandle + reset specifier pairs to the powerdown and softreset lines
|
| H A D | ohci-st.txt | 9 - clocks : phandle list of usb clocks 13 - phys : phandle for the PHY device 16 - resets : phandle to the powerdown and reset controller for the USB IP
|
| /linux/arch/powerpc/sysdev/ |
| H A D | fsl_msi.c | 183 phandle phandle = 0; in fsl_setup_msi_irqs() local 210 phandle = np->phandle; in fsl_setup_msi_irqs() 214 hose->dn, np->phandle); in fsl_setup_msi_irqs() 235 if (phandle && (phandle != msi_data->phandle)) in fsl_setup_msi_irqs() 467 msi->phandle = dev->dev.of_node->phandle; in fsl_of_msi_probe()
|
| /linux/drivers/of/ |
| H A D | dynamic.c | 202 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()
|
| /linux/Documentation/devicetree/bindings/net/ |
| H A D | qcom-emac.txt | 4 internal PHY. Each device is represented by a device tree node. A phandle 6 phandle points to the external PHY node. 16 - internal-phy : phandle to the internal PHY node 17 - phy-handle : phandle to the external PHY node
|
| /linux/Documentation/devicetree/bindings/power/reset/ |
| H A D | ltc2952-poweroff.txt | 10 - watchdog-gpios: phandle + gpio-specifier for the GPIO connected to the 12 - kill-gpios: phandle + gpio-specifier for the GPIO connected to the 16 - trigger-gpios: phandle + gpio-specifier for the GPIO connected to the
|
| /linux/Documentation/devicetree/ |
| H A D | dynamic-resolution-notes.rst | 19 1. Get the maximum device tree phandle value from the live tree + 1. 25 5. Retrieve the phandle of the target of the fixup. 27 and replace it with the phandle value.
|