Home
last modified time | relevance | path

Searched refs:power (Results 1 – 25 of 2918) sorted by relevance

12345678910>>...117

/linux-6.6.21/drivers/base/power/
Druntime.c69 if (dev->power.disable_depth > 0) in update_pm_runtime_accounting()
72 last = dev->power.accounting_timestamp; in update_pm_runtime_accounting()
75 dev->power.accounting_timestamp = now; in update_pm_runtime_accounting()
87 if (dev->power.runtime_status == RPM_SUSPENDED) in update_pm_runtime_accounting()
88 dev->power.suspended_time += delta; in update_pm_runtime_accounting()
90 dev->power.active_time += delta; in update_pm_runtime_accounting()
96 dev->power.runtime_status = status; in __update_runtime_status()
104 spin_lock_irqsave(&dev->power.lock, flags); in rpm_get_accounted_time()
107 time = suspended ? dev->power.suspended_time : dev->power.active_time; in rpm_get_accounted_time()
109 spin_unlock_irqrestore(&dev->power.lock, flags); in rpm_get_accounted_time()
[all …]
Dqos.c54 struct dev_pm_qos *qos = dev->power.qos; in __dev_pm_qos_flags()
58 lockdep_assert_held(&dev->power.lock); in __dev_pm_qos_flags()
84 spin_lock_irqsave(&dev->power.lock, irqflags); in dev_pm_qos_flags()
86 spin_unlock_irqrestore(&dev->power.lock, irqflags); in dev_pm_qos_flags()
100 lockdep_assert_held(&dev->power.lock); in __dev_pm_qos_resume_latency()
112 struct dev_pm_qos *qos = dev->power.qos; in dev_pm_qos_read_value()
116 spin_lock_irqsave(&dev->power.lock, flags); in dev_pm_qos_read_value()
136 spin_unlock_irqrestore(&dev->power.lock, flags); in dev_pm_qos_read_value()
153 struct dev_pm_qos *qos = req->dev->power.qos; in apply_constraint()
169 req->dev->power.set_latency_tolerance(req->dev, value); in apply_constraint()
[all …]
Dsysfs.c105 dev->power.runtime_auto ? ctrl_auto : ctrl_on); in control_show()
155 if (dev->power.runtime_error) { in runtime_status_show()
157 } else if (dev->power.disable_depth) { in runtime_status_show()
160 switch (dev->power.runtime_status) { in runtime_status_show()
186 if (!dev->power.use_autosuspend) in autosuspend_delay_ms_show()
189 return sysfs_emit(buf, "%d\n", dev->power.autosuspend_delay); in autosuspend_delay_ms_show()
197 if (!dev->power.use_autosuspend) in autosuspend_delay_ms_store()
248 ret = dev_pm_qos_update_request(dev->power.qos->resume_latency_req, in pm_qos_resume_latency_us_store()
355 spin_lock_irq(&dev->power.lock); in wakeup_count_show()
356 if (dev->power.wakeup) { in wakeup_count_show()
[all …]
/linux-6.6.21/arch/arm64/boot/dts/apple/
Dt8112-pmgr.dtsi10 ps_sbr: power-controller@100 {
13 #power-domain-cells = <0>;
19 ps_aic: power-controller@108 {
22 #power-domain-cells = <0>;
28 ps_dwi: power-controller@110 {
31 #power-domain-cells = <0>;
37 ps_soc_spmi0: power-controller@118 {
40 #power-domain-cells = <0>;
45 ps_gpio: power-controller@120 {
48 #power-domain-cells = <0>;
[all …]
Dt8103-pmgr.dtsi10 ps_sbr: power-controller@100 {
13 #power-domain-cells = <0>;
19 ps_aic: power-controller@108 {
22 #power-domain-cells = <0>;
28 ps_dwi: power-controller@110 {
31 #power-domain-cells = <0>;
37 ps_soc_spmi0: power-controller@118 {
40 #power-domain-cells = <0>;
45 ps_soc_spmi1: power-controller@120 {
48 #power-domain-cells = <0>;
[all …]
Dt600x-pmgr.dtsi9 DIE_NODE(ps_pms_bridge): power-controller@100 {
12 #power-domain-cells = <0>;
18 DIE_NODE(ps_aic): power-controller@108 {
21 #power-domain-cells = <0>;
27 DIE_NODE(ps_dwi): power-controller@110 {
30 #power-domain-cells = <0>;
36 DIE_NODE(ps_pms): power-controller@118 {
39 #power-domain-cells = <0>;
45 DIE_NODE(ps_gpio): power-controller@120 {
48 #power-domain-cells = <0>;
[all …]
/linux-6.6.21/drivers/net/ipa/
Dipa_power.c74 static int ipa_interconnect_init(struct ipa_power *power, in ipa_interconnect_init() argument
82 interconnect = &power->interconnect[0]; in ipa_interconnect_init()
83 for (i = 0; i < power->interconnect_count; i++) { in ipa_interconnect_init()
92 ret = of_icc_bulk_get(power->dev, power->interconnect_count, in ipa_interconnect_init()
93 power->interconnect); in ipa_interconnect_init()
98 icc_bulk_disable(power->interconnect_count, power->interconnect); in ipa_interconnect_init()
101 ret = icc_bulk_set_bw(power->interconnect_count, power->interconnect); in ipa_interconnect_init()
103 icc_bulk_put(power->interconnect_count, power->interconnect); in ipa_interconnect_init()
109 static void ipa_interconnect_exit(struct ipa_power *power) in ipa_interconnect_exit() argument
111 icc_bulk_put(power->interconnect_count, power->interconnect); in ipa_interconnect_exit()
[all …]
/linux-6.6.21/Documentation/devicetree/bindings/power/
Drockchip,power-controller.yaml4 $id: http://devicetree.org/schemas/power/rockchip,power-controller.yaml#
14 Rockchip processors include support for multiple power domains
16 application scenarios to save power.
18 Power domains contained within power-controller node are
19 generic power domain providers documented in
20 Documentation/devicetree/bindings/power/power-domain.yaml.
22 IP cores belonging to a power domain should contain a
23 "power-domains" property that is a phandle for the
24 power domain node representing the domain.
28 const: power-controller
[all …]
Dmediatek,power-controller.yaml4 $id: http://devicetree.org/schemas/power/mediatek,power-controller.yaml#
14 Mediatek processors include support for multiple power domains which can be
15 powered up/down by software based on different application scenes to save power.
17 IP cores belonging to a power domain should contain a 'power-domains'
22 pattern: '^power-controller(@[0-9a-f]+)?$'
26 - mediatek,mt6795-power-controller
27 - mediatek,mt8167-power-controller
28 - mediatek,mt8173-power-controller
29 - mediatek,mt8183-power-controller
30 - mediatek,mt8186-power-controller
[all …]
Dfsl,imx-gpcv2.yaml4 $id: http://devicetree.org/schemas/power/fsl,imx-gpcv2.yaml#
14 Control (PGC) for various power domains.
16 Power domains contained within GPC node are generic power domain
18 Documentation/devicetree/bindings/power/power-domain.yaml, which are
19 described as subnodes of the power gating controller 'pgc' node.
21 IP cores belonging to a power domain should contain a 'power-domains'
46 description: list of power domains provided by this controller.
56 "power-domain@[0-9a-f]+$":
62 '#power-domain-cells':
68 include/dt-bindings/power/imx7-power.h for fsl,imx7d-gpc and
[all …]
Dpower-domain.yaml4 $id: http://devicetree.org/schemas/power/power-domain.yaml#
16 used for power gating of selected IP blocks for power saving by reduced leakage
24 \#power-domain-cells property in the PM domain provider node.
28 pattern: "^(power-controller|power-domain)([@-].*)?$"
36 power-domain provider. The idle state definitions are compatible with the
47 Phandles to the OPP tables of power domains provided by a power domain
48 provider. If the provider provides a single power domain only or all
49 the power domains provided by the provider have identical OPP tables,
53 "#power-domain-cells":
57 domains (e.g. power controllers), but can be any value as specified
[all …]
Dpower_domain.txt4 used for power gating of selected IP blocks for power saving by reduced leakage
12 #power-domain-cells property in the PM domain provider node.
16 See power-domain.yaml.
21 - power-domains : A list of PM domain specifiers, as defined by bindings of
22 the power controller that is the PM domain provider.
25 - power-domain-names : A list of power domain name strings sorted in the same
26 order as the power-domains property. Consumers drivers will use
27 power-domain-names to match power domains with power-domains
35 power-domains = <&power 0>;
36 power-domain-names = "io";
[all …]
/linux-6.6.21/drivers/staging/nvec/
Dnvec_power.c87 struct nvec_power *power = in nvec_power_notifier() local
95 if (power->on != res->plu) { in nvec_power_notifier()
96 power->on = res->plu; in nvec_power_notifier()
109 static void get_bat_mfg_data(struct nvec_power *power) in get_bat_mfg_data() argument
116 nvec_write_async(power->nvec, buf, 2); in get_bat_mfg_data()
123 struct nvec_power *power = in nvec_power_bat_notifier() local
134 if (power->bat_present == 0) { in nvec_power_bat_notifier()
136 get_bat_mfg_data(power); in nvec_power_bat_notifier()
139 power->bat_present = 1; in nvec_power_bat_notifier()
143 power->bat_status = in nvec_power_bat_notifier()
[all …]
/linux-6.6.21/drivers/power/supply/
Daxp20x_usb_power.c79 static bool axp20x_usb_vbus_needs_polling(struct axp20x_usb_power *power) in axp20x_usb_vbus_needs_polling() argument
86 if (power->axp_data->vbus_needs_polling && !power->online) in axp20x_usb_vbus_needs_polling()
94 struct axp20x_usb_power *power = devid; in axp20x_usb_power_irq() local
96 power_supply_changed(power->supply); in axp20x_usb_power_irq()
98 mod_delayed_work(system_power_efficient_wq, &power->vbus_detect, DEBOUNCE_TIME); in axp20x_usb_power_irq()
105 struct axp20x_usb_power *power = in axp20x_usb_power_poll_vbus() local
110 ret = regmap_read(power->regmap, AXP20X_PWR_INPUT_STATUS, &val); in axp20x_usb_power_poll_vbus()
115 if (val != power->old_status) in axp20x_usb_power_poll_vbus()
116 power_supply_changed(power->supply); in axp20x_usb_power_poll_vbus()
118 power->old_status = val; in axp20x_usb_power_poll_vbus()
[all …]
Daxp20x_ac_power.c53 struct axp20x_ac_power *power = devid; in axp20x_ac_power_irq() local
55 power_supply_changed(power->supply); in axp20x_ac_power_irq()
64 struct axp20x_ac_power *power = power_supply_get_drvdata(psy); in axp20x_ac_power_get_property() local
69 ret = regmap_read(power->regmap, AXP20X_PWR_INPUT_STATUS, &reg); in axp20x_ac_power_get_property()
82 ret = regmap_read(power->regmap, AXP20X_PWR_INPUT_STATUS, &reg); in axp20x_ac_power_get_property()
90 ret = regmap_read(power->regmap, AXP20X_PWR_INPUT_STATUS, &reg); in axp20x_ac_power_get_property()
97 if (val->intval && power->has_acin_path_sel) { in axp20x_ac_power_get_property()
98 ret = regmap_read(power->regmap, AXP813_ACIN_PATH_CTRL, in axp20x_ac_power_get_property()
109 ret = iio_read_channel_processed(power->acin_v, &val->intval); in axp20x_ac_power_get_property()
119 ret = iio_read_channel_processed(power->acin_i, &val->intval); in axp20x_ac_power_get_property()
[all …]
Dwm831x_power.c536 struct wm831x_power *power; in wm831x_power_probe() local
539 power = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_power), in wm831x_power_probe()
541 if (power == NULL) in wm831x_power_probe()
544 power->wm831x = wm831x; in wm831x_power_probe()
545 platform_set_drvdata(pdev, power); in wm831x_power_probe()
548 snprintf(power->wall_name, sizeof(power->wall_name), in wm831x_power_probe()
550 snprintf(power->battery_name, sizeof(power->wall_name), in wm831x_power_probe()
552 snprintf(power->usb_name, sizeof(power->wall_name), in wm831x_power_probe()
555 snprintf(power->wall_name, sizeof(power->wall_name), in wm831x_power_probe()
557 snprintf(power->battery_name, sizeof(power->wall_name), in wm831x_power_probe()
[all …]
/linux-6.6.21/drivers/gpu/drm/msm/dp/
Ddp_power.c26 static int dp_power_clk_init(struct dp_power_private *power) in dp_power_clk_init() argument
30 struct device *dev = power->dev; in dp_power_clk_init()
32 core = &power->parser->mp[DP_CORE_PM]; in dp_power_clk_init()
33 ctrl = &power->parser->mp[DP_CTRL_PM]; in dp_power_clk_init()
34 stream = &power->parser->mp[DP_STREAM_PM]; in dp_power_clk_init()
53 struct dp_power_private *power; in dp_power_clk_status() local
55 power = container_of(dp_power, struct dp_power_private, dp_power); in dp_power_clk_status()
57 drm_dbg_dp(power->drm_dev, in dp_power_clk_status()
77 struct dp_power_private *power; in dp_power_clk_enable() local
80 power = container_of(dp_power, struct dp_power_private, dp_power); in dp_power_clk_enable()
[all …]
/linux-6.6.21/drivers/pmdomain/bcm/
Dbcm2835-power.c109 #define PM_READ(reg) readl(power->base + (reg))
110 #define PM_WRITE(reg, val) writel(PM_PASSWORD | (val), power->base + (reg))
133 struct bcm2835_power *power; member
152 static int bcm2835_asb_control(struct bcm2835_power *power, u32 reg, bool enable) in bcm2835_asb_control() argument
154 void __iomem *base = power->asb; in bcm2835_asb_control()
163 if (power->rpivid_asb) in bcm2835_asb_control()
164 base = power->rpivid_asb; in bcm2835_asb_control()
187 static int bcm2835_asb_enable(struct bcm2835_power *power, u32 reg) in bcm2835_asb_enable() argument
189 return bcm2835_asb_control(power, reg, true); in bcm2835_asb_enable()
192 static int bcm2835_asb_disable(struct bcm2835_power *power, u32 reg) in bcm2835_asb_disable() argument
[all …]
Dbcm63xx-power.c20 struct bcm63xx_power *power; member
40 struct bcm63xx_power *power = pmd->power; in bcm63xx_power_get_state() local
47 *is_on = !(__raw_readl(power->base) & pmd->mask); in bcm63xx_power_get_state()
54 struct bcm63xx_power *power = pmd->power; in bcm63xx_power_set_state() local
61 spin_lock_irqsave(&power->lock, flags); in bcm63xx_power_set_state()
62 val = __raw_readl(power->base); in bcm63xx_power_set_state()
67 __raw_writel(val, power->base); in bcm63xx_power_set_state()
68 spin_unlock_irqrestore(&power->lock, flags); in bcm63xx_power_set_state()
94 struct bcm63xx_power *power; in bcm63xx_power_probe() local
99 power = devm_kzalloc(dev, sizeof(*power), GFP_KERNEL); in bcm63xx_power_probe()
[all …]
/linux-6.6.21/Documentation/devicetree/bindings/clock/
Dfsl,imx8-acm.yaml26 power-domains:
48 - power-domains
62 power-domains:
64 - description: power domain of IMX_SC_R_AUDIO_CLK_0
65 - description: power domain of IMX_SC_R_AUDIO_CLK_1
66 - description: power domain of IMX_SC_R_MCLK_OUT_0
67 - description: power domain of IMX_SC_R_MCLK_OUT_1
68 - description: power domain of IMX_SC_R_AUDIO_PLL_0
69 - description: power domain of IMX_SC_R_AUDIO_PLL_1
70 - description: power domain of IMX_SC_R_ASRC_0
[all …]
/linux-6.6.21/arch/arm64/boot/dts/arm/
Djuno-scmi.dtsi3 power-domains = <&scmi_devpd 8>;
7 power-domains = <&scmi_devpd 8>;
11 power-domains = <&scmi_devpd 8>;
15 power-domains = <&scmi_devpd 8>;
19 power-domains = <&scmi_devpd 8>;
23 power-domains = <&scmi_devpd 8>;
27 power-domains = <&scmi_devpd 8>;
31 power-domains = <&scmi_devpd 8>;
55 #power-domain-cells = <1>;
120 power-domains = <&scmi_devpd 8>;
[all …]
/linux-6.6.21/Documentation/devicetree/bindings/soc/mediatek/
Dscpsys.txt4 The System Control Processor System (SCPSYS) has several power management
7 The System Power Manager (SPM) inside the SCPSYS is for the MTCMOS power
11 power/power-domain.yaml. It provides the power domains defined in
12 - include/dt-bindings/power/mt8173-power.h
13 - include/dt-bindings/power/mt6797-power.h
14 - include/dt-bindings/power/mt6765-power.h
15 - include/dt-bindings/power/mt2701-power.h
16 - include/dt-bindings/power/mt2712-power.h
17 - include/dt-bindings/power/mt7622-power.h
30 - #power-domain-cells: Must be 1
[all …]
/linux-6.6.21/Documentation/devicetree/bindings/arm/apple/
Dapple,pmgr.yaml13 Apple SoCs include PMGR blocks responsible for power management,
14 which can control various clocks, resets, power states, and
20 pattern: "^power-management@[0-9a-f]+$"
42 "power-controller@[0-9a-f]+$":
44 The individual power management domains within this controller
46 $ref: /schemas/power/apple,pmgr-pwrstate.yaml#
60 power-management@23b700000 {
66 ps_sio: power-controller@1c0 {
69 #power-domain-cells = <0>;
75 ps_uart_p: power-controller@220 {
[all …]
/linux-6.6.21/drivers/thermal/
Dthermal_trace.h96 TP_PROTO(int cpu, u32 power),
98 TP_ARGS(cpu, power),
102 __field(u32, power)
107 __entry->power = power;
110 TP_printk("cpu=%d power=%u", __entry->cpu, __entry->power)
115 unsigned long cdev_state, u32 power),
117 TP_ARGS(cpus, freq, cdev_state, power),
123 __field(u32, power )
131 __entry->power = power;
136 __entry->power)
[all …]
/linux-6.6.21/arch/arm/boot/dts/broadcom/
Dbcm2835-rpi.dtsi1 #include <dt-bindings/power/raspberrypi-power.h>
14 power: power { label
15 compatible = "raspberrypi,bcm2835-power";
17 #power-domain-cells = <1>;
55 power-domains = <&power RPI_POWER_DOMAIN_USB>;
59 power-domains = <&power RPI_POWER_DOMAIN_VEC>;
64 power-domains = <&power RPI_POWER_DOMAIN_DSI0>;
68 power-domains = <&power RPI_POWER_DOMAIN_DSI1>;

12345678910>>...117