Lines Matching refs:hscb
421 struct hardware_scb *hscb; in ahc_handle_seqint() local
451 hscb = scb->hscb; in ahc_handle_seqint()
468 ahc_set_scsi_status(scb, hscb->shared_data.status.scsi_status); in ahc_handle_seqint()
469 switch (hscb->shared_data.status.scsi_status) { in ahc_handle_seqint()
486 scb->hscb->tag); in ahc_handle_seqint()
500 sc = (struct scsi_sense *)(&hscb->shared_data.cdb); in ahc_handle_seqint()
536 hscb->control = 0; in ahc_handle_seqint()
553 hscb->control |= MK_MESSAGE; in ahc_handle_seqint()
557 hscb->cdb_len = sizeof(*sc); in ahc_handle_seqint()
558 hscb->dataptr = sg->addr; in ahc_handle_seqint()
559 hscb->datacnt = sg->len; in ahc_handle_seqint()
560 hscb->sgptr = scb->sg_list_phys | SG_FULL_RESID; in ahc_handle_seqint()
561 hscb->sgptr = ahc_htole32(hscb->sgptr); in ahc_handle_seqint()
819 scb->hscb->tag); in ahc_handle_seqint()
887 SCB_GET_LUN(scb), scb->hscb->tag, in ahc_handle_seqint()
1249 tag = scb->hscb->tag; in ahc_handle_scsiint()
1252 scb->hscb->tag, tag == SCB_LIST_NULL ? in ahc_handle_scsiint()
1340 if ((scb->hscb->control & TAG_ENB) != 0) in ahc_handle_scsiint()
1341 tag = scb->hscb->tag; in ahc_handle_scsiint()
1521 struct hardware_scb *hscb = scb->hscb; in ahc_print_scb() local
1525 hscb->control, in ahc_print_scb()
1526 hscb->scsiid, in ahc_print_scb()
1527 hscb->lun, in ahc_print_scb()
1528 hscb->cdb_len); in ahc_print_scb()
1530 for (i = 0; i < sizeof(hscb->shared_data.cdb); i++) in ahc_print_scb()
1531 printf("%#02x", hscb->shared_data.cdb[i]); in ahc_print_scb()
1533 ahc_le32toh(hscb->dataptr), in ahc_print_scb()
1534 ahc_le32toh(hscb->datacnt), in ahc_print_scb()
1535 ahc_le32toh(hscb->sgptr), in ahc_print_scb()
1536 hscb->tag); in ahc_print_scb()
2109 pending_hscb = pending_scb->hscb; in ahc_update_pending_scbs()
2148 pending_hscb = pending_scb->hscb; in ahc_update_pending_scbs()
2242 our_id = SCSIID_OUR_ID(scb->hscb->scsiid); in ahc_scb_devinfo()
2286 if ((scb->hscb->control & DISCENB) != 0) in ahc_setup_initiator_msgout()
2291 if ((scb->hscb->control & TAG_ENB) != 0) { in ahc_setup_initiator_msgout()
2293 scb->hscb->control & (TAG_ENB|SCB_TAG_TYPE); in ahc_setup_initiator_msgout()
2294 ahc->msgout_buf[ahc->msgout_index++] = scb->hscb->tag; in ahc_setup_initiator_msgout()
2313 if ((scb->hscb->control & TAG_ENB) != 0) in ahc_setup_initiator_msgout()
2320 (scb->hscb->control & TAG_ENB) != 0 ? " Tag" : ""); in ahc_setup_initiator_msgout()
2334 printf("SCSIID = %x, target_mask = %x\n", scb->hscb->scsiid, in ahc_setup_initiator_msgout()
2337 "SCB flags = %x", scb->hscb->tag, scb->hscb->control, in ahc_setup_initiator_msgout()
2346 scb->hscb->control &= ~MK_MESSAGE; in ahc_setup_initiator_msgout()
3487 } else if ((scb->hscb->control & MSG_SIMPLE_TASK) != 0) { in ahc_handle_msg_reject()
3491 tag_type = (scb->hscb->control & MSG_SIMPLE_TASK); in ahc_handle_msg_reject()
3515 scb->hscb->control &= mask; in ahc_handle_msg_reject()
3533 ahc_busy_tcl(ahc, BUILD_TCL(scb->hscb->scsiid, devinfo->lun), in ahc_handle_msg_reject()
3534 scb->hscb->tag); in ahc_handle_msg_reject()
4520 next_scb->hscb = &scb_data->hscbs[scb_data->numscbs]; in ahc_alloc_scbs()
4521 next_scb->hscb->tag = ahc->scb_data->numscbs; in ahc_alloc_scbs()
4723 ahc_outb(ahc, NEXT_QUEUED_SCB, ahc->next_queued_scb->hscb->tag); in ahc_chip_init()
5255 && ((tag == scb->hscb->tag) in ahc_match_scb()
5263 match = ((tag == scb->hscb->tag) || (tag == SCB_LIST_NULL)); in ahc_match_scb()
5315 ahc_outb(ahc, NEXT_QUEUED_SCB, scb->hscb->tag); in ahc_qinfifo_requeue()
5317 prev_scb->hscb->next = scb->hscb->tag; in ahc_qinfifo_requeue()
5321 ahc->qinfifo[ahc->qinfifonext++] = scb->hscb->tag; in ahc_qinfifo_requeue()
5322 scb->hscb->next = ahc->next_queued_scb->hscb->tag; in ahc_qinfifo_requeue()
5381 ahc_outb(ahc, NEXT_QUEUED_SCB, ahc->next_queued_scb->hscb->tag); in ahc_search_qinfifo()
5462 next = scb->hscb->next; in ahc_search_qinfifo()
5463 ahc->scb_data->scbindex[scb->hscb->tag] = NULL; in ahc_search_qinfifo()
5465 scb->hscb->next = next; in ahc_search_qinfifo()
5466 ahc->qinfifo[qinstart] = scb->hscb->tag; in ahc_search_qinfifo()
5469 ahc_outb(ahc, NEXT_QUEUED_SCB, scb->hscb->tag); in ahc_search_qinfifo()
5474 scb->hscb->next = ahc->next_queued_scb->hscb->tag; in ahc_search_qinfifo()
6136 struct hardware_scb *hscb; in ahc_calc_residual() local
6158 hscb = scb->hscb; in ahc_calc_residual()
6159 sgptr = ahc_le32toh(hscb->sgptr); in ahc_calc_residual()
6169 spkt = &hscb->shared_data.status; in ahc_calc_residual()
6711 printf("Kernel NEXTQSCB = %d\n", ahc->next_queued_scb->hscb->tag); in ahc_dump_card_state()
6784 cur_col = printf("\n%3d ", scb->hscb->tag); in ahc_dump_card_state()
6785 ahc_scb_control_print(scb->hscb->control, &cur_col, 60); in ahc_dump_card_state()
6786 ahc_scb_scsiid_print(scb->hscb->scsiid, &cur_col, 60); in ahc_dump_card_state()
6787 ahc_scb_lun_print(scb->hscb->lun, &cur_col, 60); in ahc_dump_card_state()
6789 ahc_outb(ahc, SCBPTR, scb->hscb->tag); in ahc_dump_card_state()
6804 printf("%d ", scb->hscb->tag); in ahc_dump_card_state()
6818 printf("%d ", scb->hscb->tag); in ahc_dump_card_state()