Home
last modified time | relevance | path

Searched refs:bcom_eng (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/drivers/dma/bestcomm/
Dbestcomm.c38 struct bcom_engine *bcom_eng = NULL; variable
39 EXPORT_SYMBOL_GPL(bcom_eng); /* needed for inline functions */
54 if (!bcom_eng) in bcom_task_alloc()
58 spin_lock(&bcom_eng->lock); in bcom_task_alloc()
61 if (!bcom_eng->tdt[i].stop) { /* we use stop as a marker */ in bcom_task_alloc()
62 bcom_eng->tdt[i].stop = 0xfffffffful; /* dummy addr */ in bcom_task_alloc()
67 spin_unlock(&bcom_eng->lock); in bcom_task_alloc()
82 tsk->irq = irq_of_parse_and_map(bcom_eng->ofnode, tsk->tasknum); in bcom_task_alloc()
113 bcom_eng->tdt[tasknum].stop = 0; in bcom_task_alloc()
126 bcom_eng->tdt[tsk->tasknum].start = 0; in bcom_task_free()
[all …]
Dfec.c123 var->enable = bcom_eng->regs_base + in bcom_fec_rx_reset()
145 out_8(&bcom_eng->regs->ipr[BCOM_INITIATOR_FEC_RX], BCOM_IPR_FEC_RX); in bcom_fec_rx_reset()
147 out_be32(&bcom_eng->regs->IntPend, 1<<tsk->tasknum); /* Clear ints */ in bcom_fec_rx_reset()
224 var->enable = bcom_eng->regs_base + in bcom_fec_tx_reset()
246 out_8(&bcom_eng->regs->ipr[BCOM_INITIATOR_FEC_TX], BCOM_IPR_FEC_TX); in bcom_fec_tx_reset()
248 out_be32(&bcom_eng->regs->IntPend, 1<<tsk->tasknum); /* Clear ints */ in bcom_fec_tx_reset()
Data.c79 var->enable = bcom_eng->regs_base + in bcom_ata_init()
90 out_8(&bcom_eng->regs->ipr[BCOM_INITIATOR_ATA_RX], BCOM_IPR_ATA_RX); in bcom_ata_init()
91 out_8(&bcom_eng->regs->ipr[BCOM_INITIATOR_ATA_TX], BCOM_IPR_ATA_TX); in bcom_ata_init()
93 out_be32(&bcom_eng->regs->IntPend, 1<<tsk->tasknum); /* Clear ints */ in bcom_ata_init()
Dgen_bd.c130 var->enable = bcom_eng->regs_base + in bcom_gen_bd_rx_reset()
151 out_8(&bcom_eng->regs->ipr[priv->initiator], priv->ipr); in bcom_gen_bd_rx_reset()
154 out_be32(&bcom_eng->regs->IntPend, 1<<tsk->tasknum); /* Clear ints */ in bcom_gen_bd_rx_reset()
214 var->enable = bcom_eng->regs_base + in bcom_gen_bd_tx_reset()
235 out_8(&bcom_eng->regs->ipr[priv->initiator], priv->ipr); in bcom_gen_bd_tx_reset()
238 out_be32(&bcom_eng->regs->IntPend, 1<<tsk->tasknum); /* Clear ints */ in bcom_gen_bd_tx_reset()
/linux-6.1.9/include/linux/fsl/bestcomm/
Dbestcomm_priv.h81 extern struct bcom_engine *bcom_eng;
256 regval = in_be16(&bcom_eng->regs->PtdCntrl); in bcom_disable_prefetch()
257 out_be16(&bcom_eng->regs->PtdCntrl, regval | 1); in bcom_disable_prefetch()
264 reg = in_be16(&bcom_eng->regs->tcr[task]); in bcom_enable_task()
265 out_be16(&bcom_eng->regs->tcr[task], reg | TASK_ENABLE); in bcom_enable_task()
271 u16 reg = in_be16(&bcom_eng->regs->tcr[task]); in bcom_disable_task()
272 out_be16(&bcom_eng->regs->tcr[task], reg & ~TASK_ENABLE); in bcom_disable_task()
279 return bcom_sram_pa2va(bcom_eng->tdt[task].start); in bcom_task_desc()
285 return (bcom_eng->tdt[task].stop - bcom_eng->tdt[task].start)/sizeof(u32) + 1; in bcom_task_num_descs()
291 return bcom_sram_pa2va(bcom_eng->tdt[task].var); in bcom_task_var()
[all …]