Lines Matching refs:hscb
406 /*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()
603 ahc->next_queued_scb->hscb = scb->hscb; in ahc_swap_with_next_hscb()
604 scb->hscb = q_hscb; in ahc_swap_with_next_hscb()
607 ahc->scb_data->scbindex[scb->hscb->tag] = scb; in ahc_swap_with_next_hscb()
618 if (scb->hscb->tag == SCB_LIST_NULL in ahc_queue_scb()
619 || scb->hscb->next == SCB_LIST_NULL) in ahc_queue_scb()
621 scb->hscb->tag, scb->hscb->next); in ahc_queue_scb()
626 scb->hscb->lun &= LID; in ahc_queue_scb()
628 scb->hscb->lun |= SCB_XFERLEN_ODD; in ahc_queue_scb()
633 ahc->qinfifo[ahc->qinfifonext++] = scb->hscb->tag; in ahc_queue_scb()
1002 struct hardware_scb *hscb; in ahc_handle_seqint() local
1032 hscb = scb->hscb; in ahc_handle_seqint()
1049 ahc_set_scsi_status(scb, hscb->shared_data.status.scsi_status); in ahc_handle_seqint()
1050 switch (hscb->shared_data.status.scsi_status) { in ahc_handle_seqint()
1067 scb->hscb->tag); in ahc_handle_seqint()
1081 sc = (struct scsi_sense *)(&hscb->shared_data.cdb); in ahc_handle_seqint()
1117 hscb->control = 0; in ahc_handle_seqint()
1134 hscb->control |= MK_MESSAGE; in ahc_handle_seqint()
1138 hscb->cdb_len = sizeof(*sc); in ahc_handle_seqint()
1139 hscb->dataptr = sg->addr; in ahc_handle_seqint()
1140 hscb->datacnt = sg->len; in ahc_handle_seqint()
1141 hscb->sgptr = scb->sg_list_phys | SG_FULL_RESID; in ahc_handle_seqint()
1142 hscb->sgptr = ahc_htole32(hscb->sgptr); in ahc_handle_seqint()
1401 scb->hscb->tag); in ahc_handle_seqint()
1469 SCB_GET_LUN(scb), scb->hscb->tag, in ahc_handle_seqint()
1832 tag = scb->hscb->tag; in ahc_handle_scsiint()
1835 scb->hscb->tag, tag == SCB_LIST_NULL ? in ahc_handle_scsiint()
1923 if ((scb->hscb->control & TAG_ENB) != 0) in ahc_handle_scsiint()
1924 tag = scb->hscb->tag; in ahc_handle_scsiint()
2105 struct hardware_scb *hscb = scb->hscb;
2109 hscb->control,
2110 hscb->scsiid,
2111 hscb->lun,
2112 hscb->cdb_len);
2114 for (i = 0; i < sizeof(hscb->shared_data.cdb); i++)
2115 printk("%#02x", hscb->shared_data.cdb[i]);
2117 ahc_le32toh(hscb->dataptr),
2118 ahc_le32toh(hscb->datacnt),
2119 ahc_le32toh(hscb->sgptr),
2120 hscb->tag);
2715 pending_hscb = pending_scb->hscb; in ahc_update_pending_scbs()
2754 pending_hscb = pending_scb->hscb; in ahc_update_pending_scbs()
2848 our_id = SCSIID_OUR_ID(scb->hscb->scsiid); in ahc_scb_devinfo()
2892 if ((scb->hscb->control & DISCENB) != 0) in ahc_setup_initiator_msgout()
2897 if ((scb->hscb->control & TAG_ENB) != 0) { in ahc_setup_initiator_msgout()
2899 scb->hscb->control & (TAG_ENB|SCB_TAG_TYPE); in ahc_setup_initiator_msgout()
2900 ahc->msgout_buf[ahc->msgout_index++] = scb->hscb->tag; in ahc_setup_initiator_msgout()
2919 if ((scb->hscb->control & TAG_ENB) != 0) in ahc_setup_initiator_msgout()
2926 (scb->hscb->control & TAG_ENB) != 0 ? " Tag" : ""); in ahc_setup_initiator_msgout()
2940 printk("SCSIID = %x, target_mask = %x\n", scb->hscb->scsiid, in ahc_setup_initiator_msgout()
2943 "SCB flags = %x", scb->hscb->tag, scb->hscb->control, in ahc_setup_initiator_msgout()
2952 scb->hscb->control &= ~MK_MESSAGE; in ahc_setup_initiator_msgout()
4083 } else if ((scb->hscb->control & MSG_SIMPLE_TASK) != 0) { in ahc_handle_msg_reject()
4087 tag_type = (scb->hscb->control & MSG_SIMPLE_TASK); in ahc_handle_msg_reject()
4111 scb->hscb->control &= mask; in ahc_handle_msg_reject()
4129 ahc_busy_tcl(ahc, BUILD_TCL(scb->hscb->scsiid, devinfo->lun), in ahc_handle_msg_reject()
4130 scb->hscb->tag); in ahc_handle_msg_reject()
5030 next_scb->hscb = &scb_data->hscbs[scb_data->numscbs]; in ahc_alloc_scbs()
5031 next_scb->hscb->tag = ahc->scb_data->numscbs; in ahc_alloc_scbs()
5233 ahc_outb(ahc, NEXT_QUEUED_SCB, ahc->next_queued_scb->hscb->tag); in ahc_chip_init()
5775 && ((tag == scb->hscb->tag) in ahc_match_scb()
5783 match = ((tag == scb->hscb->tag) || (tag == SCB_LIST_NULL)); in ahc_match_scb()
5835 ahc_outb(ahc, NEXT_QUEUED_SCB, scb->hscb->tag); in ahc_qinfifo_requeue()
5837 prev_scb->hscb->next = scb->hscb->tag; in ahc_qinfifo_requeue()
5841 ahc->qinfifo[ahc->qinfifonext++] = scb->hscb->tag; in ahc_qinfifo_requeue()
5842 scb->hscb->next = ahc->next_queued_scb->hscb->tag; in ahc_qinfifo_requeue()
5901 ahc_outb(ahc, NEXT_QUEUED_SCB, ahc->next_queued_scb->hscb->tag); in ahc_search_qinfifo()
5982 next = scb->hscb->next; in ahc_search_qinfifo()
5983 ahc->scb_data->scbindex[scb->hscb->tag] = NULL; in ahc_search_qinfifo()
5985 scb->hscb->next = next; in ahc_search_qinfifo()
5986 ahc->qinfifo[qinstart] = scb->hscb->tag; in ahc_search_qinfifo()
5989 ahc_outb(ahc, NEXT_QUEUED_SCB, scb->hscb->tag); in ahc_search_qinfifo()
5994 scb->hscb->next = ahc->next_queued_scb->hscb->tag; in ahc_search_qinfifo()
6656 struct hardware_scb *hscb; in ahc_calc_residual() local
6678 hscb = scb->hscb; in ahc_calc_residual()
6679 sgptr = ahc_le32toh(hscb->sgptr); in ahc_calc_residual()
6689 spkt = &hscb->shared_data.status; in ahc_calc_residual()
7231 printk("Kernel NEXTQSCB = %d\n", ahc->next_queued_scb->hscb->tag); in ahc_dump_card_state()
7304 cur_col = printk("\n%3d ", scb->hscb->tag); in ahc_dump_card_state()
7305 ahc_scb_control_print(scb->hscb->control, &cur_col, 60); in ahc_dump_card_state()
7306 ahc_scb_scsiid_print(scb->hscb->scsiid, &cur_col, 60); in ahc_dump_card_state()
7307 ahc_scb_lun_print(scb->hscb->lun, &cur_col, 60); in ahc_dump_card_state()
7309 ahc_outb(ahc, SCBPTR, scb->hscb->tag); in ahc_dump_card_state()
7324 printk("%d ", scb->hscb->tag); in ahc_dump_card_state()
7338 printk("%d ", scb->hscb->tag); in ahc_dump_card_state()