Lines Matching refs:cmd
56 static int check_dev_ioctl_version(int cmd, struct autofs_dev_ioctl *param) in check_dev_ioctl_version() argument
66 param->ver_major, param->ver_minor, cmd); in check_dev_ioctl_version()
111 static int validate_dev_ioctl(int cmd, struct autofs_dev_ioctl *param) in validate_dev_ioctl() argument
115 err = check_dev_ioctl_version(cmd, param); in validate_dev_ioctl()
118 "supplied for cmd(0x%08x)\n", cmd); in validate_dev_ioctl()
127 cmd); in validate_dev_ioctl()
134 cmd); in validate_dev_ioctl()
138 unsigned int inr = _IOC_NR(cmd); in validate_dev_ioctl()
564 #define cmd_idx(cmd) (cmd - _IOC_NR(AUTOFS_DEV_IOCTL_IOC_FIRST)) argument
566 static ioctl_fn lookup_dev_ioctl(unsigned int cmd) in lookup_dev_ioctl() argument
584 unsigned int idx = cmd_idx(cmd); in lookup_dev_ioctl()
599 unsigned int cmd_first, cmd; in _autofs_dev_ioctl() local
604 cmd = _IOC_NR(command); in _autofs_dev_ioctl()
607 cmd - cmd_first > AUTOFS_DEV_IOCTL_IOC_COUNT) { in _autofs_dev_ioctl()
614 if (cmd != AUTOFS_DEV_IOCTL_VERSION_CMD && in _autofs_dev_ioctl()
615 cmd != AUTOFS_DEV_IOCTL_ISMOUNTPOINT_CMD && in _autofs_dev_ioctl()
628 fn = lookup_dev_ioctl(cmd); in _autofs_dev_ioctl()
644 if (cmd != AUTOFS_DEV_IOCTL_VERSION_CMD && in _autofs_dev_ioctl()
645 cmd != AUTOFS_DEV_IOCTL_OPENMOUNT_CMD && in _autofs_dev_ioctl()
646 cmd != AUTOFS_DEV_IOCTL_CLOSEMOUNT_CMD) { in _autofs_dev_ioctl()
651 if (cmd == AUTOFS_DEV_IOCTL_ISMOUNTPOINT_CMD) in _autofs_dev_ioctl()
670 cmd != AUTOFS_DEV_IOCTL_CATATONIC_CMD) { in _autofs_dev_ioctl()