Lines Matching refs:phychan
236 struct pl08x_phy_chan *phychan; member
362 struct pl08x_phy_chan *phychan, const u32 *lli, u32 ccfg) in pl08x_write_lli() argument
368 phychan->id, lli[PL080_LLI_SRC], lli[PL080_LLI_DST], in pl08x_write_lli()
375 phychan->id, lli[PL080_LLI_SRC], lli[PL080_LLI_DST], in pl08x_write_lli()
378 writel_relaxed(lli[PL080_LLI_SRC], phychan->base + PL080_CH_SRC_ADDR); in pl08x_write_lli()
379 writel_relaxed(lli[PL080_LLI_DST], phychan->base + PL080_CH_DST_ADDR); in pl08x_write_lli()
380 writel_relaxed(lli[PL080_LLI_LLI], phychan->base + PL080_CH_LLI); in pl08x_write_lli()
381 writel_relaxed(lli[PL080_LLI_CCTL], phychan->base + PL080_CH_CONTROL); in pl08x_write_lli()
385 phychan->base + PL080S_CH_CONTROL2); in pl08x_write_lli()
387 writel(ccfg, phychan->reg_config); in pl08x_write_lli()
399 struct pl08x_phy_chan *phychan = plchan->phychan; in pl08x_start_next_txd() local
409 while (pl08x_phy_channel_busy(phychan)) in pl08x_start_next_txd()
412 pl08x_write_lli(pl08x, phychan, &txd->llis_va[0], txd->ccfg); in pl08x_start_next_txd()
416 while (readl(pl08x->base + PL080_EN_CHAN) & (1 << phychan->id)) in pl08x_start_next_txd()
420 val = readl(phychan->reg_config); in pl08x_start_next_txd()
422 val = readl(phychan->reg_config); in pl08x_start_next_txd()
424 writel(val | PL080_CONFIG_ENABLE, phychan->reg_config); in pl08x_start_next_txd()
539 ch = plchan->phychan; in pl08x_getbytes_chan()
659 plchan->phychan = ch; in pl08x_phy_alloc_and_start()
678 plchan->phychan = ch; in pl08x_phy_reassign_start()
711 pl08x_terminate_phy_chan(pl08x, plchan->phychan); in pl08x_phy_free()
724 pl08x_phy_reassign_start(plchan->phychan, next); in pl08x_phy_free()
732 pl08x_put_phy_channel(pl08x, plchan->phychan); in pl08x_phy_free()
735 plchan->phychan = NULL; in pl08x_phy_free()
1399 if (!plchan->phychan && plchan->state != PL08X_CHAN_WAITING) in pl08x_issue_pending()
1702 if (!plchan->phychan && !plchan->at) { in pl08x_terminate_all()
1709 if (plchan->phychan) { in pl08x_terminate_all()
1739 if (!plchan->phychan && !plchan->at) { in pl08x_pause()
1744 pl08x_pause_phy_chan(plchan->phychan); in pl08x_pause()
1762 if (!plchan->phychan && !plchan->at) { in pl08x_resume()
1767 pl08x_resume_phy_chan(plchan->phychan); in pl08x_resume()
1830 struct pl08x_phy_chan *phychan = &pl08x->phy_chans[i]; in pl08x_irq() local
1831 struct pl08x_dma_chan *plchan = phychan->serving; in pl08x_irq()