Lines Matching refs:__dw_regs
73 static inline struct dw_xdata_regs __iomem *__dw_regs(struct dw_xdata *dw) in __dw_regs() function
84 burst = readl(&(__dw_regs(dw)->burst_cnt)); in dw_xdata_stop()
88 writel(burst, &(__dw_regs(dw)->burst_cnt)); in dw_xdata_stop()
105 writel(0x0, &(__dw_regs(dw)->status)); in dw_xdata_start()
108 writel(BURST_REPEAT | BURST_VALUE, &(__dw_regs(dw)->burst_cnt)); in dw_xdata_start()
111 writel(PATTERN_VALUE, &(__dw_regs(dw)->pattern)); in dw_xdata_start()
121 writel(control, &(__dw_regs(dw)->control)); in dw_xdata_start()
129 status = readl(&(__dw_regs(dw)->status)); in dw_xdata_start()
141 *data = readl(&(__dw_regs(dw)->wr_cnt_msb)); in dw_xdata_perf_meas()
143 *data |= readl(&(__dw_regs(dw)->wr_cnt_lsb)); in dw_xdata_perf_meas()
145 *data = readl(&(__dw_regs(dw)->rd_cnt_msb)); in dw_xdata_perf_meas()
147 *data |= readl(&(__dw_regs(dw)->rd_cnt_lsb)); in dw_xdata_perf_meas()
170 writel(0x0, &(__dw_regs(dw)->perf_control)); in dw_xdata_perf()
173 writel((u32)XPERF_CONTROL_ENABLE, &(__dw_regs(dw)->perf_control)); in dw_xdata_perf()
182 writel(0x0, &(__dw_regs(dw)->perf_control)); in dw_xdata_perf()
185 writel((u32)XPERF_CONTROL_ENABLE, &(__dw_regs(dw)->perf_control)); in dw_xdata_perf()
353 writel(0x0, &(__dw_regs(dw)->RAM_addr)); in dw_xdata_pcie_probe()
354 writel(0x0, &(__dw_regs(dw)->RAM_port)); in dw_xdata_pcie_probe()
357 writel(lower_32_bits(addr), &(__dw_regs(dw)->addr_lsb)); in dw_xdata_pcie_probe()
358 writel(upper_32_bits(addr), &(__dw_regs(dw)->addr_msb)); in dw_xdata_pcie_probe()