Home
last modified time | relevance | path

Searched refs:ccb (Results 1 – 25 of 45) sorted by relevance

12

/linux-6.1.9/drivers/bcma/
Ddriver_chipcommon_b.c33 void bcma_chipco_b_mii_write(struct bcma_drv_cc_b *ccb, u32 offset, u32 value) in bcma_chipco_b_mii_write() argument
35 struct bcma_bus *bus = ccb->core->bus; in bcma_chipco_b_mii_write()
36 void __iomem *mii = ccb->mii; in bcma_chipco_b_mii_write()
45 int bcma_core_chipcommon_b_init(struct bcma_drv_cc_b *ccb) in bcma_core_chipcommon_b_init() argument
47 if (ccb->setup_done) in bcma_core_chipcommon_b_init()
50 ccb->setup_done = 1; in bcma_core_chipcommon_b_init()
51 ccb->mii = ioremap(ccb->core->addr_s[1], BCMA_CORE_SIZE); in bcma_core_chipcommon_b_init()
52 if (!ccb->mii) in bcma_core_chipcommon_b_init()
58 void bcma_core_chipcommon_b_free(struct bcma_drv_cc_b *ccb) in bcma_core_chipcommon_b_free() argument
60 if (ccb->mii) in bcma_core_chipcommon_b_free()
[all …]
Dbcma_private.h53 int bcma_core_chipcommon_b_init(struct bcma_drv_cc_b *ccb);
54 void bcma_core_chipcommon_b_free(struct bcma_drv_cc_b *ccb);
/linux-6.1.9/drivers/scsi/
DBusLogic.c163 struct blogic_ccb *ccb = (struct blogic_ccb *) blk_pointer; in blogic_init_ccbs() local
166 ccb->allocgrp_head = blkp; in blogic_init_ccbs()
167 ccb->allocgrp_size = blk_size; in blogic_init_ccbs()
169 ccb->status = BLOGIC_CCB_FREE; in blogic_init_ccbs()
170 ccb->adapter = adapter; in blogic_init_ccbs()
171 ccb->dma_handle = (u32) blkp + offset; in blogic_init_ccbs()
173 ccb->callback = blogic_qcompleted_ccb; in blogic_init_ccbs()
174 ccb->base_addr = adapter->fpinfo.base_addr; in blogic_init_ccbs()
176 ccb->next = adapter->free_ccbs; in blogic_init_ccbs()
177 ccb->next_all = adapter->all_ccbs; in blogic_init_ccbs()
[all …]
Daha1542.c64 struct ccb *ccb; member
288 struct ccb *ccb = aha1542->ccb; in aha1542_interrupt() local
349 mbo = (scsi2int(mb[mbi].ccbptr) - (unsigned long)aha1542->ccb_handle) / sizeof(struct ccb); in aha1542_interrupt()
355 if (ccb[mbo].tarstat | ccb[mbo].hastat) in aha1542_interrupt()
357 ccb[mbo].tarstat + ((int) ccb[mbo].hastat << 16), mb[mbi].status); in aha1542_interrupt()
372 shost_printk(KERN_WARNING, sh, "tarstat=%x, hastat=%x idlun=%x ccb#=%d\n", ccb[mbo].tarstat, in aha1542_interrupt()
373 ccb[mbo].hastat, ccb[mbo].idlun, mbo); in aha1542_interrupt()
382 if (ccb[mbo].tarstat == 2) in aha1542_interrupt()
383 memcpy(tmp_cmd->sense_buffer, &ccb[mbo].cdb[ccb[mbo].cdblen], in aha1542_interrupt()
392 errstatus = makecode(ccb[mbo].hastat, ccb[mbo].tarstat); in aha1542_interrupt()
[all …]
Dstex.c329 struct st_ccb *ccb; member
423 struct req_msg *req, struct st_ccb *ccb) in stex_map_sg() argument
431 cmd = ccb->cmd; in stex_map_sg()
437 ccb->sg_count = nseg; in stex_map_sg()
455 struct req_msg *req, struct st_ccb *ccb) in stex_ss_map_sg() argument
463 cmd = ccb->cmd; in stex_ss_map_sg()
469 ccb->sg_count = nseg; in stex_ss_map_sg()
487 static void stex_controller_info(struct st_hba *hba, struct st_ccb *ccb) in stex_controller_info() argument
493 scsi_sg_copy_to_buffer(ccb->cmd, p, count); in stex_controller_info()
511 scsi_sg_copy_from_buffer(ccb->cmd, p, count); in stex_controller_info()
[all …]
Dncr53c8xx.c1118 struct ccb;
1200 struct ccb * nego_cp;
1316 struct ccb * held_ccb; /* CCB held for QUEUE FULL */
1382 struct ccb * cp;
1497 struct ccb { struct
1567 struct ccb * link_ccb; /* Host adapter CCB chain */ argument
1573 #define CCB_PHYS(cp,lbl) (cp->p_ccb + offsetof(struct ccb, lbl)) argument
1734 struct ccb *(ccb_done[MAX_DONE]);
1741 struct ccb *ccb; /* Global CCB */ member
1905 static void ncr_complete (struct ncb *np, struct ccb *cp);
[all …]
Daha1542.h82 struct ccb { struct
/linux-6.1.9/drivers/misc/
Dhpilo.c129 static int ilo_pkt_enqueue(struct ilo_hwinfo *hw, struct ccb *ccb, in ilo_pkt_enqueue() argument
136 fifobar = ccb->ccb_u1.send_fifobar; in ilo_pkt_enqueue()
138 fifobar = ccb->ccb_u3.recv_fifobar; in ilo_pkt_enqueue()
144 static int ilo_pkt_dequeue(struct ilo_hwinfo *hw, struct ccb *ccb, in ilo_pkt_dequeue() argument
152 fifobar = ccb->ccb_u1.send_fifobar; in ilo_pkt_dequeue()
153 desc = ccb->ccb_u2.send_desc; in ilo_pkt_dequeue()
155 fifobar = ccb->ccb_u3.recv_fifobar; in ilo_pkt_dequeue()
156 desc = ccb->ccb_u4.recv_desc; in ilo_pkt_dequeue()
173 static int ilo_pkt_recv(struct ilo_hwinfo *hw, struct ccb *ccb) in ilo_pkt_recv() argument
175 char *fifobar = ccb->ccb_u3.recv_fifobar; in ilo_pkt_recv()
[all …]
Dhpilo.h81 struct ccb { struct
134 struct ccb driver_ccb;
137 struct ccb ilo_ccb;
140 struct ccb __iomem *mapped_ccb;
/linux-6.1.9/drivers/scsi/megaraid/
Dmegaraid_mbox.c954 mbox_ccb_t *ccb; in megaraid_alloc_cmd_packets() local
1042 ccb = raid_dev->ccb_list + i; in megaraid_alloc_cmd_packets()
1044 ccb->mbox = (mbox_t *)(mbox_pci_blk[i].vaddr + 16); in megaraid_alloc_cmd_packets()
1045 ccb->raw_mbox = (uint8_t *)ccb->mbox; in megaraid_alloc_cmd_packets()
1046 ccb->mbox64 = (mbox64_t *)(mbox_pci_blk[i].vaddr + 8); in megaraid_alloc_cmd_packets()
1047 ccb->mbox_dma_h = (unsigned long)mbox_pci_blk[i].dma_addr + 16; in megaraid_alloc_cmd_packets()
1050 if (ccb->mbox_dma_h & 0x0F) { in megaraid_alloc_cmd_packets()
1057 ccb->epthru = (mraid_epassthru_t *) in megaraid_alloc_cmd_packets()
1059 ccb->epthru_dma_h = epthru_pci_blk[i].dma_addr; in megaraid_alloc_cmd_packets()
1060 ccb->pthru = (mraid_passthru_t *)ccb->epthru; in megaraid_alloc_cmd_packets()
[all …]
/linux-6.1.9/drivers/scsi/pm8001/
Dpm8001_sas.c53 struct pm8001_ccb_info *ccb; in pm8001_find_tag() local
54 ccb = task->lldd_task; in pm8001_find_tag()
55 *tag = ccb->ccb_tag; in pm8001_find_tag()
303 struct pm8001_ccb_info *ccb) in pm8001_task_prep_smp() argument
305 return PM8001_CHIP_DISP->smp_req(pm8001_ha, ccb); in pm8001_task_prep_smp()
326 struct pm8001_ccb_info *ccb) in pm8001_task_prep_ata() argument
328 return PM8001_CHIP_DISP->sata_req(pm8001_ha, ccb); in pm8001_task_prep_ata()
338 struct pm8001_ccb_info *ccb) in pm8001_task_prep_internal_abort() argument
340 return PM8001_CHIP_DISP->task_abort(pm8001_ha, ccb); in pm8001_task_prep_internal_abort()
350 struct pm8001_ccb_info *ccb, struct sas_tmf_task *tmf) in pm8001_task_prep_ssp_tm() argument
[all …]
Dpm8001_hwi.c1528 struct pm8001_ccb_info *ccb; in pm8001_work_fn() local
1547 for (i = 0; ccb = NULL, i < PM8001_MAX_CCB; i++) { in pm8001_work_fn()
1548 ccb = &pm8001_ha->ccb_info[i]; in pm8001_work_fn()
1549 if ((ccb->ccb_tag != PM8001_INVALID_TAG) && in pm8001_work_fn()
1550 (ccb->task == t)) in pm8001_work_fn()
1553 if (!ccb) { in pm8001_work_fn()
1561 pm8001_dev = ccb->device; in pm8001_work_fn()
1571 pm8001_ccb_task_free(pm8001_ha, ccb); in pm8001_work_fn()
1575 pm8001_ccb_task_free(pm8001_ha, ccb); in pm8001_work_fn()
1584 struct pm8001_ccb_info *ccb; in pm8001_work_fn() local
[all …]
Dpm8001_sas.h189 struct pm8001_ccb_info *ccb);
191 struct pm8001_ccb_info *ccb);
193 struct pm8001_ccb_info *ccb);
202 struct pm8001_ccb_info *ccb);
204 struct pm8001_ccb_info *ccb, struct sas_tmf_task *tmf);
642 struct pm8001_ccb_info *ccb);
685 struct pm8001_ccb_info *ccb,
688 struct pm8001_ccb_info *ccb);
744 struct pm8001_ccb_info *ccb; in pm8001_ccb_alloc() local
752 ccb = &pm8001_ha->ccb_info[tag]; in pm8001_ccb_alloc()
[all …]
Dpm80xx_hwi.c1784 struct pm8001_ccb_info *ccb; in pm80xx_send_abort_all() local
1800 ccb = pm8001_ccb_alloc(pm8001_ha, pm8001_ha_dev, task); in pm80xx_send_abort_all()
1801 if (!ccb) { in pm80xx_send_abort_all()
1809 task_abort.tag = cpu_to_le32(ccb->ccb_tag); in pm80xx_send_abort_all()
1816 pm8001_ccb_free(pm8001_ha, ccb); in pm80xx_send_abort_all()
1825 struct pm8001_ccb_info *ccb; in pm80xx_send_read_log() local
1853 ccb = pm8001_ccb_alloc(pm8001_ha, pm8001_ha_dev, task); in pm80xx_send_read_log()
1854 if (!ccb) { in pm80xx_send_read_log()
1873 sata_cmd.tag = cpu_to_le32(ccb->ccb_tag); in pm80xx_send_read_log()
1883 pm8001_ccb_free(pm8001_ha, ccb); in pm80xx_send_read_log()
[all …]
/linux-6.1.9/drivers/net/ethernet/brocade/bna/
Dbnad.c73 bnad_cq_cleanup(struct bnad *bnad, struct bna_ccb *ccb) in bnad_cq_cleanup() argument
78 for (i = 0; i < ccb->q_depth; i++) { in bnad_cq_cleanup()
79 cmpl = &((struct bna_cq_entry *)ccb->sw_q)[i]; in bnad_cq_cleanup()
519 bnad_cq_setup_skb_frags(struct bna_ccb *ccb, struct sk_buff *skb, u32 nvecs) in bnad_cq_setup_skb_frags() argument
527 cq = ccb->sw_q; in bnad_cq_setup_skb_frags()
528 pi = ccb->producer_index; in bnad_cq_setup_skb_frags()
531 rcb = bna_is_small_rxq(cmpl->rxq_id) ? ccb->rcb[1] : ccb->rcb[0]; in bnad_cq_setup_skb_frags()
561 BNA_QE_INDX_INC(pi, ccb->q_depth); in bnad_cq_setup_skb_frags()
587 bnad_cq_process(struct bnad *bnad, struct bna_ccb *ccb, int budget) in bnad_cq_process() argument
594 struct bna_pkt_rate *pkt_rt = &ccb->pkt_rate; in bnad_cq_process()
[all …]
Dbnad_ethtool.c642 if (bnad->rx_info[i].rx_ctrl[j].ccb && in bnad_get_strings()
643 bnad->rx_info[i].rx_ctrl[j].ccb->rcb[1] && in bnad_get_strings()
644 bnad->rx_info[i].rx_ctrl[j].ccb->rcb[1]->rxq) in bnad_get_strings()
689 if (bnad->rx_info[i].rx_ctrl[j].ccb && in bnad_get_stats_count_locked()
690 bnad->rx_info[i].rx_ctrl[j].ccb->rcb[1] && in bnad_get_stats_count_locked()
691 bnad->rx_info[i].rx_ctrl[j].ccb->rcb[1]->rxq) in bnad_get_stats_count_locked()
714 if (bnad->rx_info[i].rx_ctrl[j].ccb && in bnad_per_q_stats_fill()
715 bnad->rx_info[i].rx_ctrl[j].ccb->rcb[0] && in bnad_per_q_stats_fill()
716 bnad->rx_info[i].rx_ctrl[j].ccb->rcb[0]->rxq) { in bnad_per_q_stats_fill()
718 ccb->producer_index; in bnad_per_q_stats_fill()
[all …]
Dbna_tx_rx.c567 rxf->rit[offset] = rxp->cq.ccb->id; in bna_rit_init()
1910 rxp->cq.ccb->sw_qpt = (void **) swqpt_mem->kva; in bna_rxp_cqpt_setup()
1911 rxp->cq.ccb->sw_q = page_mem->kva; in bna_rxp_cqpt_setup()
1917 rxp->cq.ccb->sw_qpt[i] = kva; in bna_rxp_cqpt_setup()
2103 rxp->cq.ccb->i_dbell->doorbell_addr = in bna_bfi_rx_enet_start_rsp()
2119 (*rxp->cq.ccb->hw_producer_index) = 0; in bna_bfi_rx_enet_start_rsp()
2120 rxp->cq.ccb->producer_index = 0; in bna_bfi_rx_enet_start_rsp()
2436 rxp->cq.ccb = (struct bna_ccb *) ccb_mem[i].kva; in bna_rx_create()
2444 rxp->cq.ccb->q_depth = cq_depth; in bna_rx_create()
2445 rxp->cq.ccb->cq = &rxp->cq; in bna_rx_create()
[all …]
/linux-6.1.9/drivers/scsi/arcmsr/
Darcmsr_hba.c1303 static void arcmsr_pci_unmap_dma(struct CommandControlBlock *ccb) in arcmsr_pci_unmap_dma() argument
1305 struct scsi_cmnd *pcmd = ccb->pcmd; in arcmsr_pci_unmap_dma()
1310 static void arcmsr_ccb_complete(struct CommandControlBlock *ccb) in arcmsr_ccb_complete() argument
1312 struct AdapterControlBlock *acb = ccb->acb; in arcmsr_ccb_complete()
1313 struct scsi_cmnd *pcmd = ccb->pcmd; in arcmsr_ccb_complete()
1316 arcmsr_pci_unmap_dma(ccb); in arcmsr_ccb_complete()
1317 ccb->startdone = ARCMSR_CCB_DONE; in arcmsr_ccb_complete()
1319 list_add_tail(&ccb->list, &acb->ccb_free_list); in arcmsr_ccb_complete()
1324 static void arcmsr_report_sense_info(struct CommandControlBlock *ccb) in arcmsr_report_sense_info() argument
1326 struct scsi_cmnd *pcmd = ccb->pcmd; in arcmsr_report_sense_info()
[all …]
/linux-6.1.9/Documentation/sparc/oradax/
Doracle-dax.rst238 struct ccb {
307 ccb->control = /* Table 36.1, CCB Header Format */
318 ccb->completion = 0; /* Completion area address, to be filled in by driver */
320 ccb->input0 = (unsigned long) input; /* primary input address */
322 ccb->access = /* Section 36.2.1.2, Data Access Control */
326 ccb->input1 = 0; /* secondary input address, unused */
328 ccb->op_data = 0; /* scan criteria (value to be matched) */
330 ccb->output = (unsigned long) output; /* output address */
332 ccb->table = 0; /* table address, unused */
338 if (pwrite(fd, ccb, 64, 0) != 64) {
[all …]
/linux-6.1.9/drivers/scsi/aic7xxx/
Daic7xxx_core.c6751 xpt_done((union ccb *)inot); in ahc_send_lstate_events()
7284 ahc_find_tmode_devs(struct ahc_softc *ahc, struct cam_sim *sim, union ccb *ccb, in ahc_find_tmode_devs() argument
7297 if (ccb->ccb_h.target_id == CAM_TARGET_WILDCARD in ahc_find_tmode_devs()
7298 && ccb->ccb_h.target_lun == CAM_LUN_WILDCARD) { in ahc_find_tmode_devs()
7305 if (ccb->ccb_h.target_id >= max_id) in ahc_find_tmode_devs()
7308 if (ccb->ccb_h.target_lun >= AHC_NUM_LUNS) in ahc_find_tmode_devs()
7311 *tstate = ahc->enabled_targets[ccb->ccb_h.target_id]; in ahc_find_tmode_devs()
7315 (*tstate)->enabled_luns[ccb->ccb_h.target_lun]; in ahc_find_tmode_devs()
7325 ahc_handle_en_lun(struct ahc_softc *ahc, struct cam_sim *sim, union ccb *ccb) in ahc_handle_en_lun() argument
7339 status = ahc_find_tmode_devs(ahc, sim, ccb, &tstate, &lstate, in ahc_handle_en_lun()
[all …]
Daic7xxx.h1232 struct cam_sim *sim, union ccb *ccb);
1234 struct cam_sim *sim, union ccb *ccb,
Daic79xx_core.c9222 xpt_done((union ccb *)inot); in ahd_send_lstate_events()
10180 ahd_find_tmode_devs(struct ahd_softc *ahd, struct cam_sim *sim, union ccb *ccb, in ahd_find_tmode_devs() argument
10193 if (ccb->ccb_h.target_id == CAM_TARGET_WILDCARD in ahd_find_tmode_devs()
10194 && ccb->ccb_h.target_lun == CAM_LUN_WILDCARD) { in ahd_find_tmode_devs()
10201 if (ccb->ccb_h.target_id >= max_id) in ahd_find_tmode_devs()
10204 if (ccb->ccb_h.target_lun >= AHD_NUM_LUNS) in ahd_find_tmode_devs()
10207 *tstate = ahd->enabled_targets[ccb->ccb_h.target_id]; in ahd_find_tmode_devs()
10211 (*tstate)->enabled_luns[ccb->ccb_h.target_lun]; in ahd_find_tmode_devs()
10221 ahd_handle_en_lun(struct ahd_softc *ahd, struct cam_sim *sim, union ccb *ccb) in ahd_handle_en_lun() argument
10234 status = ahd_find_tmode_devs(ahd, sim, ccb, &tstate, &lstate, in ahd_handle_en_lun()
[all …]
Daic79xx.h1423 struct cam_sim *sim, union ccb *ccb);
1425 struct cam_sim *sim, union ccb *ccb,
/linux-6.1.9/tools/testing/selftests/powerpc/nx-gzip/include/
Dcrb.h128 struct coprocessor_completion_block ccb; member
/linux-6.1.9/arch/powerpc/include/asm/
Dicswx.h149 struct coprocessor_completion_block ccb; member

12