Lines Matching refs:p
281 const struct ufs_renesas_init_param *p) in ufs_renesas_reg_control() argument
287 WARN_ON(p->index >= MAX_INDEX); in ufs_renesas_reg_control()
289 switch (p->mode) { in ufs_renesas_reg_control()
291 ufshcd_writel(hba, save[p->index], p->reg); in ufs_renesas_reg_control()
294 save[p->index] |= p->u.set; in ufs_renesas_reg_control()
297 save[p->index] = ufshcd_readl(hba, p->reg) & p->mask; in ufs_renesas_reg_control()
300 ret = readl_poll_timeout_atomic(hba->mmio_base + p->reg, in ufs_renesas_reg_control()
302 (val & p->mask) == p->u.expected, in ufs_renesas_reg_control()
306 __func__, ret, val, p->mask, p->u.expected); in ufs_renesas_reg_control()
309 if (p->u.delay_us > 1000) in ufs_renesas_reg_control()
310 mdelay(DIV_ROUND_UP(p->u.delay_us, 1000)); in ufs_renesas_reg_control()
312 udelay(p->u.delay_us); in ufs_renesas_reg_control()
315 ufshcd_writel(hba, p->u.val, p->reg); in ufs_renesas_reg_control()
324 const struct ufs_renesas_init_param *p = ufs_param; in ufs_renesas_pre_init() local
328 ufs_renesas_reg_control(hba, &p[i]); in ufs_renesas_pre_init()