Lines Matching refs:cmd
715 static long twl_chrdev_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in twl_chrdev_ioctl() argument
764 switch (cmd) { in twl_chrdev_ioctl()
796 cmd); in twl_chrdev_ioctl()
1125 struct scsi_cmnd *cmd; in twl_interrupt() local
1208 cmd = tw_dev->srb[request_id]; in twl_interrupt()
1211 cmd->result = (DID_OK << 16); in twl_interrupt()
1214 if ((scsi_sg_count(cmd) <= 1) && (full_command_packet->command.newcommand.status == 0)) { in twl_interrupt()
1216 …scsi_set_resid(cmd, scsi_bufflen(cmd) - full_command_packet->command.newcommand.sg_list[0].length); in twl_interrupt()
1220 scsi_dma_unmap(cmd); in twl_interrupt()
1221 scsi_done(cmd); in twl_interrupt()
1369 struct scsi_cmnd *cmd = tw_dev->srb[i]; in twl_reset_device_extension() local
1371 if (cmd) { in twl_reset_device_extension()
1372 cmd->result = (DID_RESET << 16); in twl_reset_device_extension()
1373 scsi_dma_unmap(cmd); in twl_reset_device_extension()
1374 scsi_done(cmd); in twl_reset_device_extension()