Lines Matching refs:ccb
1116 struct ccb;
1198 struct ccb * nego_cp;
1314 struct ccb * held_ccb; /* CCB held for QUEUE FULL */
1380 struct ccb * cp;
1500 struct ccb { struct
1570 struct ccb * link_ccb; /* Host adapter CCB chain */ argument
1576 #define CCB_PHYS(cp,lbl) (cp->p_ccb + offsetof(struct ccb, lbl)) argument
1737 struct ccb *(ccb_done[MAX_DONE]);
1744 struct ccb *ccb; /* Global CCB */ member
1908 static void ncr_complete (struct ncb *np, struct ccb *cp);
1910 static void ncr_free_ccb (struct ncb *np, struct ccb *cp);
1911 static void ncr_init_ccb (struct ncb *np, struct ccb *cp);
1917 static struct ccb *ncr_get_ccb (struct ncb *np, struct scsi_cmnd *cmd);
1926 static int ncr_prepare_nego(struct ncb *np, struct ccb *cp, u_char *msgptr);
1931 static int ncr_scatter (struct ncb *np, struct ccb *cp, struct scsi_cmnd *cmd);
1933 static void ncr_setsync (struct ncb *np, struct ccb *cp, u_char scntl3, u_char sxfer);
1935 static void ncr_setwide (struct ncb *np, struct ccb *cp, u_char wide, u_char ack);
1941 static void ncr_put_start_queue(struct ncb *np, struct ccb *cp);
3450 *p++ =SCR_COPY (sizeof(struct ccb *)); in ncr_script_fill()
3667 static void ncr_print_msg(struct ccb *cp, char *label, u_char *msg) in ncr_print_msg()
4051 static int ncr_prepare_nego(struct ncb *np, struct ccb *cp, u_char *msgptr) in ncr_prepare_nego()
4115 struct ccb *cp; in ncr_queue_command()
4186 (cp != np->ccb && np->disc && !(tp->usrflag & UF_NODISC))) in ncr_queue_command()
4422 struct ccb *cp; in ncr_start_next_ccb()
4432 cp = list_entry(qp, struct ccb, link_ccbq); in ncr_start_next_ccb()
4440 static void ncr_put_start_queue(struct ncb *np, struct ccb *cp) in ncr_put_start_queue()
4556 struct ccb *cp; in ncr_reset_bus()
4575 for (found=0, cp=np->ccb; cp; cp=cp->link_ccb) { in ncr_reset_bus()
4625 struct ccb *cp;
4641 for (found=0, cp=np->ccb; cp; cp=cp->link_ccb) {
4697 struct ccb *cp; in ncr_detach()
4757 while ((cp=np->ccb->link_ccb) != NULL) { in ncr_detach()
4758 np->ccb->link_ccb = cp->link_ccb; in ncr_detach()
4790 if (np->ccb) in ncr_detach()
4791 m_free_dma(np->ccb, sizeof(struct ccb), "CCB"); in ncr_detach()
4807 void ncr_complete (struct ncb *np, struct ccb *cp) in ncr_complete()
5083 static void ncr_ccb_skipped(struct ncb *np, struct ccb *cp) in ncr_ccb_skipped()
5088 if (lp && cp != np->ccb) { in ncr_ccb_skipped()
5109 struct ccb *cp; in ncr_wakeup_done()
5123 np->ccb_done[j] = (struct ccb *)CCB_DONE_EMPTY; in ncr_wakeup_done()
5139 cp = np->ccb; in ncr_wakeup_done()
5155 struct ccb *cp = np->ccb; in ncr_wakeup()
5238 np->ccb_done[i] = (struct ccb *)CCB_DONE_EMPTY; in ncr_init()
5488 struct ccb *cp; in ncr_set_sync_wide_status()
5502 for (cp = np->ccb; cp; cp = cp->link_ccb) { in ncr_set_sync_wide_status()
5521 static void ncr_setsync (struct ncb *np, struct ccb *cp, u_char scntl3, u_char sxfer) in ncr_setsync()
5578 static void ncr_setwide (struct ncb *np, struct ccb *cp, u_char wide, u_char ack) in ncr_setwide()
6080 struct ccb *cp; in ncr_int_sto()
6088 cp = np->ccb; in ncr_int_sto()
6247 struct ccb *cp; in ncr_int_ma()
6314 cp = np->ccb; in ncr_int_ma()
6532 static void ncr_sir_to_redo(struct ncb *np, int num, struct ccb *cp) in ncr_sir_to_redo()
6538 struct ccb * cp2; in ncr_sir_to_redo()
6553 cp2 = list_entry(qp, struct ccb, link_ccbq); in ncr_sir_to_redo()
6688 struct ccb *cp=NULL; in ncr_int_sir()
6744 cp = np->ccb; in ncr_int_sir()
7135 static struct ccb *ncr_get_ccb(struct ncb *np, struct scsi_cmnd *cmd) in ncr_get_ccb()
7142 struct ccb *cp = NULL; in ncr_get_ccb()
7166 cp = list_entry(qp, struct ccb, link_ccbq); in ncr_get_ccb()
7193 cp = np->ccb; in ncr_get_ccb()
7246 static void ncr_free_ccb (struct ncb *np, struct ccb *cp) in ncr_free_ccb()
7280 if (cp != np->ccb) in ncr_free_ccb()
7295 if (cp == np->ccb) in ncr_free_ccb()
7308 static void ncr_init_ccb(struct ncb *np, struct ccb *cp) in ncr_init_ccb()
7351 struct ccb *cp = NULL; in ncr_alloc_ccb()
7356 cp = m_calloc_dma(sizeof(struct ccb), "CCB"); in ncr_alloc_ccb()
7372 cp->link_ccb = np->ccb->link_ccb; in ncr_alloc_ccb()
7373 np->ccb->link_ccb = cp; in ncr_alloc_ccb()
7639 static int ncr_scatter(struct ncb *np, struct ccb *cp, struct scsi_cmnd *cmd) in ncr_scatter()
8328 np->ccb = m_calloc_dma(sizeof(struct ccb), "CCB");
8329 if (!np->ccb)
8414 np->ccb->p_ccb = vtobus (np->ccb);
8452 ncr_init_ccb(np, np->ccb);
8504 if (np->ccb)
8505 m_free_dma(np->ccb, sizeof(struct ccb), "CCB");