Searched refs:scpd (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/soc/mediatek/
H A Dmtk-scpsys.c192 static int scpsys_domain_is_on(struct scp_domain *scpd) scpsys_domain_is_on() argument
194 struct scp *scp = scpd->scp; scpsys_domain_is_on()
196 u32 status = readl(scp->base + SPM_PWR_STATUS) & scpd->sta_mask; scpsys_domain_is_on()
197 u32 status2 = readl(scp->base + SPM_PWR_STATUS_2ND) & scpd->sta_mask; scpsys_domain_is_on()
214 struct scp_domain *scpd = container_of(genpd, struct scp_domain, genpd); scpsys_power_on() local
215 struct scp *scp = scpd->scp; scpsys_power_on()
218 void __iomem *ctl_addr = scpd->ctl_addr; scpsys_power_on()
219 u32 sram_pdn_ack = scpd->sram_pdn_ack_bits; scpsys_power_on()
224 for (i = 0; i < MAX_CLKS && scpd->clk[i]; i++) { scpsys_power_on()
225 ret = clk_prepare_enable(scpd->clk[i]); scpsys_power_on()
228 clk_disable_unprepare(scpd->clk[i]); scpsys_power_on()
244 ret = scpsys_domain_is_on(scpd); scpsys_power_on()
268 val &= ~scpd->sram_pdn_bits; scpsys_power_on()
287 if (scpd->bus_prot_mask) { scpsys_power_on()
289 scpd->bus_prot_mask); scpsys_power_on()
298 if (scpd->clk[i]) scpsys_power_on()
299 clk_disable_unprepare(scpd->clk[i]); scpsys_power_on()
309 struct scp_domain *scpd = container_of(genpd, struct scp_domain, genpd); scpsys_power_off() local
310 struct scp *scp = scpd->scp; scpsys_power_off()
313 void __iomem *ctl_addr = scpd->ctl_addr; scpsys_power_off()
314 u32 pdn_ack = scpd->sram_pdn_ack_bits; scpsys_power_off()
319 if (scpd->bus_prot_mask) { scpsys_power_off()
321 scpd->bus_prot_mask); scpsys_power_off()
327 val |= scpd->sram_pdn_bits; scpsys_power_off()
364 ret = scpsys_domain_is_on(scpd); scpsys_power_off()
379 for (i = 0; i < MAX_CLKS && scpd->clk[i]; i++) scpsys_power_off()
380 clk_disable_unprepare(scpd->clk[i]); scpsys_power_off()
393 struct scp_domain *scpd; scpsys_active_wakeup() local
396 scpd = container_of(genpd, struct scp_domain, genpd); scpsys_active_wakeup()
398 return scpd->active_wakeup; scpsys_active_wakeup()
454 struct scp_domain *scpd = &scp->domains[i]; scpsys_probe() local
455 struct generic_pm_domain *genpd = &scpd->genpd; scpsys_probe()
459 scpd->scp = scp; scpsys_probe()
461 scpd->sta_mask = data->sta_mask; scpsys_probe()
462 scpd->ctl_addr = scp->base + data->ctl_offs; scpsys_probe()
463 scpd->sram_pdn_bits = data->sram_pdn_bits; scpsys_probe()
464 scpd->sram_pdn_ack_bits = data->sram_pdn_ack_bits; scpsys_probe()
465 scpd->bus_prot_mask = data->bus_prot_mask; scpsys_probe()
466 scpd->active_wakeup = data->active_wakeup; scpsys_probe()
468 scpd->clk[j] = clk[data->clk_id[j]]; scpsys_probe()
/linux-4.4.14/drivers/s390/cio/
H A Dchsc.c920 CIO_CRW_EVENT(2, "chsc: scpd failed (rc=%04x)\n", chsc_determine_channel_path_desc()

Completed in 105 milliseconds