Lines Matching refs:ioc
1055 BIG_IOCTL_Command_struct *ioc; in cciss_ioctl() local
1073 ioc = (BIG_IOCTL_Command_struct *) in cciss_ioctl()
1074 kmalloc(sizeof(*ioc), GFP_KERNEL); in cciss_ioctl()
1075 if (!ioc) { in cciss_ioctl()
1079 if (copy_from_user(ioc, argp, sizeof(*ioc))) { in cciss_ioctl()
1083 if ((ioc->buf_size < 1) && in cciss_ioctl()
1084 (ioc->Request.Type.Direction != XFER_NONE)) { in cciss_ioctl()
1089 if (ioc->malloc_size > MAX_KMALLOC_SIZE) { in cciss_ioctl()
1093 if (ioc->buf_size > ioc->malloc_size * MAXSGENTRIES) { in cciss_ioctl()
1109 left = ioc->buf_size; in cciss_ioctl()
1110 data_ptr = ioc->buf; in cciss_ioctl()
1113 ioc->malloc_size) ? ioc-> in cciss_ioctl()
1121 if (ioc->Request.Type.Direction == XFER_WRITE) { in cciss_ioctl()
1141 if (ioc->buf_size > 0) { in cciss_ioctl()
1148 c->Header.LUN = ioc->LUN_info; in cciss_ioctl()
1151 c->Request = ioc->Request; in cciss_ioctl()
1152 if (ioc->buf_size > 0) { in cciss_ioctl()
1184 ioc->error_info = *(c->err_info); in cciss_ioctl()
1185 if (copy_to_user(argp, ioc, sizeof(*ioc))) { in cciss_ioctl()
1190 if (ioc->Request.Type.Direction == XFER_READ) { in cciss_ioctl()
1192 BYTE __user *ptr = ioc->buf; in cciss_ioctl()
1212 kfree(ioc); in cciss_ioctl()