Lines Matching defs:phandle

456     cell_t phandle;
473 /* "Set this node's phandle equal to some
474 * other node's phandle". That's nonsensical
478 /* But setting this node's phandle equal to its own
479 * phandle is allowed - that means allocate a unique
480 * phandle for this node, even if it's not otherwise
482 * we treat it as having no phandle data for now. */
486 phandle = propval_cell(prop);
487 if ((phandle == 0) || (phandle == -1)) {
488 FAIL_PROP(c, dti, node, prop, "bad value (0x%x) in %s property", phandle, prop->name);
492 return phandle;
499 cell_t phandle, linux_phandle;
502 assert(!node->phandle);
504 phandle = check_phandle_prop(c, dti, node, "phandle");
506 linux_phandle = check_phandle_prop(c, dti, node, "linux,phandle");
507 if (!phandle && !linux_phandle) {
512 if (linux_phandle && phandle && (phandle != linux_phandle)) {
514 "mismatching 'phandle' and 'linux,phandle'"
518 if (linux_phandle && !phandle) {
519 phandle = linux_phandle;
522 other = get_node_by_phandle(root, phandle);
524 FAIL(c, dti, node, "duplicated phandle 0x%x (seen before at %s)", phandle, other->fullpath);
528 node->phandle = phandle;
577 cell_t phandle;
596 phandle = get_node_phandle(dt, refnode);
597 *((fdt32_t *)(prop->val.val + m->offset)) = cpu_to_fdt32(phandle);
702 if (streq(prop->name, "phandle") || streq(prop->name, "linux,phandle")) {
1468 int phandle;
1470 phandle = propval_cell_n(prop, cell);
1475 if (phandle == 0 || phandle == -1) {
1485 /* If we have markers, verify the current cell is a phandle */
1495 FAIL_PROP(c, dti, node, prop, "cell %d is not a phandle reference", cell);
1499 provider_node = get_node_by_phandle(root, phandle);
1501 FAIL_PROP(c, dti, node, prop, "Could not get phandle node for (cell %d)", cell);
1511 FAIL(c, dti, node, "Missing property '%s' in node %s or bad phandle (referred from %s[%d])",
1669 int irq_cells, phandle;
1689 phandle = propval_cell(prop);
1690 if ((phandle == 0) || (phandle == -1)) {
1696 FAIL_PROP(c, dti, parent, prop, "Invalid phandle");
1700 irq_node = get_node_by_phandle(root, phandle);
1702 FAIL_PROP(c, dti, parent, prop, "Bad phandle");
1839 int phandle;
1848 phandle = propval_cell(prop);
1850 if (phandle == 0 || phandle == -1) {
1854 node = get_node_by_phandle(dti->dt, phandle);
1856 FAIL_PROP(c, dti, endpoint, prop, "graph phandle is not valid");