Lines Matching refs:pcfg
314 struct pl330_config *pcfg; member
473 struct pl330_config pcfg; member
566 return (thrd->dmac->pcfg.mode & DMAC_MODE_NS) ? true : false; in _manager_ns()
1093 struct pl330_config *pcfg = pxs->desc->rqcfg.pcfg; in _ldst_memtomem() local
1096 if (get_revision(pcfg->periph_id) >= PERIPH_REV_R1P0) { in _ldst_memtomem()
1501 desc->peri >= pl330->pcfg.num_peri) { in pl330_submit_req()
1596 pl330->dmac_tbd.reset_chan = (1 << pl330->pcfg.num_chan) - 1; in pl330_dotask()
1601 for (i = 0; i < pl330->pcfg.num_chan; i++) { in pl330_dotask()
1653 val = readl(regs + FSC) & ((1 << pl330->pcfg.num_chan) - 1); in pl330_update()
1657 while (i < pl330->pcfg.num_chan) { in pl330_update()
1671 if (pl330->pcfg.num_events < 32 in pl330_update()
1672 && val & ~((1 << pl330->pcfg.num_events) - 1)) { in pl330_update()
1680 for (ev = 0; ev < pl330->pcfg.num_events; ev++) { in pl330_update()
1743 for (ev = 0; ev < pl330->pcfg.num_events; ev++) in _alloc_event()
1754 return pl330->pcfg.irq_ns & (1 << i); in _chan_ns()
1768 chans = pl330->pcfg.num_chan; in pl330_request_channel()
1796 if (ev >= 0 && ev < pl330->pcfg.num_events in _free_event()
1825 pl330->pcfg.data_bus_width = 8 * (1 << val); in read_dmac_config()
1829 pl330->pcfg.data_buf_dep = val + 1; in read_dmac_config()
1834 pl330->pcfg.num_chan = val; in read_dmac_config()
1840 pl330->pcfg.num_peri = val; in read_dmac_config()
1841 pl330->pcfg.peri_ns = readl(regs + CR4); in read_dmac_config()
1843 pl330->pcfg.num_peri = 0; in read_dmac_config()
1848 pl330->pcfg.mode |= DMAC_MODE_NS; in read_dmac_config()
1850 pl330->pcfg.mode &= ~DMAC_MODE_NS; in read_dmac_config()
1855 pl330->pcfg.num_events = val; in read_dmac_config()
1857 pl330->pcfg.irq_ns = readl(regs + CR3); in read_dmac_config()
1881 int chans = pl330->pcfg.num_chan; in dmac_alloc_threads()
1912 int chans = pl330->pcfg.num_chan; in dmac_alloc_resources()
1948 if ((pl330->pcfg.periph_id & 0xfffff) != PERIPH_ID_VAL) { in pl330_add()
1950 pl330->pcfg.periph_id); in pl330_add()
1957 if (pl330->pcfg.num_events == 0) { in pl330_add()
1972 for (i = 0; i < pl330->pcfg.num_events; i++) in pl330_add()
1995 for (i = 0; i < pl330->pcfg.num_chan; i++) { in dmac_free_threads()
2016 pl330->pcfg.num_chan * pl330->mcbufsz, pl330->mcode_cpu, in pl330_del()
2610 desc->rqcfg.pcfg = &pch->dmac->pcfg; in pl330_get_desc()
2659 burst_len = pl330->pcfg.data_bus_width / 8; in get_burst_len()
2660 burst_len *= pl330->pcfg.data_buf_dep / pl330->pcfg.num_chan; in get_burst_len()
2785 burst = pl330->pcfg.data_bus_width / 8; in pl330_prep_dma_memcpy()
2804 if (burst * 8 < pl330->pcfg.data_bus_width) in pl330_prep_dma_memcpy()
2919 chans = pl330->pcfg.num_chan; in pl330_debugfs_show()
2999 struct pl330_config *pcfg; in pl330_probe() local
3070 pcfg = &pl330->pcfg; in pl330_probe()
3072 pcfg->periph_id = adev->periphid; in pl330_probe()
3088 num_chan = max_t(int, pcfg->num_peri, pcfg->num_chan); in pl330_probe()
3116 if (pcfg->num_peri) { in pl330_probe()
3167 pcfg->data_buf_dep, pcfg->data_bus_width / 8, pcfg->num_chan, in pl330_probe()
3168 pcfg->num_peri, pcfg->num_events); in pl330_probe()