Lines Matching refs:phychan
249 struct pl08x_phy_chan *phychan; member
392 struct pl08x_phy_chan *phychan, const u32 *lli, u32 ccfg) in pl08x_write_lli() argument
398 phychan->id, lli[PL080_LLI_SRC], lli[PL080_LLI_DST], in pl08x_write_lli()
405 phychan->id, lli[PL080_LLI_SRC], lli[PL080_LLI_DST], in pl08x_write_lli()
408 writel_relaxed(lli[PL080_LLI_SRC], phychan->reg_src); in pl08x_write_lli()
409 writel_relaxed(lli[PL080_LLI_DST], phychan->reg_dst); in pl08x_write_lli()
410 writel_relaxed(lli[PL080_LLI_LLI], phychan->reg_lli); in pl08x_write_lli()
418 if (phychan->ftdmac020) { in pl08x_write_lli()
424 phychan->base + FTDMAC020_CH_SIZE); in pl08x_write_lli()
507 writel_relaxed(val, phychan->reg_control); in pl08x_write_lli()
510 writel_relaxed(lli[PL080_LLI_CCTL], phychan->reg_control); in pl08x_write_lli()
516 phychan->base + PL080S_CH_CONTROL2); in pl08x_write_lli()
518 writel(ccfg, phychan->reg_config); in pl08x_write_lli()
530 struct pl08x_phy_chan *phychan = plchan->phychan; in pl08x_start_next_txd() local
540 while (pl08x_phy_channel_busy(phychan)) in pl08x_start_next_txd()
543 pl08x_write_lli(pl08x, phychan, &txd->llis_va[0], txd->ccfg); in pl08x_start_next_txd()
547 while (readl(pl08x->base + PL080_EN_CHAN) & BIT(phychan->id)) in pl08x_start_next_txd()
551 if (phychan->ftdmac020) { in pl08x_start_next_txd()
552 val = readl(phychan->reg_config); in pl08x_start_next_txd()
554 val = readl(phychan->reg_config); in pl08x_start_next_txd()
556 val = readl(phychan->reg_control); in pl08x_start_next_txd()
558 val = readl(phychan->reg_control); in pl08x_start_next_txd()
561 phychan->reg_control); in pl08x_start_next_txd()
563 val = readl(phychan->reg_config); in pl08x_start_next_txd()
566 val = readl(phychan->reg_config); in pl08x_start_next_txd()
568 writel(val | PL080_CONFIG_ENABLE, phychan->reg_config); in pl08x_start_next_txd()
764 ch = plchan->phychan; in pl08x_getbytes_chan()
875 plchan->phychan = ch; in pl08x_phy_alloc_and_start()
894 plchan->phychan = ch; in pl08x_phy_reassign_start()
934 pl08x_terminate_phy_chan(pl08x, plchan->phychan); in pl08x_phy_free()
947 pl08x_phy_reassign_start(plchan->phychan, next); in pl08x_phy_free()
955 pl08x_put_phy_channel(pl08x, plchan->phychan); in pl08x_phy_free()
958 plchan->phychan = NULL; in pl08x_phy_free()
1738 if (!plchan->phychan && plchan->state != PL08X_CHAN_WAITING) in pl08x_issue_pending()
2159 if (!plchan->phychan && !plchan->at) { in pl08x_terminate_all()
2166 if (plchan->phychan) { in pl08x_terminate_all()
2203 if (!plchan->phychan && !plchan->at) { in pl08x_pause()
2208 pl08x_pause_phy_chan(plchan->phychan); in pl08x_pause()
2226 if (!plchan->phychan && !plchan->at) { in pl08x_resume()
2231 pl08x_resume_phy_chan(plchan->phychan); in pl08x_resume()
2306 struct pl08x_phy_chan *phychan = &pl08x->phy_chans[i]; in pl08x_irq() local
2307 struct pl08x_dma_chan *plchan = phychan->serving; in pl08x_irq()