Lines Matching refs:ccb

1128 struct ccb;
1210 struct ccb * nego_cp;
1326 struct ccb * held_ccb; /* CCB held for QUEUE FULL */
1392 struct ccb * cp;
1512 struct ccb { struct
1582 struct ccb * link_ccb; /* Host adapter CCB chain */ argument
1588 #define CCB_PHYS(cp,lbl) (cp->p_ccb + offsetof(struct ccb, lbl)) argument
1749 struct ccb *(ccb_done[MAX_DONE]);
1756 struct ccb *ccb; /* Global CCB */ member
1920 static void ncr_complete (struct ncb *np, struct ccb *cp);
1922 static void ncr_free_ccb (struct ncb *np, struct ccb *cp);
1923 static void ncr_init_ccb (struct ncb *np, struct ccb *cp);
1929 static struct ccb *ncr_get_ccb (struct ncb *np, struct scsi_cmnd *cmd);
1938 static int ncr_prepare_nego(struct ncb *np, struct ccb *cp, u_char *msgptr);
1943 static int ncr_scatter (struct ncb *np, struct ccb *cp, struct scsi_cmnd *cmd);
1945 static void ncr_setsync (struct ncb *np, struct ccb *cp, u_char scntl3, u_char sxfer);
1947 static void ncr_setwide (struct ncb *np, struct ccb *cp, u_char wide, u_char ack);
1953 static void ncr_put_start_queue(struct ncb *np, struct ccb *cp);
3462 *p++ =SCR_COPY (sizeof(struct ccb *)); in ncr_script_fill()
3679 static void ncr_print_msg(struct ccb *cp, char *label, u_char *msg) in ncr_print_msg()
4060 static int ncr_prepare_nego(struct ncb *np, struct ccb *cp, u_char *msgptr) in ncr_prepare_nego()
4124 struct ccb *cp; in ncr_queue_command()
4195 (cp != np->ccb && np->disc && !(tp->usrflag & UF_NODISC))) in ncr_queue_command()
4431 struct ccb *cp; in ncr_start_next_ccb()
4441 cp = list_entry(qp, struct ccb, link_ccbq); in ncr_start_next_ccb()
4449 static void ncr_put_start_queue(struct ncb *np, struct ccb *cp) in ncr_put_start_queue()
4565 struct ccb *cp; in ncr_reset_bus()
4584 for (found=0, cp=np->ccb; cp; cp=cp->link_ccb) { in ncr_reset_bus()
4634 struct ccb *cp;
4650 for (found=0, cp=np->ccb; cp; cp=cp->link_ccb) {
4706 struct ccb *cp; in ncr_detach()
4766 while ((cp=np->ccb->link_ccb) != NULL) { in ncr_detach()
4767 np->ccb->link_ccb = cp->link_ccb; in ncr_detach()
4799 if (np->ccb) in ncr_detach()
4800 m_free_dma(np->ccb, sizeof(struct ccb), "CCB"); in ncr_detach()
4816 void ncr_complete (struct ncb *np, struct ccb *cp) in ncr_complete()
5092 static void ncr_ccb_skipped(struct ncb *np, struct ccb *cp) in ncr_ccb_skipped()
5097 if (lp && cp != np->ccb) { in ncr_ccb_skipped()
5118 struct ccb *cp; in ncr_wakeup_done()
5132 np->ccb_done[j] = (struct ccb *)CCB_DONE_EMPTY; in ncr_wakeup_done()
5148 cp = np->ccb; in ncr_wakeup_done()
5164 struct ccb *cp = np->ccb; in ncr_wakeup()
5247 np->ccb_done[i] = (struct ccb *)CCB_DONE_EMPTY; in ncr_init()
5497 struct ccb *cp; in ncr_set_sync_wide_status()
5511 for (cp = np->ccb; cp; cp = cp->link_ccb) { in ncr_set_sync_wide_status()
5530 static void ncr_setsync (struct ncb *np, struct ccb *cp, u_char scntl3, u_char sxfer) in ncr_setsync()
5587 static void ncr_setwide (struct ncb *np, struct ccb *cp, u_char wide, u_char ack) in ncr_setwide()
6089 struct ccb *cp; in ncr_int_sto()
6097 cp = np->ccb; in ncr_int_sto()
6256 struct ccb *cp; in ncr_int_ma()
6323 cp = np->ccb; in ncr_int_ma()
6541 static void ncr_sir_to_redo(struct ncb *np, int num, struct ccb *cp) in ncr_sir_to_redo()
6547 struct ccb * cp2; in ncr_sir_to_redo()
6562 cp2 = list_entry(qp, struct ccb, link_ccbq); in ncr_sir_to_redo()
6697 struct ccb *cp=NULL; in ncr_int_sir()
6752 cp = np->ccb; in ncr_int_sir()
7143 static struct ccb *ncr_get_ccb(struct ncb *np, struct scsi_cmnd *cmd) in ncr_get_ccb()
7150 struct ccb *cp = NULL; in ncr_get_ccb()
7174 cp = list_entry(qp, struct ccb, link_ccbq); in ncr_get_ccb()
7201 cp = np->ccb; in ncr_get_ccb()
7254 static void ncr_free_ccb (struct ncb *np, struct ccb *cp) in ncr_free_ccb()
7288 if (cp != np->ccb) in ncr_free_ccb()
7303 if (cp == np->ccb) in ncr_free_ccb()
7316 static void ncr_init_ccb(struct ncb *np, struct ccb *cp) in ncr_init_ccb()
7359 struct ccb *cp = NULL; in ncr_alloc_ccb()
7364 cp = m_calloc_dma(sizeof(struct ccb), "CCB"); in ncr_alloc_ccb()
7380 cp->link_ccb = np->ccb->link_ccb; in ncr_alloc_ccb()
7381 np->ccb->link_ccb = cp; in ncr_alloc_ccb()
7647 static int ncr_scatter(struct ncb *np, struct ccb *cp, struct scsi_cmnd *cmd) in ncr_scatter()
8337 np->ccb = m_calloc_dma(sizeof(struct ccb), "CCB");
8338 if (!np->ccb)
8425 np->ccb->p_ccb = vtobus (np->ccb);
8463 ncr_init_ccb(np, np->ccb);
8515 if (np->ccb)
8516 m_free_dma(np->ccb, sizeof(struct ccb), "CCB");