• Home
  • Raw
  • Download

Lines Matching refs:dp

130 static int opromgetprop(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsi…  in opromgetprop()  argument
135 if (!dp || in opromgetprop()
136 !(pval = of_get_property(dp, op->oprom_array, &len)) || in opromgetprop()
147 static int opromnxtprop(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsi… in opromnxtprop() argument
152 if (!dp) in opromnxtprop()
155 prop = dp->properties; in opromnxtprop()
160 prop = of_find_property(dp, op->oprom_array, NULL); in opromnxtprop()
177 static int opromsetopt(struct device_node *dp, struct openpromio *op, int bufsize) in opromsetopt() argument
185 static int opromnext(void __user *argp, unsigned int cmd, struct device_node *dp, struct openpromio… in opromnext() argument
196 dp = of_find_node_by_phandle(ph); in opromnext()
197 if (!dp) in opromnext()
202 dp = dp->sibling; in opromnext()
206 dp = dp->child; in opromnext()
218 dp = of_find_node_by_path("/"); in opromnext()
222 if (dp) in opromnext()
223 ph = dp->phandle; in opromnext()
225 data->current_node = dp; in opromnext()
232 static int oprompci2node(void __user *argp, struct device_node *dp, struct openpromio *op, int bufs… in oprompci2node() argument
239 struct device_node *dp; in oprompci2node() local
245 dp = pci_device_to_OF_node(pdev); in oprompci2node()
246 data->current_node = dp; in oprompci2node()
247 *((int *)op->oprom_array) = dp->phandle; in oprompci2node()
258 static int oprompath2node(void __user *argp, struct device_node *dp, struct openpromio *op, int buf… in oprompath2node() argument
262 dp = of_find_node_by_path(op->oprom_array); in oprompath2node()
263 if (dp) in oprompath2node()
264 ph = dp->phandle; in oprompath2node()
265 data->current_node = dp; in oprompath2node()
291 struct device_node *dp) in openprom_sunos_ioctl() argument
312 error = opromgetprop(argp, dp, opp, bufsize); in openprom_sunos_ioctl()
317 error = opromnxtprop(argp, dp, opp, bufsize); in openprom_sunos_ioctl()
322 error = opromsetopt(dp, opp, bufsize); in openprom_sunos_ioctl()
328 error = opromnext(argp, cmd, dp, opp, bufsize, data); in openprom_sunos_ioctl()
332 error = oprompci2node(argp, dp, opp, bufsize, data); in openprom_sunos_ioctl()
336 error = oprompath2node(argp, dp, opp, bufsize, data); in openprom_sunos_ioctl()
365 struct device_node *dp = of_find_node_by_phandle(n); in get_node() local
367 if (dp) in get_node()
368 data->lastnode = dp; in get_node()
370 return dp; in get_node()
388 struct device_node *dp; in opiocget() local
396 dp = get_node(op.op_nodeid, data); in opiocget()
402 pval = of_get_property(dp, str, &len); in opiocget()
420 struct device_node *dp; in opiocnextprop() local
428 dp = get_node(op.op_nodeid, data); in opiocnextprop()
429 if (!dp) in opiocnextprop()
437 prop = dp->properties; in opiocnextprop()
439 prop = of_find_property(dp, str, NULL); in opiocnextprop()
466 struct device_node *dp; in opiocset() local
473 dp = get_node(op.op_nodeid, data); in opiocset()
474 if (!dp) in opiocset()
487 err = of_set_property(dp, str, tmp, op.op_buflen); in opiocset()
497 struct device_node *dp; in opiocgetnext() local
508 dp = of_find_node_by_path("/"); in opiocgetnext()
510 dp = of_find_node_by_phandle(nd); in opiocgetnext()
512 if (dp) { in opiocgetnext()
514 dp = dp->sibling; in opiocgetnext()
516 dp = dp->child; in opiocgetnext()
519 if (dp) in opiocgetnext()
520 nd = dp->phandle; in opiocgetnext()