Lines Matching refs:cfg
96 const struct hpb_dmae_slave_config *cfg; member
320 if (chan->cfg->flags & HPB_DMAE_SET_ASYNC_RESET) in hpb_dmae_start_xfer()
321 hpb_dmae_async_reset(hpbdev, chan->cfg->rstr); in hpb_dmae_start_xfer()
350 int ch = chan->cfg->dma_ch; in hpb_dmae_chan_irq()
401 const struct hpb_dmae_slave_config *cfg) in hpb_dmae_alloc_chan_resources() argument
406 int slave_id = cfg->id; in hpb_dmae_alloc_chan_resources()
414 HPB_DMAE_CHAN(cfg->dma_ch); in hpb_dmae_alloc_chan_resources()
418 dev_dbg(dev, " -- cfg->dma_ch : %d\n", cfg->dma_ch); in hpb_dmae_alloc_chan_resources()
437 if ((cfg->dcr & (HPB_DMAE_DCR_CT | HPB_DMAE_DCR_DIP)) == 0) { in hpb_dmae_alloc_chan_resources()
439 } else if ((cfg->dcr & (HPB_DMAE_DCR_CT | HPB_DMAE_DCR_DIP)) == in hpb_dmae_alloc_chan_resources()
447 if (cfg->flags & HPB_DMAE_SET_ASYNC_MODE) in hpb_dmae_alloc_chan_resources()
448 hpb_dmae_set_async_mode(hpbdev, cfg->mdm, cfg->mdr); in hpb_dmae_alloc_chan_resources()
449 ch_reg_write(hpb_chan, cfg->dcr, HPB_DMAE_DCR); in hpb_dmae_alloc_chan_resources()
450 ch_reg_write(hpb_chan, cfg->port, HPB_DMAE_DPTR); in hpb_dmae_alloc_chan_resources()
452 hpb_dmae_enable_int(hpbdev, cfg->dma_ch); in hpb_dmae_alloc_chan_resources()
468 chan->cfg = sc; in hpb_dmae_set_slave()