Home
last modified time | relevance | path

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

12

/arch/sparc/include/asm/
Doplib_32.h33 extern phandle prom_root_node;
122 extern phandle prom_getchild(phandle parent_node);
127 extern phandle prom_getsibling(phandle node);
132 extern int prom_getproplen(phandle thisnode, const char *property);
137 extern int __must_check prom_getproperty(phandle thisnode, const char *property,
141 extern int prom_getint(phandle node, char *property);
144 extern int prom_getintdefault(phandle node, char *property, int defval);
147 extern int prom_getbool(phandle node, char *prop);
150 extern void prom_getstring(phandle node, char *prop, char *buf, int bufsize);
155 extern phandle prom_searchsiblings(phandle node_start, char *name);
[all …]
Doplib_64.h19 extern phandle prom_root_node;
27 extern phandle prom_chosen_node;
181 extern phandle prom_getchild(phandle parent_node);
186 extern phandle prom_getsibling(phandle node);
191 extern int prom_getproplen(phandle thisnode, const char *property);
196 extern int prom_getproperty(phandle thisnode, const char *property,
200 extern int prom_getint(phandle node, const char *property);
203 extern int prom_getintdefault(phandle node, const char *property, int defval);
206 extern int prom_getbool(phandle node, const char *prop);
209 extern void prom_getstring(phandle node, const char *prop, char *buf,
[all …]
Dopenprom.h31 phandle (*v2_inst2pkg)(int d); /* Convert ihandle to phandle */
173 phandle (*no_nextnode)(phandle node);
174 phandle (*no_child)(phandle node);
175 int (*no_proplen)(phandle node, const char *name);
176 int (*no_getprop)(phandle node, const char *name, char *val);
177 int (*no_setprop)(phandle node, const char *name, char *val, int len);
178 char * (*no_nextprop)(phandle node, char *name);
/arch/sparc/prom/
Dtree_64.c19 static phandle prom_node_to_node(const char *type, phandle node) in prom_node_to_node()
31 return (phandle) args[4]; in prom_node_to_node()
37 inline phandle __prom_getchild(phandle node) in __prom_getchild()
42 inline phandle prom_getchild(phandle node) in prom_getchild()
44 phandle cnode; in prom_getchild()
55 inline phandle prom_getparent(phandle node) in prom_getparent()
57 phandle cnode; in prom_getparent()
70 inline phandle __prom_getsibling(phandle node) in __prom_getsibling()
75 inline phandle prom_getsibling(phandle node) in prom_getsibling()
77 phandle sibnode; in prom_getsibling()
[all …]
Dtree_32.c23 static phandle __prom_getchild(phandle node) in __prom_getchild()
26 phandle cnode; in __prom_getchild()
39 phandle prom_getchild(phandle node) in prom_getchild()
41 phandle cnode; in prom_getchild()
55 static phandle __prom_getsibling(phandle node) in __prom_getsibling()
58 phandle cnode; in __prom_getsibling()
71 phandle prom_getsibling(phandle node) in prom_getsibling()
73 phandle sibnode; in prom_getsibling()
89 int prom_getproplen(phandle node, const char *prop) in prom_getproplen()
109 int prom_getproperty(phandle node, const char *prop, char *buffer, int bufsize) in prom_getproperty()
[all …]
Dinit_64.c22 phandle prom_chosen_node;
33 phandle node; in prom_init()
Dranges.c70 phandle node, obio_node; in prom_ranges_init()
91 void prom_apply_generic_ranges(phandle node, phandle parent, in prom_apply_generic_ranges()
Dinit_32.c23 phandle prom_root_node;
/arch/arm/boot/dts/testcases/
Dtests-phandle.dtsi4 phandle-tests {
6 #phandle-cells = <0>;
10 #phandle-cells = <1>;
14 #phandle-cells = <2>;
18 #phandle-cells = <3>;
22 phandle-list = <&provider1 1>,
29 phandle-list-names = "first", "second", "third";
31 phandle-list-bad-phandle = <12345678 0 0>;
32 phandle-list-bad-args = <&provider2 1 0>,
Dtests.dtsi1 /include/ "tests-phandle.dtsi"
/arch/sparc/kernel/
Ddevices.c33 static int check_cpu_node(phandle nd, int *cur_inst, in check_cpu_node()
34 int (*compare)(phandle, int, void *), void *compare_arg, in check_cpu_node() argument
35 phandle *prom_node, int *mid) in check_cpu_node()
53 static int __cpu_find_by(int (*compare)(phandle, int, void *), in __cpu_find_by() argument
54 void *compare_arg, phandle *prom_node, int *mid) in __cpu_find_by()
61 int err = check_cpu_node(dp->phandle, &cur_inst, in __cpu_find_by()
73 static int cpu_instance_compare(phandle nd, int instance, void *_arg) in cpu_instance_compare()
82 int cpu_find_by_instance(int instance, phandle *prom_node, int *mid) in cpu_find_by_instance()
88 static int cpu_mid_compare(phandle nd, int instance, void *_arg) in cpu_mid_compare()
100 int cpu_find_by_mid(int mid, phandle *prom_node) in cpu_find_by_mid()
[all …]
Dprom_common.c77 ret = prom_setprop(dp->phandle, name, val, len); in of_set_property()
136 static int __init prom_common_nextprop(phandle node, char *prev, char *buf) in prom_common_nextprop()
Dauxio_32.c28 phandle node, auxio_nd; in auxio_probe()
118 phandle node; in auxio_power_probe()
Dtadpole.c103 phandle node, clk_nd; in clock_stop_probe()
/arch/x86/platform/olpc/
Dolpc_dt.c27 static phandle __init olpc_dt_getsibling(phandle node) in olpc_dt_getsibling()
41 static phandle __init olpc_dt_getchild(phandle node) in olpc_dt_getchild()
57 static int __init olpc_dt_getproplen(phandle node, const char *prop) in olpc_dt_getproplen()
74 static int __init olpc_dt_getproperty(phandle node, const char *prop, in olpc_dt_getproperty()
95 static int __init olpc_dt_nextprop(phandle node, char *prev, char *buf) in olpc_dt_nextprop()
112 static int __init olpc_dt_pkg2path(phandle node, char *buf, in olpc_dt_pkg2path()
168 static phandle __init olpc_dt_finddevice(const char *path) in olpc_dt_finddevice()
170 phandle node; in olpc_dt_finddevice()
205 phandle node; in olpc_dt_get_board_revision()
225 phandle node; in olpc_dt_fixup()
[all …]
/arch/powerpc/boot/
Doflib.c106 static phandle memory;
110 phandle oprom, chosen; in check_of_version()
114 if (oprom == (phandle) -1) in check_of_version()
124 if (chosen == (phandle) -1) { in check_of_version()
126 if (chosen == (phandle) -1) { in check_of_version()
200 return (phandle) of_call_prom("finddevice", 1, 1, name); in of_finddevice()
203 int of_getprop(const void *phandle, const char *name, void *buf, in of_getprop() argument
206 return of_call_prom("getprop", 4, 1, phandle, name, buf, buflen); in of_getprop()
209 int of_setprop(const void *phandle, const char *name, const void *buf, in of_setprop() argument
212 return of_call_prom("setprop", 4, 1, phandle, name, buf, buflen); in of_setprop()
Dof.h4 typedef void *phandle; typedef
13 int of_getprop(const void *phandle, const char *name, void *buf,
15 int of_setprop(const void *phandle, const char *name, const void *buf,
Dops.h39 int (*getprop)(const void *phandle, const char *name, void *buf,
41 int (*setprop)(const void *phandle, const char *name,
43 int (*del_node)(const void *phandle);
44 void *(*get_parent)(const void *phandle);
53 char *(*get_path)(const void *phandle, char *buf, int len);
209 static inline char *get_path(const void *phandle, char *buf, int len) in get_path() argument
212 return dt_ops.get_path(phandle, buf, len); in get_path()
/arch/arm/boot/compressed/
Dofw-shark.c190 int phandle,i,mem_len,buffer[32]; in ofw_init() local
202 phandle=OF_finddevice(o,temp); in ofw_init()
209 mem_len = OF_getproplen(o,phandle, temp); in ofw_init()
210 OF_getprop(o,phandle, temp, buffer, mem_len); in ofw_init()
224 phandle=OF_finddevice(o,temp); in ofw_init()
236 mem_len = OF_getproplen(o,phandle, temp); in ofw_init()
237 OF_getprop(o,phandle, temp, buffer, mem_len); in ofw_init()
244 phandle=OF_finddevice(o,temp); in ofw_init()
257 mem_len = OF_getproplen(o,phandle, temp); in ofw_init()
258 OF_getprop(o,phandle, temp, buffer, mem_len); in ofw_init()
/arch/powerpc/platforms/pseries/
Dmobility.c27 u32 phandle; member
54 static int delete_dt_node(u32 phandle) in delete_dt_node() argument
58 dn = of_find_node_by_phandle(phandle); in delete_dt_node()
132 static int update_dt_node(u32 phandle) in update_dt_node() argument
150 dn = of_find_node_by_phandle(phandle); in update_dt_node()
157 upwa->phandle = phandle; in update_dt_node()
257 u32 phandle = *data++; in pseries_devicetree_update() local
262 delete_dt_node(phandle); in pseries_devicetree_update()
265 update_dt_node(phandle); in pseries_devicetree_update()
269 add_dt_node(phandle, drc_index); in pseries_devicetree_update()
/arch/powerpc/sysdev/
Dfsl_msi.h42 phandle phandle; member
Dfsl_msi.c155 phandle phandle = 0; in fsl_setup_msi_irqs() local
170 phandle = np->phandle; in fsl_setup_msi_irqs()
174 hose->dn->full_name, np->phandle); in fsl_setup_msi_irqs()
193 if (phandle && (phandle != msi_data->phandle)) in fsl_setup_msi_irqs()
428 msi->phandle = dev->dev.of_node->phandle; in fsl_of_msi_probe()
/arch/powerpc/platforms/cell/
Dspu_manage.c450 const phandle *vic_handles; in neighbour_spu()
458 for (i=0; i < (lenp / sizeof(phandle)); i++) { in neighbour_spu()
459 if (vic_handles[i] == target->phandle) in neighbour_spu()
470 phandle avoid_ph; in init_affinity_node()
471 const phandle *vic_handles; in init_affinity_node()
486 for (i = 0; i < (lenp / sizeof(phandle)); i++) { in init_affinity_node()
501 avoid_ph = last_spu_dn->phandle; in init_affinity_node()
516 avoid_ph = vic_dn->phandle; in init_affinity_node()
/arch/powerpc/kernel/
Dprom_init.c120 phandle chosen;
457 static int __init prom_next_node(phandle *nodep) in prom_next_node()
459 phandle node; in prom_next_node()
474 static int inline prom_getprop(phandle node, const char *pname, in prom_getprop()
481 static int inline prom_getproplen(phandle node, const char *pname) in prom_getproplen()
512 static int __init prom_setprop(phandle node, const char *nodename, in prom_setprop()
865 phandle node; in prom_count_smt_threads()
1150 phandle node; in prom_init_mem()
1365 phandle node; in prom_opal_hold_cpus()
1486 phandle opal_node; in prom_instantiate_opal()
[all …]
/arch/powerpc/platforms/powermac/
Dpfunc_core.c655 func->phandle = data[0]; in pmf_add_function_prop()
664 count+1, func->flags, func->phandle, length); in pmf_add_function_prop()
848 if (func->phandle && target->phandle != func->phandle) in __pmf_find_function()
957 u32 phandle, u32 fflags, struct pmf_args *args) in pmf_do_functions() argument
974 if (phandle && func->phandle && phandle != func->phandle) in pmf_do_functions()

12