Lines Matching refs:rg

95 	struct edma3_slot_layout *rg;  in edma3_set_dest()  local
97 rg = (struct edma3_slot_layout *)(base + EDMA3_SL_BASE(slot)); in edma3_set_dest()
99 opt = __raw_readl(&rg->opt); in edma3_set_dest()
107 __raw_writel(opt, &rg->opt); in edma3_set_dest()
108 __raw_writel(dst, &rg->dst); in edma3_set_dest()
126 struct edma3_slot_layout *rg; in edma3_set_dest_index() local
128 rg = (struct edma3_slot_layout *)(base + EDMA3_SL_BASE(slot)); in edma3_set_dest_index()
130 src_dst_bidx = __raw_readl(&rg->src_dst_bidx); in edma3_set_dest_index()
131 src_dst_cidx = __raw_readl(&rg->src_dst_cidx); in edma3_set_dest_index()
134 &rg->src_dst_bidx); in edma3_set_dest_index()
136 &rg->src_dst_cidx); in edma3_set_dest_index()
144 struct edma3_slot_layout *rg; in edma3_set_dest_addr() local
146 rg = (struct edma3_slot_layout *)(base + EDMA3_SL_BASE(slot)); in edma3_set_dest_addr()
147 __raw_writel(dst, &rg->dst); in edma3_set_dest_addr()
166 struct edma3_slot_layout *rg; in edma3_set_src() local
168 rg = (struct edma3_slot_layout *)(base + EDMA3_SL_BASE(slot)); in edma3_set_src()
170 opt = __raw_readl(&rg->opt); in edma3_set_src()
178 __raw_writel(opt, &rg->opt); in edma3_set_src()
179 __raw_writel(src, &rg->src); in edma3_set_src()
197 struct edma3_slot_layout *rg; in edma3_set_src_index() local
199 rg = (struct edma3_slot_layout *)(base + EDMA3_SL_BASE(slot)); in edma3_set_src_index()
201 src_dst_bidx = __raw_readl(&rg->src_dst_bidx); in edma3_set_src_index()
202 src_dst_cidx = __raw_readl(&rg->src_dst_cidx); in edma3_set_src_index()
205 &rg->src_dst_bidx); in edma3_set_src_index()
207 &rg->src_dst_cidx); in edma3_set_src_index()
215 struct edma3_slot_layout *rg; in edma3_set_src_addr() local
217 rg = (struct edma3_slot_layout *)(base + EDMA3_SL_BASE(slot)); in edma3_set_src_addr()
218 __raw_writel(src, &rg->src); in edma3_set_src_addr()
257 struct edma3_slot_layout *rg; in edma3_set_transfer_params() local
259 rg = (struct edma3_slot_layout *)(base + EDMA3_SL_BASE(slot)); in edma3_set_transfer_params()
261 link_bcntrld = __raw_readl(&rg->link_bcntrld); in edma3_set_transfer_params()
264 &rg->link_bcntrld); in edma3_set_transfer_params()
266 opt = __raw_readl(&rg->opt); in edma3_set_transfer_params()
268 __raw_writel(opt & ~EDMA3_SLOPT_AB_SYNC, &rg->opt); in edma3_set_transfer_params()
270 __raw_writel(opt | EDMA3_SLOPT_AB_SYNC, &rg->opt); in edma3_set_transfer_params()
273 __raw_writel((bcnt << 16) | (acnt & 0xffff), &rg->a_b_cnt); in edma3_set_transfer_params()
274 __raw_writel(0xffff & ccnt, &rg->ccnt); in edma3_set_transfer_params()
319 struct edma3_slot_layout *rg; in edma3_slot_configure() local
321 rg = (struct edma3_slot_layout *)(base + EDMA3_SL_BASE(slot)); in edma3_slot_configure()
323 __raw_writel(cfg->opt, &rg->opt); in edma3_slot_configure()
324 __raw_writel(cfg->src, &rg->src); in edma3_slot_configure()
325 __raw_writel((cfg->bcnt << 16) | (cfg->acnt & 0xffff), &rg->a_b_cnt); in edma3_slot_configure()
326 __raw_writel(cfg->dst, &rg->dst); in edma3_slot_configure()
328 (cfg->src_bidx & 0xffff), &rg->src_dst_bidx); in edma3_slot_configure()
330 (cfg->link & 0xffff), &rg->link_bcntrld); in edma3_slot_configure()
332 (cfg->src_cidx & 0xffff), &rg->src_dst_cidx); in edma3_slot_configure()
333 __raw_writel(0xffff & cfg->ccnt, &rg->ccnt); in edma3_slot_configure()