Searched refs:curSC (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/scsi/pcmcia/
H A Dsym53c500_cs.c362 struct scsi_cmnd *curSC = data->current_SC; SYM53C500_intr() local
385 curSC->result = DID_RESET << 16; SYM53C500_intr()
391 curSC->result = DID_ERROR << 16; SYM53C500_intr()
397 curSC->result = DID_PARITY << 16; SYM53C500_intr()
403 curSC->result = DID_ERROR << 16; SYM53C500_intr()
409 if (curSC->SCp.phase != message_in) { /* Unexpected disconnect */ SYM53C500_intr()
410 curSC->result = DID_NO_CONNECT << 16; SYM53C500_intr()
412 curSC->result = (curSC->SCp.Status & 0xff) SYM53C500_intr()
413 | ((curSC->SCp.Message & 0xff) << 8) | (DID_OK << 16); SYM53C500_intr()
424 curSC->SCp.phase = data_out; SYM53C500_intr()
427 LOAD_DMA_COUNT(port_base, scsi_bufflen(curSC)); /* Max transfer size */ SYM53C500_intr()
430 scsi_for_each_sg(curSC, sg, scsi_sg_count(curSC), i) { scsi_for_each_sg()
443 curSC->SCp.phase = data_in;
446 LOAD_DMA_COUNT(port_base, scsi_bufflen(curSC)); /* Max transfer size */
449 scsi_for_each_sg(curSC, sg, scsi_sg_count(curSC), i) { scsi_for_each_sg()
458 curSC->SCp.phase = command_ph;
463 curSC->SCp.phase = status_ph;
476 curSC->SCp.phase = message_out;
483 curSC->SCp.phase = message_in;
485 curSC->SCp.Status = inb(port_base + SCSI_FIFO);
486 curSC->SCp.Message = inb(port_base + SCSI_FIFO);
489 DEB(printk("Status = %02x Message = %02x\n", curSC->SCp.Status, curSC->SCp.Message));
491 if (curSC->SCp.Message == SAVE_POINTERS || curSC->SCp.Message == DISCONNECT) {
503 curSC->SCp.phase = idle;
504 curSC->scsi_done(curSC);

Completed in 72 milliseconds