Lines Matching refs:cmd

104 static int mptctl_getiocinfo(MPT_ADAPTER *iocp, unsigned long arg, unsigned int cmd);
114 static int mptctl_hp_hostinfo(MPT_ADAPTER *iocp, unsigned long arg, unsigned int cmd);
121 static long compat_mpctl_ioctl(struct file *f, unsigned cmd, unsigned long arg);
619 __mptctl_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in __mptctl_ioctl() argument
654 if ((cmd & ~IOCSIZE_MASK) == (MPTIOCINFO & ~IOCSIZE_MASK)) { in __mptctl_ioctl()
655 return mptctl_getiocinfo(iocp, arg, _IOC_SIZE(cmd)); in __mptctl_ioctl()
656 } else if (cmd == MPTTARGETINFO) { in __mptctl_ioctl()
658 } else if (cmd == MPTTEST) { in __mptctl_ioctl()
660 } else if (cmd == MPTEVENTQUERY) { in __mptctl_ioctl()
662 } else if (cmd == MPTEVENTENABLE) { in __mptctl_ioctl()
664 } else if (cmd == MPTEVENTREPORT) { in __mptctl_ioctl()
666 } else if (cmd == MPTFWREPLACE) { in __mptctl_ioctl()
676 if (cmd == MPTFWDOWNLOAD) in __mptctl_ioctl()
678 else if (cmd == MPTCOMMAND) in __mptctl_ioctl()
680 else if (cmd == MPTHARDRESET) in __mptctl_ioctl()
682 else if ((cmd & ~IOCSIZE_MASK) == (HP_GETHOSTINFO & ~IOCSIZE_MASK)) in __mptctl_ioctl()
683 ret = mptctl_hp_hostinfo(iocp, arg, _IOC_SIZE(cmd)); in __mptctl_ioctl()
684 else if (cmd == HP_GETTARGETINFO) in __mptctl_ioctl()
695 mptctl_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in mptctl_ioctl() argument
699 ret = __mptctl_ioctl(file, cmd, arg); in mptctl_ioctl()
2714 compat_mptfwxfer_ioctl(struct file *filp, unsigned int cmd, in compat_mptfwxfer_ioctl() argument
2754 compat_mpt_command(struct file *filp, unsigned int cmd, in compat_mpt_command() argument
2807 static long compat_mpctl_ioctl(struct file *f, unsigned int cmd, unsigned long arg) in compat_mpctl_ioctl() argument
2811 switch (cmd) { in compat_mpctl_ioctl()
2823 ret = __mptctl_ioctl(f, cmd, arg); in compat_mpctl_ioctl()
2826 ret = compat_mpt_command(f, cmd, arg); in compat_mpctl_ioctl()
2829 ret = compat_mptfwxfer_ioctl(f, cmd, arg); in compat_mpctl_ioctl()