Lines Matching refs:argp

143 static int opromgetprop(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsize)
151 return copyout(argp, op, sizeof(int));
157 return copyout(argp, op, sizeof(int) + bufsize);
160 static int opromnxtprop(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsize)
166 return copyout(argp, op, sizeof(int));
170 return copyout(argp, op, sizeof(int));
178 return copyout(argp, op, sizeof(int));
187 return copyout(argp, op, sizeof(int) + bufsize);
198 static int opromnext(void __user *argp, unsigned int cmd, struct device_node *dp, struct openpromio *op, int bufsize, DATA *data)
242 return copyout(argp, op, bufsize + sizeof(int));
245 static int oprompci2node(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsize, DATA *data)
261 err = copyout(argp, op, bufsize + sizeof(int));
270 static int oprompath2node(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsize, DATA *data)
281 return copyout(argp, op, bufsize + sizeof(int));
284 static int opromgetbootargs(void __user *argp, struct openpromio *op, int bufsize)
295 return copyout(argp, op, bufsize + sizeof(int));
309 void __user *argp = (void __user *)arg;
312 bufsize = getstrings(argp, &opp);
314 bufsize = copyin(argp, &opp);
324 error = opromgetprop(argp, dp, opp, bufsize);
329 error = opromnxtprop(argp, dp, opp, bufsize);
340 error = opromnext(argp, cmd, dp, opp, bufsize, data);
344 error = oprompci2node(argp, dp, opp, bufsize, data);
348 error = oprompath2node(argp, dp, opp, bufsize, data);
352 error = opromgetbootargs(argp, opp, bufsize);
412 static int opiocget(void __user *argp, DATA *data)
420 if (copy_from_user(&op, argp, sizeof(op)))
435 if (copy_to_user(argp, &op, sizeof(op)) ||
444 static int opiocnextprop(void __user *argp, DATA *data)
452 if (copy_from_user(&op, argp, sizeof(op)))
480 if (copy_to_user(argp, &op, sizeof(op)))
490 static int opiocset(void __user *argp, DATA *data)
497 if (copy_from_user(&op, argp, sizeof(op)))
522 static int opiocgetnext(unsigned int cmd, void __user *argp)
529 if (copy_from_user(&nd, argp, sizeof(phandle)))
548 if (copy_to_user(argp, &nd, sizeof(phandle)))
558 void __user *argp = (void __user *)arg;
564 err = opiocget(argp, data);
568 err = opiocnextprop(argp, data);
572 err = opiocset(argp, data);
579 if (copy_to_user(argp, &options_node->phandle, sizeof(phandle)))
585 err = opiocgetnext(cmd, argp);