Home
last modified time | relevance | path

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

/drivers/scsi/aic7xxx/
Daic7xxx_core.c399 /*offset*/(scb->hscb - ahc->hscbs) * sizeof(*scb->hscb), in ahc_sync_scb()
400 /*len*/sizeof(*scb->hscb), op); in ahc_sync_scb()
433 sgptr = ahc_le32toh(scb->hscb->sgptr); in ahc_update_residual()
540 struct hardware_scb *hscb; in ahc_free_scb() local
542 hscb = scb->hscb; in ahc_free_scb()
544 ahc->scb_data->scbindex[hscb->tag] = NULL; in ahc_free_scb()
546 hscb->control = 0; in ahc_free_scb()
584 q_hscb = ahc->next_queued_scb->hscb; in ahc_swap_with_next_hscb()
586 memcpy(q_hscb, scb->hscb, sizeof(*scb->hscb)); in ahc_swap_with_next_hscb()
593 q_hscb->next = scb->hscb->tag; in ahc_swap_with_next_hscb()
[all …]
Daic7xxx_osm.c1406 struct hardware_scb *hscb; in ahc_linux_run_command() local
1453 hscb = scb->hscb; in ahc_linux_run_command()
1459 hscb->control = 0; in ahc_linux_run_command()
1460 hscb->scsiid = BUILD_SCSIID(ahc, cmd); in ahc_linux_run_command()
1461 hscb->lun = cmd->device->lun; in ahc_linux_run_command()
1466 hscb->scsirate = tinfo->scsirate; in ahc_linux_run_command()
1467 hscb->scsioffset = tinfo->curr.offset; in ahc_linux_run_command()
1469 hscb->control |= ULTRAENB; in ahc_linux_run_command()
1472 hscb->control |= DISCENB; in ahc_linux_run_command()
1476 scb->hscb->control |= MK_MESSAGE; in ahc_linux_run_command()
[all …]
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_inline.h151 dst->hscb->scsiid = src->hscb->scsiid; \
152 dst->hscb->lun = src->hscb->lun; \
Daic79xx_core.c436 scb->hscb->task_attribute = scb->hscb->control & SCB_TAG_TYPE; in ahd_setup_scb_common()
439 scb->hscb->task_attribute = SCB_XFERLEN_ODD; in ahd_setup_scb_common()
441 scb->hscb->task_attribute = 0; in ahd_setup_scb_common()
444 if (scb->hscb->cdb_len <= MAX_CDB_LEN_WITH_SENSE_ADDR in ahd_setup_scb_common()
445 || (scb->hscb->cdb_len & SCB_CDB_LEN_PTR) != 0) in ahd_setup_scb_common()
446 scb->hscb->shared_data.idata.cdb_plus_saddr.sense_addr = in ahd_setup_scb_common()
460 scb->hscb->dataptr = sg->addr; in ahd_setup_data_scb()
461 scb->hscb->datacnt = sg->len; in ahd_setup_data_scb()
467 dataptr_words = (uint32_t*)&scb->hscb->dataptr; in ahd_setup_data_scb()
474 scb->hscb->dataptr |= ahd_htole64(high_addr << 8); in ahd_setup_data_scb()
[all …]
Daic79xx_osm.c820 reset_scb->hscb->control = 0; in ahd_linux_dev_reset()
821 reset_scb->hscb->scsiid = BUILD_SCSIID(ahd,cmd); in ahd_linux_dev_reset()
822 reset_scb->hscb->lun = cmd->device->lun; in ahd_linux_dev_reset()
823 reset_scb->hscb->cdb_len = 0; in ahd_linux_dev_reset()
824 reset_scb->hscb->task_management = SIU_TASKMGMT_LUN_RESET; in ahd_linux_dev_reset()
829 reset_scb->hscb->control |= MK_MESSAGE; in ahd_linux_dev_reset()
1538 struct hardware_scb *hscb; in ahd_linux_run_command() local
1573 hscb = scb->hscb; in ahd_linux_run_command()
1579 hscb->control = 0; in ahd_linux_run_command()
1580 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