• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/scsi/

Lines Matching refs:hscb

556        (((scb)->hscb->target_channel_lun & TID) >> 4)
558 ((scb)->hscb->target_channel_lun & LID)
560 (((scb)->hscb->target_channel_lun & SELBUSB) != 0)
782 struct aic7xxx_hwscb *hscb; /* corresponding hardware scb */
1031 #define CTL_OF_SCB(scb) (((scb->hscb)->target_channel_lun >> 3) & 0x1), \
1032 (((scb->hscb)->target_channel_lun >> 4) & 0xf), \
1033 ((scb->hscb)->target_channel_lun & 0x07)
2374 int targ = (scb->hscb->target_channel_lun >> 4) & 0x0F;
2375 int chan = (scb->hscb->target_channel_lun >> 3) & 0x01;
2376 int slun = scb->hscb->target_channel_lun & 0x07;
2385 match = ((tag == scb->hscb->tag) || (tag == SCB_LIST_NULL));
2452 p->untagged_scbs[scb->hscb->target_channel_lun] = scb->hscb->tag;
2498 if (aic_inb(p, SCB_TAG) == scb->hscb->tag)
2591 scbp->hscb = &p->scb_data->hscbs[p->scb_data->numscbs];
2597 memset(scbp->hscb, 0, sizeof(struct aic7xxx_hwscb));
2598 scbp->hscb->tag = p->scb_data->numscbs;
2662 scb->hscb->control = 0;
2663 scb->hscb->target_status = 0;
2664 scb->hscb->target_channel_lun = SCB_LIST_NULL;
2824 aic7xxx_index_busy_target(p, scb->hscb->target_channel_lun,
2906 p->host_no, CTL_OF_SCB(scb), scb->hscb->tag);
2911 scb->hscb->residual_SG_segment_count = 0;
2912 scb->hscb->residual_data_count[0] = 0;
2913 scb->hscb->residual_data_count[1] = 0;
2914 scb->hscb->residual_data_count[2] = 0;
3027 aic7xxx_index_busy_target(p, scbp->hscb->target_channel_lun,
3033 p->qinfifo[p->qinfifonext++] = scbp->hscb->tag;
3043 if (aic7xxx_index_busy_target(p, scbp->hscb->target_channel_lun,
3044 FALSE) == scbp->hscb->tag)
3046 aic7xxx_index_busy_target(p, scbp->hscb->target_channel_lun,
3054 p->qinfifo[p->qinfifonext++] = scbp->hscb->tag;
3091 if(p->qoutfifo[(p->qoutfifonext + i) & 0xff ] == scb->hscb->tag)
3333 scbp->hscb->control = 0;
3673 p->qinfifo[p->qinfifonext++] = scb->hscb->tag;
3818 struct aic7xxx_hwscb *hscb;
3823 hscb = scb->hscb;
3829 if (((scb->hscb->control & DISCONNECTED) == 0) &&
3839 for (i=1; i < hscb->residual_SG_segment_count; i++)
3843 actual -= (hscb->residual_data_count[2] << 16) |
3844 (hscb->residual_data_count[1] << 8) |
3845 hscb->residual_data_count[0];
3854 hscb->residual_SG_segment_count);
3856 hscb->target_status);
3865 aic7xxx_status(cmd) = hscb->target_status;
3873 hscb->residual_data_count[2] = 0;
3874 hscb->residual_data_count[1] = 0;
3875 hscb->residual_data_count[0] = 0;
3876 hscb->residual_SG_segment_count = 0;
4056 scb->hscb->control &= ~SCB_TAG_TYPE;
4057 scb->hscb->control |= MSG_SIMPLE_Q_TAG;
4058 aic_outb(p, scb->hscb->control, SCB_CONTROL);
4090 scb->hscb->control &= ~(TAG_ENB | SCB_TAG_TYPE);
4091 aic_outb(p, scb->hscb->control, SCB_CONTROL);
4212 struct aic7xxx_hwscb *hscb;
4234 hscb = scb->hscb;
4246 hscb->target_status = aic_inb(p, SCB_TARGET_STATUS);
4247 aic7xxx_status(cmd) = hscb->target_status;
4249 cmd->result = hscb->target_status;
4251 switch (status_byte(hscb->target_status))
4276 /* hscb->control &= DISCENB; */
4277 hscb->control = 0;
4278 hscb->target_status = 0;
4279 hscb->SG_list_pointer =
4281 hscb->SCSI_cmd_pointer =
4283 hscb->data_count = scb->sg_list[0].length;
4284 hscb->data_pointer = scb->sg_list[0].address;
4285 hscb->SCSI_cmd_length = COMMAND_SIZE(scb->sense_cmd[0]);
4286 hscb->residual_SG_segment_count = 0;
4287 hscb->residual_data_count[0] = 0;
4288 hscb->residual_data_count[1] = 0;
4289 hscb->residual_data_count[2] = 0;
4291 scb->sg_count = hscb->SG_segment_count = 1;
4458 CTL_OF_SCB(scb), scb->hscb->target_status);
4486 (scb->hscb->control & TAG_ENB) )
4489 p->msg_buf[p->msg_index++] = scb->hscb->tag;
4613 (lastphase == P_DATAIN) ? "Data-In" : "Data-Out", scb->hscb->tag);
4618 for (i = 0; i < scb->hscb->SCSI_cmd_length; i++)
5701 CTL_OF_SCB(scb), scb->hscb->tag);
5703 (message == MSG_ABORT) ? SCB_LIST_NULL : scb->hscb->tag );
5725 aic7xxx_reset_device(p, target, channel, ALL_LUNS, scb->hscb->tag);
5735 if ((scb->hscb->control & TAG_ENB) != 0)
5737 tag = scb->hscb->tag;
6263 (aic_inb(p, SCB_TAG) == scb->hscb->tag) )
6269 scb->cmd->device->lun, scb->hscb->tag);
6297 if (scb->hscb->residual_SG_segment_count != 0)
10060 struct aic7xxx_hwscb *hscb;
10067 hscb = scb->hscb;
10073 hscb->control = 0;
10078 hscb->control |= DISCENB;
10086 hscb->control |= MSG_ORDERED_Q_TAG;
10092 hscb->control |= MSG_SIMPLE_Q_TAG;
10103 hscb->control &= DISCENB;
10104 hscb->control |= MK_MESSAGE;
10119 hscb->target_channel_lun = ((cmd->device->id << 4) & 0xF0) |
10129 hscb->SCSI_cmd_length = cmd->cmd_len;
10131 hscb->SCSI_cmd_pointer = cpu_to_le32(SCB_DMA_ADDR(scb, scb->cmnd));
10153 * scb->sg_list[1] instead of 0 to the sg pointer in the hscb.
10163 hscb->data_pointer = scb->sg_list[0].address;
10164 hscb->data_count = scb->sg_list[0].length;
10166 hscb->SG_segment_count = i;
10167 hscb->SG_list_pointer = cpu_to_le32(SCB_DMA_ADDR(scb, &scb->sg_list[1]));
10181 hscb->SG_segment_count = 1;
10182 hscb->SG_list_pointer = cpu_to_le32(SCB_DMA_ADDR(scb, &scb->sg_list[0]));
10183 hscb->data_count = scb->sg_list[0].length;
10184 hscb->data_pointer = scb->sg_list[0].address;
10190 hscb->SG_segment_count = 0;
10191 hscb->SG_list_pointer = 0;
10192 hscb->data_count = 0;
10193 hscb->data_pointer = 0;
10243 aic7xxx_position(cmd) = scb->hscb->tag;
10279 struct aic7xxx_hwscb *hscb;
10298 hscb = scb->hscb;
10376 CTL_OF_CMD(cmd), scb->hscb->tag, scb->flags);
10380 if (scb->hscb->tag == aic_inb(p, SCB_TAG))
10413 scb->hscb->control |= MK_MESSAGE;
10420 if (aic7xxx_search_qinfifo(p, cmd->device->channel, cmd->device->id, cmd->device->lun, hscb->tag,
10449 p->qinfifo[p->qinfifonext++] = scb->hscb->tag;
10555 p->host_no, CTL_OF_SCB(scb), scb->hscb->tag, scb->flags,
10585 cmd->device->lun, scb->hscb->tag, SCB_ABORT | SCB_QUEUED_FOR_DONE,
10692 scb->hscb->control |= MK_MESSAGE;
10698 p->qinfifo[p->qinfifonext++] = scb->hscb->tag;