Home
last modified time | relevance | path

Searched refs:hscb (Results 1 – 8 of 8) sorted by relevance

/linux-2.6.39/drivers/scsi/aic7xxx/
Daic7xxx_core.c406 /*offset*/(scb->hscb - ahc->hscbs) * sizeof(*scb->hscb), in ahc_sync_scb()
407 /*len*/sizeof(*scb->hscb), op); in ahc_sync_scb()
440 sgptr = ahc_le32toh(scb->hscb->sgptr); in ahc_update_residual()
547 struct hardware_scb *hscb; in ahc_free_scb() local
549 hscb = scb->hscb; in ahc_free_scb()
551 ahc->scb_data->scbindex[hscb->tag] = NULL; in ahc_free_scb()
553 hscb->control = 0; in ahc_free_scb()
591 q_hscb = ahc->next_queued_scb->hscb; in ahc_swap_with_next_hscb()
593 memcpy(q_hscb, scb->hscb, sizeof(*scb->hscb)); in ahc_swap_with_next_hscb()
600 q_hscb->next = scb->hscb->tag; in ahc_swap_with_next_hscb()
[all …]
Daic7xxx_osm.c1439 struct hardware_scb *hscb; in ahc_linux_run_command() local
1486 hscb = scb->hscb; in ahc_linux_run_command()
1492 hscb->control = 0; in ahc_linux_run_command()
1493 hscb->scsiid = BUILD_SCSIID(ahc, cmd); in ahc_linux_run_command()
1494 hscb->lun = cmd->device->lun; in ahc_linux_run_command()
1499 hscb->scsirate = tinfo->scsirate; in ahc_linux_run_command()
1500 hscb->scsioffset = tinfo->curr.offset; in ahc_linux_run_command()
1502 hscb->control |= ULTRAENB; in ahc_linux_run_command()
1505 hscb->control |= DISCENB; in ahc_linux_run_command()
1509 scb->hscb->control |= MK_MESSAGE; in ahc_linux_run_command()
[all …]
Daic79xx_inline.h151 dst->hscb->scsiid = src->hscb->scsiid; \
152 dst->hscb->lun = src->hscb->lun; \
Daic79xx.h78 SCSIID_OUR_ID((scb)->hscb->scsiid)
80 SCSIID_TARGET((ahd), (scb)->hscb->scsiid)
82 SCSIID_CHANNEL(ahd, (scb)->hscb->scsiid)
84 ((scb)->hscb->lun)
110 ahd_le16toh(scb->hscb->tag)
125 (scb)->hscb->scsiid = ((col_idx) << TID_SHIFT) & TID; \
126 (scb)->hscb->lun = ((col_idx) >> 4) & (AHD_NUM_LUNS_NONPKT-1); \
131 dst->hscb->scsiid = src->hscb->scsiid; \
132 dst->hscb->lun = src->hscb->lun; \
593 struct hardware_scb *hscb; member
Daic79xx_core.c444 scb->hscb->task_attribute = scb->hscb->control & SCB_TAG_TYPE; in ahd_setup_scb_common()
447 scb->hscb->task_attribute = SCB_XFERLEN_ODD; in ahd_setup_scb_common()
449 scb->hscb->task_attribute = 0; in ahd_setup_scb_common()
452 if (scb->hscb->cdb_len <= MAX_CDB_LEN_WITH_SENSE_ADDR in ahd_setup_scb_common()
453 || (scb->hscb->cdb_len & SCB_CDB_LEN_PTR) != 0) in ahd_setup_scb_common()
454 scb->hscb->shared_data.idata.cdb_plus_saddr.sense_addr = in ahd_setup_scb_common()
468 scb->hscb->dataptr = sg->addr; in ahd_setup_data_scb()
469 scb->hscb->datacnt = sg->len; in ahd_setup_data_scb()
475 dataptr_words = (uint32_t*)&scb->hscb->dataptr; in ahd_setup_data_scb()
482 scb->hscb->dataptr |= ahd_htole64(high_addr << 8); in ahd_setup_data_scb()
[all …]
Daic79xx_osm.c839 reset_scb->hscb->control = 0; in ahd_linux_dev_reset()
840 reset_scb->hscb->scsiid = BUILD_SCSIID(ahd,cmd); in ahd_linux_dev_reset()
841 reset_scb->hscb->lun = cmd->device->lun; in ahd_linux_dev_reset()
842 reset_scb->hscb->cdb_len = 0; in ahd_linux_dev_reset()
843 reset_scb->hscb->task_management = SIU_TASKMGMT_LUN_RESET; in ahd_linux_dev_reset()
848 reset_scb->hscb->control |= MK_MESSAGE; in ahd_linux_dev_reset()
1562 struct hardware_scb *hscb; in ahd_linux_run_command() local
1597 hscb = scb->hscb; in ahd_linux_run_command()
1603 hscb->control = 0; in ahd_linux_run_command()
1604 hscb->scsiid = BUILD_SCSIID(ahd, cmd); in ahd_linux_run_command()
[all …]
Daic7xxx.h78 (SCSIID_CHANNEL(ahc, (scb)->hscb->scsiid) == 'B')
80 SCSIID_OUR_ID((scb)->hscb->scsiid)
82 SCSIID_TARGET((ahc), (scb)->hscb->scsiid)
84 SCSIID_CHANNEL(ahc, (scb)->hscb->scsiid)
86 ((scb)->hscb->lun & LID)
562 struct hardware_scb *hscb; member
/linux-2.6.39/drivers/scsi/
Daic7xxx_old.c556 (((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 */ member
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)
2382 int targ = (scb->hscb->target_channel_lun >> 4) & 0x0F; in aic7xxx_match_scb()
2383 int chan = (scb->hscb->target_channel_lun >> 3) & 0x01; in aic7xxx_match_scb()
2384 int slun = scb->hscb->target_channel_lun & 0x07; in aic7xxx_match_scb()
[all …]