• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/

Lines Matching defs:ccb

1110 **	xerr_status field of struct ccb.
1122 ** nego_status field of struct ccb.
1152 struct ccb;
1229 ** Pointer to the ccb used for negotiation.
1234 struct ccb * nego_cp;
1350 struct ccb * held_ccb; /* CCB held for QUEUE FULL */
1382 ** This substructure is copied from the ccb to a global address after
1413 ** The virtual address of the ccb containing this header.
1416 struct ccb * cp;
1496 ** During execution of a ccb by the script processor,
1498 ** to this substructure of the ccb.
1532 struct ccb {
1602 struct ccb * link_ccb; /* Host adapter CCB chain */
1608 #define CCB_PHYS(cp,lbl) (cp->p_ccb + offsetof(struct ccb, lbl))
1769 struct ccb *(ccb_done[MAX_DONE]);
1776 struct ccb *ccb; /* Global CCB */
1940 static void ncr_complete (struct ncb *np, struct ccb *cp);
1942 static void ncr_free_ccb (struct ncb *np, struct ccb *cp);
1943 static void ncr_init_ccb (struct ncb *np, struct ccb *cp);
1949 static struct ccb *ncr_get_ccb (struct ncb *np, struct scsi_cmnd *cmd);
1958 static int ncr_prepare_nego(struct ncb *np, struct ccb *cp, u_char *msgptr);
1963 static int ncr_scatter (struct ncb *np, struct ccb *cp, struct scsi_cmnd *cmd);
1965 static void ncr_setsync (struct ncb *np, struct ccb *cp, u_char scntl3, u_char sxfer);
1967 static void ncr_setwide (struct ncb *np, struct ccb *cp, u_char wide, u_char ack);
1973 static void ncr_put_start_queue(struct ncb *np, struct ccb *cp);
2353 ** dsa: Pointer to ccb
2354 ** or xxxxxxFF (no ccb)
2406 ** and copy back the header to the ccb.
2599 ** - struct ccb
2794 ** || SCR_COPY (sizeof(struct ccb *),
3453 *p++ =SCR_COPY (sizeof(struct ccb *));
3670 static void ncr_print_msg(struct ccb *cp, char *label, u_char *msg)
4051 static int ncr_prepare_nego(struct ncb *np, struct ccb *cp, u_char *msgptr)
4115 struct ccb *cp;
4156 ** Assign a ccb / bind cmd.
4159 ** If resetting or no free ccb,
4186 (cp != np->ccb && np->disc && !(tp->usrflag & UF_NODISC)))
4336 ** fill in ccb
4418 struct ccb *cp;
4428 cp = list_entry(qp, struct ccb, link_ccbq);
4436 static void ncr_put_start_queue(struct ncb *np, struct ccb *cp)
4552 struct ccb *cp;
4571 for (found=0, cp=np->ccb; cp; cp=cp->link_ccb) {
4573 ** look for the ccb of this command.
4611 struct ccb *cp;
4668 ** Free allocated ccb(s)
4671 while ((cp=np->ccb->link_ccb) != NULL) {
4672 np->ccb->link_ccb = cp->link_ccb;
4674 printk("%s: shall free an active ccb (host_status=%d)\n",
4678 printk("%s: freeing ccb (%lx)\n", ncr_name(np), (u_long) cp);
4704 if (np->ccb)
4705 m_free_dma(np->ccb, sizeof(struct ccb), "CCB");
4721 void ncr_complete (struct ncb *np, struct ccb *cp)
4752 ** We donnot queue more than 1 ccb per target
4753 ** with negotiation at any time. If this ccb was
4960 ** Free this ccb
4996 static void ncr_ccb_skipped(struct ncb *np, struct ccb *cp)
5001 if (lp && cp != np->ccb) {
5022 struct ccb *cp;
5036 np->ccb_done[j] = (struct ccb *)CCB_DONE_EMPTY;
5052 cp = np->ccb;
5068 struct ccb *cp = np->ccb;
5151 np->ccb_done[i] = (struct ccb *)CCB_DONE_EMPTY;
5381 struct ccb *cp;
5395 for (cp = np->ccb; cp; cp = cp->link_ccb) {
5410 static void ncr_setsync (struct ncb *np, struct ccb *cp, u_char scntl3, u_char sxfer)
5467 static void ncr_setwide (struct ncb *np, struct ccb *cp, u_char wide, u_char ack)
5969 struct ccb *cp;
5973 ** look for ccb and set the status.
5977 cp = np->ccb;
6136 struct ccb *cp;
6203 cp = np->ccb;
6411 static void ncr_sir_to_redo(struct ncb *np, int num, struct ccb *cp)
6417 struct ccb * cp2;
6432 cp2 = list_entry(qp, struct ccb, link_ccbq);
6567 struct ccb *cp=NULL;
6620 ** lookup the ccb
6622 cp = np->ccb;
6996 static struct ccb *ncr_get_ccb(struct ncb *np, struct scsi_cmnd *cmd)
7003 struct ccb *cp = NULL;
7027 cp = list_entry(qp, struct ccb, link_ccbq);
7029 PRINT_ADDR(cmd, "ccb free list corrupted "
7054 cp = np->ccb;
7085 PRINT_ADDR(cmd, "ccb @%p using tag %d.\n", cp, tag);
7100 static void ncr_free_ccb (struct ncb *np, struct ccb *cp)
7106 PRINT_ADDR(cp->cmd, "ccb @%p freeing tag %d.\n", cp, cp->tag);
7134 if (cp != np->ccb)
7158 static void ncr_init_ccb(struct ncb *np, struct ccb *cp)
7163 ** Remember virtual and bus address of this ccb.
7169 ** This allows list_del to work for the default ccb.
7201 struct ccb *cp = NULL;
7206 cp = m_calloc_dma(sizeof(struct ccb), "CCB");
7219 ** Chain into wakeup list and free ccb queue and take it
7222 cp->link_ccb = np->ccb->link_ccb;
7223 np->ccb->link_ccb = cp;
7489 static int ncr_scatter_no_sglist(struct ncb *np, struct ccb *cp, struct scsi_cmnd *cmd)
7511 static int ncr_scatter(struct ncb *np, struct ccb *cp, struct scsi_cmnd *cmd)
7999 ** Too few preallocated ccb(s),
8167 np->ccb = m_calloc_dma(sizeof(struct ccb), "CCB");
8168 if (!np->ccb)
8255 np->ccb->p_ccb = vtobus (np->ccb);
8292 /* Initialize the fixed part of the default ccb. */
8293 ncr_init_ccb(np, np->ccb);
8345 if (np->ccb)
8346 m_free_dma(np->ccb, sizeof(struct ccb), "CCB");