Lines Matching defs:cmd
185 static int opromnext(void __user *argp, unsigned int cmd, struct device_node *dp, struct openpromio *op, int bufsize, DATA *data)
200 switch (cmd) {
215 if (cmd != OPROMNEXT)
290 unsigned int cmd, unsigned long arg,
299 if (cmd == OPROMSETOPT)
309 switch (cmd) {
328 error = opromnext(argp, cmd, dp, opp, bufsize, data);
352 printk(KERN_INFO "openprom_sunos_ioctl: cmd 0x%X, arg 0x%lX\n", cmd, arg);
495 static int opiocgetnext(unsigned int cmd, void __user *argp)
506 if (cmd != OPIOCGETNEXT)
513 if (cmd == OPIOCGETNEXT)
528 unsigned int cmd, unsigned long arg)
535 switch (cmd) {
558 err = opiocgetnext(cmd, argp);
575 unsigned int cmd, unsigned long arg)
579 switch (cmd) {
584 return openprom_sunos_ioctl(file, cmd, arg,
591 return openprom_sunos_ioctl(file, cmd, arg,
600 return openprom_sunos_ioctl(file, cmd, arg,
612 return openprom_sunos_ioctl(file, cmd, arg, NULL);
621 return openprom_bsd_ioctl(file,cmd,arg);
626 return openprom_bsd_ioctl(file,cmd,arg);
633 static long openprom_compat_ioctl(struct file *file, unsigned int cmd,
642 switch (cmd) {
658 rval = openprom_ioctl(file, cmd, arg);