ccb 136 arch/powerpc/include/asm/icswx.h struct coprocessor_completion_block ccb; ccb 53 drivers/bcma/bcma_private.h int bcma_core_chipcommon_b_init(struct bcma_drv_cc_b *ccb); ccb 54 drivers/bcma/bcma_private.h void bcma_core_chipcommon_b_free(struct bcma_drv_cc_b *ccb); ccb 33 drivers/bcma/driver_chipcommon_b.c void bcma_chipco_b_mii_write(struct bcma_drv_cc_b *ccb, u32 offset, u32 value) ccb 35 drivers/bcma/driver_chipcommon_b.c struct bcma_bus *bus = ccb->core->bus; ccb 36 drivers/bcma/driver_chipcommon_b.c void __iomem *mii = ccb->mii; ccb 45 drivers/bcma/driver_chipcommon_b.c int bcma_core_chipcommon_b_init(struct bcma_drv_cc_b *ccb) ccb 47 drivers/bcma/driver_chipcommon_b.c if (ccb->setup_done) ccb 50 drivers/bcma/driver_chipcommon_b.c ccb->setup_done = 1; ccb 51 drivers/bcma/driver_chipcommon_b.c ccb->mii = ioremap_nocache(ccb->core->addr_s[1], BCMA_CORE_SIZE); ccb 52 drivers/bcma/driver_chipcommon_b.c if (!ccb->mii) ccb 58 drivers/bcma/driver_chipcommon_b.c void bcma_core_chipcommon_b_free(struct bcma_drv_cc_b *ccb) ccb 60 drivers/bcma/driver_chipcommon_b.c if (ccb->mii) ccb 61 drivers/bcma/driver_chipcommon_b.c iounmap(ccb->mii); ccb 129 drivers/misc/hpilo.c static int ilo_pkt_enqueue(struct ilo_hwinfo *hw, struct ccb *ccb, ccb 136 drivers/misc/hpilo.c fifobar = ccb->ccb_u1.send_fifobar; ccb 138 drivers/misc/hpilo.c fifobar = ccb->ccb_u3.recv_fifobar; ccb 144 drivers/misc/hpilo.c static int ilo_pkt_dequeue(struct ilo_hwinfo *hw, struct ccb *ccb, ccb 152 drivers/misc/hpilo.c fifobar = ccb->ccb_u1.send_fifobar; ccb 153 drivers/misc/hpilo.c desc = ccb->ccb_u2.send_desc; ccb 155 drivers/misc/hpilo.c fifobar = ccb->ccb_u3.recv_fifobar; ccb 156 drivers/misc/hpilo.c desc = ccb->ccb_u4.recv_desc; ccb 173 drivers/misc/hpilo.c static int ilo_pkt_recv(struct ilo_hwinfo *hw, struct ccb *ccb) ccb 175 drivers/misc/hpilo.c char *fifobar = ccb->ccb_u3.recv_fifobar; ccb 180 drivers/misc/hpilo.c static inline void doorbell_set(struct ccb *ccb) ccb 182 drivers/misc/hpilo.c iowrite8(1, ccb->ccb_u5.db_base); ccb 185 drivers/misc/hpilo.c static inline void doorbell_clr(struct ccb *ccb) ccb 187 drivers/misc/hpilo.c iowrite8(2, ccb->ccb_u5.db_base); ccb 200 drivers/misc/hpilo.c static void ctrl_setup(struct ccb *ccb, int nr_desc, int l2desc_sz) ccb 203 drivers/misc/hpilo.c ccb->send_ctrl = ctrl_set(l2desc_sz, nr_desc-1, nr_desc-1); ccb 204 drivers/misc/hpilo.c ccb->recv_ctrl = ctrl_set(l2desc_sz, nr_desc-1, nr_desc-1); ccb 232 drivers/misc/hpilo.c struct ccb *driver_ccb = &data->driver_ccb; ccb 233 drivers/misc/hpilo.c struct ccb __iomem *device_ccb = data->mapped_ccb; ccb 256 drivers/misc/hpilo.c memset_io(device_ccb, 0, sizeof(struct ccb)); ccb 266 drivers/misc/hpilo.c struct ccb *driver_ccb, *ilo_ccb; ccb 330 drivers/misc/hpilo.c struct ccb *driver_ccb = &data->driver_ccb; ccb 333 drivers/misc/hpilo.c data->mapped_ccb = (struct ccb __iomem *) ccb 335 drivers/misc/hpilo.c memcpy_toio(data->mapped_ccb, &data->ilo_ccb, sizeof(struct ccb)); ccb 355 drivers/misc/hpilo.c struct ccb *driver_ccb = &data->driver_ccb; ccb 374 drivers/misc/hpilo.c static inline int is_channel_reset(struct ccb *ccb) ccb 377 drivers/misc/hpilo.c return FIFOBARTOHANDLE(ccb->ccb_u1.send_fifobar)->reset; ccb 380 drivers/misc/hpilo.c static inline void set_channel_reset(struct ccb *ccb) ccb 383 drivers/misc/hpilo.c FIFOBARTOHANDLE(ccb->ccb_u1.send_fifobar)->reset = 1; ccb 444 drivers/misc/hpilo.c struct ccb *driver_ccb = &data->driver_ccb; ccb 494 drivers/misc/hpilo.c struct ccb *driver_ccb = &data->driver_ccb; ccb 524 drivers/misc/hpilo.c struct ccb *driver_ccb = &data->driver_ccb; ccb 131 drivers/misc/hpilo.h struct ccb driver_ccb; ccb 134 drivers/misc/hpilo.h struct ccb ilo_ccb; ccb 137 drivers/misc/hpilo.h struct ccb __iomem *mapped_ccb; ccb 356 drivers/net/ethernet/brocade/bna/bna.h void bna_rx_dim_update(struct bna_ccb *ccb); ccb 567 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxf->rit[offset] = rxp->cq.ccb->id; ccb 1910 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp->cq.ccb->sw_qpt = (void **) swqpt_mem->kva; ccb 1911 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp->cq.ccb->sw_q = page_mem->kva; ccb 1917 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp->cq.ccb->sw_qpt[i] = kva; ccb 2103 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp->cq.ccb->i_dbell->doorbell_addr = ccb 2119 drivers/net/ethernet/brocade/bna/bna_tx_rx.c (*rxp->cq.ccb->hw_producer_index) = 0; ccb 2120 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp->cq.ccb->producer_index = 0; ccb 2436 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp->cq.ccb = (struct bna_ccb *) ccb_mem[i].kva; ccb 2444 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp->cq.ccb->q_depth = cq_depth; ccb 2445 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp->cq.ccb->cq = &rxp->cq; ccb 2446 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp->cq.ccb->rcb[0] = q0->rcb; ccb 2447 drivers/net/ethernet/brocade/bna/bna_tx_rx.c q0->rcb->ccb = rxp->cq.ccb; ccb 2449 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp->cq.ccb->rcb[1] = q1->rcb; ccb 2450 drivers/net/ethernet/brocade/bna/bna_tx_rx.c q1->rcb->ccb = rxp->cq.ccb; ccb 2452 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp->cq.ccb->hw_producer_index = ccb 2454 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp->cq.ccb->i_dbell = &rxp->cq.ib.door_bell; ccb 2455 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp->cq.ccb->intr_type = rxp->cq.ib.intr_type; ccb 2456 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp->cq.ccb->intr_vector = rxp->cq.ib.intr_vector; ccb 2457 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp->cq.ccb->rx_coalescing_timeo = ccb 2459 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp->cq.ccb->pkt_rate.small_pkt_cnt = 0; ccb 2460 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp->cq.ccb->pkt_rate.large_pkt_cnt = 0; ccb 2461 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp->cq.ccb->bnad = bna->bnad; ccb 2462 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp->cq.ccb->id = i; ccb 2468 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx->ccb_setup_cbfn(bnad, rxp->cq.ccb); ccb 2516 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx->ccb_destroy_cbfn(rx->bna->bnad, rxp->cq.ccb); ccb 2517 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp->cq.ccb = NULL; ccb 2679 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp->cq.ccb->rx_coalescing_timeo = coalescing_timeo; ccb 2695 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna_rx_dim_update(struct bna_ccb *ccb) ccb 2697 drivers/net/ethernet/brocade/bna/bna_tx_rx.c struct bna *bna = ccb->cq->rx->bna; ccb 2702 drivers/net/ethernet/brocade/bna/bna_tx_rx.c if ((ccb->pkt_rate.small_pkt_cnt == 0) && ccb 2703 drivers/net/ethernet/brocade/bna/bna_tx_rx.c (ccb->pkt_rate.large_pkt_cnt == 0)) ccb 2708 drivers/net/ethernet/brocade/bna/bna_tx_rx.c small_rt = ccb->pkt_rate.small_pkt_cnt; ccb 2709 drivers/net/ethernet/brocade/bna/bna_tx_rx.c large_rt = ccb->pkt_rate.large_pkt_cnt; ccb 2735 drivers/net/ethernet/brocade/bna/bna_tx_rx.c ccb->pkt_rate.small_pkt_cnt = 0; ccb 2736 drivers/net/ethernet/brocade/bna/bna_tx_rx.c ccb->pkt_rate.large_pkt_cnt = 0; ccb 2739 drivers/net/ethernet/brocade/bna/bna_tx_rx.c ccb->rx_coalescing_timeo = coalescing_timeo; ccb 2742 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna_ib_coalescing_timeo_set(&ccb->cq->ib, coalescing_timeo); ccb 554 drivers/net/ethernet/brocade/bna/bna_types.h struct bna_ccb *ccb; ccb 636 drivers/net/ethernet/brocade/bna/bna_types.h struct bna_ccb *ccb; ccb 73 drivers/net/ethernet/brocade/bna/bnad.c bnad_cq_cleanup(struct bnad *bnad, struct bna_ccb *ccb) ccb 78 drivers/net/ethernet/brocade/bna/bnad.c for (i = 0; i < ccb->q_depth; i++) { ccb 79 drivers/net/ethernet/brocade/bna/bnad.c cmpl = &((struct bna_cq_entry *)ccb->sw_q)[i]; ccb 519 drivers/net/ethernet/brocade/bna/bnad.c bnad_cq_setup_skb_frags(struct bna_ccb *ccb, struct sk_buff *skb, u32 nvecs) ccb 527 drivers/net/ethernet/brocade/bna/bnad.c cq = ccb->sw_q; ccb 528 drivers/net/ethernet/brocade/bna/bnad.c pi = ccb->producer_index; ccb 531 drivers/net/ethernet/brocade/bna/bnad.c rcb = bna_is_small_rxq(cmpl->rxq_id) ? ccb->rcb[1] : ccb->rcb[0]; ccb 561 drivers/net/ethernet/brocade/bna/bnad.c BNA_QE_INDX_INC(pi, ccb->q_depth); ccb 587 drivers/net/ethernet/brocade/bna/bnad.c bnad_cq_process(struct bnad *bnad, struct bna_ccb *ccb, int budget) ccb 594 drivers/net/ethernet/brocade/bna/bnad.c struct bna_pkt_rate *pkt_rt = &ccb->pkt_rate; ccb 595 drivers/net/ethernet/brocade/bna/bnad.c struct bnad_rx_ctrl *rx_ctrl = ccb->ctrl; ccb 602 drivers/net/ethernet/brocade/bna/bnad.c cq = ccb->sw_q; ccb 605 drivers/net/ethernet/brocade/bna/bnad.c cmpl = &cq[ccb->producer_index]; ccb 620 drivers/net/ethernet/brocade/bna/bnad.c rcb = ccb->rcb[1]; ccb 622 drivers/net/ethernet/brocade/bna/bnad.c rcb = ccb->rcb[0]; ccb 649 drivers/net/ethernet/brocade/bna/bnad.c pi = ccb->producer_index; ccb 651 drivers/net/ethernet/brocade/bna/bnad.c BNA_QE_INDX_INC(pi, ccb->q_depth); ccb 692 drivers/net/ethernet/brocade/bna/bnad.c bnad_cq_setup_skb_frags(ccb, skb, nvecs); ccb 696 drivers/net/ethernet/brocade/bna/bnad.c ccb->bytes_per_intr += totlen; ccb 722 drivers/net/ethernet/brocade/bna/bnad.c cmpl = &cq[ccb->producer_index]; ccb 724 drivers/net/ethernet/brocade/bna/bnad.c BNA_QE_INDX_INC(ccb->producer_index, ccb->q_depth); ccb 729 drivers/net/ethernet/brocade/bna/bnad.c if (likely(test_bit(BNAD_RXQ_STARTED, &ccb->rcb[0]->flags))) ccb 730 drivers/net/ethernet/brocade/bna/bnad.c bna_ib_ack_disable_irq(ccb->i_dbell, packets); ccb 732 drivers/net/ethernet/brocade/bna/bnad.c bnad_rxq_post(bnad, ccb->rcb[0]); ccb 733 drivers/net/ethernet/brocade/bna/bnad.c if (ccb->rcb[1]) ccb 734 drivers/net/ethernet/brocade/bna/bnad.c bnad_rxq_post(bnad, ccb->rcb[1]); ccb 740 drivers/net/ethernet/brocade/bna/bnad.c bnad_netif_rx_schedule_poll(struct bnad *bnad, struct bna_ccb *ccb) ccb 742 drivers/net/ethernet/brocade/bna/bnad.c struct bnad_rx_ctrl *rx_ctrl = (struct bnad_rx_ctrl *)(ccb->ctrl); ccb 755 drivers/net/ethernet/brocade/bna/bnad.c struct bna_ccb *ccb = (struct bna_ccb *)data; ccb 757 drivers/net/ethernet/brocade/bna/bnad.c if (ccb) { ccb 758 drivers/net/ethernet/brocade/bna/bnad.c ((struct bnad_rx_ctrl *)ccb->ctrl)->rx_intr_ctr++; ccb 759 drivers/net/ethernet/brocade/bna/bnad.c bnad_netif_rx_schedule_poll(ccb->bnad, ccb); ccb 839 drivers/net/ethernet/brocade/bna/bnad.c if (rx_ctrl->ccb) ccb 841 drivers/net/ethernet/brocade/bna/bnad.c rx_ctrl->ccb); ccb 1019 drivers/net/ethernet/brocade/bna/bnad.c bnad_cb_ccb_setup(struct bnad *bnad, struct bna_ccb *ccb) ccb 1022 drivers/net/ethernet/brocade/bna/bnad.c (struct bnad_rx_info *)ccb->cq->rx->priv; ccb 1024 drivers/net/ethernet/brocade/bna/bnad.c rx_info->rx_ctrl[ccb->id].ccb = ccb; ccb 1025 drivers/net/ethernet/brocade/bna/bnad.c ccb->ctrl = &rx_info->rx_ctrl[ccb->id]; ccb 1029 drivers/net/ethernet/brocade/bna/bnad.c bnad_cb_ccb_destroy(struct bnad *bnad, struct bna_ccb *ccb) ccb 1032 drivers/net/ethernet/brocade/bna/bnad.c (struct bnad_rx_info *)ccb->cq->rx->priv; ccb 1034 drivers/net/ethernet/brocade/bna/bnad.c rx_info->rx_ctrl[ccb->id].ccb = NULL; ccb 1153 drivers/net/ethernet/brocade/bna/bnad.c struct bna_ccb *ccb; ccb 1159 drivers/net/ethernet/brocade/bna/bnad.c ccb = rx_ctrl->ccb; ccb 1160 drivers/net/ethernet/brocade/bna/bnad.c if (!ccb) ccb 1163 drivers/net/ethernet/brocade/bna/bnad.c clear_bit(BNAD_RXQ_POST_OK, &ccb->rcb[0]->flags); ccb 1165 drivers/net/ethernet/brocade/bna/bnad.c if (ccb->rcb[1]) ccb 1166 drivers/net/ethernet/brocade/bna/bnad.c clear_bit(BNAD_RXQ_POST_OK, &ccb->rcb[1]->flags); ccb 1186 drivers/net/ethernet/brocade/bna/bnad.c if (!rx_ctrl->ccb) ccb 1189 drivers/net/ethernet/brocade/bna/bnad.c bnad = rx_ctrl->ccb->bnad; ccb 1197 drivers/net/ethernet/brocade/bna/bnad.c bnad_cq_cleanup(bnad, rx_ctrl->ccb); ccb 1198 drivers/net/ethernet/brocade/bna/bnad.c bnad_rxq_cleanup(bnad, rx_ctrl->ccb->rcb[0]); ccb 1199 drivers/net/ethernet/brocade/bna/bnad.c if (rx_ctrl->ccb->rcb[1]) ccb 1200 drivers/net/ethernet/brocade/bna/bnad.c bnad_rxq_cleanup(bnad, rx_ctrl->ccb->rcb[1]); ccb 1212 drivers/net/ethernet/brocade/bna/bnad.c struct bna_ccb *ccb; ccb 1218 drivers/net/ethernet/brocade/bna/bnad.c ccb = rx_ctrl->ccb; ccb 1219 drivers/net/ethernet/brocade/bna/bnad.c if (!ccb) ccb 1222 drivers/net/ethernet/brocade/bna/bnad.c clear_bit(BNAD_RXQ_STARTED, &ccb->rcb[0]->flags); ccb 1224 drivers/net/ethernet/brocade/bna/bnad.c if (ccb->rcb[1]) ccb 1225 drivers/net/ethernet/brocade/bna/bnad.c clear_bit(BNAD_RXQ_STARTED, &ccb->rcb[1]->flags); ccb 1235 drivers/net/ethernet/brocade/bna/bnad.c struct bna_ccb *ccb; ccb 1242 drivers/net/ethernet/brocade/bna/bnad.c ccb = rx_ctrl->ccb; ccb 1243 drivers/net/ethernet/brocade/bna/bnad.c if (!ccb) ccb 1249 drivers/net/ethernet/brocade/bna/bnad.c rcb = ccb->rcb[j]; ccb 1567 drivers/net/ethernet/brocade/bna/bnad.c if (rx_info->rx_ctrl[i].ccb == NULL) ccb 1570 drivers/net/ethernet/brocade/bna/bnad.c vector_num = rx_info->rx_ctrl[i].ccb->intr_vector; ccb 1572 drivers/net/ethernet/brocade/bna/bnad.c rx_info->rx_ctrl[i].ccb); ccb 1588 drivers/net/ethernet/brocade/bna/bnad.c vector_num = rx_info->rx_ctrl[i].ccb->intr_vector; ccb 1589 drivers/net/ethernet/brocade/bna/bnad.c sprintf(rx_info->rx_ctrl[i].ccb->name, "%s CQ %d", ccb 1591 drivers/net/ethernet/brocade/bna/bnad.c rx_id + rx_info->rx_ctrl[i].ccb->id); ccb 1594 drivers/net/ethernet/brocade/bna/bnad.c rx_info->rx_ctrl[i].ccb->name, ccb 1595 drivers/net/ethernet/brocade/bna/bnad.c rx_info->rx_ctrl[i].ccb); ccb 1761 drivers/net/ethernet/brocade/bna/bnad.c if (!rx_ctrl->ccb) ccb 1763 drivers/net/ethernet/brocade/bna/bnad.c bna_rx_dim_update(rx_ctrl->ccb); ccb 1869 drivers/net/ethernet/brocade/bna/bnad.c rcvd = bnad_cq_process(bnad, rx_ctrl->ccb, budget); ccb 1878 drivers/net/ethernet/brocade/bna/bnad.c if (rx_ctrl->ccb) ccb 1879 drivers/net/ethernet/brocade/bna/bnad.c bnad_enable_rx_irq_unsafe(rx_ctrl->ccb); ccb 2173 drivers/net/ethernet/brocade/bna/bnad.c if (rx_info->rx_ctrl[0].ccb->intr_type == BNA_INTR_T_MSIX) ccb 2392 drivers/net/ethernet/brocade/bna/bnad.c if (bnad->rx_info[i].rx_ctrl[j].ccb) { ccb 2394 drivers/net/ethernet/brocade/bna/bnad.c rx_ctrl[j].ccb->rcb[0]->rxq->rx_packets; ccb 2396 drivers/net/ethernet/brocade/bna/bnad.c rx_ctrl[j].ccb->rcb[0]->rxq->rx_bytes; ccb 2397 drivers/net/ethernet/brocade/bna/bnad.c if (bnad->rx_info[i].rx_ctrl[j].ccb->rcb[1] && ccb 2398 drivers/net/ethernet/brocade/bna/bnad.c bnad->rx_info[i].rx_ctrl[j].ccb-> ccb 2402 drivers/net/ethernet/brocade/bna/bnad.c ccb->rcb[1]->rxq->rx_packets; ccb 2405 drivers/net/ethernet/brocade/bna/bnad.c ccb->rcb[1]->rxq->rx_bytes; ccb 3405 drivers/net/ethernet/brocade/bna/bnad.c if (rx_ctrl->ccb) ccb 3407 drivers/net/ethernet/brocade/bna/bnad.c rx_ctrl->ccb); ccb 48 drivers/net/ethernet/brocade/bna/bnad.h struct bna_ccb *ccb; ccb 651 drivers/net/ethernet/brocade/bna/bnad_ethtool.c if (bnad->rx_info[i].rx_ctrl[j].ccb && ccb 652 drivers/net/ethernet/brocade/bna/bnad_ethtool.c bnad->rx_info[i].rx_ctrl[j].ccb-> ccb 654 drivers/net/ethernet/brocade/bna/bnad_ethtool.c bnad->rx_info[i].rx_ctrl[j].ccb-> ccb 738 drivers/net/ethernet/brocade/bna/bnad_ethtool.c if (bnad->rx_info[i].rx_ctrl[j].ccb && ccb 739 drivers/net/ethernet/brocade/bna/bnad_ethtool.c bnad->rx_info[i].rx_ctrl[j].ccb->rcb[1] && ccb 740 drivers/net/ethernet/brocade/bna/bnad_ethtool.c bnad->rx_info[i].rx_ctrl[j].ccb->rcb[1]->rxq) ccb 763 drivers/net/ethernet/brocade/bna/bnad_ethtool.c if (bnad->rx_info[i].rx_ctrl[j].ccb && ccb 764 drivers/net/ethernet/brocade/bna/bnad_ethtool.c bnad->rx_info[i].rx_ctrl[j].ccb->rcb[0] && ccb 765 drivers/net/ethernet/brocade/bna/bnad_ethtool.c bnad->rx_info[i].rx_ctrl[j].ccb->rcb[0]->rxq) { ccb 767 drivers/net/ethernet/brocade/bna/bnad_ethtool.c ccb->producer_index; ccb 770 drivers/net/ethernet/brocade/bna/bnad_ethtool.c ccb->hw_producer_index); ccb 788 drivers/net/ethernet/brocade/bna/bnad_ethtool.c if (bnad->rx_info[i].rx_ctrl[j].ccb) { ccb 789 drivers/net/ethernet/brocade/bna/bnad_ethtool.c if (bnad->rx_info[i].rx_ctrl[j].ccb->rcb[0] && ccb 790 drivers/net/ethernet/brocade/bna/bnad_ethtool.c bnad->rx_info[i].rx_ctrl[j].ccb-> ccb 793 drivers/net/ethernet/brocade/bna/bnad_ethtool.c ccb->rcb[0]; ccb 804 drivers/net/ethernet/brocade/bna/bnad_ethtool.c if (bnad->rx_info[i].rx_ctrl[j].ccb->rcb[1] && ccb 805 drivers/net/ethernet/brocade/bna/bnad_ethtool.c bnad->rx_info[i].rx_ctrl[j].ccb-> ccb 808 drivers/net/ethernet/brocade/bna/bnad_ethtool.c ccb->rcb[1]; ccb 760 drivers/sbus/char/oradax.c static void dax_prt_ccbs(struct dax_ccb *ccb, int nelem) ccb 767 drivers/sbus/char/oradax.c ccbp = (u64 *)&ccb[i]; ccb 768 drivers/sbus/char/oradax.c dax_dbg(" %sccb[%d]", ccb[i].hdr.longccb ? "long " : "", i); ccb 162 drivers/scsi/BusLogic.c struct blogic_ccb *ccb = (struct blogic_ccb *) blk_pointer; ccb 165 drivers/scsi/BusLogic.c ccb->allocgrp_head = blkp; ccb 166 drivers/scsi/BusLogic.c ccb->allocgrp_size = blk_size; ccb 168 drivers/scsi/BusLogic.c ccb->status = BLOGIC_CCB_FREE; ccb 169 drivers/scsi/BusLogic.c ccb->adapter = adapter; ccb 170 drivers/scsi/BusLogic.c ccb->dma_handle = (u32) blkp + offset; ccb 172 drivers/scsi/BusLogic.c ccb->callback = blogic_qcompleted_ccb; ccb 173 drivers/scsi/BusLogic.c ccb->base_addr = adapter->fpinfo.base_addr; ccb 175 drivers/scsi/BusLogic.c ccb->next = adapter->free_ccbs; ccb 176 drivers/scsi/BusLogic.c ccb->next_all = adapter->all_ccbs; ccb 177 drivers/scsi/BusLogic.c adapter->free_ccbs = ccb; ccb 178 drivers/scsi/BusLogic.c adapter->all_ccbs = ccb; ccb 180 drivers/scsi/BusLogic.c ccb++; ccb 216 drivers/scsi/BusLogic.c struct blogic_ccb *next_ccb = adapter->all_ccbs, *ccb, *lastccb = NULL; ccb 219 drivers/scsi/BusLogic.c while ((ccb = next_ccb) != NULL) { ccb 220 drivers/scsi/BusLogic.c next_ccb = ccb->next_all; ccb 221 drivers/scsi/BusLogic.c if (ccb->allocgrp_head) { ccb 226 drivers/scsi/BusLogic.c lastccb = ccb; ccb 280 drivers/scsi/BusLogic.c struct blogic_ccb *ccb; ccb 281 drivers/scsi/BusLogic.c ccb = adapter->free_ccbs; ccb 282 drivers/scsi/BusLogic.c if (ccb != NULL) { ccb 283 drivers/scsi/BusLogic.c ccb->serial = ++serial; ccb 284 drivers/scsi/BusLogic.c adapter->free_ccbs = ccb->next; ccb 285 drivers/scsi/BusLogic.c ccb->next = NULL; ccb 289 drivers/scsi/BusLogic.c return ccb; ccb 292 drivers/scsi/BusLogic.c ccb = adapter->free_ccbs; ccb 293 drivers/scsi/BusLogic.c if (ccb == NULL) ccb 295 drivers/scsi/BusLogic.c ccb->serial = ++serial; ccb 296 drivers/scsi/BusLogic.c adapter->free_ccbs = ccb->next; ccb 297 drivers/scsi/BusLogic.c ccb->next = NULL; ccb 298 drivers/scsi/BusLogic.c return ccb; ccb 308 drivers/scsi/BusLogic.c static void blogic_dealloc_ccb(struct blogic_ccb *ccb, int dma_unmap) ccb 310 drivers/scsi/BusLogic.c struct blogic_adapter *adapter = ccb->adapter; ccb 312 drivers/scsi/BusLogic.c if (ccb->command != NULL) ccb 313 drivers/scsi/BusLogic.c scsi_dma_unmap(ccb->command); ccb 315 drivers/scsi/BusLogic.c dma_unmap_single(&adapter->pci_device->dev, ccb->sensedata, ccb 316 drivers/scsi/BusLogic.c ccb->sense_datalen, DMA_FROM_DEVICE); ccb 318 drivers/scsi/BusLogic.c ccb->command = NULL; ccb 319 drivers/scsi/BusLogic.c ccb->status = BLOGIC_CCB_FREE; ccb 320 drivers/scsi/BusLogic.c ccb->next = adapter->free_ccbs; ccb 321 drivers/scsi/BusLogic.c adapter->free_ccbs = ccb; ccb 2595 drivers/scsi/BusLogic.c static void blogic_qcompleted_ccb(struct blogic_ccb *ccb) ccb 2597 drivers/scsi/BusLogic.c struct blogic_adapter *adapter = ccb->adapter; ccb 2599 drivers/scsi/BusLogic.c ccb->status = BLOGIC_CCB_COMPLETE; ccb 2600 drivers/scsi/BusLogic.c ccb->next = NULL; ccb 2602 drivers/scsi/BusLogic.c adapter->firstccb = ccb; ccb 2603 drivers/scsi/BusLogic.c adapter->lastccb = ccb; ccb 2605 drivers/scsi/BusLogic.c adapter->lastccb->next = ccb; ccb 2606 drivers/scsi/BusLogic.c adapter->lastccb = ccb; ccb 2608 drivers/scsi/BusLogic.c adapter->active_cmds[ccb->tgt_id]--; ccb 2702 drivers/scsi/BusLogic.c struct blogic_ccb *ccb = ccb 2703 drivers/scsi/BusLogic.c (struct blogic_ccb *) bus_to_virt(next_inbox->ccb); ccb 2705 drivers/scsi/BusLogic.c if (ccb->status == BLOGIC_CCB_ACTIVE || ccb 2706 drivers/scsi/BusLogic.c ccb->status == BLOGIC_CCB_RESET) { ccb 2711 drivers/scsi/BusLogic.c ccb->comp_code = comp_code; ccb 2712 drivers/scsi/BusLogic.c blogic_qcompleted_ccb(ccb); ccb 2720 drivers/scsi/BusLogic.c blogic_warn("Illegal CCB #%ld status %d in " "Incoming Mailbox\n", adapter, ccb->serial, ccb->status); ccb 2744 drivers/scsi/BusLogic.c struct blogic_ccb *ccb = adapter->firstccb; ccb 2745 drivers/scsi/BusLogic.c struct scsi_cmnd *command = ccb->command; ccb 2746 drivers/scsi/BusLogic.c adapter->firstccb = ccb->next; ccb 2752 drivers/scsi/BusLogic.c if (ccb->opcode == BLOGIC_BDR) { ccb 2753 drivers/scsi/BusLogic.c int tgt_id = ccb->tgt_id; ccb 2755 drivers/scsi/BusLogic.c blogic_warn("Bus Device Reset CCB #%ld to Target " "%d Completed\n", adapter, ccb->serial, tgt_id); ccb 2763 drivers/scsi/BusLogic.c blogic_dealloc_ccb(ccb, 1); ccb 2787 drivers/scsi/BusLogic.c for (ccb = adapter->all_ccbs; ccb != NULL; ccb 2788 drivers/scsi/BusLogic.c ccb = ccb->next_all) ccb 2789 drivers/scsi/BusLogic.c if (ccb->status == BLOGIC_CCB_RESET && ccb 2790 drivers/scsi/BusLogic.c ccb->tgt_id == tgt_id) { ccb 2791 drivers/scsi/BusLogic.c command = ccb->command; ccb 2792 drivers/scsi/BusLogic.c blogic_dealloc_ccb(ccb, 1); ccb 2804 drivers/scsi/BusLogic.c switch (ccb->comp_code) { ccb 2808 drivers/scsi/BusLogic.c blogic_warn("CCB #%ld to Target %d Impossible State\n", adapter, ccb->serial, ccb->tgt_id); ccb 2811 drivers/scsi/BusLogic.c adapter->tgt_stats[ccb->tgt_id] ccb 2813 drivers/scsi/BusLogic.c adapter->tgt_flags[ccb->tgt_id] ccb 2819 drivers/scsi/BusLogic.c adapter, ccb->serial, ccb->tgt_id); ccb 2820 drivers/scsi/BusLogic.c blogic_inc_count(&adapter->tgt_stats[ccb->tgt_id].aborts_done); ccb 2825 drivers/scsi/BusLogic.c ccb->adapter_status, ccb->tgt_status); ccb 2826 drivers/scsi/BusLogic.c if (ccb->adapter_status != BLOGIC_SELECT_TIMEOUT) { ccb 2827 drivers/scsi/BusLogic.c adapter->tgt_stats[ccb->tgt_id] ccb 2832 drivers/scsi/BusLogic.c "Adapter Status %02X " "Target Status %02X\n", adapter, ccb->serial, ccb->tgt_id, command->result, ccb->adapter_status, ccb->tgt_status); ccb 2834 drivers/scsi/BusLogic.c for (i = 0; i < ccb->cdblen; i++) ccb 2835 drivers/scsi/BusLogic.c blogic_notice(" %02X", adapter, ccb->cdb[i]); ccb 2838 drivers/scsi/BusLogic.c for (i = 0; i < ccb->sense_datalen; i++) ccb 2850 drivers/scsi/BusLogic.c if (ccb->cdb[0] == INQUIRY && ccb->cdb[1] == 0 && ccb 2851 drivers/scsi/BusLogic.c ccb->adapter_status == BLOGIC_CMD_CMPLT_NORMAL) { ccb 2853 drivers/scsi/BusLogic.c &adapter->tgt_flags[ccb->tgt_id]; ccb 2863 drivers/scsi/BusLogic.c blogic_dealloc_ccb(ccb, 1); ccb 2966 drivers/scsi/BusLogic.c enum blogic_action action, struct blogic_ccb *ccb) ccb 2972 drivers/scsi/BusLogic.c ccb->status = BLOGIC_CCB_ACTIVE; ccb 2979 drivers/scsi/BusLogic.c next_outbox->ccb = ccb->dma_handle; ccb 2986 drivers/scsi/BusLogic.c adapter->active_cmds[ccb->tgt_id]++; ccb 2987 drivers/scsi/BusLogic.c if (ccb->opcode != BLOGIC_BDR) ccb 2988 drivers/scsi/BusLogic.c adapter->tgt_stats[ccb->tgt_id].cmds_tried++; ccb 3034 drivers/scsi/BusLogic.c struct blogic_ccb *ccb; ccb 3055 drivers/scsi/BusLogic.c ccb = blogic_alloc_ccb(adapter); ccb 3056 drivers/scsi/BusLogic.c if (ccb == NULL) { ccb 3060 drivers/scsi/BusLogic.c ccb = blogic_alloc_ccb(adapter); ccb 3061 drivers/scsi/BusLogic.c if (ccb == NULL) { ccb 3077 drivers/scsi/BusLogic.c ccb->opcode = BLOGIC_INITIATOR_CCB_SG; ccb 3078 drivers/scsi/BusLogic.c ccb->datalen = count * sizeof(struct blogic_sg_seg); ccb 3080 drivers/scsi/BusLogic.c ccb->data = (void *)((unsigned int) ccb->dma_handle + ccb 3081 drivers/scsi/BusLogic.c ((unsigned long) &ccb->sglist - ccb 3082 drivers/scsi/BusLogic.c (unsigned long) ccb)); ccb 3084 drivers/scsi/BusLogic.c ccb->data = ccb->sglist; ccb 3087 drivers/scsi/BusLogic.c ccb->sglist[i].segbytes = sg_dma_len(sg); ccb 3088 drivers/scsi/BusLogic.c ccb->sglist[i].segdata = sg_dma_address(sg); ccb 3091 drivers/scsi/BusLogic.c ccb->opcode = BLOGIC_INITIATOR_CCB; ccb 3092 drivers/scsi/BusLogic.c ccb->datalen = buflen; ccb 3093 drivers/scsi/BusLogic.c ccb->data = 0; ccb 3099 drivers/scsi/BusLogic.c ccb->datadir = BLOGIC_DATAIN_CHECKED; ccb 3106 drivers/scsi/BusLogic.c ccb->datadir = BLOGIC_DATAOUT_CHECKED; ccb 3112 drivers/scsi/BusLogic.c ccb->datadir = BLOGIC_UNCHECKED_TX; ccb 3115 drivers/scsi/BusLogic.c ccb->cdblen = cdblen; ccb 3116 drivers/scsi/BusLogic.c ccb->adapter_status = 0; ccb 3117 drivers/scsi/BusLogic.c ccb->tgt_status = 0; ccb 3118 drivers/scsi/BusLogic.c ccb->tgt_id = tgt_id; ccb 3119 drivers/scsi/BusLogic.c ccb->lun = lun; ccb 3120 drivers/scsi/BusLogic.c ccb->tag_enable = false; ccb 3121 drivers/scsi/BusLogic.c ccb->legacytag_enable = false; ccb 3172 drivers/scsi/BusLogic.c ccb->tag_enable = true; ccb 3173 drivers/scsi/BusLogic.c ccb->queuetag = queuetag; ccb 3175 drivers/scsi/BusLogic.c ccb->legacytag_enable = true; ccb 3176 drivers/scsi/BusLogic.c ccb->legacy_tag = queuetag; ccb 3179 drivers/scsi/BusLogic.c memcpy(ccb->cdb, cdb, cdblen); ccb 3180 drivers/scsi/BusLogic.c ccb->sense_datalen = SCSI_SENSE_BUFFERSIZE; ccb 3181 drivers/scsi/BusLogic.c ccb->command = command; ccb 3183 drivers/scsi/BusLogic.c command->sense_buffer, ccb->sense_datalen, ccb 3188 drivers/scsi/BusLogic.c blogic_dealloc_ccb(ccb, 0); ccb 3191 drivers/scsi/BusLogic.c ccb->sensedata = sense_buf; ccb 3204 drivers/scsi/BusLogic.c if (!blogic_write_outbox(adapter, BLOGIC_MBOX_START, ccb)) { ccb 3210 drivers/scsi/BusLogic.c ccb)) { ccb 3212 drivers/scsi/BusLogic.c blogic_dealloc_ccb(ccb, 1); ccb 3222 drivers/scsi/BusLogic.c ccb->status = BLOGIC_CCB_ACTIVE; ccb 3225 drivers/scsi/BusLogic.c FlashPoint_StartCCB(adapter->cardhandle, ccb); ccb 3231 drivers/scsi/BusLogic.c if (ccb->status == BLOGIC_CCB_COMPLETE) ccb 3250 drivers/scsi/BusLogic.c struct blogic_ccb *ccb; ccb 3257 drivers/scsi/BusLogic.c for (ccb = adapter->all_ccbs; ccb != NULL; ccb = ccb->next_all) ccb 3258 drivers/scsi/BusLogic.c if (ccb->command == command) ccb 3260 drivers/scsi/BusLogic.c if (ccb == NULL) { ccb 3263 drivers/scsi/BusLogic.c } else if (ccb->status == BLOGIC_CCB_COMPLETE) { ccb 3266 drivers/scsi/BusLogic.c } else if (ccb->status == BLOGIC_CCB_RESET) { ccb 3285 drivers/scsi/BusLogic.c blogic_warn("Unable to Abort CCB #%ld to Target %d - Abort Tag Not Supported\n", adapter, ccb->serial, tgt_id); ccb 3288 drivers/scsi/BusLogic.c ccb)) { ccb 3290 drivers/scsi/BusLogic.c adapter, ccb->serial, tgt_id); ccb 3294 drivers/scsi/BusLogic.c blogic_warn("Unable to Abort CCB #%ld to Target %d - No Outgoing Mailboxes\n", adapter, ccb->serial, tgt_id); ccb 3303 drivers/scsi/BusLogic.c ccb->serial, tgt_id); ccb 3305 drivers/scsi/BusLogic.c FlashPoint_AbortCCB(adapter->cardhandle, ccb); ccb 3311 drivers/scsi/BusLogic.c if (ccb->status == BLOGIC_CCB_COMPLETE) ccb 3326 drivers/scsi/BusLogic.c struct blogic_ccb *ccb; ccb 3344 drivers/scsi/BusLogic.c for (ccb = adapter->all_ccbs; ccb != NULL; ccb = ccb->next_all) ccb 3345 drivers/scsi/BusLogic.c if (ccb->status == BLOGIC_CCB_ACTIVE) ccb 3346 drivers/scsi/BusLogic.c blogic_dealloc_ccb(ccb, 1); ccb 865 drivers/scsi/BusLogic.h u32 ccb; /* Bytes 0-3 */ ccb 875 drivers/scsi/BusLogic.h u32 ccb; /* Bytes 0-3 */ ccb 64 drivers/scsi/aha1542.c struct ccb *ccb; ccb 270 drivers/scsi/aha1542.c struct ccb *ccb = aha1542->ccb; ccb 329 drivers/scsi/aha1542.c mbo = (scsi2int(mb[mbi].ccbptr) - (unsigned long)aha1542->ccb_handle) / sizeof(struct ccb); ccb 335 drivers/scsi/aha1542.c if (ccb[mbo].tarstat | ccb[mbo].hastat) ccb 337 drivers/scsi/aha1542.c ccb[mbo].tarstat + ((int) ccb[mbo].hastat << 16), mb[mbi].status); ccb 352 drivers/scsi/aha1542.c shost_printk(KERN_WARNING, sh, "tarstat=%x, hastat=%x idlun=%x ccb#=%d\n", ccb[mbo].tarstat, ccb 353 drivers/scsi/aha1542.c ccb[mbo].hastat, ccb[mbo].idlun, mbo); ccb 361 drivers/scsi/aha1542.c if (ccb[mbo].tarstat == 2) ccb 362 drivers/scsi/aha1542.c memcpy(tmp_cmd->sense_buffer, &ccb[mbo].cdb[ccb[mbo].cdblen], ccb 371 drivers/scsi/aha1542.c errstatus = makecode(ccb[mbo].hastat, ccb[mbo].tarstat); ccb 378 drivers/scsi/aha1542.c ccb[mbo].hastat, ccb[mbo].tarstat); ccb 379 drivers/scsi/aha1542.c if (ccb[mbo].tarstat == 2) ccb 380 drivers/scsi/aha1542.c print_hex_dump_bytes("sense: ", DUMP_PREFIX_NONE, &ccb[mbo].cdb[ccb[mbo].cdblen], 12); ccb 403 drivers/scsi/aha1542.c struct ccb *ccb = aha1542->ccb; ccb 465 drivers/scsi/aha1542.c any2scsi(mb[mbo].ccbptr, aha1542->ccb_handle + mbo * sizeof(*ccb)); ccb 467 drivers/scsi/aha1542.c memset(&ccb[mbo], 0, sizeof(struct ccb)); ccb 469 drivers/scsi/aha1542.c ccb[mbo].cdblen = cmd->cmd_len; ccb 477 drivers/scsi/aha1542.c memcpy(ccb[mbo].cdb, cmd->cmnd, ccb[mbo].cdblen); ccb 483 drivers/scsi/aha1542.c ccb[mbo].op = 2; /* SCSI Initiator Command w/scatter-gather */ ccb 488 drivers/scsi/aha1542.c any2scsi(ccb[mbo].datalen, sg_count * sizeof(struct chain)); ccb 489 drivers/scsi/aha1542.c any2scsi(ccb[mbo].dataptr, acmd->chain_handle); ccb 495 drivers/scsi/aha1542.c ccb[mbo].op = 0; /* SCSI Initiator Command */ ccb 496 drivers/scsi/aha1542.c any2scsi(ccb[mbo].datalen, 0); ccb 497 drivers/scsi/aha1542.c any2scsi(ccb[mbo].dataptr, 0); ccb 499 drivers/scsi/aha1542.c ccb[mbo].idlun = (target & 7) << 5 | direction | (lun & 7); /*SCSI Target Id */ ccb 500 drivers/scsi/aha1542.c ccb[mbo].rsalen = 16; ccb 501 drivers/scsi/aha1542.c ccb[mbo].linkptr[0] = ccb[mbo].linkptr[1] = ccb[mbo].linkptr[2] = 0; ccb 502 drivers/scsi/aha1542.c ccb[mbo].commlinkid = 0; ccb 505 drivers/scsi/aha1542.c print_hex_dump_bytes("sending: ", DUMP_PREFIX_NONE, &ccb[mbo], sizeof(ccb[mbo]) - 10); ccb 531 drivers/scsi/aha1542.c aha1542->ccb_handle + i * sizeof(struct ccb)); ccb 778 drivers/scsi/aha1542.c aha1542->ccb = dma_alloc_coherent(pdev, ccb 779 drivers/scsi/aha1542.c AHA1542_MAILBOXES * sizeof(struct ccb), ccb 781 drivers/scsi/aha1542.c if (!aha1542->ccb) ccb 814 drivers/scsi/aha1542.c dma_free_coherent(pdev, AHA1542_MAILBOXES * sizeof(struct ccb), ccb 815 drivers/scsi/aha1542.c aha1542->ccb, aha1542->ccb_handle); ccb 835 drivers/scsi/aha1542.c dma_free_coherent(dev, AHA1542_MAILBOXES * sizeof(struct ccb), ccb 836 drivers/scsi/aha1542.c aha1542->ccb, aha1542->ccb_handle); ccb 861 drivers/scsi/aha1542.c struct ccb *ccb = aha1542->ccb; ccb 886 drivers/scsi/aha1542.c any2scsi(mb[mbo].ccbptr, aha1542->ccb_handle + mbo * sizeof(*ccb)); ccb 888 drivers/scsi/aha1542.c memset(&ccb[mbo], 0, sizeof(struct ccb)); ccb 890 drivers/scsi/aha1542.c ccb[mbo].op = 0x81; /* BUS DEVICE RESET */ ccb 892 drivers/scsi/aha1542.c ccb[mbo].idlun = (target & 7) << 5 | (lun & 7); /*SCSI Target Id */ ccb 894 drivers/scsi/aha1542.c ccb[mbo].linkptr[0] = ccb[mbo].linkptr[1] = ccb[mbo].linkptr[2] = 0; ccb 895 drivers/scsi/aha1542.c ccb[mbo].commlinkid = 0; ccb 1427 drivers/scsi/aic7xxx/aic79xx.h struct cam_sim *sim, union ccb *ccb); ccb 1429 drivers/scsi/aic7xxx/aic79xx.h struct cam_sim *sim, union ccb *ccb, ccb 9266 drivers/scsi/aic7xxx/aic79xx_core.c xpt_done((union ccb *)inot); ccb 10226 drivers/scsi/aic7xxx/aic79xx_core.c ahd_find_tmode_devs(struct ahd_softc *ahd, struct cam_sim *sim, union ccb *ccb, ccb 10239 drivers/scsi/aic7xxx/aic79xx_core.c if (ccb->ccb_h.target_id == CAM_TARGET_WILDCARD ccb 10240 drivers/scsi/aic7xxx/aic79xx_core.c && ccb->ccb_h.target_lun == CAM_LUN_WILDCARD) { ccb 10247 drivers/scsi/aic7xxx/aic79xx_core.c if (ccb->ccb_h.target_id >= max_id) ccb 10250 drivers/scsi/aic7xxx/aic79xx_core.c if (ccb->ccb_h.target_lun >= AHD_NUM_LUNS) ccb 10253 drivers/scsi/aic7xxx/aic79xx_core.c *tstate = ahd->enabled_targets[ccb->ccb_h.target_id]; ccb 10257 drivers/scsi/aic7xxx/aic79xx_core.c (*tstate)->enabled_luns[ccb->ccb_h.target_lun]; ccb 10267 drivers/scsi/aic7xxx/aic79xx_core.c ahd_handle_en_lun(struct ahd_softc *ahd, struct cam_sim *sim, union ccb *ccb) ccb 10280 drivers/scsi/aic7xxx/aic79xx_core.c status = ahd_find_tmode_devs(ahd, sim, ccb, &tstate, &lstate, ccb 10284 drivers/scsi/aic7xxx/aic79xx_core.c ccb->ccb_h.status = status; ccb 10292 drivers/scsi/aic7xxx/aic79xx_core.c if (ccb->ccb_h.target_id != our_id) { ccb 10318 drivers/scsi/aic7xxx/aic79xx_core.c ccb->ccb_h.status = status; ccb 10327 drivers/scsi/aic7xxx/aic79xx_core.c && ccb->ccb_h.target_id != CAM_TARGET_WILDCARD) { ccb 10333 drivers/scsi/aic7xxx/aic79xx_core.c ccb->ccb_h.status = CAM_BUSY; ccb 10345 drivers/scsi/aic7xxx/aic79xx_core.c cel = &ccb->cel; ccb 10346 drivers/scsi/aic7xxx/aic79xx_core.c target = ccb->ccb_h.target_id; ccb 10347 drivers/scsi/aic7xxx/aic79xx_core.c lun = ccb->ccb_h.target_lun; ccb 10358 drivers/scsi/aic7xxx/aic79xx_core.c xpt_print_path(ccb->ccb_h.path); ccb 10360 drivers/scsi/aic7xxx/aic79xx_core.c ccb->ccb_h.status = CAM_LUN_ALRDY_ENA; ccb 10370 drivers/scsi/aic7xxx/aic79xx_core.c ccb->ccb_h.status = CAM_REQ_INVALID; ccb 10382 drivers/scsi/aic7xxx/aic79xx_core.c xpt_print_path(ccb->ccb_h.path); ccb 10384 drivers/scsi/aic7xxx/aic79xx_core.c ccb->ccb_h.status = CAM_RESRC_UNAVAIL; ccb 10390 drivers/scsi/aic7xxx/aic79xx_core.c xpt_print_path(ccb->ccb_h.path); ccb 10392 drivers/scsi/aic7xxx/aic79xx_core.c ccb->ccb_h.status = CAM_RESRC_UNAVAIL; ccb 10396 drivers/scsi/aic7xxx/aic79xx_core.c xpt_path_path_id(ccb->ccb_h.path), ccb 10397 drivers/scsi/aic7xxx/aic79xx_core.c xpt_path_target_id(ccb->ccb_h.path), ccb 10398 drivers/scsi/aic7xxx/aic79xx_core.c xpt_path_lun_id(ccb->ccb_h.path)); ccb 10401 drivers/scsi/aic7xxx/aic79xx_core.c xpt_print_path(ccb->ccb_h.path); ccb 10403 drivers/scsi/aic7xxx/aic79xx_core.c ccb->ccb_h.status = CAM_RESRC_UNAVAIL; ccb 10468 drivers/scsi/aic7xxx/aic79xx_core.c ccb->ccb_h.status = CAM_REQ_CMP; ccb 10469 drivers/scsi/aic7xxx/aic79xx_core.c xpt_print_path(ccb->ccb_h.path); ccb 10476 drivers/scsi/aic7xxx/aic79xx_core.c ccb->ccb_h.status = CAM_LUN_INVALID; ccb 10482 drivers/scsi/aic7xxx/aic79xx_core.c ccb->ccb_h.status = CAM_REQ_CMP; ccb 10488 drivers/scsi/aic7xxx/aic79xx_core.c && !xpt_path_comp(ccbh->path, ccb->ccb_h.path)){ ccb 10490 drivers/scsi/aic7xxx/aic79xx_core.c ccb->ccb_h.status = CAM_REQ_INVALID; ccb 10498 drivers/scsi/aic7xxx/aic79xx_core.c ccb->ccb_h.status = CAM_REQ_INVALID; ccb 10503 drivers/scsi/aic7xxx/aic79xx_core.c ccb->ccb_h.status = CAM_REQ_INVALID; ccb 10506 drivers/scsi/aic7xxx/aic79xx_core.c if (ccb->ccb_h.status != CAM_REQ_CMP) { ccb 10511 drivers/scsi/aic7xxx/aic79xx_core.c xpt_print_path(ccb->ccb_h.path); ccb 10763 drivers/scsi/aic7xxx/aic79xx_core.c ahd_freeze_ccb((union ccb *)atio); ccb 10766 drivers/scsi/aic7xxx/aic79xx_core.c xpt_done((union ccb*)atio); ccb 1238 drivers/scsi/aic7xxx/aic7xxx.h struct cam_sim *sim, union ccb *ccb); ccb 1240 drivers/scsi/aic7xxx/aic7xxx.h struct cam_sim *sim, union ccb *ccb, ccb 6784 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_done((union ccb *)inot); ccb 7319 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_find_tmode_devs(struct ahc_softc *ahc, struct cam_sim *sim, union ccb *ccb, ccb 7332 drivers/scsi/aic7xxx/aic7xxx_core.c if (ccb->ccb_h.target_id == CAM_TARGET_WILDCARD ccb 7333 drivers/scsi/aic7xxx/aic7xxx_core.c && ccb->ccb_h.target_lun == CAM_LUN_WILDCARD) { ccb 7340 drivers/scsi/aic7xxx/aic7xxx_core.c if (ccb->ccb_h.target_id >= max_id) ccb 7343 drivers/scsi/aic7xxx/aic7xxx_core.c if (ccb->ccb_h.target_lun >= AHC_NUM_LUNS) ccb 7346 drivers/scsi/aic7xxx/aic7xxx_core.c *tstate = ahc->enabled_targets[ccb->ccb_h.target_id]; ccb 7350 drivers/scsi/aic7xxx/aic7xxx_core.c (*tstate)->enabled_luns[ccb->ccb_h.target_lun]; ccb 7360 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_handle_en_lun(struct ahc_softc *ahc, struct cam_sim *sim, union ccb *ccb) ccb 7374 drivers/scsi/aic7xxx/aic7xxx_core.c status = ahc_find_tmode_devs(ahc, sim, ccb, &tstate, &lstate, ccb 7378 drivers/scsi/aic7xxx/aic7xxx_core.c ccb->ccb_h.status = status; ccb 7387 drivers/scsi/aic7xxx/aic7xxx_core.c if (ccb->ccb_h.target_id != our_id) { ccb 7438 drivers/scsi/aic7xxx/aic7xxx_core.c ccb->ccb_h.status = status; ccb 7447 drivers/scsi/aic7xxx/aic7xxx_core.c && ccb->ccb_h.target_id != CAM_TARGET_WILDCARD) { ccb 7454 drivers/scsi/aic7xxx/aic7xxx_core.c ccb->ccb_h.status = CAM_BUSY; ccb 7477 drivers/scsi/aic7xxx/aic7xxx_core.c ccb->ccb_h.status = CAM_FUNC_NOTAVAIL; ccb 7483 drivers/scsi/aic7xxx/aic7xxx_core.c cel = &ccb->cel; ccb 7484 drivers/scsi/aic7xxx/aic7xxx_core.c target = ccb->ccb_h.target_id; ccb 7485 drivers/scsi/aic7xxx/aic7xxx_core.c lun = ccb->ccb_h.target_lun; ccb 7496 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_print_path(ccb->ccb_h.path); ccb 7498 drivers/scsi/aic7xxx/aic7xxx_core.c ccb->ccb_h.status = CAM_LUN_ALRDY_ENA; ccb 7508 drivers/scsi/aic7xxx/aic7xxx_core.c ccb->ccb_h.status = CAM_REQ_INVALID; ccb 7520 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_print_path(ccb->ccb_h.path); ccb 7522 drivers/scsi/aic7xxx/aic7xxx_core.c ccb->ccb_h.status = CAM_RESRC_UNAVAIL; ccb 7528 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_print_path(ccb->ccb_h.path); ccb 7530 drivers/scsi/aic7xxx/aic7xxx_core.c ccb->ccb_h.status = CAM_RESRC_UNAVAIL; ccb 7534 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_path_path_id(ccb->ccb_h.path), ccb 7535 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_path_target_id(ccb->ccb_h.path), ccb 7536 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_path_lun_id(ccb->ccb_h.path)); ccb 7539 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_print_path(ccb->ccb_h.path); ccb 7541 drivers/scsi/aic7xxx/aic7xxx_core.c ccb->ccb_h.status = CAM_RESRC_UNAVAIL; ccb 7613 drivers/scsi/aic7xxx/aic7xxx_core.c ccb->ccb_h.status = CAM_REQ_CMP; ccb 7614 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_print_path(ccb->ccb_h.path); ccb 7621 drivers/scsi/aic7xxx/aic7xxx_core.c ccb->ccb_h.status = CAM_LUN_INVALID; ccb 7627 drivers/scsi/aic7xxx/aic7xxx_core.c ccb->ccb_h.status = CAM_REQ_CMP; ccb 7633 drivers/scsi/aic7xxx/aic7xxx_core.c && !xpt_path_comp(ccbh->path, ccb->ccb_h.path)){ ccb 7635 drivers/scsi/aic7xxx/aic7xxx_core.c ccb->ccb_h.status = CAM_REQ_INVALID; ccb 7643 drivers/scsi/aic7xxx/aic7xxx_core.c ccb->ccb_h.status = CAM_REQ_INVALID; ccb 7648 drivers/scsi/aic7xxx/aic7xxx_core.c ccb->ccb_h.status = CAM_REQ_INVALID; ccb 7651 drivers/scsi/aic7xxx/aic7xxx_core.c if (ccb->ccb_h.status != CAM_REQ_CMP) { ccb 7656 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_print_path(ccb->ccb_h.path); ccb 7930 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_freeze_ccb((union ccb *)atio); ccb 7933 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_done((union ccb*)atio); ccb 1248 drivers/scsi/arcmsr/arcmsr_hba.c static void arcmsr_pci_unmap_dma(struct CommandControlBlock *ccb) ccb 1250 drivers/scsi/arcmsr/arcmsr_hba.c struct scsi_cmnd *pcmd = ccb->pcmd; ccb 1255 drivers/scsi/arcmsr/arcmsr_hba.c static void arcmsr_ccb_complete(struct CommandControlBlock *ccb) ccb 1257 drivers/scsi/arcmsr/arcmsr_hba.c struct AdapterControlBlock *acb = ccb->acb; ccb 1258 drivers/scsi/arcmsr/arcmsr_hba.c struct scsi_cmnd *pcmd = ccb->pcmd; ccb 1261 drivers/scsi/arcmsr/arcmsr_hba.c arcmsr_pci_unmap_dma(ccb); ccb 1262 drivers/scsi/arcmsr/arcmsr_hba.c ccb->startdone = ARCMSR_CCB_DONE; ccb 1264 drivers/scsi/arcmsr/arcmsr_hba.c list_add_tail(&ccb->list, &acb->ccb_free_list); ccb 1269 drivers/scsi/arcmsr/arcmsr_hba.c static void arcmsr_report_sense_info(struct CommandControlBlock *ccb) ccb 1272 drivers/scsi/arcmsr/arcmsr_hba.c struct scsi_cmnd *pcmd = ccb->pcmd; ccb 1280 drivers/scsi/arcmsr/arcmsr_hba.c memcpy(sensebuffer, ccb->arcmsr_cdb.SenseData, sense_data_length); ccb 1329 drivers/scsi/arcmsr/arcmsr_hba.c struct CommandControlBlock *ccb, bool error) ccb 1332 drivers/scsi/arcmsr/arcmsr_hba.c id = ccb->pcmd->device->id; ccb 1333 drivers/scsi/arcmsr/arcmsr_hba.c lun = ccb->pcmd->device->lun; ccb 1337 drivers/scsi/arcmsr/arcmsr_hba.c ccb->pcmd->result = DID_OK << 16; ccb 1338 drivers/scsi/arcmsr/arcmsr_hba.c arcmsr_ccb_complete(ccb); ccb 1340 drivers/scsi/arcmsr/arcmsr_hba.c switch (ccb->arcmsr_cdb.DeviceStatus) { ccb 1343 drivers/scsi/arcmsr/arcmsr_hba.c ccb->pcmd->result = DID_NO_CONNECT << 16; ccb 1344 drivers/scsi/arcmsr/arcmsr_hba.c arcmsr_ccb_complete(ccb); ccb 1352 drivers/scsi/arcmsr/arcmsr_hba.c ccb->pcmd->result = DID_BAD_TARGET << 16; ccb 1353 drivers/scsi/arcmsr/arcmsr_hba.c arcmsr_ccb_complete(ccb); ccb 1359 drivers/scsi/arcmsr/arcmsr_hba.c arcmsr_report_sense_info(ccb); ccb 1360 drivers/scsi/arcmsr/arcmsr_hba.c arcmsr_ccb_complete(ccb); ccb 1371 drivers/scsi/arcmsr/arcmsr_hba.c , ccb->arcmsr_cdb.DeviceStatus); ccb 1373 drivers/scsi/arcmsr/arcmsr_hba.c ccb->pcmd->result = DID_NO_CONNECT << 16; ccb 1374 drivers/scsi/arcmsr/arcmsr_hba.c arcmsr_ccb_complete(ccb); ccb 1534 drivers/scsi/arcmsr/arcmsr_hba.c struct CommandControlBlock *ccb; ccb 1538 drivers/scsi/arcmsr/arcmsr_hba.c ccb = acb->pccb_pool[i]; ccb 1539 drivers/scsi/arcmsr/arcmsr_hba.c if (ccb->startdone == ARCMSR_CCB_START) { ccb 1540 drivers/scsi/arcmsr/arcmsr_hba.c ccb->pcmd->result = DID_NO_CONNECT << 16; ccb 1541 drivers/scsi/arcmsr/arcmsr_hba.c arcmsr_pci_unmap_dma(ccb); ccb 1542 drivers/scsi/arcmsr/arcmsr_hba.c ccb->pcmd->scsi_done(ccb->pcmd); ccb 1627 drivers/scsi/arcmsr/arcmsr_hba.c struct CommandControlBlock *ccb = acb->pccb_pool[i]; ccb 1628 drivers/scsi/arcmsr/arcmsr_hba.c if (ccb->startdone == ARCMSR_CCB_START) { ccb 1629 drivers/scsi/arcmsr/arcmsr_hba.c ccb->startdone = ARCMSR_CCB_ABORTED; ccb 1630 drivers/scsi/arcmsr/arcmsr_hba.c ccb->pcmd->result = DID_ABORT << 16; ccb 1631 drivers/scsi/arcmsr/arcmsr_hba.c arcmsr_ccb_complete(ccb); ccb 1725 drivers/scsi/arcmsr/arcmsr_hba.c struct CommandControlBlock *ccb, struct scsi_cmnd *pcmd) ccb 1727 drivers/scsi/arcmsr/arcmsr_hba.c struct ARCMSR_CDB *arcmsr_cdb = (struct ARCMSR_CDB *)&ccb->arcmsr_cdb; ccb 1735 drivers/scsi/arcmsr/arcmsr_hba.c ccb->pcmd = pcmd; ccb 1775 drivers/scsi/arcmsr/arcmsr_hba.c ccb->arc_cdb_size = arccdbsize; ccb 1779 drivers/scsi/arcmsr/arcmsr_hba.c static void arcmsr_post_ccb(struct AdapterControlBlock *acb, struct CommandControlBlock *ccb) ccb 1781 drivers/scsi/arcmsr/arcmsr_hba.c uint32_t cdb_phyaddr = ccb->cdb_phyaddr; ccb 1782 drivers/scsi/arcmsr/arcmsr_hba.c struct ARCMSR_CDB *arcmsr_cdb = (struct ARCMSR_CDB *)&ccb->arcmsr_cdb; ccb 1784 drivers/scsi/arcmsr/arcmsr_hba.c ccb->startdone = ARCMSR_CCB_START; ccb 1819 drivers/scsi/arcmsr/arcmsr_hba.c arc_cdb_size = (ccb->arc_cdb_size > 0x300) ? 0x300 : ccb->arc_cdb_size; ccb 1821 drivers/scsi/arcmsr/arcmsr_hba.c writel(upper_32_bits(ccb->cdb_phyaddr), &phbcmu->inbound_queueport_high); ccb 1835 drivers/scsi/arcmsr/arcmsr_hba.c pinbound_srb->addressHigh = upper_32_bits(ccb->cdb_phyaddr); ccb 1837 drivers/scsi/arcmsr/arcmsr_hba.c pinbound_srb->length = ccb->arc_cdb_size >> 2; ccb 1852 drivers/scsi/arcmsr/arcmsr_hba.c arc_cdb_size = (ccb->arc_cdb_size > 0x300) ? 0x300 : ccb->arc_cdb_size; ccb 1853 drivers/scsi/arcmsr/arcmsr_hba.c ccb_post_stamp = (ccb->smid | ((arc_cdb_size - 1) >> 6)); ccb 2414 drivers/scsi/arcmsr/arcmsr_hba.c struct CommandControlBlock *ccb; ccb 2430 drivers/scsi/arcmsr/arcmsr_hba.c ccb = container_of(arcmsr_cdb, struct CommandControlBlock, ccb 2435 drivers/scsi/arcmsr/arcmsr_hba.c arcmsr_drain_donequeue(acb, ccb, error); ccb 2452 drivers/scsi/arcmsr/arcmsr_hba.c struct CommandControlBlock *ccb; ccb 2476 drivers/scsi/arcmsr/arcmsr_hba.c ccb = container_of(arcmsr_cdb, ccb 2480 drivers/scsi/arcmsr/arcmsr_hba.c arcmsr_drain_donequeue(acb, ccb, error); ccb 2497 drivers/scsi/arcmsr/arcmsr_hba.c struct CommandControlBlock *ccb; ccb 2505 drivers/scsi/arcmsr/arcmsr_hba.c ccb = acb->pccb_pool[cmdSMID]; ccb 2508 drivers/scsi/arcmsr/arcmsr_hba.c arcmsr_drain_donequeue(acb, ccb, error); ccb 3024 drivers/scsi/arcmsr/arcmsr_hba.c struct CommandControlBlock *ccb = NULL; ccb 3028 drivers/scsi/arcmsr/arcmsr_hba.c ccb = list_entry(head->next, struct CommandControlBlock, list); ccb 3029 drivers/scsi/arcmsr/arcmsr_hba.c list_del_init(&ccb->list); ccb 3035 drivers/scsi/arcmsr/arcmsr_hba.c return ccb; ccb 3093 drivers/scsi/arcmsr/arcmsr_hba.c struct CommandControlBlock *ccb; ccb 3109 drivers/scsi/arcmsr/arcmsr_hba.c ccb = arcmsr_get_freeccb(acb); ccb 3110 drivers/scsi/arcmsr/arcmsr_hba.c if (!ccb) ccb 3112 drivers/scsi/arcmsr/arcmsr_hba.c if (arcmsr_build_ccb( acb, ccb, cmd ) == FAILED) { ccb 3117 drivers/scsi/arcmsr/arcmsr_hba.c arcmsr_post_ccb(acb, ccb); ccb 3309 drivers/scsi/arcmsr/arcmsr_hba.c struct CommandControlBlock *ccb; ccb 3338 drivers/scsi/arcmsr/arcmsr_hba.c ccb = container_of(arcmsr_cdb, struct CommandControlBlock, arcmsr_cdb); ccb 3339 drivers/scsi/arcmsr/arcmsr_hba.c poll_ccb_done |= (ccb == poll_ccb) ? 1 : 0; ccb 3340 drivers/scsi/arcmsr/arcmsr_hba.c if ((ccb->acb != acb) || (ccb->startdone != ARCMSR_CCB_START)) { ccb 3341 drivers/scsi/arcmsr/arcmsr_hba.c if ((ccb->startdone == ARCMSR_CCB_ABORTED) || (ccb == poll_ccb)) { ccb 3345 drivers/scsi/arcmsr/arcmsr_hba.c , ccb->pcmd->device->id ccb 3346 drivers/scsi/arcmsr/arcmsr_hba.c , (u32)ccb->pcmd->device->lun ccb 3347 drivers/scsi/arcmsr/arcmsr_hba.c , ccb); ccb 3348 drivers/scsi/arcmsr/arcmsr_hba.c ccb->pcmd->result = DID_ABORT << 16; ccb 3349 drivers/scsi/arcmsr/arcmsr_hba.c arcmsr_ccb_complete(ccb); ccb 3356 drivers/scsi/arcmsr/arcmsr_hba.c , ccb ccb 3361 drivers/scsi/arcmsr/arcmsr_hba.c arcmsr_report_ccb_state(acb, ccb, error); ccb 3371 drivers/scsi/arcmsr/arcmsr_hba.c struct CommandControlBlock *ccb; ccb 3407 drivers/scsi/arcmsr/arcmsr_hba.c ccb = container_of(arcmsr_cdb, struct CommandControlBlock, arcmsr_cdb); ccb 3408 drivers/scsi/arcmsr/arcmsr_hba.c poll_ccb_done |= (ccb == poll_ccb) ? 1 : 0; ccb 3409 drivers/scsi/arcmsr/arcmsr_hba.c if ((ccb->acb != acb) || (ccb->startdone != ARCMSR_CCB_START)) { ccb 3410 drivers/scsi/arcmsr/arcmsr_hba.c if ((ccb->startdone == ARCMSR_CCB_ABORTED) || (ccb == poll_ccb)) { ccb 3414 drivers/scsi/arcmsr/arcmsr_hba.c ,ccb->pcmd->device->id ccb 3415 drivers/scsi/arcmsr/arcmsr_hba.c ,(u32)ccb->pcmd->device->lun ccb 3416 drivers/scsi/arcmsr/arcmsr_hba.c ,ccb); ccb 3417 drivers/scsi/arcmsr/arcmsr_hba.c ccb->pcmd->result = DID_ABORT << 16; ccb 3418 drivers/scsi/arcmsr/arcmsr_hba.c arcmsr_ccb_complete(ccb); ccb 3425 drivers/scsi/arcmsr/arcmsr_hba.c , ccb ccb 3430 drivers/scsi/arcmsr/arcmsr_hba.c arcmsr_report_ccb_state(acb, ccb, error); ccb 4335 drivers/scsi/arcmsr/arcmsr_hba.c struct CommandControlBlock *ccb; ccb 4349 drivers/scsi/arcmsr/arcmsr_hba.c ccb = acb->pccb_pool[i]; ccb 4350 drivers/scsi/arcmsr/arcmsr_hba.c if (ccb->startdone == ARCMSR_CCB_START) { ccb 4351 drivers/scsi/arcmsr/arcmsr_hba.c scsi_dma_unmap(ccb->pcmd); ccb 4352 drivers/scsi/arcmsr/arcmsr_hba.c ccb->startdone = ARCMSR_CCB_DONE; ccb 4353 drivers/scsi/arcmsr/arcmsr_hba.c ccb->ccb_flags = 0; ccb 4355 drivers/scsi/arcmsr/arcmsr_hba.c list_add_tail(&ccb->list, &acb->ccb_free_list); ccb 4426 drivers/scsi/arcmsr/arcmsr_hba.c struct CommandControlBlock *ccb) ccb 4429 drivers/scsi/arcmsr/arcmsr_hba.c rtn = arcmsr_polling_ccbdone(acb, ccb); ccb 4461 drivers/scsi/arcmsr/arcmsr_hba.c struct CommandControlBlock *ccb = acb->pccb_pool[i]; ccb 4462 drivers/scsi/arcmsr/arcmsr_hba.c if (ccb->startdone == ARCMSR_CCB_START && ccb->pcmd == cmd) { ccb 4463 drivers/scsi/arcmsr/arcmsr_hba.c ccb->startdone = ARCMSR_CCB_ABORTED; ccb 4464 drivers/scsi/arcmsr/arcmsr_hba.c rtn = arcmsr_abort_one_cmd(acb, ccb); ccb 65 drivers/scsi/megaraid/mega_common.h caddr_t ccb; ccb 952 drivers/scsi/megaraid/megaraid_mbox.c mbox_ccb_t *ccb; ccb 1040 drivers/scsi/megaraid/megaraid_mbox.c ccb = raid_dev->ccb_list + i; ccb 1042 drivers/scsi/megaraid/megaraid_mbox.c ccb->mbox = (mbox_t *)(mbox_pci_blk[i].vaddr + 16); ccb 1043 drivers/scsi/megaraid/megaraid_mbox.c ccb->raw_mbox = (uint8_t *)ccb->mbox; ccb 1044 drivers/scsi/megaraid/megaraid_mbox.c ccb->mbox64 = (mbox64_t *)(mbox_pci_blk[i].vaddr + 8); ccb 1045 drivers/scsi/megaraid/megaraid_mbox.c ccb->mbox_dma_h = (unsigned long)mbox_pci_blk[i].dma_addr + 16; ccb 1048 drivers/scsi/megaraid/megaraid_mbox.c if (ccb->mbox_dma_h & 0x0F) { ccb 1055 drivers/scsi/megaraid/megaraid_mbox.c ccb->epthru = (mraid_epassthru_t *) ccb 1057 drivers/scsi/megaraid/megaraid_mbox.c ccb->epthru_dma_h = epthru_pci_blk[i].dma_addr; ccb 1058 drivers/scsi/megaraid/megaraid_mbox.c ccb->pthru = (mraid_passthru_t *)ccb->epthru; ccb 1059 drivers/scsi/megaraid/megaraid_mbox.c ccb->pthru_dma_h = ccb->epthru_dma_h; ccb 1062 drivers/scsi/megaraid/megaraid_mbox.c ccb->sgl64 = (mbox_sgl64 *)sg_pci_blk[i].vaddr; ccb 1063 drivers/scsi/megaraid/megaraid_mbox.c ccb->sgl_dma_h = sg_pci_blk[i].dma_addr; ccb 1064 drivers/scsi/megaraid/megaraid_mbox.c ccb->sgl32 = (mbox_sgl32 *)ccb->sgl64; ccb 1066 drivers/scsi/megaraid/megaraid_mbox.c scb->ccb = (caddr_t)ccb; ccb 1338 drivers/scsi/megaraid/megaraid_mbox.c mbox_ccb_t *ccb; ccb 1345 drivers/scsi/megaraid/megaraid_mbox.c ccb = (mbox_ccb_t *)scb->ccb; ccb 1357 drivers/scsi/megaraid/megaraid_mbox.c ccb->sgl64[i].address = sg_dma_address(sgl); ccb 1358 drivers/scsi/megaraid/megaraid_mbox.c ccb->sgl64[i].length = sg_dma_len(sgl); ccb 1379 drivers/scsi/megaraid/megaraid_mbox.c mbox_ccb_t *ccb; ccb 1384 drivers/scsi/megaraid/megaraid_mbox.c ccb = (mbox_ccb_t *)scb->ccb; ccb 1411 drivers/scsi/megaraid/megaraid_mbox.c memcpy((caddr_t)mbox64, (caddr_t)ccb->mbox64, 22); ccb 1486 drivers/scsi/megaraid/megaraid_mbox.c mbox_ccb_t *ccb; ccb 1526 drivers/scsi/megaraid/megaraid_mbox.c ccb = (mbox_ccb_t *)scb->ccb; ccb 1532 drivers/scsi/megaraid/megaraid_mbox.c ccb->raw_mbox[0] = CLUSTER_CMD; ccb 1533 drivers/scsi/megaraid/megaraid_mbox.c ccb->raw_mbox[2] = RESERVATION_STATUS; ccb 1534 drivers/scsi/megaraid/megaraid_mbox.c ccb->raw_mbox[3] = target; ccb 1608 drivers/scsi/megaraid/megaraid_mbox.c ccb = (mbox_ccb_t *)scb->ccb; ccb 1611 drivers/scsi/megaraid/megaraid_mbox.c pthru = ccb->pthru; ccb 1612 drivers/scsi/megaraid/megaraid_mbox.c mbox = ccb->mbox; ccb 1613 drivers/scsi/megaraid/megaraid_mbox.c mbox64 = ccb->mbox64; ccb 1627 drivers/scsi/megaraid/megaraid_mbox.c pthru->dataxferaddr = ccb->sgl_dma_h; ccb 1632 drivers/scsi/megaraid/megaraid_mbox.c mbox64->xferaddr_lo = (uint32_t )ccb->pthru_dma_h; ccb 1652 drivers/scsi/megaraid/megaraid_mbox.c ccb = (mbox_ccb_t *)scb->ccb; ccb 1655 drivers/scsi/megaraid/megaraid_mbox.c mbox = ccb->mbox; ccb 1656 drivers/scsi/megaraid/megaraid_mbox.c mbox64 = ccb->mbox64; ccb 1722 drivers/scsi/megaraid/megaraid_mbox.c mbox64->xferaddr_lo = (uint32_t )ccb->sgl_dma_h; ccb 1749 drivers/scsi/megaraid/megaraid_mbox.c ccb = (mbox_ccb_t *)scb->ccb; ccb 1752 drivers/scsi/megaraid/megaraid_mbox.c ccb->raw_mbox[0] = CLUSTER_CMD; ccb 1753 drivers/scsi/megaraid/megaraid_mbox.c ccb->raw_mbox[2] = (scp->cmnd[0] == RESERVE) ? ccb 1756 drivers/scsi/megaraid/megaraid_mbox.c ccb->raw_mbox[3] = target; ccb 1817 drivers/scsi/megaraid/megaraid_mbox.c ccb = (mbox_ccb_t *)scb->ccb; ccb 1821 drivers/scsi/megaraid/megaraid_mbox.c mbox = ccb->mbox; ccb 1822 drivers/scsi/megaraid/megaraid_mbox.c mbox64 = ccb->mbox64; ccb 1830 drivers/scsi/megaraid/megaraid_mbox.c mbox64->xferaddr_lo = (uint32_t)ccb->epthru_dma_h; ccb 1839 drivers/scsi/megaraid/megaraid_mbox.c mbox64->xferaddr_lo = (uint32_t)ccb->pthru_dma_h; ccb 1938 drivers/scsi/megaraid/megaraid_mbox.c mbox_ccb_t *ccb; ccb 1943 drivers/scsi/megaraid/megaraid_mbox.c ccb = (mbox_ccb_t *)scb->ccb; ccb 1944 drivers/scsi/megaraid/megaraid_mbox.c pthru = ccb->pthru; ccb 1962 drivers/scsi/megaraid/megaraid_mbox.c pthru->dataxferaddr = ccb->sgl_dma_h; ccb 1987 drivers/scsi/megaraid/megaraid_mbox.c mbox_ccb_t *ccb; ccb 1992 drivers/scsi/megaraid/megaraid_mbox.c ccb = (mbox_ccb_t *)scb->ccb; ccb 1993 drivers/scsi/megaraid/megaraid_mbox.c epthru = ccb->epthru; ccb 2011 drivers/scsi/megaraid/megaraid_mbox.c epthru->dataxferaddr = ccb->sgl_dma_h; ccb 2182 drivers/scsi/megaraid/megaraid_mbox.c mbox_ccb_t *ccb; ccb 2211 drivers/scsi/megaraid/megaraid_mbox.c ccb = (mbox_ccb_t *)scb->ccb; ccb 2212 drivers/scsi/megaraid/megaraid_mbox.c pthru = ccb->pthru; ccb 2213 drivers/scsi/megaraid/megaraid_mbox.c epthru = ccb->epthru; ccb 2214 drivers/scsi/megaraid/megaraid_mbox.c mbox = ccb->mbox; ccb 3315 drivers/scsi/megaraid/megaraid_mbox.c mbox_ccb_t *ccb; ccb 3322 drivers/scsi/megaraid/megaraid_mbox.c ccb = (mbox_ccb_t *)scb->ccb; ccb 3324 drivers/scsi/megaraid/megaraid_mbox.c mbox = ccb->mbox; ccb 3408 drivers/scsi/megaraid/megaraid_mbox.c mbox_ccb_t *ccb; ccb 3438 drivers/scsi/megaraid/megaraid_mbox.c ccb = raid_dev->uccb_list + i; ccb 3440 drivers/scsi/megaraid/megaraid_mbox.c scb->ccb = (caddr_t)ccb; ccb 3441 drivers/scsi/megaraid/megaraid_mbox.c ccb->mbox64 = raid_dev->umbox64 + i; ccb 3442 drivers/scsi/megaraid/megaraid_mbox.c ccb->mbox = &ccb->mbox64->mbox32; ccb 3443 drivers/scsi/megaraid/megaraid_mbox.c ccb->raw_mbox = (uint8_t *)ccb->mbox; ccb 3568 drivers/scsi/megaraid/megaraid_mbox.c mbox_ccb_t *ccb; ccb 3593 drivers/scsi/megaraid/megaraid_mbox.c ccb = (mbox_ccb_t *)scb->ccb; ccb 3597 drivers/scsi/megaraid/megaraid_mbox.c memcpy(ccb->mbox64, mbox64, sizeof(mbox64_t)); ccb 1116 drivers/scsi/ncr53c8xx.c struct ccb; ccb 1198 drivers/scsi/ncr53c8xx.c struct ccb * nego_cp; ccb 1314 drivers/scsi/ncr53c8xx.c struct ccb * held_ccb; /* CCB held for QUEUE FULL */ ccb 1380 drivers/scsi/ncr53c8xx.c struct ccb * cp; ccb 1570 drivers/scsi/ncr53c8xx.c struct ccb * link_ccb; /* Host adapter CCB chain */ ccb 1576 drivers/scsi/ncr53c8xx.c #define CCB_PHYS(cp,lbl) (cp->p_ccb + offsetof(struct ccb, lbl)) ccb 1737 drivers/scsi/ncr53c8xx.c struct ccb *(ccb_done[MAX_DONE]); ccb 1744 drivers/scsi/ncr53c8xx.c struct ccb *ccb; /* Global CCB */ ccb 1908 drivers/scsi/ncr53c8xx.c static void ncr_complete (struct ncb *np, struct ccb *cp); ccb 1910 drivers/scsi/ncr53c8xx.c static void ncr_free_ccb (struct ncb *np, struct ccb *cp); ccb 1911 drivers/scsi/ncr53c8xx.c static void ncr_init_ccb (struct ncb *np, struct ccb *cp); ccb 1917 drivers/scsi/ncr53c8xx.c static struct ccb *ncr_get_ccb (struct ncb *np, struct scsi_cmnd *cmd); ccb 1926 drivers/scsi/ncr53c8xx.c static int ncr_prepare_nego(struct ncb *np, struct ccb *cp, u_char *msgptr); ccb 1931 drivers/scsi/ncr53c8xx.c static int ncr_scatter (struct ncb *np, struct ccb *cp, struct scsi_cmnd *cmd); ccb 1933 drivers/scsi/ncr53c8xx.c static void ncr_setsync (struct ncb *np, struct ccb *cp, u_char scntl3, u_char sxfer); ccb 1935 drivers/scsi/ncr53c8xx.c static void ncr_setwide (struct ncb *np, struct ccb *cp, u_char wide, u_char ack); ccb 1941 drivers/scsi/ncr53c8xx.c static void ncr_put_start_queue(struct ncb *np, struct ccb *cp); ccb 3450 drivers/scsi/ncr53c8xx.c *p++ =SCR_COPY (sizeof(struct ccb *)); ccb 3667 drivers/scsi/ncr53c8xx.c static void ncr_print_msg(struct ccb *cp, char *label, u_char *msg) ccb 4051 drivers/scsi/ncr53c8xx.c static int ncr_prepare_nego(struct ncb *np, struct ccb *cp, u_char *msgptr) ccb 4115 drivers/scsi/ncr53c8xx.c struct ccb *cp; ccb 4186 drivers/scsi/ncr53c8xx.c (cp != np->ccb && np->disc && !(tp->usrflag & UF_NODISC))) ccb 4422 drivers/scsi/ncr53c8xx.c struct ccb *cp; ccb 4432 drivers/scsi/ncr53c8xx.c cp = list_entry(qp, struct ccb, link_ccbq); ccb 4440 drivers/scsi/ncr53c8xx.c static void ncr_put_start_queue(struct ncb *np, struct ccb *cp) ccb 4556 drivers/scsi/ncr53c8xx.c struct ccb *cp; ccb 4575 drivers/scsi/ncr53c8xx.c for (found=0, cp=np->ccb; cp; cp=cp->link_ccb) { ccb 4625 drivers/scsi/ncr53c8xx.c struct ccb *cp; ccb 4641 drivers/scsi/ncr53c8xx.c for (found=0, cp=np->ccb; cp; cp=cp->link_ccb) { ccb 4697 drivers/scsi/ncr53c8xx.c struct ccb *cp; ccb 4757 drivers/scsi/ncr53c8xx.c while ((cp=np->ccb->link_ccb) != NULL) { ccb 4758 drivers/scsi/ncr53c8xx.c np->ccb->link_ccb = cp->link_ccb; ccb 4790 drivers/scsi/ncr53c8xx.c if (np->ccb) ccb 4791 drivers/scsi/ncr53c8xx.c m_free_dma(np->ccb, sizeof(struct ccb), "CCB"); ccb 4807 drivers/scsi/ncr53c8xx.c void ncr_complete (struct ncb *np, struct ccb *cp) ccb 5083 drivers/scsi/ncr53c8xx.c static void ncr_ccb_skipped(struct ncb *np, struct ccb *cp) ccb 5088 drivers/scsi/ncr53c8xx.c if (lp && cp != np->ccb) { ccb 5109 drivers/scsi/ncr53c8xx.c struct ccb *cp; ccb 5123 drivers/scsi/ncr53c8xx.c np->ccb_done[j] = (struct ccb *)CCB_DONE_EMPTY; ccb 5139 drivers/scsi/ncr53c8xx.c cp = np->ccb; ccb 5155 drivers/scsi/ncr53c8xx.c struct ccb *cp = np->ccb; ccb 5238 drivers/scsi/ncr53c8xx.c np->ccb_done[i] = (struct ccb *)CCB_DONE_EMPTY; ccb 5488 drivers/scsi/ncr53c8xx.c struct ccb *cp; ccb 5502 drivers/scsi/ncr53c8xx.c for (cp = np->ccb; cp; cp = cp->link_ccb) { ccb 5521 drivers/scsi/ncr53c8xx.c static void ncr_setsync (struct ncb *np, struct ccb *cp, u_char scntl3, u_char sxfer) ccb 5578 drivers/scsi/ncr53c8xx.c static void ncr_setwide (struct ncb *np, struct ccb *cp, u_char wide, u_char ack) ccb 6080 drivers/scsi/ncr53c8xx.c struct ccb *cp; ccb 6088 drivers/scsi/ncr53c8xx.c cp = np->ccb; ccb 6247 drivers/scsi/ncr53c8xx.c struct ccb *cp; ccb 6314 drivers/scsi/ncr53c8xx.c cp = np->ccb; ccb 6532 drivers/scsi/ncr53c8xx.c static void ncr_sir_to_redo(struct ncb *np, int num, struct ccb *cp) ccb 6538 drivers/scsi/ncr53c8xx.c struct ccb * cp2; ccb 6553 drivers/scsi/ncr53c8xx.c cp2 = list_entry(qp, struct ccb, link_ccbq); ccb 6688 drivers/scsi/ncr53c8xx.c struct ccb *cp=NULL; ccb 6744 drivers/scsi/ncr53c8xx.c cp = np->ccb; ccb 7135 drivers/scsi/ncr53c8xx.c static struct ccb *ncr_get_ccb(struct ncb *np, struct scsi_cmnd *cmd) ccb 7142 drivers/scsi/ncr53c8xx.c struct ccb *cp = NULL; ccb 7166 drivers/scsi/ncr53c8xx.c cp = list_entry(qp, struct ccb, link_ccbq); ccb 7193 drivers/scsi/ncr53c8xx.c cp = np->ccb; ccb 7246 drivers/scsi/ncr53c8xx.c static void ncr_free_ccb (struct ncb *np, struct ccb *cp) ccb 7280 drivers/scsi/ncr53c8xx.c if (cp != np->ccb) ccb 7295 drivers/scsi/ncr53c8xx.c if (cp == np->ccb) ccb 7308 drivers/scsi/ncr53c8xx.c static void ncr_init_ccb(struct ncb *np, struct ccb *cp) ccb 7351 drivers/scsi/ncr53c8xx.c struct ccb *cp = NULL; ccb 7356 drivers/scsi/ncr53c8xx.c cp = m_calloc_dma(sizeof(struct ccb), "CCB"); ccb 7372 drivers/scsi/ncr53c8xx.c cp->link_ccb = np->ccb->link_ccb; ccb 7373 drivers/scsi/ncr53c8xx.c np->ccb->link_ccb = cp; ccb 7639 drivers/scsi/ncr53c8xx.c static int ncr_scatter(struct ncb *np, struct ccb *cp, struct scsi_cmnd *cmd) ccb 8328 drivers/scsi/ncr53c8xx.c np->ccb = m_calloc_dma(sizeof(struct ccb), "CCB"); ccb 8329 drivers/scsi/ncr53c8xx.c if (!np->ccb) ccb 8414 drivers/scsi/ncr53c8xx.c np->ccb->p_ccb = vtobus (np->ccb); ccb 8452 drivers/scsi/ncr53c8xx.c ncr_init_ccb(np, np->ccb); ccb 8504 drivers/scsi/ncr53c8xx.c if (np->ccb) ccb 8505 drivers/scsi/ncr53c8xx.c m_free_dma(np->ccb, sizeof(struct ccb), "CCB"); ccb 1526 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb; ccb 1545 drivers/scsi/pm8001/pm8001_hwi.c for (i = 0; ccb = NULL, i < PM8001_MAX_CCB; i++) { ccb 1546 drivers/scsi/pm8001/pm8001_hwi.c ccb = &pm8001_ha->ccb_info[i]; ccb 1547 drivers/scsi/pm8001/pm8001_hwi.c tag = ccb->ccb_tag; ccb 1548 drivers/scsi/pm8001/pm8001_hwi.c if ((tag != 0xFFFFFFFF) && (ccb->task == t)) ccb 1551 drivers/scsi/pm8001/pm8001_hwi.c if (!ccb) { ccb 1559 drivers/scsi/pm8001/pm8001_hwi.c pm8001_dev = ccb->device; ccb 1572 drivers/scsi/pm8001/pm8001_hwi.c pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); ccb 1576 drivers/scsi/pm8001/pm8001_hwi.c pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); ccb 1586 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb; ccb 1626 drivers/scsi/pm8001/pm8001_hwi.c for (i = 0; ccb = NULL, i < PM8001_MAX_CCB; i++) { ccb 1627 drivers/scsi/pm8001/pm8001_hwi.c ccb = &pm8001_ha->ccb_info[i]; ccb 1628 drivers/scsi/pm8001/pm8001_hwi.c tag = ccb->ccb_tag; ccb 1629 drivers/scsi/pm8001/pm8001_hwi.c if ((tag != 0xFFFFFFFF) && (ccb->task == t)) ccb 1632 drivers/scsi/pm8001/pm8001_hwi.c if (!ccb) { ccb 1639 drivers/scsi/pm8001/pm8001_hwi.c pm8001_dev = ccb->device; ccb 1644 drivers/scsi/pm8001/pm8001_hwi.c ccb->open_retry = 1; /* Snub completion */ ccb 1647 drivers/scsi/pm8001/pm8001_hwi.c ccb->open_retry = 0; ccb 1723 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb; ccb 1749 drivers/scsi/pm8001/pm8001_hwi.c ccb = &pm8001_ha->ccb_info[ccb_tag]; ccb 1750 drivers/scsi/pm8001/pm8001_hwi.c ccb->device = pm8001_ha_dev; ccb 1751 drivers/scsi/pm8001/pm8001_hwi.c ccb->ccb_tag = ccb_tag; ccb 1752 drivers/scsi/pm8001/pm8001_hwi.c ccb->task = task; ccb 1773 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb; ccb 1811 drivers/scsi/pm8001/pm8001_hwi.c ccb = &pm8001_ha->ccb_info[ccb_tag]; ccb 1812 drivers/scsi/pm8001/pm8001_hwi.c ccb->device = pm8001_ha_dev; ccb 1813 drivers/scsi/pm8001/pm8001_hwi.c ccb->ccb_tag = ccb_tag; ccb 1814 drivers/scsi/pm8001/pm8001_hwi.c ccb->task = task; ccb 1857 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb; ccb 1869 drivers/scsi/pm8001/pm8001_hwi.c ccb = &pm8001_ha->ccb_info[tag]; ccb 1870 drivers/scsi/pm8001/pm8001_hwi.c if ((status == IO_ABORTED) && ccb->open_retry) { ccb 1872 drivers/scsi/pm8001/pm8001_hwi.c ccb->open_retry = 0; ccb 1875 drivers/scsi/pm8001/pm8001_hwi.c pm8001_dev = ccb->device; ccb 1878 drivers/scsi/pm8001/pm8001_hwi.c t = ccb->task; ccb 2095 drivers/scsi/pm8001/pm8001_hwi.c pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); ccb 2098 drivers/scsi/pm8001/pm8001_hwi.c pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); ccb 2110 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb; ccb 2119 drivers/scsi/pm8001/pm8001_hwi.c ccb = &pm8001_ha->ccb_info[tag]; ccb 2120 drivers/scsi/pm8001/pm8001_hwi.c t = ccb->task; ccb 2121 drivers/scsi/pm8001/pm8001_hwi.c pm8001_dev = ccb->device; ccb 2283 drivers/scsi/pm8001/pm8001_hwi.c pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); ccb 2286 drivers/scsi/pm8001/pm8001_hwi.c pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); ccb 2297 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb; ccb 2322 drivers/scsi/pm8001/pm8001_hwi.c ccb = &pm8001_ha->ccb_info[tag]; ccb 2324 drivers/scsi/pm8001/pm8001_hwi.c if (ccb) { ccb 2325 drivers/scsi/pm8001/pm8001_hwi.c t = ccb->task; ccb 2326 drivers/scsi/pm8001/pm8001_hwi.c pm8001_dev = ccb->device; ccb 2520 drivers/scsi/pm8001/pm8001_hwi.c pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); ccb 2536 drivers/scsi/pm8001/pm8001_hwi.c pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); ccb 2560 drivers/scsi/pm8001/pm8001_hwi.c pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); ccb 2623 drivers/scsi/pm8001/pm8001_hwi.c pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); ccb 2643 drivers/scsi/pm8001/pm8001_hwi.c pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); ccb 2672 drivers/scsi/pm8001/pm8001_hwi.c pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); ccb 2675 drivers/scsi/pm8001/pm8001_hwi.c pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); ccb 2684 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb; ccb 2694 drivers/scsi/pm8001/pm8001_hwi.c ccb = &pm8001_ha->ccb_info[tag]; ccb 2696 drivers/scsi/pm8001/pm8001_hwi.c if (ccb) { ccb 2697 drivers/scsi/pm8001/pm8001_hwi.c t = ccb->task; ccb 2698 drivers/scsi/pm8001/pm8001_hwi.c pm8001_dev = ccb->device; ccb 2717 drivers/scsi/pm8001/pm8001_hwi.c ccb = &pm8001_ha->ccb_info[tag]; ccb 2718 drivers/scsi/pm8001/pm8001_hwi.c t = ccb->task; ccb 2719 drivers/scsi/pm8001/pm8001_hwi.c pm8001_dev = ccb->device; ccb 2784 drivers/scsi/pm8001/pm8001_hwi.c pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); ccb 2892 drivers/scsi/pm8001/pm8001_hwi.c pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); ccb 2895 drivers/scsi/pm8001/pm8001_hwi.c pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); ccb 2904 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb; ccb 2916 drivers/scsi/pm8001/pm8001_hwi.c ccb = &pm8001_ha->ccb_info[tag]; ccb 2917 drivers/scsi/pm8001/pm8001_hwi.c t = ccb->task; ccb 2919 drivers/scsi/pm8001/pm8001_hwi.c pm8001_dev = ccb->device; ccb 3090 drivers/scsi/pm8001/pm8001_hwi.c pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); ccb 3093 drivers/scsi/pm8001/pm8001_hwi.c pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); ccb 3105 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb = &pm8001_ha->ccb_info[tag]; ccb 3106 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_device *pm8001_dev = ccb->device; ccb 3115 drivers/scsi/pm8001/pm8001_hwi.c ccb->task = NULL; ccb 3116 drivers/scsi/pm8001/pm8001_hwi.c ccb->ccb_tag = 0xFFFFFFFF; ccb 3125 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb = &pm8001_ha->ccb_info[tag]; ccb 3134 drivers/scsi/pm8001/pm8001_hwi.c ccb->task = NULL; ccb 3135 drivers/scsi/pm8001/pm8001_hwi.c ccb->ccb_tag = 0xFFFFFFFF; ccb 3146 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb = &pm8001_ha->ccb_info[tag]; ccb 3151 drivers/scsi/pm8001/pm8001_hwi.c fw_control_context = ccb->fw_control_context; ccb 3198 drivers/scsi/pm8001/pm8001_hwi.c kfree(ccb->fw_control_context); ccb 3199 drivers/scsi/pm8001/pm8001_hwi.c ccb->task = NULL; ccb 3200 drivers/scsi/pm8001/pm8001_hwi.c ccb->ccb_tag = 0xFFFFFFFF; ccb 3567 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb; ccb 3573 drivers/scsi/pm8001/pm8001_hwi.c ccb = &pm8001_ha->ccb_info[htag]; ccb 3574 drivers/scsi/pm8001/pm8001_hwi.c pm8001_dev = ccb->device; ccb 3618 drivers/scsi/pm8001/pm8001_hwi.c ccb->task = NULL; ccb 3619 drivers/scsi/pm8001/pm8001_hwi.c ccb->ccb_tag = 0xFFFFFFFF; ccb 3652 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb = &pm8001_ha->ccb_info[tag]; ccb 3696 drivers/scsi/pm8001/pm8001_hwi.c kfree(ccb->fw_control_context); ccb 3697 drivers/scsi/pm8001/pm8001_hwi.c ccb->task = NULL; ccb 3698 drivers/scsi/pm8001/pm8001_hwi.c ccb->ccb_tag = 0xFFFFFFFF; ccb 3723 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb; ccb 3742 drivers/scsi/pm8001/pm8001_hwi.c ccb = &pm8001_ha->ccb_info[tag]; ccb 3743 drivers/scsi/pm8001/pm8001_hwi.c t = ccb->task; ccb 3744 drivers/scsi/pm8001/pm8001_hwi.c pm8001_dev = ccb->device; /* retrieve device */ ccb 3772 drivers/scsi/pm8001/pm8001_hwi.c pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); ccb 4239 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb) ccb 4242 drivers/scsi/pm8001/pm8001_hwi.c struct sas_task *task = ccb->task; ccb 4276 drivers/scsi/pm8001/pm8001_hwi.c smp_cmd.tag = cpu_to_le32(ccb->ccb_tag); ccb 4294 drivers/scsi/pm8001/pm8001_hwi.c dma_unmap_sg(pm8001_ha->dev, &ccb->task->smp_task.smp_resp, 1, ccb 4297 drivers/scsi/pm8001/pm8001_hwi.c dma_unmap_sg(pm8001_ha->dev, &ccb->task->smp_task.smp_req, 1, ccb 4308 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb) ccb 4310 drivers/scsi/pm8001/pm8001_hwi.c struct sas_task *task = ccb->task; ccb 4314 drivers/scsi/pm8001/pm8001_hwi.c u32 tag = ccb->ccb_tag; ccb 4337 drivers/scsi/pm8001/pm8001_hwi.c pm8001_chip_make_sg(task->scatter, ccb->n_elem, ccb->buf_prd); ccb 4338 drivers/scsi/pm8001/pm8001_hwi.c phys_addr = ccb->ccb_dma_handle + ccb 4360 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb) ccb 4362 drivers/scsi/pm8001/pm8001_hwi.c struct sas_task *task = ccb->task; ccb 4365 drivers/scsi/pm8001/pm8001_hwi.c u32 tag = ccb->ccb_tag; ccb 4410 drivers/scsi/pm8001/pm8001_hwi.c pm8001_chip_make_sg(task->scatter, ccb->n_elem, ccb->buf_prd); ccb 4411 drivers/scsi/pm8001/pm8001_hwi.c phys_addr = ccb->ccb_dma_handle + ccb 4453 drivers/scsi/pm8001/pm8001_hwi.c pm8001_ccb_task_free(pm8001_ha, task, ccb, tag); ccb 4458 drivers/scsi/pm8001/pm8001_hwi.c ccb, tag); ccb 4537 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb; ccb 4549 drivers/scsi/pm8001/pm8001_hwi.c ccb = &pm8001_ha->ccb_info[tag]; ccb 4550 drivers/scsi/pm8001/pm8001_hwi.c ccb->device = pm8001_dev; ccb 4551 drivers/scsi/pm8001/pm8001_hwi.c ccb->ccb_tag = tag; ccb 4713 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb, struct pm8001_tmf_task *tmf) ccb 4715 drivers/scsi/pm8001/pm8001_hwi.c struct sas_task *task = ccb->task; ccb 4728 drivers/scsi/pm8001/pm8001_hwi.c sspTMCmd.tag = cpu_to_le32(ccb->ccb_tag); ccb 4743 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb; ccb 4762 drivers/scsi/pm8001/pm8001_hwi.c ccb = &pm8001_ha->ccb_info[tag]; ccb 4763 drivers/scsi/pm8001/pm8001_hwi.c ccb->ccb_tag = tag; ccb 4764 drivers/scsi/pm8001/pm8001_hwi.c ccb->fw_control_context = fw_control_context; ccb 4837 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb; ccb 4857 drivers/scsi/pm8001/pm8001_hwi.c ccb = &pm8001_ha->ccb_info[tag]; ccb 4858 drivers/scsi/pm8001/pm8001_hwi.c ccb->fw_control_context = fw_control_context; ccb 4859 drivers/scsi/pm8001/pm8001_hwi.c ccb->ccb_tag = tag; ccb 4954 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb; ccb 4979 drivers/scsi/pm8001/pm8001_hwi.c ccb = &pm8001_ha->ccb_info[tag]; ccb 4980 drivers/scsi/pm8001/pm8001_hwi.c ccb->fw_control_context = fw_control_context; ccb 4981 drivers/scsi/pm8001/pm8001_hwi.c ccb->ccb_tag = tag; ccb 5071 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb; ccb 5079 drivers/scsi/pm8001/pm8001_hwi.c ccb = &pm8001_ha->ccb_info[tag]; ccb 5080 drivers/scsi/pm8001/pm8001_hwi.c ccb->ccb_tag = tag; ccb 5081 drivers/scsi/pm8001/pm8001_hwi.c ccb->device = pm8001_dev; ccb 5096 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_ccb_info *ccb; ccb 5104 drivers/scsi/pm8001/pm8001_hwi.c ccb = &pm8001_ha->ccb_info[tag]; ccb 5105 drivers/scsi/pm8001/pm8001_hwi.c ccb->ccb_tag = tag; ccb 52 drivers/scsi/pm8001/pm8001_sas.c struct pm8001_ccb_info *ccb; ccb 53 drivers/scsi/pm8001/pm8001_sas.c ccb = task->lldd_task; ccb 54 drivers/scsi/pm8001/pm8001_sas.c *tag = ccb->ccb_tag; ccb 295 drivers/scsi/pm8001/pm8001_sas.c struct pm8001_ccb_info *ccb) ccb 297 drivers/scsi/pm8001/pm8001_sas.c return PM8001_CHIP_DISP->smp_req(pm8001_ha, ccb); ccb 322 drivers/scsi/pm8001/pm8001_sas.c struct pm8001_ccb_info *ccb) ccb 324 drivers/scsi/pm8001/pm8001_sas.c return PM8001_CHIP_DISP->sata_req(pm8001_ha, ccb); ccb 334 drivers/scsi/pm8001/pm8001_sas.c struct pm8001_ccb_info *ccb, struct pm8001_tmf_task *tmf) ccb 336 drivers/scsi/pm8001/pm8001_sas.c return PM8001_CHIP_DISP->ssp_tm_req(pm8001_ha, ccb, tmf); ccb 345 drivers/scsi/pm8001/pm8001_sas.c struct pm8001_ccb_info *ccb) ccb 347 drivers/scsi/pm8001/pm8001_sas.c return PM8001_CHIP_DISP->ssp_io_req(pm8001_ha, ccb); ccb 386 drivers/scsi/pm8001/pm8001_sas.c struct pm8001_ccb_info *ccb; ccb 433 drivers/scsi/pm8001/pm8001_sas.c ccb = &pm8001_ha->ccb_info[tag]; ccb 450 drivers/scsi/pm8001/pm8001_sas.c t->lldd_task = ccb; ccb 451 drivers/scsi/pm8001/pm8001_sas.c ccb->n_elem = n_elem; ccb 452 drivers/scsi/pm8001/pm8001_sas.c ccb->ccb_tag = tag; ccb 453 drivers/scsi/pm8001/pm8001_sas.c ccb->task = t; ccb 454 drivers/scsi/pm8001/pm8001_sas.c ccb->device = pm8001_dev; ccb 457 drivers/scsi/pm8001/pm8001_sas.c rc = pm8001_task_prep_smp(pm8001_ha, ccb); ccb 462 drivers/scsi/pm8001/pm8001_sas.c ccb, tmf); ccb 464 drivers/scsi/pm8001/pm8001_sas.c rc = pm8001_task_prep_ssp(pm8001_ha, ccb); ccb 468 drivers/scsi/pm8001/pm8001_sas.c rc = pm8001_task_prep_ata(pm8001_ha, ccb); ccb 524 drivers/scsi/pm8001/pm8001_sas.c struct sas_task *task, struct pm8001_ccb_info *ccb, u32 ccb_idx) ccb 526 drivers/scsi/pm8001/pm8001_sas.c if (!ccb->task) ccb 529 drivers/scsi/pm8001/pm8001_sas.c if (ccb->n_elem) ccb 549 drivers/scsi/pm8001/pm8001_sas.c ccb->task = NULL; ccb 550 drivers/scsi/pm8001/pm8001_sas.c ccb->ccb_tag = 0xFFFFFFFF; ccb 551 drivers/scsi/pm8001/pm8001_sas.c ccb->open_retry = 0; ccb 802 drivers/scsi/pm8001/pm8001_sas.c struct pm8001_ccb_info *ccb; ccb 820 drivers/scsi/pm8001/pm8001_sas.c ccb = &pm8001_ha->ccb_info[ccb_tag]; ccb 821 drivers/scsi/pm8001/pm8001_sas.c ccb->device = pm8001_dev; ccb 822 drivers/scsi/pm8001/pm8001_sas.c ccb->ccb_tag = ccb_tag; ccb 823 drivers/scsi/pm8001/pm8001_sas.c ccb->task = task; ccb 824 drivers/scsi/pm8001/pm8001_sas.c ccb->n_elem = 0; ccb 942 drivers/scsi/pm8001/pm8001_sas.c struct pm8001_ccb_info *ccb = &pm8001_ha->ccb_info[i]; ccb 944 drivers/scsi/pm8001/pm8001_sas.c pm8001_dev = ccb->device; ccb 955 drivers/scsi/pm8001/pm8001_sas.c tag = ccb->ccb_tag; ccb 958 drivers/scsi/pm8001/pm8001_sas.c task = ccb->task; ccb 978 drivers/scsi/pm8001/pm8001_sas.c pm8001_ccb_task_free(pm8001_ha, task, ccb, tag); ccb 982 drivers/scsi/pm8001/pm8001_sas.c pm8001_ccb_task_free(pm8001_ha, task, ccb, tag); ccb 205 drivers/scsi/pm8001/pm8001_sas.h struct pm8001_ccb_info *ccb); ccb 207 drivers/scsi/pm8001/pm8001_sas.h struct pm8001_ccb_info *ccb); ccb 209 drivers/scsi/pm8001/pm8001_sas.h struct pm8001_ccb_info *ccb); ccb 221 drivers/scsi/pm8001/pm8001_sas.h struct pm8001_ccb_info *ccb, struct pm8001_tmf_task *tmf); ccb 639 drivers/scsi/pm8001/pm8001_sas.h struct sas_task *task, struct pm8001_ccb_info *ccb, u32 ccb_idx); ccb 683 drivers/scsi/pm8001/pm8001_sas.h struct pm8001_ccb_info *ccb, ccb 732 drivers/scsi/pm8001/pm8001_sas.h struct sas_task *task, struct pm8001_ccb_info *ccb, ccb 735 drivers/scsi/pm8001/pm8001_sas.h pm8001_ccb_task_free(pm8001_ha, task, ccb, ccb_idx); ccb 1406 drivers/scsi/pm8001/pm80xx_hwi.c struct pm8001_ccb_info *ccb; ccb 1434 drivers/scsi/pm8001/pm80xx_hwi.c ccb = &pm8001_ha->ccb_info[ccb_tag]; ccb 1435 drivers/scsi/pm8001/pm80xx_hwi.c ccb->device = pm8001_ha_dev; ccb 1436 drivers/scsi/pm8001/pm80xx_hwi.c ccb->ccb_tag = ccb_tag; ccb 1437 drivers/scsi/pm8001/pm80xx_hwi.c ccb->task = task; ccb 1459 drivers/scsi/pm8001/pm80xx_hwi.c struct pm8001_ccb_info *ccb; ccb 1498 drivers/scsi/pm8001/pm80xx_hwi.c ccb = &pm8001_ha->ccb_info[ccb_tag]; ccb 1499 drivers/scsi/pm8001/pm80xx_hwi.c ccb->device = pm8001_ha_dev; ccb 1500 drivers/scsi/pm8001/pm80xx_hwi.c ccb->ccb_tag = ccb_tag; ccb 1501 drivers/scsi/pm8001/pm80xx_hwi.c ccb->task = task; ccb 1502 drivers/scsi/pm8001/pm80xx_hwi.c ccb->n_elem = 0; ccb 1545 drivers/scsi/pm8001/pm80xx_hwi.c struct pm8001_ccb_info *ccb; ccb 1557 drivers/scsi/pm8001/pm80xx_hwi.c ccb = &pm8001_ha->ccb_info[tag]; ccb 1558 drivers/scsi/pm8001/pm80xx_hwi.c if ((status == IO_ABORTED) && ccb->open_retry) { ccb 1560 drivers/scsi/pm8001/pm80xx_hwi.c ccb->open_retry = 0; ccb 1563 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_dev = ccb->device; ccb 1565 drivers/scsi/pm8001/pm80xx_hwi.c t = ccb->task; ccb 1797 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); ccb 1800 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); ccb 1812 drivers/scsi/pm8001/pm80xx_hwi.c struct pm8001_ccb_info *ccb; ccb 1820 drivers/scsi/pm8001/pm80xx_hwi.c ccb = &pm8001_ha->ccb_info[tag]; ccb 1821 drivers/scsi/pm8001/pm80xx_hwi.c t = ccb->task; ccb 1822 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_dev = ccb->device; ccb 1994 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); ccb 1997 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); ccb 2008 drivers/scsi/pm8001/pm80xx_hwi.c struct pm8001_ccb_info *ccb; ccb 2032 drivers/scsi/pm8001/pm80xx_hwi.c ccb = &pm8001_ha->ccb_info[tag]; ccb 2034 drivers/scsi/pm8001/pm80xx_hwi.c if (ccb) { ccb 2035 drivers/scsi/pm8001/pm80xx_hwi.c t = ccb->task; ccb 2036 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_dev = ccb->device; ccb 2235 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); ccb 2251 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); ccb 2273 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); ccb 2336 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); ccb 2356 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); ccb 2387 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); ccb 2390 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); ccb 2399 drivers/scsi/pm8001/pm80xx_hwi.c struct pm8001_ccb_info *ccb; ccb 2409 drivers/scsi/pm8001/pm80xx_hwi.c ccb = &pm8001_ha->ccb_info[tag]; ccb 2411 drivers/scsi/pm8001/pm80xx_hwi.c if (ccb) { ccb 2412 drivers/scsi/pm8001/pm80xx_hwi.c t = ccb->task; ccb 2413 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_dev = ccb->device; ccb 2502 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); ccb 2623 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); ccb 2626 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); ccb 2636 drivers/scsi/pm8001/pm80xx_hwi.c struct pm8001_ccb_info *ccb; ccb 2649 drivers/scsi/pm8001/pm80xx_hwi.c ccb = &pm8001_ha->ccb_info[tag]; ccb 2651 drivers/scsi/pm8001/pm80xx_hwi.c t = ccb->task; ccb 2653 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_dev = ccb->device; ccb 2844 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); ccb 2847 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); ccb 3887 drivers/scsi/pm8001/pm80xx_hwi.c struct pm8001_ccb_info *ccb) ccb 3890 drivers/scsi/pm8001/pm80xx_hwi.c struct sas_task *task = ccb->task; ccb 3927 drivers/scsi/pm8001/pm80xx_hwi.c smp_cmd.tag = cpu_to_le32(ccb->ccb_tag); ccb 4003 drivers/scsi/pm8001/pm80xx_hwi.c dma_unmap_sg(pm8001_ha->dev, &ccb->task->smp_task.smp_resp, 1, ccb 4006 drivers/scsi/pm8001/pm80xx_hwi.c dma_unmap_sg(pm8001_ha->dev, &ccb->task->smp_task.smp_req, 1, ccb 4050 drivers/scsi/pm8001/pm80xx_hwi.c struct pm8001_ccb_info *ccb) ccb 4052 drivers/scsi/pm8001/pm80xx_hwi.c struct sas_task *task = ccb->task; ccb 4056 drivers/scsi/pm8001/pm80xx_hwi.c u32 tag = ccb->ccb_tag; ccb 4097 drivers/scsi/pm8001/pm80xx_hwi.c ccb->n_elem, ccb->buf_prd); ccb 4098 drivers/scsi/pm8001/pm80xx_hwi.c phys_addr = ccb->ccb_dma_handle + ccb 4127 drivers/scsi/pm8001/pm80xx_hwi.c ccb->buf_prd); ccb 4128 drivers/scsi/pm8001/pm80xx_hwi.c phys_addr = ccb->ccb_dma_handle + ccb 4156 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_chip_make_sg(task->scatter, ccb->n_elem, ccb 4157 drivers/scsi/pm8001/pm80xx_hwi.c ccb->buf_prd); ccb 4158 drivers/scsi/pm8001/pm80xx_hwi.c phys_addr = ccb->ccb_dma_handle + ccb 4186 drivers/scsi/pm8001/pm80xx_hwi.c ccb->buf_prd); ccb 4187 drivers/scsi/pm8001/pm80xx_hwi.c phys_addr = ccb->ccb_dma_handle + ccb 4210 drivers/scsi/pm8001/pm80xx_hwi.c struct pm8001_ccb_info *ccb) ccb 4212 drivers/scsi/pm8001/pm80xx_hwi.c struct sas_task *task = ccb->task; ccb 4215 drivers/scsi/pm8001/pm80xx_hwi.c u32 tag = ccb->ccb_tag; ccb 4278 drivers/scsi/pm8001/pm80xx_hwi.c ccb->n_elem, ccb->buf_prd); ccb 4279 drivers/scsi/pm8001/pm80xx_hwi.c phys_addr = ccb->ccb_dma_handle + ccb 4304 drivers/scsi/pm8001/pm80xx_hwi.c ccb->buf_prd); ccb 4305 drivers/scsi/pm8001/pm80xx_hwi.c phys_addr = ccb->ccb_dma_handle + ccb 4344 drivers/scsi/pm8001/pm80xx_hwi.c ccb->n_elem, ccb->buf_prd); ccb 4345 drivers/scsi/pm8001/pm80xx_hwi.c phys_addr = ccb->ccb_dma_handle + ccb 4370 drivers/scsi/pm8001/pm80xx_hwi.c ccb->buf_prd); ccb 4371 drivers/scsi/pm8001/pm80xx_hwi.c phys_addr = ccb->ccb_dma_handle + ccb 4433 drivers/scsi/pm8001/pm80xx_hwi.c pm8001_ccb_task_free(pm8001_ha, task, ccb, tag); ccb 4439 drivers/scsi/pm8001/pm80xx_hwi.c ccb, tag); ccb 4539 drivers/scsi/pm8001/pm80xx_hwi.c struct pm8001_ccb_info *ccb; ccb 4551 drivers/scsi/pm8001/pm80xx_hwi.c ccb = &pm8001_ha->ccb_info[tag]; ccb 4552 drivers/scsi/pm8001/pm80xx_hwi.c ccb->device = pm8001_dev; ccb 4553 drivers/scsi/pm8001/pm80xx_hwi.c ccb->ccb_tag = tag; ccb 329 drivers/scsi/stex.c struct st_ccb *ccb; ccb 426 drivers/scsi/stex.c struct req_msg *req, struct st_ccb *ccb) ccb 434 drivers/scsi/stex.c cmd = ccb->cmd; ccb 440 drivers/scsi/stex.c ccb->sg_count = nseg; ccb 458 drivers/scsi/stex.c struct req_msg *req, struct st_ccb *ccb) ccb 466 drivers/scsi/stex.c cmd = ccb->cmd; ccb 472 drivers/scsi/stex.c ccb->sg_count = nseg; ccb 490 drivers/scsi/stex.c static void stex_controller_info(struct st_hba *hba, struct st_ccb *ccb) ccb 496 drivers/scsi/stex.c scsi_sg_copy_to_buffer(ccb->cmd, p, count); ccb 514 drivers/scsi/stex.c scsi_sg_copy_from_buffer(ccb->cmd, p, count); ccb 522 drivers/scsi/stex.c hba->ccb[tag].req = req; ccb 539 drivers/scsi/stex.c hba->ccb[tag].req = req; ccb 542 drivers/scsi/stex.c cmd = hba->ccb[tag].cmd; ccb 549 drivers/scsi/stex.c addr += (hba->ccb[tag].sg_count+4)/11; ccb 567 drivers/scsi/stex.c struct st_ccb *ccb; ccb 573 drivers/scsi/stex.c ccb = &hba->ccb[tag]; ccb 574 drivers/scsi/stex.c if (ccb->req == NULL) ccb 576 drivers/scsi/stex.c ccb->req = NULL; ccb 577 drivers/scsi/stex.c if (ccb->cmd) { ccb 578 drivers/scsi/stex.c scsi_dma_unmap(ccb->cmd); ccb 579 drivers/scsi/stex.c ccb->cmd->result = status << 16; ccb 580 drivers/scsi/stex.c ccb->cmd->scsi_done(ccb->cmd); ccb 581 drivers/scsi/stex.c ccb->cmd = NULL; ccb 714 drivers/scsi/stex.c hba->ccb[tag].cmd = cmd; ccb 715 drivers/scsi/stex.c hba->ccb[tag].sense_bufflen = SCSI_SENSE_BUFFERSIZE; ccb 716 drivers/scsi/stex.c hba->ccb[tag].sense_buffer = cmd->sense_buffer; ccb 718 drivers/scsi/stex.c if (!hba->map_sg(hba, req, &hba->ccb[tag])) { ccb 719 drivers/scsi/stex.c hba->ccb[tag].sg_count = 0; ccb 729 drivers/scsi/stex.c static void stex_scsi_done(struct st_ccb *ccb) ccb 731 drivers/scsi/stex.c struct scsi_cmnd *cmd = ccb->cmd; ccb 734 drivers/scsi/stex.c if (ccb->srb_status == SRB_STATUS_SUCCESS || ccb->srb_status == 0) { ccb 735 drivers/scsi/stex.c result = ccb->scsi_status; ccb 736 drivers/scsi/stex.c switch (ccb->scsi_status) { ccb 751 drivers/scsi/stex.c else if (ccb->srb_status & SRB_SEE_SENSE) ccb 753 drivers/scsi/stex.c else switch (ccb->srb_status) { ccb 771 drivers/scsi/stex.c static void stex_copy_data(struct st_ccb *ccb, ccb 775 drivers/scsi/stex.c if (ccb->sense_buffer != NULL) ccb 776 drivers/scsi/stex.c memcpy(ccb->sense_buffer, resp->variable, ccb 777 drivers/scsi/stex.c min(variable, ccb->sense_bufflen)); ccb 781 drivers/scsi/stex.c if (ccb->cmd == NULL) ccb 783 drivers/scsi/stex.c scsi_sg_copy_from_buffer(ccb->cmd, resp->variable, variable); ccb 787 drivers/scsi/stex.c struct st_ccb *ccb, struct status_msg *resp) ccb 789 drivers/scsi/stex.c if (ccb->cmd->cmnd[0] == MGT_CMD && ccb 791 drivers/scsi/stex.c scsi_set_resid(ccb->cmd, scsi_bufflen(ccb->cmd) - ccb 799 drivers/scsi/stex.c struct st_ccb *ccb; ccb 839 drivers/scsi/stex.c ccb = &hba->ccb[tag]; ccb 840 drivers/scsi/stex.c if (unlikely(hba->wait_ccb == ccb)) ccb 842 drivers/scsi/stex.c if (unlikely(ccb->req == NULL)) { ccb 856 drivers/scsi/stex.c stex_copy_data(ccb, resp, size); ccb 859 drivers/scsi/stex.c ccb->req = NULL; ccb 860 drivers/scsi/stex.c ccb->srb_status = resp->srb_status; ccb 861 drivers/scsi/stex.c ccb->scsi_status = resp->scsi_status; ccb 863 drivers/scsi/stex.c if (likely(ccb->cmd != NULL)) { ccb 865 drivers/scsi/stex.c stex_check_cmd(hba, ccb, resp); ccb 867 drivers/scsi/stex.c if (unlikely(ccb->cmd->cmnd[0] == PASSTHRU_CMD && ccb 868 drivers/scsi/stex.c ccb->cmd->cmnd[1] == PASSTHRU_GET_ADAPTER)) ccb 869 drivers/scsi/stex.c stex_controller_info(hba, ccb); ccb 871 drivers/scsi/stex.c scsi_dma_unmap(ccb->cmd); ccb 872 drivers/scsi/stex.c stex_scsi_done(ccb); ccb 874 drivers/scsi/stex.c ccb->req_type = 0; ccb 913 drivers/scsi/stex.c struct st_ccb *ccb; ccb 944 drivers/scsi/stex.c ccb = &hba->ccb[tag]; ccb 945 drivers/scsi/stex.c if (unlikely(hba->wait_ccb == ccb)) ccb 947 drivers/scsi/stex.c if (unlikely(ccb->req == NULL)) { ccb 953 drivers/scsi/stex.c ccb->req = NULL; ccb 955 drivers/scsi/stex.c ccb->srb_status = SRB_STATUS_SUCCESS; ccb 956 drivers/scsi/stex.c ccb->scsi_status = SAM_STAT_GOOD; ccb 958 drivers/scsi/stex.c ccb->srb_status = resp->srb_status; ccb 959 drivers/scsi/stex.c ccb->scsi_status = resp->scsi_status; ccb 969 drivers/scsi/stex.c stex_copy_data(ccb, resp, size); ccb 971 drivers/scsi/stex.c if (likely(ccb->cmd != NULL)) ccb 972 drivers/scsi/stex.c stex_check_cmd(hba, ccb, resp); ccb 975 drivers/scsi/stex.c if (likely(ccb->cmd != NULL)) { ccb 976 drivers/scsi/stex.c scsi_dma_unmap(ccb->cmd); ccb 977 drivers/scsi/stex.c stex_scsi_done(ccb); ccb 979 drivers/scsi/stex.c ccb->req_type = 0; ccb 1261 drivers/scsi/stex.c hba->ccb[tag].req && hba->ccb[tag].cmd == cmd) ccb 1262 drivers/scsi/stex.c hba->wait_ccb = &hba->ccb[tag]; ccb 1759 drivers/scsi/stex.c hba->ccb = kcalloc(ci->rq_count, sizeof(struct st_ccb), GFP_KERNEL); ccb 1760 drivers/scsi/stex.c if (!hba->ccb) { ccb 1836 drivers/scsi/stex.c kfree(hba->ccb); ccb 1895 drivers/scsi/stex.c hba->ccb[tag].cmd = NULL; ccb 1896 drivers/scsi/stex.c hba->ccb[tag].sg_count = 0; ccb 1897 drivers/scsi/stex.c hba->ccb[tag].sense_bufflen = 0; ccb 1898 drivers/scsi/stex.c hba->ccb[tag].sense_buffer = NULL; ccb 1899 drivers/scsi/stex.c hba->ccb[tag].req_type = PASSTHRU_REQ_TYPE; ccb 1903 drivers/scsi/stex.c while (hba->ccb[tag].req_type & PASSTHRU_REQ_TYPE) { ccb 1905 drivers/scsi/stex.c hba->ccb[tag].req_type = 0; ccb 1924 drivers/scsi/stex.c kfree(hba->ccb); ccb 250 drivers/scsi/sym53c8xx_2/sym_glue.h void sym_xpt_done(struct sym_hcb *np, struct scsi_cmnd *ccb); ccb 1058 drivers/scsi/sym53c8xx_2/sym_hipd.h int sym_abort_scsiio(struct sym_hcb *np, struct scsi_cmnd *ccb, int timed_out); ccb 714 include/linux/bcma/bcma_driver_chipcommon.h void bcma_chipco_b_mii_write(struct bcma_drv_cc_b *ccb, u32 offset, u32 value);