Lines Matching refs:hscb

399 			/*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()
596 ahc->next_queued_scb->hscb = scb->hscb; in ahc_swap_with_next_hscb()
597 scb->hscb = q_hscb; in ahc_swap_with_next_hscb()
600 ahc->scb_data->scbindex[scb->hscb->tag] = scb; in ahc_swap_with_next_hscb()
611 if (scb->hscb->tag == SCB_LIST_NULL in ahc_queue_scb()
612 || scb->hscb->next == SCB_LIST_NULL) in ahc_queue_scb()
614 scb->hscb->tag, scb->hscb->next); in ahc_queue_scb()
619 scb->hscb->lun &= LID; in ahc_queue_scb()
621 scb->hscb->lun |= SCB_XFERLEN_ODD; in ahc_queue_scb()
626 ahc->qinfifo[ahc->qinfifonext++] = scb->hscb->tag; in ahc_queue_scb()
995 struct hardware_scb *hscb; in ahc_handle_seqint() local
1025 hscb = scb->hscb; in ahc_handle_seqint()
1042 ahc_set_scsi_status(scb, hscb->shared_data.status.scsi_status); in ahc_handle_seqint()
1043 switch (hscb->shared_data.status.scsi_status) { in ahc_handle_seqint()
1060 scb->hscb->tag); in ahc_handle_seqint()
1074 sc = (struct scsi_sense *)(&hscb->shared_data.cdb); in ahc_handle_seqint()
1110 hscb->control = 0; in ahc_handle_seqint()
1127 hscb->control |= MK_MESSAGE; in ahc_handle_seqint()
1131 hscb->cdb_len = sizeof(*sc); in ahc_handle_seqint()
1132 hscb->dataptr = sg->addr; in ahc_handle_seqint()
1133 hscb->datacnt = sg->len; in ahc_handle_seqint()
1134 hscb->sgptr = scb->sg_list_phys | SG_FULL_RESID; in ahc_handle_seqint()
1135 hscb->sgptr = ahc_htole32(hscb->sgptr); in ahc_handle_seqint()
1394 scb->hscb->tag); in ahc_handle_seqint()
1462 SCB_GET_LUN(scb), scb->hscb->tag, in ahc_handle_seqint()
1825 tag = scb->hscb->tag; in ahc_handle_scsiint()
1828 scb->hscb->tag, tag == SCB_LIST_NULL ? in ahc_handle_scsiint()
1916 if ((scb->hscb->control & TAG_ENB) != 0) in ahc_handle_scsiint()
1917 tag = scb->hscb->tag; in ahc_handle_scsiint()
2098 struct hardware_scb *hscb = scb->hscb;
2102 hscb->control,
2103 hscb->scsiid,
2104 hscb->lun,
2105 hscb->cdb_len);
2107 for (i = 0; i < sizeof(hscb->shared_data.cdb); i++)
2108 printk("%#02x", hscb->shared_data.cdb[i]);
2110 ahc_le32toh(hscb->dataptr),
2111 ahc_le32toh(hscb->datacnt),
2112 ahc_le32toh(hscb->sgptr),
2113 hscb->tag);
2708 pending_hscb = pending_scb->hscb; in ahc_update_pending_scbs()
2747 pending_hscb = pending_scb->hscb; in ahc_update_pending_scbs()
2841 our_id = SCSIID_OUR_ID(scb->hscb->scsiid); in ahc_scb_devinfo()
2885 if ((scb->hscb->control & DISCENB) != 0) in ahc_setup_initiator_msgout()
2890 if ((scb->hscb->control & TAG_ENB) != 0) { in ahc_setup_initiator_msgout()
2892 scb->hscb->control & (TAG_ENB|SCB_TAG_TYPE); in ahc_setup_initiator_msgout()
2893 ahc->msgout_buf[ahc->msgout_index++] = scb->hscb->tag; in ahc_setup_initiator_msgout()
2912 if ((scb->hscb->control & TAG_ENB) != 0) in ahc_setup_initiator_msgout()
2919 (scb->hscb->control & TAG_ENB) != 0 ? " Tag" : ""); in ahc_setup_initiator_msgout()
2933 printk("SCSIID = %x, target_mask = %x\n", scb->hscb->scsiid, in ahc_setup_initiator_msgout()
2936 "SCB flags = %x", scb->hscb->tag, scb->hscb->control, in ahc_setup_initiator_msgout()
2945 scb->hscb->control &= ~MK_MESSAGE; in ahc_setup_initiator_msgout()
4076 } else if ((scb->hscb->control & MSG_SIMPLE_TASK) != 0) { in ahc_handle_msg_reject()
4080 tag_type = (scb->hscb->control & MSG_SIMPLE_TASK); in ahc_handle_msg_reject()
4104 scb->hscb->control &= mask; in ahc_handle_msg_reject()
4122 ahc_busy_tcl(ahc, BUILD_TCL(scb->hscb->scsiid, devinfo->lun), in ahc_handle_msg_reject()
4123 scb->hscb->tag); in ahc_handle_msg_reject()
5015 next_scb->hscb = &scb_data->hscbs[scb_data->numscbs]; in ahc_alloc_scbs()
5016 next_scb->hscb->tag = ahc->scb_data->numscbs; in ahc_alloc_scbs()
5218 ahc_outb(ahc, NEXT_QUEUED_SCB, ahc->next_queued_scb->hscb->tag); in ahc_chip_init()
5742 && ((tag == scb->hscb->tag) in ahc_match_scb()
5750 match = ((tag == scb->hscb->tag) || (tag == SCB_LIST_NULL)); in ahc_match_scb()
5802 ahc_outb(ahc, NEXT_QUEUED_SCB, scb->hscb->tag); in ahc_qinfifo_requeue()
5804 prev_scb->hscb->next = scb->hscb->tag; in ahc_qinfifo_requeue()
5808 ahc->qinfifo[ahc->qinfifonext++] = scb->hscb->tag; in ahc_qinfifo_requeue()
5809 scb->hscb->next = ahc->next_queued_scb->hscb->tag; in ahc_qinfifo_requeue()
5868 ahc_outb(ahc, NEXT_QUEUED_SCB, ahc->next_queued_scb->hscb->tag); in ahc_search_qinfifo()
5949 next = scb->hscb->next; in ahc_search_qinfifo()
5950 ahc->scb_data->scbindex[scb->hscb->tag] = NULL; in ahc_search_qinfifo()
5952 scb->hscb->next = next; in ahc_search_qinfifo()
5953 ahc->qinfifo[qinstart] = scb->hscb->tag; in ahc_search_qinfifo()
5956 ahc_outb(ahc, NEXT_QUEUED_SCB, scb->hscb->tag); in ahc_search_qinfifo()
5961 scb->hscb->next = ahc->next_queued_scb->hscb->tag; in ahc_search_qinfifo()
6623 struct hardware_scb *hscb; in ahc_calc_residual() local
6645 hscb = scb->hscb; in ahc_calc_residual()
6646 sgptr = ahc_le32toh(hscb->sgptr); in ahc_calc_residual()
6656 spkt = &hscb->shared_data.status; in ahc_calc_residual()
7198 printk("Kernel NEXTQSCB = %d\n", ahc->next_queued_scb->hscb->tag); in ahc_dump_card_state()
7271 cur_col = printk("\n%3d ", scb->hscb->tag); in ahc_dump_card_state()
7272 ahc_scb_control_print(scb->hscb->control, &cur_col, 60); in ahc_dump_card_state()
7273 ahc_scb_scsiid_print(scb->hscb->scsiid, &cur_col, 60); in ahc_dump_card_state()
7274 ahc_scb_lun_print(scb->hscb->lun, &cur_col, 60); in ahc_dump_card_state()
7276 ahc_outb(ahc, SCBPTR, scb->hscb->tag); in ahc_dump_card_state()
7291 printk("%d ", scb->hscb->tag); in ahc_dump_card_state()
7305 printk("%d ", scb->hscb->tag); in ahc_dump_card_state()