Searched refs:bcom_eng (Results 1 – 5 of 5) sorted by relevance
/linux/drivers/dma/bestcomm/ |
H A D | bestcomm.c | 37 struct bcom_engine *bcom_eng = NULL; variable 38 EXPORT_SYMBOL_GPL(bcom_eng); /* needed for inline functions */ 53 if (!bcom_eng) in bcom_task_alloc() 57 spin_lock(&bcom_eng->lock); in bcom_task_alloc() 60 if (!bcom_eng->tdt[i].stop) { /* we use stop as a marker */ in bcom_task_alloc() 61 bcom_eng->tdt[i].stop = 0xfffffffful; /* dummy addr */ in bcom_task_alloc() 66 spin_unlock(&bcom_eng->lock); in bcom_task_alloc() 81 tsk->irq = irq_of_parse_and_map(bcom_eng->ofnode, tsk->tasknum); in bcom_task_alloc() 112 bcom_eng->tdt[tasknum].stop = 0; in bcom_task_alloc() 125 bcom_eng->tdt[tsk->tasknum].start = 0; in bcom_task_free() [all …]
|
H A D | fec.c | 123 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()
|
H A D | ata.c | 79 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()
|
H A D | gen_bd.c | 130 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/include/linux/fsl/bestcomm/ |
H A D | bestcomm_priv.h | 81 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 …]
|