Home
last modified time | relevance | path

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

/linux-2.6.39/arch/powerpc/sysdev/bestcomm/
Dbestcomm.c40 struct bcom_engine *bcom_eng = NULL; variable
41 EXPORT_SYMBOL_GPL(bcom_eng); /* needed for inline functions */
56 if (!bcom_eng) in bcom_task_alloc()
60 spin_lock(&bcom_eng->lock); in bcom_task_alloc()
63 if (!bcom_eng->tdt[i].stop) { /* we use stop as a marker */ in bcom_task_alloc()
64 bcom_eng->tdt[i].stop = 0xfffffffful; /* dummy addr */ in bcom_task_alloc()
69 spin_unlock(&bcom_eng->lock); in bcom_task_alloc()
84 tsk->irq = irq_of_parse_and_map(bcom_eng->ofnode, tsk->tasknum); in bcom_task_alloc()
114 bcom_eng->tdt[tasknum].stop = 0; in bcom_task_alloc()
127 bcom_eng->tdt[tsk->tasknum].start = 0; in bcom_task_free()
[all …]
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 …]
Dfec.c127 var->enable = bcom_eng->regs_base + in bcom_fec_rx_reset()
149 out_8(&bcom_eng->regs->ipr[BCOM_INITIATOR_FEC_RX], BCOM_IPR_FEC_RX); in bcom_fec_rx_reset()
151 out_be32(&bcom_eng->regs->IntPend, 1<<tsk->tasknum); /* Clear ints */ in bcom_fec_rx_reset()
228 var->enable = bcom_eng->regs_base + in bcom_fec_tx_reset()
250 out_8(&bcom_eng->regs->ipr[BCOM_INITIATOR_FEC_TX], BCOM_IPR_FEC_TX); in bcom_fec_tx_reset()
252 out_be32(&bcom_eng->regs->IntPend, 1<<tsk->tasknum); /* Clear ints */ in bcom_fec_tx_reset()
Data.c83 var->enable = bcom_eng->regs_base + in bcom_ata_init()
94 out_8(&bcom_eng->regs->ipr[BCOM_INITIATOR_ATA_RX], BCOM_IPR_ATA_RX); in bcom_ata_init()
95 out_8(&bcom_eng->regs->ipr[BCOM_INITIATOR_ATA_TX], BCOM_IPR_ATA_TX); in bcom_ata_init()
97 out_be32(&bcom_eng->regs->IntPend, 1<<tsk->tasknum); /* Clear ints */ in bcom_ata_init()
Dgen_bd.c134 var->enable = bcom_eng->regs_base + in bcom_gen_bd_rx_reset()
155 out_8(&bcom_eng->regs->ipr[priv->initiator], priv->ipr); in bcom_gen_bd_rx_reset()
158 out_be32(&bcom_eng->regs->IntPend, 1<<tsk->tasknum); /* Clear ints */ in bcom_gen_bd_rx_reset()
218 var->enable = bcom_eng->regs_base + in bcom_gen_bd_tx_reset()
239 out_8(&bcom_eng->regs->ipr[priv->initiator], priv->ipr); in bcom_gen_bd_tx_reset()
242 out_be32(&bcom_eng->regs->IntPend, 1<<tsk->tasknum); /* Clear ints */ in bcom_gen_bd_tx_reset()