Home
last modified time | relevance | path

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

12

/Linux-v5.10/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-v5.10/drivers/scsi/
Daha1542.c64 struct ccb *ccb; member
270 struct ccb *ccb = aha1542->ccb; in aha1542_interrupt() local
329 mbo = (scsi2int(mb[mbi].ccbptr) - (unsigned long)aha1542->ccb_handle) / sizeof(struct ccb); in aha1542_interrupt()
335 if (ccb[mbo].tarstat | ccb[mbo].hastat) in aha1542_interrupt()
337 ccb[mbo].tarstat + ((int) ccb[mbo].hastat << 16), mb[mbi].status); in aha1542_interrupt()
352 shost_printk(KERN_WARNING, sh, "tarstat=%x, hastat=%x idlun=%x ccb#=%d\n", ccb[mbo].tarstat, in aha1542_interrupt()
353 ccb[mbo].hastat, ccb[mbo].idlun, mbo); in aha1542_interrupt()
361 if (ccb[mbo].tarstat == 2) in aha1542_interrupt()
362 memcpy(tmp_cmd->sense_buffer, &ccb[mbo].cdb[ccb[mbo].cdblen], in aha1542_interrupt()
371 errstatus = makecode(ccb[mbo].hastat, ccb[mbo].tarstat); in aha1542_interrupt()
[all …]
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 …]
Dstex.c329 struct st_ccb *ccb; member
426 struct req_msg *req, struct st_ccb *ccb) in stex_map_sg() argument
434 cmd = ccb->cmd; in stex_map_sg()
440 ccb->sg_count = nseg; in stex_map_sg()
458 struct req_msg *req, struct st_ccb *ccb) in stex_ss_map_sg() argument
466 cmd = ccb->cmd; in stex_ss_map_sg()
472 ccb->sg_count = nseg; in stex_ss_map_sg()
490 static void stex_controller_info(struct st_hba *hba, struct st_ccb *ccb) in stex_controller_info() argument
496 scsi_sg_copy_to_buffer(ccb->cmd, p, count); in stex_controller_info()
514 scsi_sg_copy_from_buffer(ccb->cmd, p, count); in stex_controller_info()
[all …]
Dncr53c8xx.c1116 struct ccb;
1198 struct ccb * nego_cp;
1314 struct ccb * held_ccb; /* CCB held for QUEUE FULL */
1380 struct ccb * cp;
1500 struct ccb { struct
1570 struct ccb * link_ccb; /* Host adapter CCB chain */ argument
1576 #define CCB_PHYS(cp,lbl) (cp->p_ccb + offsetof(struct ccb, lbl)) argument
1737 struct ccb *(ccb_done[MAX_DONE]);
1744 struct ccb *ccb; /* Global CCB */ member
1908 static void ncr_complete (struct ncb *np, struct ccb *cp);
[all …]
Daha1542.h81 struct ccb { /* Command Control Block 5.3 */ struct
/Linux-v5.10/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.h78 struct ccb { struct
131 struct ccb driver_ccb;
134 struct ccb ilo_ccb;
137 struct ccb __iomem *mapped_ccb;
/Linux-v5.10/drivers/scsi/megaraid/
Dmegaraid_mbox.c952 mbox_ccb_t *ccb; in megaraid_alloc_cmd_packets() local
1040 ccb = raid_dev->ccb_list + i; in megaraid_alloc_cmd_packets()
1042 ccb->mbox = (mbox_t *)(mbox_pci_blk[i].vaddr + 16); in megaraid_alloc_cmd_packets()
1043 ccb->raw_mbox = (uint8_t *)ccb->mbox; in megaraid_alloc_cmd_packets()
1044 ccb->mbox64 = (mbox64_t *)(mbox_pci_blk[i].vaddr + 8); in megaraid_alloc_cmd_packets()
1045 ccb->mbox_dma_h = (unsigned long)mbox_pci_blk[i].dma_addr + 16; in megaraid_alloc_cmd_packets()
1048 if (ccb->mbox_dma_h & 0x0F) { in megaraid_alloc_cmd_packets()
1055 ccb->epthru = (mraid_epassthru_t *) in megaraid_alloc_cmd_packets()
1057 ccb->epthru_dma_h = epthru_pci_blk[i].dma_addr; in megaraid_alloc_cmd_packets()
1058 ccb->pthru = (mraid_passthru_t *)ccb->epthru; in megaraid_alloc_cmd_packets()
[all …]
/Linux-v5.10/drivers/scsi/pm8001/
Dpm8001_sas.c52 struct pm8001_ccb_info *ccb; in pm8001_find_tag() local
53 ccb = task->lldd_task; in pm8001_find_tag()
54 *tag = ccb->ccb_tag; in pm8001_find_tag()
298 struct pm8001_ccb_info *ccb) in pm8001_task_prep_smp() argument
300 return PM8001_CHIP_DISP->smp_req(pm8001_ha, ccb); in pm8001_task_prep_smp()
325 struct pm8001_ccb_info *ccb) in pm8001_task_prep_ata() argument
327 return PM8001_CHIP_DISP->sata_req(pm8001_ha, ccb); in pm8001_task_prep_ata()
337 struct pm8001_ccb_info *ccb, struct pm8001_tmf_task *tmf) in pm8001_task_prep_ssp_tm() argument
339 return PM8001_CHIP_DISP->ssp_tm_req(pm8001_ha, ccb, tmf); in pm8001_task_prep_ssp_tm()
348 struct pm8001_ccb_info *ccb) in pm8001_task_prep_ssp() argument
[all …]
Dpm8001_hwi.c1546 struct pm8001_ccb_info *ccb; in pm8001_work_fn() local
1565 for (i = 0; ccb = NULL, i < PM8001_MAX_CCB; i++) { in pm8001_work_fn()
1566 ccb = &pm8001_ha->ccb_info[i]; in pm8001_work_fn()
1567 tag = ccb->ccb_tag; in pm8001_work_fn()
1568 if ((tag != 0xFFFFFFFF) && (ccb->task == t)) in pm8001_work_fn()
1571 if (!ccb) { in pm8001_work_fn()
1579 pm8001_dev = ccb->device; in pm8001_work_fn()
1592 pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); in pm8001_work_fn()
1596 pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); in pm8001_work_fn()
1606 struct pm8001_ccb_info *ccb; in pm8001_work_fn() local
[all …]
Dpm80xx_hwi.c1764 struct pm8001_ccb_info *ccb; in pm80xx_send_abort_all() local
1792 ccb = &pm8001_ha->ccb_info[ccb_tag]; in pm80xx_send_abort_all()
1793 ccb->device = pm8001_ha_dev; in pm80xx_send_abort_all()
1794 ccb->ccb_tag = ccb_tag; in pm80xx_send_abort_all()
1795 ccb->task = task; in pm80xx_send_abort_all()
1820 struct pm8001_ccb_info *ccb; in pm80xx_send_read_log() local
1859 ccb = &pm8001_ha->ccb_info[ccb_tag]; in pm80xx_send_read_log()
1860 ccb->device = pm8001_ha_dev; in pm80xx_send_read_log()
1861 ccb->ccb_tag = ccb_tag; in pm80xx_send_read_log()
1862 ccb->task = task; in pm80xx_send_read_log()
[all …]
Dpm8001_sas.h219 struct pm8001_ccb_info *ccb);
221 struct pm8001_ccb_info *ccb);
223 struct pm8001_ccb_info *ccb);
235 struct pm8001_ccb_info *ccb, struct pm8001_tmf_task *tmf);
666 struct sas_task *task, struct pm8001_ccb_info *ccb, u32 ccb_idx);
711 struct pm8001_ccb_info *ccb,
762 struct sas_task *task, struct pm8001_ccb_info *ccb, in pm8001_ccb_task_free_done() argument
765 pm8001_ccb_task_free(pm8001_ha, task, ccb, ccb_idx); in pm8001_ccb_task_free_done()
/Linux-v5.10/drivers/scsi/arcmsr/
Darcmsr_hba.c1308 static void arcmsr_pci_unmap_dma(struct CommandControlBlock *ccb) in arcmsr_pci_unmap_dma() argument
1310 struct scsi_cmnd *pcmd = ccb->pcmd; in arcmsr_pci_unmap_dma()
1315 static void arcmsr_ccb_complete(struct CommandControlBlock *ccb) in arcmsr_ccb_complete() argument
1317 struct AdapterControlBlock *acb = ccb->acb; in arcmsr_ccb_complete()
1318 struct scsi_cmnd *pcmd = ccb->pcmd; in arcmsr_ccb_complete()
1321 arcmsr_pci_unmap_dma(ccb); in arcmsr_ccb_complete()
1322 ccb->startdone = ARCMSR_CCB_DONE; in arcmsr_ccb_complete()
1324 list_add_tail(&ccb->list, &acb->ccb_free_list); in arcmsr_ccb_complete()
1329 static void arcmsr_report_sense_info(struct CommandControlBlock *ccb) in arcmsr_report_sense_info() argument
1332 struct scsi_cmnd *pcmd = ccb->pcmd; in arcmsr_report_sense_info()
[all …]
/Linux-v5.10/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.c650 if (bnad->rx_info[i].rx_ctrl[j].ccb && in bnad_get_strings()
651 bnad->rx_info[i].rx_ctrl[j].ccb-> in bnad_get_strings()
653 bnad->rx_info[i].rx_ctrl[j].ccb-> in bnad_get_strings()
737 if (bnad->rx_info[i].rx_ctrl[j].ccb && in bnad_get_stats_count_locked()
738 bnad->rx_info[i].rx_ctrl[j].ccb->rcb[1] && in bnad_get_stats_count_locked()
739 bnad->rx_info[i].rx_ctrl[j].ccb->rcb[1]->rxq) in bnad_get_stats_count_locked()
762 if (bnad->rx_info[i].rx_ctrl[j].ccb && in bnad_per_q_stats_fill()
763 bnad->rx_info[i].rx_ctrl[j].ccb->rcb[0] && in bnad_per_q_stats_fill()
764 bnad->rx_info[i].rx_ctrl[j].ccb->rcb[0]->rxq) { in bnad_per_q_stats_fill()
766 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-v5.10/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-v5.10/drivers/scsi/aic7xxx/
Daic7xxx_core.c6756 xpt_done((union ccb *)inot); in ahc_send_lstate_events()
7290 ahc_find_tmode_devs(struct ahc_softc *ahc, struct cam_sim *sim, union ccb *ccb, in ahc_find_tmode_devs() argument
7303 if (ccb->ccb_h.target_id == CAM_TARGET_WILDCARD in ahc_find_tmode_devs()
7304 && ccb->ccb_h.target_lun == CAM_LUN_WILDCARD) { in ahc_find_tmode_devs()
7311 if (ccb->ccb_h.target_id >= max_id) in ahc_find_tmode_devs()
7314 if (ccb->ccb_h.target_lun >= AHC_NUM_LUNS) in ahc_find_tmode_devs()
7317 *tstate = ahc->enabled_targets[ccb->ccb_h.target_id]; in ahc_find_tmode_devs()
7321 (*tstate)->enabled_luns[ccb->ccb_h.target_lun]; in ahc_find_tmode_devs()
7331 ahc_handle_en_lun(struct ahc_softc *ahc, struct cam_sim *sim, union ccb *ccb) in ahc_handle_en_lun() argument
7345 status = ahc_find_tmode_devs(ahc, sim, ccb, &tstate, &lstate, in ahc_handle_en_lun()
[all …]
Daic7xxx.h1238 struct cam_sim *sim, union ccb *ccb);
1240 struct cam_sim *sim, union ccb *ccb,
Daic79xx_core.c9226 xpt_done((union ccb *)inot); in ahd_send_lstate_events()
10185 ahd_find_tmode_devs(struct ahd_softc *ahd, struct cam_sim *sim, union ccb *ccb, in ahd_find_tmode_devs() argument
10198 if (ccb->ccb_h.target_id == CAM_TARGET_WILDCARD in ahd_find_tmode_devs()
10199 && ccb->ccb_h.target_lun == CAM_LUN_WILDCARD) { in ahd_find_tmode_devs()
10206 if (ccb->ccb_h.target_id >= max_id) in ahd_find_tmode_devs()
10209 if (ccb->ccb_h.target_lun >= AHD_NUM_LUNS) in ahd_find_tmode_devs()
10212 *tstate = ahd->enabled_targets[ccb->ccb_h.target_id]; in ahd_find_tmode_devs()
10216 (*tstate)->enabled_luns[ccb->ccb_h.target_lun]; in ahd_find_tmode_devs()
10226 ahd_handle_en_lun(struct ahd_softc *ahd, struct cam_sim *sim, union ccb *ccb) in ahd_handle_en_lun() argument
10239 status = ahd_find_tmode_devs(ahd, sim, ccb, &tstate, &lstate, in ahd_handle_en_lun()
[all …]
Daic79xx.h1427 struct cam_sim *sim, union ccb *ccb);
1429 struct cam_sim *sim, union ccb *ccb,
/Linux-v5.10/tools/testing/selftests/powerpc/nx-gzip/include/
Dcrb.h128 struct coprocessor_completion_block ccb; member
/Linux-v5.10/arch/powerpc/include/asm/
Dicswx.h149 struct coprocessor_completion_block ccb; member

12