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()
1393 scb->hscb->tag); in ahc_handle_seqint()
1461 SCB_GET_LUN(scb), scb->hscb->tag, in ahc_handle_seqint()
1824 tag = scb->hscb->tag; in ahc_handle_scsiint()
1827 scb->hscb->tag, tag == SCB_LIST_NULL ? in ahc_handle_scsiint()
1900 if ((scb->hscb->control & TAG_ENB) != 0) in ahc_handle_scsiint()
1901 tag = scb->hscb->tag; in ahc_handle_scsiint()
2081 struct hardware_scb *hscb = scb->hscb;
2085 hscb->control,
2086 hscb->scsiid,
2087 hscb->lun,
2088 hscb->cdb_len);
2090 for (i = 0; i < sizeof(hscb->shared_data.cdb); i++)
2091 printk("%#02x", hscb->shared_data.cdb[i]);
2093 ahc_le32toh(hscb->dataptr),
2094 ahc_le32toh(hscb->datacnt),
2095 ahc_le32toh(hscb->sgptr),
2096 hscb->tag);
2690 pending_hscb = pending_scb->hscb; in ahc_update_pending_scbs()
2729 pending_hscb = pending_scb->hscb; in ahc_update_pending_scbs()
2823 our_id = SCSIID_OUR_ID(scb->hscb->scsiid); in ahc_scb_devinfo()
2867 if ((scb->hscb->control & DISCENB) != 0) in ahc_setup_initiator_msgout()
2872 if ((scb->hscb->control & TAG_ENB) != 0) { in ahc_setup_initiator_msgout()
2874 scb->hscb->control & (TAG_ENB|SCB_TAG_TYPE); in ahc_setup_initiator_msgout()
2875 ahc->msgout_buf[ahc->msgout_index++] = scb->hscb->tag; in ahc_setup_initiator_msgout()
2894 if ((scb->hscb->control & TAG_ENB) != 0) in ahc_setup_initiator_msgout()
2901 (scb->hscb->control & TAG_ENB) != 0 ? " Tag" : ""); in ahc_setup_initiator_msgout()
2915 printk("SCSIID = %x, target_mask = %x\n", scb->hscb->scsiid, in ahc_setup_initiator_msgout()
2918 "SCB flags = %x", scb->hscb->tag, scb->hscb->control, in ahc_setup_initiator_msgout()
2927 scb->hscb->control &= ~MK_MESSAGE; in ahc_setup_initiator_msgout()
4058 } else if ((scb->hscb->control & SIMPLE_QUEUE_TAG) != 0) { in ahc_handle_msg_reject()
4062 tag_type = (scb->hscb->control & SIMPLE_QUEUE_TAG); in ahc_handle_msg_reject()
4086 scb->hscb->control &= mask; in ahc_handle_msg_reject()
4104 ahc_busy_tcl(ahc, BUILD_TCL(scb->hscb->scsiid, devinfo->lun), in ahc_handle_msg_reject()
4105 scb->hscb->tag); in ahc_handle_msg_reject()
4986 next_scb->hscb = &scb_data->hscbs[scb_data->numscbs]; in ahc_alloc_scbs()
4987 next_scb->hscb->tag = ahc->scb_data->numscbs; in ahc_alloc_scbs()
5189 ahc_outb(ahc, NEXT_QUEUED_SCB, ahc->next_queued_scb->hscb->tag); in ahc_chip_init()
5711 && ((tag == scb->hscb->tag) in ahc_match_scb()
5719 match = ((tag == scb->hscb->tag) || (tag == SCB_LIST_NULL)); in ahc_match_scb()
5771 ahc_outb(ahc, NEXT_QUEUED_SCB, scb->hscb->tag); in ahc_qinfifo_requeue()
5773 prev_scb->hscb->next = scb->hscb->tag; in ahc_qinfifo_requeue()
5777 ahc->qinfifo[ahc->qinfifonext++] = scb->hscb->tag; in ahc_qinfifo_requeue()
5778 scb->hscb->next = ahc->next_queued_scb->hscb->tag; in ahc_qinfifo_requeue()
5837 ahc_outb(ahc, NEXT_QUEUED_SCB, ahc->next_queued_scb->hscb->tag); in ahc_search_qinfifo()
5917 next = scb->hscb->next; in ahc_search_qinfifo()
5918 ahc->scb_data->scbindex[scb->hscb->tag] = NULL; in ahc_search_qinfifo()
5920 scb->hscb->next = next; in ahc_search_qinfifo()
5921 ahc->qinfifo[qinstart] = scb->hscb->tag; in ahc_search_qinfifo()
5924 ahc_outb(ahc, NEXT_QUEUED_SCB, scb->hscb->tag); in ahc_search_qinfifo()
5929 scb->hscb->next = ahc->next_queued_scb->hscb->tag; in ahc_search_qinfifo()
6590 struct hardware_scb *hscb; in ahc_calc_residual() local
6612 hscb = scb->hscb; in ahc_calc_residual()
6613 sgptr = ahc_le32toh(hscb->sgptr); in ahc_calc_residual()
6623 spkt = &hscb->shared_data.status; in ahc_calc_residual()
7163 printk("Kernel NEXTQSCB = %d\n", ahc->next_queued_scb->hscb->tag); in ahc_dump_card_state()
7236 cur_col = printk("\n%3d ", scb->hscb->tag); in ahc_dump_card_state()
7237 ahc_scb_control_print(scb->hscb->control, &cur_col, 60); in ahc_dump_card_state()
7238 ahc_scb_scsiid_print(scb->hscb->scsiid, &cur_col, 60); in ahc_dump_card_state()
7239 ahc_scb_lun_print(scb->hscb->lun, &cur_col, 60); in ahc_dump_card_state()
7241 ahc_outb(ahc, SCBPTR, scb->hscb->tag); in ahc_dump_card_state()
7256 printk("%d ", scb->hscb->tag); in ahc_dump_card_state()
7270 printk("%d ", scb->hscb->tag); in ahc_dump_card_state()