Home
last modified time | relevance | path

Searched refs:pwr (Results 1 – 25 of 383) sorted by relevance

12345678910>>...16

/linux-6.1.9/arch/x86/platform/intel-mid/
Dpwr.c106 static u32 mid_pwr_get_state(struct mid_pwr *pwr, int reg) in mid_pwr_get_state() argument
108 return readl(pwr->regs + PM_SSS(reg)); in mid_pwr_get_state()
111 static void mid_pwr_set_state(struct mid_pwr *pwr, int reg, u32 value) in mid_pwr_set_state() argument
113 writel(value, pwr->regs + PM_SSC(reg)); in mid_pwr_set_state()
116 static void mid_pwr_set_wake(struct mid_pwr *pwr, int reg, u32 value) in mid_pwr_set_wake() argument
118 writel(value, pwr->regs + PM_WKC(reg)); in mid_pwr_set_wake()
121 static void mid_pwr_interrupt_disable(struct mid_pwr *pwr) in mid_pwr_interrupt_disable() argument
123 writel(~PM_ICS_IE, pwr->regs + PM_ICS); in mid_pwr_interrupt_disable()
126 static bool mid_pwr_is_busy(struct mid_pwr *pwr) in mid_pwr_is_busy() argument
128 return !!(readl(pwr->regs + PM_STS) & PM_STS_BUSY); in mid_pwr_is_busy()
[all …]
/linux-6.1.9/drivers/input/misc/
Drk805-pwrkey.c20 struct input_dev *pwr = _pwr; in pwrkey_fall_irq() local
22 input_report_key(pwr, KEY_POWER, 1); in pwrkey_fall_irq()
23 input_sync(pwr); in pwrkey_fall_irq()
30 struct input_dev *pwr = _pwr; in pwrkey_rise_irq() local
32 input_report_key(pwr, KEY_POWER, 0); in pwrkey_rise_irq()
33 input_sync(pwr); in pwrkey_rise_irq()
40 struct input_dev *pwr; in rk805_pwrkey_probe() local
44 pwr = devm_input_allocate_device(&pdev->dev); in rk805_pwrkey_probe()
45 if (!pwr) { in rk805_pwrkey_probe()
50 pwr->name = "rk805 pwrkey"; in rk805_pwrkey_probe()
[all …]
Dtps65218-pwrbutton.c57 struct tps6521x_pwrbutton *pwr = _pwr; in tps6521x_pb_irq() local
58 const struct tps6521x_data *tps_data = pwr->data; in tps6521x_pb_irq()
62 error = regmap_read(pwr->regmap, tps_data->reg_status, &reg); in tps6521x_pb_irq()
64 dev_err(pwr->dev, "can't read register: %d\n", error); in tps6521x_pb_irq()
69 input_report_key(pwr->idev, KEY_POWER, 1); in tps6521x_pb_irq()
70 pm_wakeup_event(pwr->dev, 0); in tps6521x_pb_irq()
72 input_report_key(pwr->idev, KEY_POWER, 0); in tps6521x_pb_irq()
75 input_sync(pwr->idev); in tps6521x_pb_irq()
84 struct tps6521x_pwrbutton *pwr; in tps6521x_pb_probe() local
94 pwr = devm_kzalloc(dev, sizeof(*pwr), GFP_KERNEL); in tps6521x_pb_probe()
[all …]
Dtwl4030-pwrbutton.c39 struct input_dev *pwr = _pwr; in powerbutton_irq() local
45 pm_wakeup_event(pwr->dev.parent, 0); in powerbutton_irq()
46 input_report_key(pwr, KEY_POWER, value & PWR_PWRON_IRQ); in powerbutton_irq()
47 input_sync(pwr); in powerbutton_irq()
49 dev_err(pwr->dev.parent, "twl4030: i2c error %d while reading" in powerbutton_irq()
58 struct input_dev *pwr; in twl4030_pwrbutton_probe() local
62 pwr = devm_input_allocate_device(&pdev->dev); in twl4030_pwrbutton_probe()
63 if (!pwr) { in twl4030_pwrbutton_probe()
68 input_set_capability(pwr, EV_KEY, KEY_POWER); in twl4030_pwrbutton_probe()
69 pwr->name = "twl4030_pwrbutton"; in twl4030_pwrbutton_probe()
[all …]
Dmc13783-pwrbutton.c33 struct input_dev *pwr; member
68 input_report_key(priv->pwr, priv->keymap[0], val); in button_irq()
75 input_report_key(priv->pwr, priv->keymap[1], val); in button_irq()
82 input_report_key(priv->pwr, priv->keymap[2], val); in button_irq()
86 input_sync(priv->pwr); in button_irq()
95 struct input_dev *pwr; in mc13783_pwrbutton_probe() local
106 pwr = input_allocate_device(); in mc13783_pwrbutton_probe()
107 if (!pwr) { in mc13783_pwrbutton_probe()
123 priv->pwr = pwr; in mc13783_pwrbutton_probe()
131 __set_bit(pdata->b1on_key, pwr->keybit); in mc13783_pwrbutton_probe()
[all …]
Dpmic8xxx-pwrkey.c85 struct input_dev *pwr = _pwr; in pwrkey_press_irq() local
87 input_report_key(pwr, KEY_POWER, 1); in pwrkey_press_irq()
88 input_sync(pwr); in pwrkey_press_irq()
95 struct input_dev *pwr = _pwr; in pwrkey_release_irq() local
97 input_report_key(pwr, KEY_POWER, 0); in pwrkey_release_irq()
98 input_sync(pwr); in pwrkey_release_irq()
334 struct input_dev *pwr; in pmic8xxx_pwrkey_probe() local
370 pwr = devm_input_allocate_device(&pdev->dev); in pmic8xxx_pwrkey_probe()
371 if (!pwr) { in pmic8xxx_pwrkey_probe()
376 input_set_capability(pwr, EV_KEY, KEY_POWER); in pmic8xxx_pwrkey_probe()
[all …]
/linux-6.1.9/drivers/net/wireless/ti/wl12xx/
Ddebugfs.c62 WL12XX_DEBUGFS_FWSTATS_FILE(pwr, ps_enter, "%u");
63 WL12XX_DEBUGFS_FWSTATS_FILE(pwr, elp_enter, "%u");
64 WL12XX_DEBUGFS_FWSTATS_FILE(pwr, missing_bcns, "%u");
65 WL12XX_DEBUGFS_FWSTATS_FILE(pwr, wake_on_host, "%u");
66 WL12XX_DEBUGFS_FWSTATS_FILE(pwr, wake_on_timer_exp, "%u");
67 WL12XX_DEBUGFS_FWSTATS_FILE(pwr, tx_with_ps, "%u");
68 WL12XX_DEBUGFS_FWSTATS_FILE(pwr, tx_without_ps, "%u");
69 WL12XX_DEBUGFS_FWSTATS_FILE(pwr, rcvd_beacons, "%u");
70 WL12XX_DEBUGFS_FWSTATS_FILE(pwr, power_save_off, "%u");
71 WL12XX_DEBUGFS_FWSTATS_FILE(pwr, enable_ps, "%u");
[all …]
/linux-6.1.9/drivers/net/wireless/ti/wl1251/
Ddebugfs.c144 DEBUGFS_FWSTATS_FILE(pwr, ps_enter, 20, "%u");
145 DEBUGFS_FWSTATS_FILE(pwr, elp_enter, 20, "%u");
146 DEBUGFS_FWSTATS_FILE(pwr, missing_bcns, 20, "%u");
147 DEBUGFS_FWSTATS_FILE(pwr, wake_on_host, 20, "%u");
148 DEBUGFS_FWSTATS_FILE(pwr, wake_on_timer_exp, 20, "%u");
149 DEBUGFS_FWSTATS_FILE(pwr, tx_with_ps, 20, "%u");
150 DEBUGFS_FWSTATS_FILE(pwr, tx_without_ps, 20, "%u");
151 DEBUGFS_FWSTATS_FILE(pwr, rcvd_beacons, 20, "%u");
152 DEBUGFS_FWSTATS_FILE(pwr, power_save_off, 20, "%u");
153 DEBUGFS_FWSTATS_FILE(pwr, enable_ps, 20, "%u");
[all …]
/linux-6.1.9/drivers/ata/
Dahci_st.c34 struct reset_control *pwr; member
60 if (drv_data->pwr) { in st_ahci_deassert_resets()
61 err = reset_control_deassert(drv_data->pwr); in st_ahci_deassert_resets()
94 if (drv_data->pwr) { in st_ahci_host_stop()
95 err = reset_control_assert(drv_data->pwr); in st_ahci_host_stop()
108 drv_data->pwr = devm_reset_control_get(dev, "pwr-dwn"); in st_ahci_probe_resets()
109 if (IS_ERR(drv_data->pwr)) { in st_ahci_probe_resets()
111 drv_data->pwr = NULL; in st_ahci_probe_resets()
192 if (drv_data->pwr) { in st_ahci_suspend()
193 err = reset_control_assert(drv_data->pwr); in st_ahci_suspend()
/linux-6.1.9/tools/perf/
Dbuiltin-timechart.c364 struct power_event *pwr = zalloc(sizeof(*pwr)); in c_state_end() local
366 if (!pwr) in c_state_end()
369 pwr->state = cpus_cstate_state[cpu]; in c_state_end()
370 pwr->start_time = cpus_cstate_start_times[cpu]; in c_state_end()
371 pwr->end_time = timestamp; in c_state_end()
372 pwr->cpu = cpu; in c_state_end()
373 pwr->type = CSTATE; in c_state_end()
374 pwr->next = tchart->power_events; in c_state_end()
376 tchart->power_events = pwr; in c_state_end()
382 struct power_event *pwr = zalloc(sizeof(*pwr)); in p_state_end() local
[all …]
/linux-6.1.9/drivers/net/wireless/ti/wl18xx/
Ddebugfs.c110 WL18XX_DEBUGFS_FWSTATS_FILE(pwr, missing_bcns_cnt, "%u");
111 WL18XX_DEBUGFS_FWSTATS_FILE(pwr, rcvd_bcns_cnt, "%u");
112 WL18XX_DEBUGFS_FWSTATS_FILE(pwr, connection_out_of_sync, "%u");
113 WL18XX_DEBUGFS_FWSTATS_FILE_ARRAY(pwr, cont_miss_bcns_spread,
115 WL18XX_DEBUGFS_FWSTATS_FILE(pwr, rcvd_awake_bcns_cnt, "%u");
116 WL18XX_DEBUGFS_FWSTATS_FILE(pwr, sleep_time_count, "%u");
117 WL18XX_DEBUGFS_FWSTATS_FILE(pwr, sleep_time_avg, "%u");
118 WL18XX_DEBUGFS_FWSTATS_FILE(pwr, sleep_cycle_avg, "%u");
119 WL18XX_DEBUGFS_FWSTATS_FILE(pwr, sleep_percent, "%u");
120 WL18XX_DEBUGFS_FWSTATS_FILE(pwr, ap_sleep_active_conf, "%u");
[all …]
/linux-6.1.9/drivers/phy/samsung/
Dphy-s5pv210-usb2.c115 u32 pwr; in s5pv210_phy_pwr() local
132 pwr = readl(drv->reg_phy + S5PV210_UPHYPWR); in s5pv210_phy_pwr()
133 pwr &= ~phypwr; in s5pv210_phy_pwr()
134 writel(pwr, drv->reg_phy + S5PV210_UPHYPWR); in s5pv210_phy_pwr()
147 pwr = readl(drv->reg_phy + S5PV210_UPHYPWR); in s5pv210_phy_pwr()
148 pwr |= phypwr; in s5pv210_phy_pwr()
149 writel(pwr, drv->reg_phy + S5PV210_UPHYPWR); in s5pv210_phy_pwr()
Dphy-exynos4210-usb2.c152 u32 pwr; in exynos4210_phy_pwr() local
187 pwr = readl(drv->reg_phy + EXYNOS_4210_UPHYPWR); in exynos4210_phy_pwr()
188 pwr &= ~phypwr; in exynos4210_phy_pwr()
189 writel(pwr, drv->reg_phy + EXYNOS_4210_UPHYPWR); in exynos4210_phy_pwr()
201 pwr = readl(drv->reg_phy + EXYNOS_4210_UPHYPWR); in exynos4210_phy_pwr()
202 pwr |= phypwr; in exynos4210_phy_pwr()
203 writel(pwr, drv->reg_phy + EXYNOS_4210_UPHYPWR); in exynos4210_phy_pwr()
Dphy-exynos4x12-usb2.c214 u32 pwr; in exynos4x12_phy_pwr() local
240 pwr = readl(drv->reg_phy + EXYNOS_4x12_UPHYPWR); in exynos4x12_phy_pwr()
241 pwr &= ~phypwr; in exynos4x12_phy_pwr()
242 writel(pwr, drv->reg_phy + EXYNOS_4x12_UPHYPWR); in exynos4x12_phy_pwr()
254 pwr = readl(drv->reg_phy + EXYNOS_4x12_UPHYPWR); in exynos4x12_phy_pwr()
255 pwr |= phypwr; in exynos4x12_phy_pwr()
256 writel(pwr, drv->reg_phy + EXYNOS_4x12_UPHYPWR); in exynos4x12_phy_pwr()
/linux-6.1.9/arch/powerpc/kernel/
Dvecemu.c41 int exp, pwr; in eexp2() local
57 pwr = (s & 0x7fffff) | 0x800000; in eexp2()
59 pwr <<= exp; in eexp2()
61 pwr >>= -exp; in eexp2()
63 pwr = -pwr; in eexp2()
66 exp = (pwr >> 23) + 126; in eexp2()
73 mant = exp2s[(pwr >> 20) & 7]; in eexp2()
77 : "r" (pwr << 12), "r" (0x172b83ff)); in eexp2()
/linux-6.1.9/drivers/net/wireless/ath/ath5k/
Deeprom.c775 pd->pd_pwr[point] = 2 * pcinfo->pwr[point]; in ath5k_eeprom_convert_pcal_info_5111()
856 cdata->pwr[0] = ((val << 2) & AR5K_EEPROM_POWER_M); in ath5k_eeprom_read_pcal_info_5111()
859 cdata->pwr[0] |= ((val >> 14) & 0x3); in ath5k_eeprom_read_pcal_info_5111()
860 cdata->pwr[1] = ((val >> 8) & AR5K_EEPROM_POWER_M); in ath5k_eeprom_read_pcal_info_5111()
861 cdata->pwr[2] = ((val >> 2) & AR5K_EEPROM_POWER_M); in ath5k_eeprom_read_pcal_info_5111()
862 cdata->pwr[3] = ((val << 4) & AR5K_EEPROM_POWER_M); in ath5k_eeprom_read_pcal_info_5111()
865 cdata->pwr[3] |= ((val >> 12) & 0xf); in ath5k_eeprom_read_pcal_info_5111()
866 cdata->pwr[4] = ((val >> 6) & AR5K_EEPROM_POWER_M); in ath5k_eeprom_read_pcal_info_5111()
867 cdata->pwr[5] = (val & AR5K_EEPROM_POWER_M); in ath5k_eeprom_read_pcal_info_5111()
870 cdata->pwr[6] = ((val >> 10) & AR5K_EEPROM_POWER_M); in ath5k_eeprom_read_pcal_info_5111()
[all …]
/linux-6.1.9/Documentation/devicetree/bindings/rtc/
Disil,isl12026.txt14 - "isil,pwr-bsw": If present PWR.BSW bit must be set to the specified
17 - "isil,pwr-sbib": If present PWR.SBIB bit must be set to the specified
26 isil,pwr-bsw = <0>;
27 isil,pwr-sbib = <1>;
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/cfg/
D7000.c197 {.pwr = 1600, .backoff = 0},
198 {.pwr = 1300, .backoff = 467},
199 {.pwr = 900, .backoff = 1900},
200 {.pwr = 800, .backoff = 2630},
201 {.pwr = 700, .backoff = 3720},
202 {.pwr = 600, .backoff = 5550},
203 {.pwr = 500, .backoff = 9350},
/linux-6.1.9/Documentation/devicetree/bindings/regulator/
Dst,stm32mp1-pwr-reg.yaml4 $id: http://devicetree.org/schemas/regulator/st,stm32mp1-pwr-reg.yaml#
14 const: st,stm32mp1,pwr-reg
39 pwr@50001000 {
40 compatible = "st,stm32mp1,pwr-reg";
/linux-6.1.9/Documentation/devicetree/bindings/ata/
Dahci-st.txt17 - reset-names : Associated names must be; "pwr-dwn", "sw-rst" and "pwr-rst"
32 reset-names = "pwr-dwn", "sw-rst", "pwr-rst";
/linux-6.1.9/drivers/soc/rockchip/
Dpm_domains.c98 #define DOMAIN(_name, pwr, status, req, idle, ack, wakeup) \ argument
101 .pwr_mask = (pwr), \
109 #define DOMAIN_M(_name, pwr, status, req, idle, ack, wakeup) \ argument
112 .pwr_w_mask = (pwr) << 16, \
113 .pwr_mask = (pwr), \
122 #define DOMAIN_M_O_R(_name, p_offset, pwr, status, r_status, r_offset, req, idle, ack, wakeup) \ argument
126 .pwr_w_mask = (pwr) << 16, \
127 .pwr_mask = (pwr), \
148 #define DOMAIN_PX30(name, pwr, status, req, wakeup) \ argument
149 DOMAIN_M(name, pwr, status, req, (req) << 16, req, wakeup)
[all …]
/linux-6.1.9/drivers/usb/host/
Dehci-st.c36 struct reset_control *pwr; member
69 ret = reset_control_deassert(priv->pwr); in st_ehci_platform_power_on()
109 reset_control_assert(priv->pwr); in st_ehci_platform_power_on()
120 reset_control_assert(priv->pwr); in st_ehci_platform_power_off()
201 priv->pwr = in st_ehci_platform_probe()
203 if (IS_ERR(priv->pwr)) { in st_ehci_platform_probe()
204 err = PTR_ERR(priv->pwr); in st_ehci_platform_probe()
207 priv->pwr = NULL; in st_ehci_platform_probe()
Dohci-st.c34 struct reset_control *pwr; member
49 ret = reset_control_deassert(priv->pwr); in st_ohci_platform_power_on()
89 reset_control_assert(priv->pwr); in st_ohci_platform_power_on()
101 reset_control_assert(priv->pwr); in st_ohci_platform_power_off()
182 priv->pwr = in st_ohci_platform_probe()
184 if (IS_ERR(priv->pwr)) { in st_ohci_platform_probe()
185 err = PTR_ERR(priv->pwr); in st_ohci_platform_probe()
/linux-6.1.9/drivers/soc/samsung/
Dpm_domains.c39 u32 timeout, pwr; in exynos_pd_power() local
45 pwr = power_on ? pd->local_pwr_cfg : 0; in exynos_pd_power()
46 writel_relaxed(pwr, base); in exynos_pd_power()
51 while ((readl_relaxed(base + 0x4) & pd->local_pwr_cfg) != pwr) { in exynos_pd_power()
/linux-6.1.9/drivers/thermal/st/
Dst_thermal_syscfg.c66 return regmap_field_write(sensor->pwr, power_state); in st_syscfg_power_ctrl()
73 sensor->pwr = devm_regmap_field_alloc(dev, sensor->regmap, in st_syscfg_alloc_regfields()
76 if (IS_ERR(sensor->pwr)) { in st_syscfg_alloc_regfields()
78 return PTR_ERR(sensor->pwr); in st_syscfg_alloc_regfields()

12345678910>>...16