Lines Matching refs:dr
4031 struct dwc2_dregs_backup *dr; in dwc2_backup_device_registers() local
4037 dr = &hsotg->dr_backup; in dwc2_backup_device_registers()
4039 dr->dcfg = dwc2_readl(hsotg->regs + DCFG); in dwc2_backup_device_registers()
4040 dr->dctl = dwc2_readl(hsotg->regs + DCTL); in dwc2_backup_device_registers()
4041 dr->daintmsk = dwc2_readl(hsotg->regs + DAINTMSK); in dwc2_backup_device_registers()
4042 dr->diepmsk = dwc2_readl(hsotg->regs + DIEPMSK); in dwc2_backup_device_registers()
4043 dr->doepmsk = dwc2_readl(hsotg->regs + DOEPMSK); in dwc2_backup_device_registers()
4047 dr->diepctl[i] = dwc2_readl(hsotg->regs + DIEPCTL(i)); in dwc2_backup_device_registers()
4050 if (dr->diepctl[i] & DXEPCTL_DPID) in dwc2_backup_device_registers()
4051 dr->diepctl[i] |= DXEPCTL_SETD1PID; in dwc2_backup_device_registers()
4053 dr->diepctl[i] |= DXEPCTL_SETD0PID; in dwc2_backup_device_registers()
4055 dr->dieptsiz[i] = dwc2_readl(hsotg->regs + DIEPTSIZ(i)); in dwc2_backup_device_registers()
4056 dr->diepdma[i] = dwc2_readl(hsotg->regs + DIEPDMA(i)); in dwc2_backup_device_registers()
4059 dr->doepctl[i] = dwc2_readl(hsotg->regs + DOEPCTL(i)); in dwc2_backup_device_registers()
4062 if (dr->doepctl[i] & DXEPCTL_DPID) in dwc2_backup_device_registers()
4063 dr->doepctl[i] |= DXEPCTL_SETD1PID; in dwc2_backup_device_registers()
4065 dr->doepctl[i] |= DXEPCTL_SETD0PID; in dwc2_backup_device_registers()
4067 dr->doeptsiz[i] = dwc2_readl(hsotg->regs + DOEPTSIZ(i)); in dwc2_backup_device_registers()
4068 dr->doepdma[i] = dwc2_readl(hsotg->regs + DOEPDMA(i)); in dwc2_backup_device_registers()
4070 dr->valid = true; in dwc2_backup_device_registers()
4083 struct dwc2_dregs_backup *dr; in dwc2_restore_device_registers() local
4090 dr = &hsotg->dr_backup; in dwc2_restore_device_registers()
4091 if (!dr->valid) { in dwc2_restore_device_registers()
4096 dr->valid = false; in dwc2_restore_device_registers()
4098 dwc2_writel(dr->dcfg, hsotg->regs + DCFG); in dwc2_restore_device_registers()
4099 dwc2_writel(dr->dctl, hsotg->regs + DCTL); in dwc2_restore_device_registers()
4100 dwc2_writel(dr->daintmsk, hsotg->regs + DAINTMSK); in dwc2_restore_device_registers()
4101 dwc2_writel(dr->diepmsk, hsotg->regs + DIEPMSK); in dwc2_restore_device_registers()
4102 dwc2_writel(dr->doepmsk, hsotg->regs + DOEPMSK); in dwc2_restore_device_registers()
4106 dwc2_writel(dr->diepctl[i], hsotg->regs + DIEPCTL(i)); in dwc2_restore_device_registers()
4107 dwc2_writel(dr->dieptsiz[i], hsotg->regs + DIEPTSIZ(i)); in dwc2_restore_device_registers()
4108 dwc2_writel(dr->diepdma[i], hsotg->regs + DIEPDMA(i)); in dwc2_restore_device_registers()
4111 dwc2_writel(dr->doepctl[i], hsotg->regs + DOEPCTL(i)); in dwc2_restore_device_registers()
4112 dwc2_writel(dr->doeptsiz[i], hsotg->regs + DOEPTSIZ(i)); in dwc2_restore_device_registers()
4113 dwc2_writel(dr->doepdma[i], hsotg->regs + DOEPDMA(i)); in dwc2_restore_device_registers()