• Home
  • Raw
  • Download

Lines Matching refs:argp

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