Lines Matching refs:diag304
70 struct hypfs_diag304 *diag304; in __hypfs_sprp_ioctl() local
78 diag304 = kzalloc(sizeof(*diag304), GFP_KERNEL); in __hypfs_sprp_ioctl()
79 if (!data || !diag304) in __hypfs_sprp_ioctl()
83 if (copy_from_user(diag304, user_area, sizeof(*diag304))) in __hypfs_sprp_ioctl()
86 if ((diag304->args[0] >> 8) != 0 || diag304->args[1] > DIAG304_CMD_MAX) in __hypfs_sprp_ioctl()
90 udata = (void __user *)(unsigned long) diag304->data; in __hypfs_sprp_ioctl()
91 if (diag304->args[1] == DIAG304_SET_WEIGHTS || in __hypfs_sprp_ioctl()
92 diag304->args[1] == DIAG304_SET_CAPPING) in __hypfs_sprp_ioctl()
96 cmd = *(unsigned long *) &diag304->args[0]; in __hypfs_sprp_ioctl()
97 diag304->rc = hypfs_sprp_diag304(data, cmd); in __hypfs_sprp_ioctl()
99 if (diag304->args[1] == DIAG304_QUERY_PRP) in __hypfs_sprp_ioctl()
105 rc = copy_to_user(user_area, diag304, sizeof(*diag304)) ? -EFAULT : 0; in __hypfs_sprp_ioctl()
107 kfree(diag304); in __hypfs_sprp_ioctl()