Lines Matching refs:argp

130 static int opromgetprop(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsize)
138 return copyout(argp, op, sizeof(int));
144 return copyout(argp, op, sizeof(int) + bufsize);
147 static int opromnxtprop(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsize)
153 return copyout(argp, op, sizeof(int));
157 return copyout(argp, op, sizeof(int));
165 return copyout(argp, op, sizeof(int));
174 return copyout(argp, op, sizeof(int) + bufsize);
185 static int opromnext(void __user *argp, unsigned int cmd, struct device_node *dp, struct openpromio *op, int bufsize, DATA *data)
229 return copyout(argp, op, bufsize + sizeof(int));
232 static int oprompci2node(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsize, DATA *data)
249 err = copyout(argp, op, bufsize + sizeof(int));
258 static int oprompath2node(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsize, DATA *data)
269 return copyout(argp, op, bufsize + sizeof(int));
272 static int opromgetbootargs(void __user *argp, struct openpromio *op, int bufsize)
283 return copyout(argp, op, bufsize + sizeof(int));
297 void __user *argp = (void __user *)arg;
300 bufsize = getstrings(argp, &opp);
302 bufsize = copyin(argp, &opp);
312 error = opromgetprop(argp, dp, opp, bufsize);
317 error = opromnxtprop(argp, dp, opp, bufsize);
328 error = opromnext(argp, cmd, dp, opp, bufsize, data);
332 error = oprompci2node(argp, dp, opp, bufsize, data);
336 error = oprompath2node(argp, dp, opp, bufsize, data);
340 error = opromgetbootargs(argp, opp, bufsize);
385 static int opiocget(void __user *argp, DATA *data)
393 if (copy_from_user(&op, argp, sizeof(op)))
408 if (copy_to_user(argp, &op, sizeof(op)) ||
417 static int opiocnextprop(void __user *argp, DATA *data)
425 if (copy_from_user(&op, argp, sizeof(op)))
453 if (copy_to_user(argp, &op, sizeof(op)))
463 static int opiocset(void __user *argp, DATA *data)
470 if (copy_from_user(&op, argp, sizeof(op)))
495 static int opiocgetnext(unsigned int cmd, void __user *argp)
502 if (copy_from_user(&nd, argp, sizeof(phandle)))
521 if (copy_to_user(argp, &nd, sizeof(phandle)))
531 void __user *argp = (void __user *)arg;
537 err = opiocget(argp, data);
541 err = opiocnextprop(argp, data);
545 err = opiocset(argp, data);
552 if (copy_to_user(argp, &options_node->phandle, sizeof(phandle)))
558 err = opiocgetnext(cmd, argp);