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

123

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/powerpc/boot/
H A 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,
H A Doflib.c106 static phandle memory;
110 phandle oprom, chosen;
114 if (oprom == (phandle) -1)
124 if (chosen == (phandle) -1) {
126 if (chosen == (phandle) -1) {
200 return (phandle) of_call_prom("finddevice", 1, 1, name);
203 int of_getprop(const void *phandle, const char *name, void *buf, argument
206 return of_call_prom("getprop", 4, 1, phandle, name, buf, buflen);
209 int of_setprop(const void *phandle, const char *name, const void *buf, argument
212 return of_call_prom("setprop", 4, 1, phandle, nam
[all...]
H A 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);
205 return find_node_by_prop_value(NULL, "linux,phandle",
209 static inline char *get_path(const void *phandle, char *buf, int len) argument
212 return dt_ops.get_path(phandle, buf, len);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/alsa-lib-1.0.26/test/
H A Dseq-sender.c11 void set_hwparams(snd_pcm_t *phandle) argument
23 err = snd_pcm_hw_params_any(phandle, params);
29 err = snd_pcm_hw_params_set_access(phandle, params,
35 err = snd_pcm_hw_params_set_format(phandle, params, SND_PCM_FORMAT_S16_LE);
40 err = snd_pcm_hw_params_set_channels(phandle, params, 2);
45 err = snd_pcm_hw_params_set_rate_near(phandle, params, 44100, 0);
50 err = snd_pcm_hw_params_set_period_size_near(phandle, params, period_size);
55 err = snd_pcm_hw_params(phandle, params);
71 snd_pcm_t *phandle ATTRIBUTE_UNUSED)
76 if (phandle) {
152 snd_pcm_t *phandle = NULL; local
[all...]
H A Dlatency.c170 int setparams(snd_pcm_t *phandle, snd_pcm_t *chandle, int *bufsize) argument
186 if ((err = setparams_stream(phandle, pt_params, "playback")) < 0) {
209 if ((err = setparams_bufsize(phandle, p_params, pt_params, *bufsize, "playback")) < 0) {
247 if ((err = setparams_set(phandle, p_params, p_swparams, "playback")) < 0) {
256 if ((err = snd_pcm_prepare(phandle)) < 0) {
261 snd_pcm_dump(phandle, output);
494 snd_pcm_t *phandle, *chandle; local
591 if ((err = snd_pcm_open(&phandle, pdevice, SND_PCM_STREAM_PLAYBACK, block ? 0 : SND_PCM_NONBLOCK)) < 0) {
618 if (setparams(phandle, chandle, &latency) < 0)
621 if ((err = snd_pcm_link(chandle, phandle)) <
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/scripts/dtc/
H A Dlivetree.c263 struct node *get_node_by_phandle(struct node *tree, cell_t phandle) argument
267 assert((phandle != 0) && (phandle != -1));
269 if (tree->phandle == phandle)
273 node = get_node_by_phandle(child, phandle);
291 static cell_t phandle = 1; local
293 if ((node->phandle != 0) && (node->phandle != -1))
294 return node->phandle;
[all...]
H A Dchecks.c286 cell_t phandle; local
288 prop = get_property(node, "linux,phandle");
290 return; /* No phandle, that's fine */
293 FAIL(c, "%s has bad length (%d) linux,phandle property",
298 phandle = propval_cell(prop);
299 if ((phandle == 0) || (phandle == -1)) {
300 FAIL(c, "%s has invalid linux,phandle value 0x%x",
301 node->fullpath, phandle);
305 other = get_node_by_phandle(root, phandle);
355 cell_t phandle; local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/arm/boot/compressed/
H A Dofw-shark.c190 int phandle,i,mem_len,buffer[32]; local
202 phandle=OF_finddevice(o,temp);
209 mem_len = OF_getproplen(o,phandle, temp);
210 OF_getprop(o,phandle, temp, buffer, mem_len);
224 phandle=OF_finddevice(o,temp);
236 mem_len = OF_getproplen(o,phandle, temp);
237 OF_getprop(o,phandle, temp, buffer, mem_len);
244 phandle=OF_finddevice(o,temp);
257 mem_len = OF_getproplen(o,phandle, temp);
258 OF_getprop(o,phandle, tem
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/sparc/kernel/
H A Dprom_common.c80 ret = prom_setprop(dp->phandle, name, val, len);
123 static struct property * __init build_one_prop(phandle node, char *prev,
178 static struct property * __init build_prop_list(phandle node)
196 static char * __init get_one_property(phandle node, const char *name)
210 static struct device_node * __init prom_create_node(phandle node,
226 dp->phandle = node;
256 phandle node,
303 prom_getchild(allnodes->phandle),
H A Ddevices.c62 int err = check_cpu_node(dp->phandle, &cur_inst,
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/sbus/char/
H A Dopenprom.c201 phandle ph;
203 BUILD_BUG_ON(sizeof(phandle) != sizeof(int));
205 if (bufsize < sizeof(phandle))
237 ph = dp->phandle;
241 op->oprom_size = sizeof(phandle);
260 *((int *)op->oprom_array) = dp->phandle;
273 phandle ph = 0;
277 ph = dp->phandle;
376 static struct device_node *get_node(phandle n, DATA *data)
526 phandle n
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/scripts/dtc/libfdt/
H A Dfdt_ro.c261 php = fdt_getprop(fdt, nodeoffset, "linux,phandle", &len);
400 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle) argument
402 if ((phandle == 0) || (phandle == -1))
404 phandle = cpu_to_fdt32(phandle);
405 return fdt_node_offset_by_prop_value(fdt, -1, "linux,phandle",
406 &phandle, sizeof(phandle));
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/of/
H A Dbase.c575 * of_find_node_by_phandle - Find a node given a phandle
576 * @handle: phandle of the node to find
581 struct device_node *of_find_node_by_phandle(phandle handle)
587 if (np->phandle == handle)
596 * of_parse_phandle - Resolve a phandle property to a device_node pointer
597 * @np: Pointer to device node holding phandle property
598 * @phandle_name: Name of property holding a phandle value
608 const __be32 *phandle; local
611 phandle = of_get_property(np, phandle_name, &size);
612 if ((!phandle) || (siz
671 phandle phandle; local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/acpi/
H A Dcontainer.c133 acpi_handle phandle; local
138 if (acpi_get_parent(handle, &phandle)) {
142 if (acpi_bus_get_device(phandle, &pdev)) {
H A Dpci_root.c305 acpi_handle phandle; local
315 phandle = handle;
316 while (!acpi_is_root_bridge(phandle)) {
322 node->handle = phandle;
325 status = acpi_get_parent(phandle, &phandle);
330 root = acpi_pci_find_root(phandle);
H A Dnuma.c302 acpi_handle phandle = h; local
305 handle = phandle;
309 status = acpi_get_parent(handle, &phandle);
H A Dscan.c978 acpi_handle phandle; local
992 if (acpi_get_parent(handle, &phandle))
995 if ((ACPI_SUCCESS(acpi_get_handle(phandle, "_GTF", &tmp))) ||
996 (ACPI_SUCCESS(acpi_get_handle(phandle, "_GTM", &tmp))) ||
997 (ACPI_SUCCESS(acpi_get_handle(phandle, "_STM", &tmp))) ||
998 (ACPI_SUCCESS(acpi_get_handle(phandle, "_SDD", &tmp))))
1444 acpi_handle phandle, chandle; local
1450 phandle = start->handle;
1454 status = acpi_get_next_object(ACPI_TYPE_ANY, phandle,
1462 chandle = phandle;
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/powerpc/platforms/cell/
H A Dspu_manage.c450 const phandle *vic_handles;
458 for (i=0; i < (lenp / sizeof(phandle)); i++) {
459 if (vic_handles[i] == target->phandle)
470 phandle avoid_ph;
471 const phandle *vic_handles;
483 * Walk through each phandle in vicinity property of the spu
486 for (i = 0; i < (lenp / sizeof(phandle)); i++) {
501 avoid_ph = last_spu_dn->phandle;
516 avoid_ph = vic_dn->phandle;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/powerpc/include/asm/
H A Dbootx.h149 u32 phandle; /* not really available */ member in struct:bootx_dt_node
H A Dpmac_pfunc.h135 u32 phandle; member in struct:pmf_function
197 * The phandle can filter on the target object for functions that have
208 * the appropriate combination of flags & phandle or you can pass 0 to the
209 * phandle to match any
212 u32 phandle, u32 flags, struct pmf_args *args);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/linux/
H A Dof.h28 typedef u32 phandle; typedef
47 phandle phandle; member in struct:device_node
175 extern struct device_node *of_find_node_by_phandle(phandle handle);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/powerpc/kernel/
H A Dprom_init.c128 phandle chosen;
210 * macros to use with any ihandle or phandle return value to check if
438 static int __init prom_next_node(phandle *nodep)
440 phandle node;
455 static int inline prom_getprop(phandle node, const char *pname,
462 static int inline prom_getproplen(phandle node, const char *pname)
493 static int __init prom_setprop(phandle node, const char *nodename,
844 phandle node;
1121 phandle node;
1241 phandle rtas_nod
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/powerpc/sysdev/
H A Dmv64x60_udbg.c74 const phandle *ph;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/pci/hotplug/
H A Dsgi_hotplug.c418 acpi_handle phandle; local
423 phandle = PCI_CONTROLLER(slot->pci_bus)->acpi_handle;
425 if (acpi_bus_get_device(phandle, &pdevice)) {
439 phandle, chandle,
509 acpi_handle phandle; local
515 phandle = PCI_CONTROLLER(slot->pci_bus)->acpi_handle;
525 phandle, chandle,
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/powerpc/platforms/powermac/
H A Dpfunc_core.c638 func->phandle = data[0];
645 DBG("pmf: idx %d: flags=%08x, phandle=%08x "
647 count+1, func->flags, func->phandle, length);
829 if (func->phandle && target->phandle != func->phandle)
937 u32 phandle, u32 fflags, struct pmf_args *args)
954 if (phandle && func->phandle && phandle !
936 pmf_do_functions(struct device_node *np, const char *name, u32 phandle, u32 fflags, struct pmf_args *args) argument
[all...]

Completed in 189 milliseconds

123