Searched refs:phandle (Results 1 - 25 of 115) sorted by relevance

12345

/linux-master/include/linux/
H A Dof_pdt.h18 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-master/arch/sparc/include/asm/
H A Doplib_32.h34 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 nod
[all...]
H A Doplib_64.h20 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 nod
[all...]
H A Dopenprom.h32 phandle (*v2_inst2pkg)(int d); /* Convert ihandle to phandle */
174 phandle (*no_nextnode)(phandle node);
175 phandle (*no_child)(phandle node);
176 int (*no_proplen)(phandle node, const char *name);
177 int (*no_getprop)(phandle node, const char *name, char *val);
178 int (*no_setprop)(phandle node, const char *name, char *val, int len);
179 char * (*no_nextprop)(phandle nod
[all...]
/linux-master/arch/sparc/kernel/
H A Ddevices.c34 static int check_cpu_node(phandle nd, int *cur_inst,
35 int (*compare)(phandle, int, void *), void *compare_arg,
36 phandle *prom_node, int *mid)
54 static int __cpu_find_by(int (*compare)(phandle, int, void *),
55 void *compare_arg, phandle *prom_node, int *mid)
62 int err = check_cpu_node(dp->phandle, &cur_inst,
74 static int cpu_instance_compare(phandle nd, int instance, void *_arg)
83 int cpu_find_by_instance(int instance, phandle *prom_node, int *mid)
89 static int cpu_mid_compare(phandle nd, int instance, void *_arg)
101 int cpu_find_by_mid(int mid, phandle *prom_nod
[all...]
H A Dprom_common.c73 ret = prom_setprop(dp->phandle, name, val, len);
132 static int __init prom_common_nextprop(phandle node, char *prev, char *buf)
H A Dauxio_32.c31 phandle node, auxio_nd;
114 phandle node;
/linux-master/arch/sparc/prom/
H A Dtree_64.c20 static phandle prom_node_to_node(const char *type, phandle node)
32 return (phandle) args[4];
38 inline phandle __prom_getchild(phandle node)
43 phandle prom_getchild(phandle node)
45 phandle cnode;
56 inline phandle prom_getparent(phandle nod
[all...]
H A Dtree_32.c24 static phandle __prom_getchild(phandle node)
27 phandle cnode;
40 phandle prom_getchild(phandle node)
42 phandle cnode;
56 static phandle __prom_getsibling(phandle node)
59 phandle cnode;
72 phandle prom_getsiblin
[all...]
H A Dinit_64.c23 phandle prom_chosen_node;
34 phandle node;
H A Dranges.c67 phandle node, obio_node;
88 void prom_apply_generic_ranges(phandle node, phandle parent,
H A Dinit_32.c24 phandle prom_root_node;
/linux-master/drivers/of/
H A Dresolver.c22 static phandle live_tree_max_phandle(void)
25 phandle phandle; local
29 phandle = 0;
31 if (node->phandle != OF_PHANDLE_ILLEGAL &&
32 node->phandle > phandle)
33 phandle = node->phandle;
37 return phandle;
45 phandle phandle; local
72 update_usages_of_a_phandle_reference(struct device_node *overlay, struct property *prop_fixup, phandle phandle) argument
269 phandle phandle, phandle_delta; local
[all...]
H A Dpdt.c49 if (!of_pdt_prom_ops->pkg2path(dp->phandle, path, sizeof(path), &len)) {
65 static struct property * __init of_pdt_build_one_prop(phandle node, char *prev,
112 static struct property * __init of_pdt_build_prop_list(phandle node)
130 static char * __init of_pdt_get_one_property(phandle node, const char *name)
144 static struct device_node * __init of_pdt_create_node(phandle node,
158 dp->phandle = node;
170 phandle node)
200 void __init of_pdt_build_devicetree(phandle root_node, struct of_pdt_ops *ops)
209 of_pdt_prom_ops->getchild(of_root->phandle));
/linux-master/arch/powerpc/sysdev/
H A Dfsl_msi.h45 phandle phandle; member in struct:fsl_msi
/linux-master/arch/x86/platform/olpc/
H A Dolpc_dt.c22 static phandle __init olpc_dt_getsibling(phandle node)
36 static phandle __init olpc_dt_getchild(phandle node)
52 static int __init olpc_dt_getproplen(phandle node, const char *prop)
69 static int __init olpc_dt_getproperty(phandle node, const char *prop,
90 static int __init olpc_dt_nextprop(phandle node, char *prev, char *buf)
107 static int __init olpc_dt_pkg2path(phandle node, char *buf,
166 static phandle __init olpc_dt_finddevice(const char *path)
168 phandle nod
[all...]
/linux-master/arch/powerpc/boot/
H A Doflib.c115 phandle oprom, chosen;
119 if (oprom == (phandle) -1)
129 if (chosen == (phandle) -1) {
131 if (chosen == (phandle) -1) {
209 int of_getprop(const void *phandle, const char *name, void *buf, argument
212 return of_call_prom("getprop", 4, 1, phandle, name, buf, buflen);
215 int of_setprop(const void *phandle, const char *name, const void *buf, argument
218 return of_call_prom("setprop", 4, 1, phandle, name, buf, buflen);
H A Dof.h7 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,
H A Dops.h38 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) argument
204 return dt_ops.get_path(phandle, buf, len);
/linux-master/arch/powerpc/include/asm/
H A Dbootx.h35 u32 phandle; /* not really available */ member in struct:bootx_dt_node
/linux-master/drivers/clk/imx/
H A Dclk.c65 struct of_phandle_args phandle; local
73 phandle.np = of_find_node_by_path(path);
76 if (phandle.np) {
77 clk = of_clk_get_from_provider(&phandle);
78 of_node_put(phandle.np);
/linux-master/drivers/char/tpm/
H A Dtpm2-space.c227 u32 phandle; local
234 phandle = space->context_tbl[i];
235 *((__be32 *)handle) = cpu_to_be32(phandle);
354 static u32 tpm2_map_to_vhandle(struct tpm_space *space, u32 phandle, bool alloc) argument
361 space->context_tbl[i] = phandle;
364 } else if (space->context_tbl[i] == phandle)
379 u32 phandle; local
397 phandle = be32_to_cpup((__be32 *)&rsp[TPM_HEADER_SIZE]);
398 phandle_type = phandle & 0xFF000000;
402 vhandle = tpm2_map_to_vhandle(space, phandle, tru
440 u32 phandle; local
[all...]
/linux-master/drivers/sbus/char/
H A Dopenprom.c187 phandle ph;
189 BUILD_BUG_ON(sizeof(phandle) != sizeof(int));
191 if (bufsize < sizeof(phandle))
223 ph = dp->phandle;
227 op->oprom_size = sizeof(phandle);
247 *((int *)op->oprom_array) = dp->phandle;
260 phandle ph = 0;
264 ph = dp->phandle;
363 static struct device_node *get_node(phandle n, DATA *data)
498 phandle n
[all...]
/linux-master/scripts/dtc/libfdt/
H A Dfdt_overlay.c15 * overlay_get_target_phandle - retrieves the target phandle of a fragment
19 * overlay_get_target_phandle() retrieves the target phandle of an
20 * overlay fragment when that fragment uses a phandle (target
24 * the phandle pointed by the target property
25 * 0, if the phandle was not found
26 * -1, if the phandle was malformed
46 uint32_t phandle; local
50 /* Try first to do a phandle based lookup */
51 phandle = overlay_get_target_phandle(fdto, fragment_offset);
52 if (phandle
360 uint32_t phandle; local
[all...]
/linux-master/drivers/misc/cxl/
H A Dflash.c35 __be32 phandle; member in struct:update_props_workarea
107 static int update_node(__be32 phandle, s32 scope) argument
126 dn = of_find_node_by_phandle(be32_to_cpu(phandle));
133 upwa->phandle = phandle;
179 __be32 *data, phandle; local
206 phandle = *data++;
213 update_node(phandle, scope);

Completed in 247 milliseconds

12345