Lines Matching refs:scsicmd
4791 Scsi_Cmnd *scsicmd; local
4943 scsicmd = (Scsi_Cmnd *)kmalloc(sizeof(Scsi_Cmnd), GFP_KERNEL);
4945 scsicmd = (Scsi_Cmnd *)scsi_init_malloc(sizeof(Scsi_Cmnd),
4948 if(scsicmd == NULL) return -ENOMEM;
4950 memset(scsicmd, 0, sizeof(Scsi_Cmnd));
4951 scsicmd->host = shpnt;
4980 scsicmd->cmnd[0] = MEGADEVIOC;
4981 scsicmd->request_buffer = (void *)&ioc;
4986 megaraid_queue(scsicmd, megadev_ioctl_done);
4992 if( !scsicmd->result && outlen ) {
5005 put_user( scsicmd->result, &uioc->pthru.scsistatus );
5006 if (copy_to_user( uioc->pthru.reqsensearea, scsicmd->sense_buffer,
5012 put_user (scsicmd->result, &uioc->mbox[17]);
5021 kfree (scsicmd);
5023 scsi_init_free((char *)scsicmd, sizeof(Scsi_Cmnd));
5092 scsicmd = (Scsi_Cmnd *)kmalloc(sizeof(Scsi_Cmnd), GFP_KERNEL);
5094 scsicmd = (Scsi_Cmnd *)scsi_init_malloc(sizeof(Scsi_Cmnd),
5097 if(scsicmd == NULL) return -ENOMEM;
5099 memset(scsicmd, 0, sizeof(Scsi_Cmnd));
5100 scsicmd->host = shpnt;
5139 scsicmd->cmnd[0] = MEGADEVIOC;
5140 scsicmd->request_buffer = (void *) &ioc;
5145 megaraid_queue (scsicmd, megadev_ioctl_done);
5150 if (!scsicmd->result && outlen) {
5170 put_user (scsicmd->result, &uioc->pthru.scsistatus);
5176 if (copy_to_user( uioc->pthru.reqsensearea, scsicmd->sense_buffer,
5182 put_user (scsicmd->result, &uioc->mbox[17]); /* status */
5192 kfree (scsicmd);
5194 scsi_init_free((char *)scsicmd, sizeof(Scsi_Cmnd));