Lines Matching refs:hr

5427 	struct dwc2_hregs_backup *hr;  in dwc2_backup_host_registers()  local
5433 hr = &hsotg->hr_backup; in dwc2_backup_host_registers()
5434 hr->hcfg = dwc2_readl(hsotg, HCFG); in dwc2_backup_host_registers()
5435 hr->haintmsk = dwc2_readl(hsotg, HAINTMSK); in dwc2_backup_host_registers()
5437 hr->hcintmsk[i] = dwc2_readl(hsotg, HCINTMSK(i)); in dwc2_backup_host_registers()
5439 hr->hprt0 = dwc2_read_hprt0(hsotg); in dwc2_backup_host_registers()
5440 hr->hfir = dwc2_readl(hsotg, HFIR); in dwc2_backup_host_registers()
5441 hr->hptxfsiz = dwc2_readl(hsotg, HPTXFSIZ); in dwc2_backup_host_registers()
5442 hr->valid = true; in dwc2_backup_host_registers()
5456 struct dwc2_hregs_backup *hr; in dwc2_restore_host_registers() local
5462 hr = &hsotg->hr_backup; in dwc2_restore_host_registers()
5463 if (!hr->valid) { in dwc2_restore_host_registers()
5468 hr->valid = false; in dwc2_restore_host_registers()
5470 dwc2_writel(hsotg, hr->hcfg, HCFG); in dwc2_restore_host_registers()
5471 dwc2_writel(hsotg, hr->haintmsk, HAINTMSK); in dwc2_restore_host_registers()
5474 dwc2_writel(hsotg, hr->hcintmsk[i], HCINTMSK(i)); in dwc2_restore_host_registers()
5476 dwc2_writel(hsotg, hr->hprt0, HPRT0); in dwc2_restore_host_registers()
5477 dwc2_writel(hsotg, hr->hfir, HFIR); in dwc2_restore_host_registers()
5478 dwc2_writel(hsotg, hr->hptxfsiz, HPTXFSIZ); in dwc2_restore_host_registers()
5606 struct dwc2_hregs_backup *hr; in dwc2_host_exit_hibernation() local
5609 hr = &hsotg->hr_backup; in dwc2_host_exit_hibernation()
5636 dwc2_writel(hsotg, hr->hcfg, HCFG); in dwc2_host_exit_hibernation()
5644 hprt0 = hr->hprt0; in dwc2_host_exit_hibernation()
5650 hprt0 = hr->hprt0; in dwc2_host_exit_hibernation()