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()
1594 pl330->dmac_tbd.reset_chan = (1 << pl330->pcfg.num_chan) - 1; in pl330_dotask()
1599 for (i = 0; i < pl330->pcfg.num_chan; i++) { in pl330_dotask()
1651 val = readl(regs + FSC) & ((1 << pl330->pcfg.num_chan) - 1); in pl330_update()
1655 while (i < pl330->pcfg.num_chan) { in pl330_update()
1669 if (pl330->pcfg.num_events < 32 in pl330_update()
1670 && val & ~((1 << pl330->pcfg.num_events) - 1)) { in pl330_update()
1678 for (ev = 0; ev < pl330->pcfg.num_events; ev++) { in pl330_update()
1741 for (ev = 0; ev < pl330->pcfg.num_events; ev++) in _alloc_event()
1752 return pl330->pcfg.irq_ns & (1 << i); in _chan_ns()
1766 chans = pl330->pcfg.num_chan; in pl330_request_channel()
1794 if (ev >= 0 && ev < pl330->pcfg.num_events in _free_event()
1823 pl330->pcfg.data_bus_width = 8 * (1 << val); in read_dmac_config()
1827 pl330->pcfg.data_buf_dep = val + 1; in read_dmac_config()
1832 pl330->pcfg.num_chan = val; in read_dmac_config()
1838 pl330->pcfg.num_peri = val; in read_dmac_config()
1839 pl330->pcfg.peri_ns = readl(regs + CR4); in read_dmac_config()
1841 pl330->pcfg.num_peri = 0; in read_dmac_config()
1846 pl330->pcfg.mode |= DMAC_MODE_NS; in read_dmac_config()
1848 pl330->pcfg.mode &= ~DMAC_MODE_NS; in read_dmac_config()
1853 pl330->pcfg.num_events = val; in read_dmac_config()
1855 pl330->pcfg.irq_ns = readl(regs + CR3); in read_dmac_config()
1879 int chans = pl330->pcfg.num_chan; in dmac_alloc_threads()
1910 int chans = pl330->pcfg.num_chan; in dmac_alloc_resources()
1946 if ((pl330->pcfg.periph_id & 0xfffff) != PERIPH_ID_VAL) { in pl330_add()
1948 pl330->pcfg.periph_id); in pl330_add()
1955 if (pl330->pcfg.num_events == 0) { in pl330_add()
1970 for (i = 0; i < pl330->pcfg.num_events; i++) in pl330_add()
1993 for (i = 0; i < pl330->pcfg.num_chan; i++) { in dmac_free_threads()
2014 pl330->pcfg.num_chan * pl330->mcbufsz, pl330->mcode_cpu, in pl330_del()
2608 desc->rqcfg.pcfg = &pch->dmac->pcfg; in pl330_get_desc()
2657 burst_len = pl330->pcfg.data_bus_width / 8; in get_burst_len()
2658 burst_len *= pl330->pcfg.data_buf_dep / pl330->pcfg.num_chan; in get_burst_len()
2782 burst = pl330->pcfg.data_bus_width / 8; in pl330_prep_dma_memcpy()
2801 if (burst * 8 < pl330->pcfg.data_bus_width) in pl330_prep_dma_memcpy()
2913 chans = pl330->pcfg.num_chan; in pl330_debugfs_show()
2993 struct pl330_config *pcfg; in pl330_probe() local
3064 pcfg = &pl330->pcfg; in pl330_probe()
3066 pcfg->periph_id = adev->periphid; in pl330_probe()
3082 num_chan = max_t(int, pcfg->num_peri, pcfg->num_chan); in pl330_probe()
3110 if (pcfg->num_peri) { in pl330_probe()
3161 pcfg->data_buf_dep, pcfg->data_bus_width / 8, pcfg->num_chan, in pl330_probe()
3162 pcfg->num_peri, pcfg->num_events); in pl330_probe()