Lines Matching refs:phychan
234 struct pl08x_phy_chan *phychan; member
360 struct pl08x_phy_chan *phychan, const u32 *lli, u32 ccfg) in pl08x_write_lli() argument
366 phychan->id, lli[PL080_LLI_SRC], lli[PL080_LLI_DST], in pl08x_write_lli()
373 phychan->id, lli[PL080_LLI_SRC], lli[PL080_LLI_DST], in pl08x_write_lli()
376 writel_relaxed(lli[PL080_LLI_SRC], phychan->base + PL080_CH_SRC_ADDR); in pl08x_write_lli()
377 writel_relaxed(lli[PL080_LLI_DST], phychan->base + PL080_CH_DST_ADDR); in pl08x_write_lli()
378 writel_relaxed(lli[PL080_LLI_LLI], phychan->base + PL080_CH_LLI); in pl08x_write_lli()
379 writel_relaxed(lli[PL080_LLI_CCTL], phychan->base + PL080_CH_CONTROL); in pl08x_write_lli()
383 phychan->base + PL080S_CH_CONTROL2); in pl08x_write_lli()
385 writel(ccfg, phychan->reg_config); in pl08x_write_lli()
397 struct pl08x_phy_chan *phychan = plchan->phychan; in pl08x_start_next_txd() local
407 while (pl08x_phy_channel_busy(phychan)) in pl08x_start_next_txd()
410 pl08x_write_lli(pl08x, phychan, &txd->llis_va[0], txd->ccfg); in pl08x_start_next_txd()
414 while (readl(pl08x->base + PL080_EN_CHAN) & (1 << phychan->id)) in pl08x_start_next_txd()
418 val = readl(phychan->reg_config); in pl08x_start_next_txd()
420 val = readl(phychan->reg_config); in pl08x_start_next_txd()
422 writel(val | PL080_CONFIG_ENABLE, phychan->reg_config); in pl08x_start_next_txd()
537 ch = plchan->phychan; in pl08x_getbytes_chan()
657 plchan->phychan = ch; in pl08x_phy_alloc_and_start()
676 plchan->phychan = ch; in pl08x_phy_reassign_start()
709 pl08x_terminate_phy_chan(pl08x, plchan->phychan); in pl08x_phy_free()
722 pl08x_phy_reassign_start(plchan->phychan, next); in pl08x_phy_free()
730 pl08x_put_phy_channel(pl08x, plchan->phychan); in pl08x_phy_free()
733 plchan->phychan = NULL; in pl08x_phy_free()
1397 if (!plchan->phychan && plchan->state != PL08X_CHAN_WAITING) in pl08x_issue_pending()
1700 if (!plchan->phychan && !plchan->at) { in pl08x_terminate_all()
1707 if (plchan->phychan) { in pl08x_terminate_all()
1737 if (!plchan->phychan && !plchan->at) { in pl08x_pause()
1742 pl08x_pause_phy_chan(plchan->phychan); in pl08x_pause()
1760 if (!plchan->phychan && !plchan->at) { in pl08x_resume()
1765 pl08x_resume_phy_chan(plchan->phychan); in pl08x_resume()
1828 struct pl08x_phy_chan *phychan = &pl08x->phy_chans[i]; in pl08x_irq() local
1829 struct pl08x_dma_chan *plchan = phychan->serving; in pl08x_irq()