• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/

Lines Matching refs:tmp

889 	Scsi_Cmnd *tmp;
942 for (tmp = (Scsi_Cmnd *) hostdata->issue_queue; tmp->host_scribble; tmp = (Scsi_Cmnd *) tmp->host_scribble);
943 LIST(cmd, tmp);
944 tmp->host_scribble = (unsigned char *) cmd;
972 Scsi_Cmnd *tmp, *prev;
985 for (tmp = (Scsi_Cmnd *) hostdata->issue_queue, prev = NULL; tmp; prev = tmp, tmp = (Scsi_Cmnd *) tmp->host_scribble)
987 if (prev != tmp)
988 dprintk(NDEBUG_LISTS, ("MAIN tmp=%p target=%d busy=%d lun=%d\n", tmp, tmp->target, hostdata->busy[tmp->target], tmp->lun));
990 if (!(hostdata->busy[tmp->device->id] & (1 << tmp->device->lun))) {
992 REMOVE(prev, prev->host_scribble, tmp, tmp->host_scribble);
993 prev->host_scribble = tmp->host_scribble;
995 REMOVE(-1, hostdata->issue_queue, tmp, tmp->host_scribble);
996 hostdata->issue_queue = (Scsi_Cmnd *) tmp->host_scribble;
998 tmp->host_scribble = NULL;
1006 dprintk(NDEBUG_MAIN|NDEBUG_QUEUES, ("scsi%d : main() : command for target %d lun %d removed from issue_queue\n", instance->host_no, tmp->target, tmp->lun));
1021 if (!NCR5380_select(instance, tmp,
1028 (tmp->cmnd[0] == REQUEST_SENSE) ? TAG_NONE : TAG_NEXT)) {
1031 LIST(tmp, hostdata->issue_queue);
1032 tmp->host_scribble = (unsigned char *) hostdata->issue_queue;
1033 hostdata->issue_queue = tmp;
1043 tmp = (Scsi_Cmnd *) hostdata->selecting;
1045 if (!NCR5380_select(instance, tmp, (tmp->cmnd[0] == REQUEST_SENSE) ? TAG_NONE : TAG_NEXT)) {
1052 printk(KERN_DEBUG "scsi%d: device %d did not respond in time\n", instance->host_no, tmp->device->id);
1053 LIST(tmp, hostdata->issue_queue);
1054 tmp->host_scribble = (unsigned char *) hostdata->issue_queue;
1055 hostdata->issue_queue = tmp;
1227 unsigned char tmp[3], phase;
1439 tmp[0] = IDENTIFY(((instance->irq == SCSI_IRQ_NONE) ? 0 : 1), cmd->device->lun);
1445 data = tmp;
1473 unsigned char p = *phase, tmp;
1513 while (!((tmp = NCR5380_read(STATUS_REG)) & SR_REQ) && !break_allowed);
1514 if (!(tmp & SR_REQ)) {
1523 if ((tmp & PHASE_MASK) != p) {
1584 tmp = NCR5380_read(STATUS_REG);
1585 if (tmp & SR_REQ)
1586 *phase = tmp & PHASE_MASK;
1619 unsigned char *msgptr, phase, tmp;
1643 tmp = (unsigned char)rc;
1645 NCR5380_write(TARGET_COMMAND_REG, PHASE_SR_TO_TCR(tmp));
1647 if ((tmp & PHASE_MASK) != PHASE_MSGOUT) {
1654 tmp = ABORT;
1655 msgptr = &tmp;
1695 unsigned char tmp;
1706 if ((tmp = (NCR5380_read(STATUS_REG) & PHASE_MASK)) != p) {
1707 *phase = tmp;
1763 tmp = NCR5380_read(BUS_AND_STATUS_REG);
1764 } while ((tmp & BASR_PHASE_MATCH) && !(tmp & (BASR_BUSY_ERROR | BASR_END_DMA_TRANSFER)));
1777 while (((tmp = NCR5380_read(BUS_AND_STATUS_REG)) & BASR_ACK) || (NCR5380_read(STATUS_REG) & SR_REQ)) {
1778 if (!(tmp & BASR_PHASE_MATCH))
1785 dprintk(NDEBUG_DMA, ("scsi%d : polled DMA transfer complete, basr 0x%X, sr 0x%X\n", instance->host_no, tmp, NCR5380_read(STATUS_REG)));
1905 unsigned char phase, tmp, extended_msg[10], old_phase = 0xff;
1913 tmp = NCR5380_read(STATUS_REG);
1915 if (tmp & SR_REQ) {
1916 phase = (tmp & PHASE_MASK);
1922 NCR5380_write(TARGET_COMMAND_REG, PHASE_SR_TO_TCR(tmp));
2011 data = &tmp;
2013 cmd->SCp.Message = tmp;
2015 switch (tmp) {
2211 tmp = 0;
2215 tmp = 0;
2218 tmp = 0;
2227 if (!tmp) {
2231 } else if (tmp != EXTENDED_MESSAGE)
2233 "rejecting unknown message %02x\n",tmp);
2241 } /* switch (tmp) */
2271 data = &tmp;
2273 cmd->SCp.Status = tmp;
2279 } /* if (tmp * SR_REQ) */
2313 Scsi_Cmnd *tmp = NULL, *prev;
2374 for (tmp = (Scsi_Cmnd *) hostdata->disconnected_queue, prev = NULL; tmp; prev = tmp, tmp = (Scsi_Cmnd *) tmp->host_scribble)
2375 if ((target_mask == (1 << tmp->device->id)) && (lun == tmp->device->lun)
2378 REMOVE(prev, prev->host_scribble, tmp, tmp->host_scribble);
2379 prev->host_scribble = tmp->host_scribble;
2381 REMOVE(-1, hostdata->disconnected_queue, tmp, tmp->host_scribble);
2382 hostdata->disconnected_queue = (Scsi_Cmnd *) tmp->host_scribble;
2384 tmp->host_scribble = NULL;
2387 if (!tmp) {
2400 hostdata->connected = tmp;
2401 dprintk(NDEBUG_RESELECTION, ("scsi%d : nexus established, target = %d, lun = %d, tag = %d\n", instance->host_no, tmp->target, tmp->lun, tmp->tag));
2449 Scsi_Cmnd *tmp, **prev;
2468 for (prev = (Scsi_Cmnd **) & (hostdata->issue_queue), tmp = (Scsi_Cmnd *) hostdata->issue_queue; tmp; prev = (Scsi_Cmnd **) & (tmp->host_scribble), tmp = (Scsi_Cmnd *) tmp->host_scribble)
2469 if (cmd == tmp) {
2470 REMOVE(5, *prev, tmp, tmp->host_scribble);
2471 (*prev) = (Scsi_Cmnd *) tmp->host_scribble;
2472 tmp->host_scribble = NULL;
2473 tmp->result = DID_ABORT << 16;
2475 tmp->done(tmp);
2480 else if (prev == tmp)
2524 for (tmp = (Scsi_Cmnd *) hostdata->disconnected_queue; tmp; tmp = (Scsi_Cmnd *) tmp->host_scribble)
2525 if (cmd == tmp) {
2534 for (prev = (Scsi_Cmnd **) & (hostdata->disconnected_queue), tmp = (Scsi_Cmnd *) hostdata->disconnected_queue; tmp; prev = (Scsi_Cmnd **) & (tmp->host_scribble), tmp = (Scsi_Cmnd *) tmp->host_scribble)
2535 if (cmd == tmp) {
2536 REMOVE(5, *prev, tmp, tmp->host_scribble);
2537 *prev = (Scsi_Cmnd *) tmp->host_scribble;
2538 tmp->host_scribble = NULL;
2539 tmp->result = DID_ABORT << 16;
2540 tmp->done(tmp);