/linux-6.3-rc2/arch/arm/mach-omap2/ |
A D | pm44xx.c | 54 struct power_state *pwrst; in omap4_pm_suspend() local 60 pwrst->saved_state = pwrdm_read_next_pwrst(pwrst->pwrdm); in omap4_pm_suspend() 61 pwrst->saved_logic_state = pwrdm_read_logic_retst(pwrst->pwrdm); in omap4_pm_suspend() 66 omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state); in omap4_pm_suspend() 67 pwrdm_set_logic_retst(pwrst->pwrdm, pwrst->next_logic_state); in omap4_pm_suspend() 86 pwrst->pwrdm->name, pwrst->next_state); in omap4_pm_suspend() 89 omap_set_pwrdm_state(pwrst->pwrdm, pwrst->saved_state); in omap4_pm_suspend() 90 pwrdm_set_logic_retst(pwrst->pwrdm, pwrst->saved_logic_state); in omap4_pm_suspend() 136 if (!pwrst) in pwrdms_setup() 139 pwrst->pwrdm = pwrdm; in pwrdms_setup() [all …]
|
A D | pm34xx.c | 311 struct power_state *pwrst; in omap3_pm_suspend() local 316 pwrst->saved_state = pwrdm_read_next_pwrst(pwrst->pwrdm); in omap3_pm_suspend() 319 if (omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state)) in omap3_pm_suspend() 335 pwrst->pwrdm->name, pwrst->next_state); in omap3_pm_suspend() 338 omap_set_pwrdm_state(pwrst->pwrdm, pwrst->saved_state); in omap3_pm_suspend() 378 omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state); in omap3_pm_off_mode_enable() 414 if (!pwrst) in pwrdms_setup() 416 pwrst->pwrdm = pwrdm; in pwrdms_setup() 428 return omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state); in pwrdms_setup() 584 list_del(&pwrst->node); in omap3_pm_init() [all …]
|
A D | powerdomain.c | 237 u8 curr_pwrst, u8 pwrst) in _pwrdm_save_clkdm_state_and_activate() argument 242 if (curr_pwrst > pwrst && in _pwrdm_save_clkdm_state_and_activate() 536 if (!(pwrdm->pwrsts & (1 << pwrst))) in pwrdm_set_next_pwrst() 540 pwrdm->name, pwrst); in pwrdm_set_next_pwrst() 642 pwrdm->name, pwrst); in pwrdm_set_logic_retst() 679 pwrdm->name, bank, pwrst); in pwrdm_set_mem_onst() 717 pwrdm->name, bank, pwrst); in pwrdm_set_mem_retst() 1118 if (pwrst == PWRDM_POWER_OFF) in omap_set_pwrdm_state() 1120 pwrst--; in omap_set_pwrdm_state() 1132 if (curr_pwrst == pwrst && next_pwrst == pwrst) in omap_set_pwrdm_state() [all …]
|
A D | prm2xxx.c | 81 u8 pwrst; in omap2xxx_pwrst_to_common_pwrst() local 85 pwrst = PWRDM_POWER_OFF; in omap2xxx_pwrst_to_common_pwrst() 88 pwrst = PWRDM_POWER_RET; in omap2xxx_pwrst_to_common_pwrst() 91 pwrst = PWRDM_POWER_ON; in omap2xxx_pwrst_to_common_pwrst() 97 return pwrst; in omap2xxx_pwrst_to_common_pwrst() 149 static int omap2xxx_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in omap2xxx_pwrdm_set_next_pwrst() argument 153 switch (pwrst) { in omap2xxx_pwrdm_set_next_pwrst()
|
A D | powerdomain.h | 180 int (*pwrdm_set_next_pwrst)(struct powerdomain *pwrdm, u8 pwrst); 184 int (*pwrdm_set_logic_retst)(struct powerdomain *pwrdm, u8 pwrst); 185 int (*pwrdm_set_mem_onst)(struct powerdomain *pwrdm, u8 bank, u8 pwrst); 186 int (*pwrdm_set_mem_retst)(struct powerdomain *pwrdm, u8 bank, u8 pwrst); 219 int pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst); 225 int pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst); 226 int pwrdm_set_mem_onst(struct powerdomain *pwrdm, u8 bank, u8 pwrst); 227 int pwrdm_set_mem_retst(struct powerdomain *pwrdm, u8 bank, u8 pwrst);
|
A D | prm2xxx_3xxx.c | 112 u8 pwrst) in omap2_pwrdm_set_mem_onst() argument 118 omap2_prm_rmw_mod_reg_bits(m, (pwrst << __ffs(m)), pwrdm->prcm_offs, in omap2_pwrdm_set_mem_onst() 125 u8 pwrst) in omap2_pwrdm_set_mem_retst() argument 131 omap2_prm_rmw_mod_reg_bits(m, (pwrst << __ffs(m)), pwrdm->prcm_offs, in omap2_pwrdm_set_mem_retst() 157 int omap2_pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst) in omap2_pwrdm_set_logic_retst() argument 161 v = pwrst << __ffs(OMAP_LOGICRETSTATE_MASK); in omap2_pwrdm_set_logic_retst()
|
A D | prm33xx.c | 141 static int am33xx_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in am33xx_pwrdm_set_next_pwrst() argument 144 (pwrst << OMAP_POWERSTATE_SHIFT), in am33xx_pwrdm_set_next_pwrst() 187 static int am33xx_pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst) in am33xx_pwrdm_set_logic_retst() argument 195 am33xx_prm_rmw_reg_bits(m, (pwrst << __ffs(m)), in am33xx_pwrdm_set_logic_retst() 228 u8 pwrst) in am33xx_pwrdm_set_mem_onst() argument 236 am33xx_prm_rmw_reg_bits(m, (pwrst << __ffs(m)), in am33xx_pwrdm_set_mem_onst() 243 u8 pwrst) in am33xx_pwrdm_set_mem_retst() argument 251 am33xx_prm_rmw_reg_bits(m, (pwrst << __ffs(m)), in am33xx_pwrdm_set_mem_retst()
|
A D | omap-iommu.c | 115 u8 *pwrst) in omap_iommu_set_pwrdm_constraint() argument 126 *pwrst = pwrdm_read_next_pwrst(pwrdm); in omap_iommu_set_pwrdm_constraint() 130 if (*pwrst > PWRDM_POWER_RET) in omap_iommu_set_pwrdm_constraint() 133 next_pwrst = request ? PWRDM_POWER_ON : *pwrst; in omap_iommu_set_pwrdm_constraint()
|
A D | prm44xx.c | 427 static int omap4_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in omap4_pwrdm_set_next_pwrst() argument 430 (pwrst << OMAP_POWERSTATE_SHIFT), in omap4_pwrdm_set_next_pwrst() 490 static int omap4_pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst) in omap4_pwrdm_set_logic_retst() argument 494 v = pwrst << __ffs(OMAP4430_LOGICRETSTATE_MASK); in omap4_pwrdm_set_logic_retst() 503 u8 pwrst) in omap4_pwrdm_set_mem_onst() argument 509 omap4_prminst_rmw_inst_reg_bits(m, (pwrst << __ffs(m)), in omap4_pwrdm_set_mem_onst() 517 u8 pwrst) in omap4_pwrdm_set_mem_retst() argument 523 omap4_prminst_rmw_inst_reg_bits(m, (pwrst << __ffs(m)), in omap4_pwrdm_set_mem_retst()
|
A D | prm2xxx_3xxx.h | 108 u8 pwrst); 110 u8 pwrst); 113 extern int omap2_pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst);
|
A D | common.h | 339 u8 *pwrst); 342 bool request, u8 *pwrst) in omap_iommu_set_pwrdm_constraint() argument
|
A D | powerdomains3xxx_data.c | 513 static int ti81xx_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in ti81xx_pwrdm_set_next_pwrst() argument 516 (pwrst << OMAP_POWERSTATE_SHIFT), in ti81xx_pwrdm_set_next_pwrst()
|
A D | prm3xxx.c | 537 static int omap3_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in omap3_pwrdm_set_next_pwrst() argument 540 (pwrst << OMAP_POWERSTATE_SHIFT), in omap3_pwrdm_set_next_pwrst()
|
/linux-6.3-rc2/include/linux/platform_data/ |
A D | iommu-omap.h | 19 u8 *pwrst);
|
/linux-6.3-rc2/drivers/iommu/ |
A D | omap-iommu.h | 85 u8 pwrst; member
|
A D | omap-iommu.c | 1030 ret = pdata->set_pwrdm_constraint(pdev, false, &obj->pwrst); in omap_iommu_runtime_suspend() 1060 ret = pdata->set_pwrdm_constraint(pdev, true, &obj->pwrst); in omap_iommu_runtime_resume()
|