Home
last modified time | relevance | path

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

1234

/drivers/input/misc/
Dtps65218-pwrbutton.c65 struct tps6521x_pwrbutton *pwr = _pwr; in tps6521x_pb_irq() local
66 const struct tps6521x_data *tps_data = pwr->data; in tps6521x_pb_irq()
70 error = regmap_read(pwr->regmap, tps_data->reg_status, &reg); in tps6521x_pb_irq()
72 dev_err(pwr->dev, "can't read register: %d\n", error); in tps6521x_pb_irq()
77 input_report_key(pwr->idev, KEY_POWER, 1); in tps6521x_pb_irq()
78 pm_wakeup_event(pwr->dev, 0); in tps6521x_pb_irq()
80 input_report_key(pwr->idev, KEY_POWER, 0); in tps6521x_pb_irq()
83 input_sync(pwr->idev); in tps6521x_pb_irq()
92 struct tps6521x_pwrbutton *pwr; in tps6521x_pb_probe() local
102 pwr = devm_kzalloc(dev, sizeof(*pwr), GFP_KERNEL); in tps6521x_pb_probe()
[all …]
Dtwl4030-pwrbutton.c38 struct input_dev *pwr = _pwr; in powerbutton_irq() local
44 pm_wakeup_event(pwr->dev.parent, 0); in powerbutton_irq()
45 input_report_key(pwr, KEY_POWER, value & PWR_PWRON_IRQ); in powerbutton_irq()
46 input_sync(pwr); in powerbutton_irq()
48 dev_err(pwr->dev.parent, "twl4030: i2c error %d while reading" in powerbutton_irq()
57 struct input_dev *pwr; in twl4030_pwrbutton_probe() local
61 pwr = devm_input_allocate_device(&pdev->dev); in twl4030_pwrbutton_probe()
62 if (!pwr) { in twl4030_pwrbutton_probe()
67 pwr->evbit[0] = BIT_MASK(EV_KEY); in twl4030_pwrbutton_probe()
68 pwr->keybit[BIT_WORD(KEY_POWER)] = BIT_MASK(KEY_POWER); 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.c93 struct input_dev *pwr = _pwr; in pwrkey_press_irq() local
95 input_report_key(pwr, KEY_POWER, 1); in pwrkey_press_irq()
96 input_sync(pwr); in pwrkey_press_irq()
103 struct input_dev *pwr = _pwr; in pwrkey_release_irq() local
105 input_report_key(pwr, KEY_POWER, 0); in pwrkey_release_irq()
106 input_sync(pwr); in pwrkey_release_irq()
342 struct input_dev *pwr; in pmic8xxx_pwrkey_probe() local
378 pwr = devm_input_allocate_device(&pdev->dev); in pmic8xxx_pwrkey_probe()
379 if (!pwr) { in pmic8xxx_pwrkey_probe()
384 input_set_capability(pwr, EV_KEY, KEY_POWER); in pmic8xxx_pwrkey_probe()
[all …]
/drivers/net/wireless/ti/wl12xx/
Ddebugfs.c76 WL12XX_DEBUGFS_FWSTATS_FILE(pwr, ps_enter, "%u");
77 WL12XX_DEBUGFS_FWSTATS_FILE(pwr, elp_enter, "%u");
78 WL12XX_DEBUGFS_FWSTATS_FILE(pwr, missing_bcns, "%u");
79 WL12XX_DEBUGFS_FWSTATS_FILE(pwr, wake_on_host, "%u");
80 WL12XX_DEBUGFS_FWSTATS_FILE(pwr, wake_on_timer_exp, "%u");
81 WL12XX_DEBUGFS_FWSTATS_FILE(pwr, tx_with_ps, "%u");
82 WL12XX_DEBUGFS_FWSTATS_FILE(pwr, tx_without_ps, "%u");
83 WL12XX_DEBUGFS_FWSTATS_FILE(pwr, rcvd_beacons, "%u");
84 WL12XX_DEBUGFS_FWSTATS_FILE(pwr, power_save_off, "%u");
85 WL12XX_DEBUGFS_FWSTATS_FILE(pwr, enable_ps, "%u");
[all …]
/drivers/net/wireless/ti/wl1251/
Ddebugfs.c163 DEBUGFS_FWSTATS_FILE(pwr, ps_enter, 20, "%u");
164 DEBUGFS_FWSTATS_FILE(pwr, elp_enter, 20, "%u");
165 DEBUGFS_FWSTATS_FILE(pwr, missing_bcns, 20, "%u");
166 DEBUGFS_FWSTATS_FILE(pwr, wake_on_host, 20, "%u");
167 DEBUGFS_FWSTATS_FILE(pwr, wake_on_timer_exp, 20, "%u");
168 DEBUGFS_FWSTATS_FILE(pwr, tx_with_ps, 20, "%u");
169 DEBUGFS_FWSTATS_FILE(pwr, tx_without_ps, 20, "%u");
170 DEBUGFS_FWSTATS_FILE(pwr, rcvd_beacons, 20, "%u");
171 DEBUGFS_FWSTATS_FILE(pwr, power_save_off, 20, "%u");
172 DEBUGFS_FWSTATS_FILE(pwr, enable_ps, 20, "%u");
[all …]
/drivers/ata/
Dahci_st.c37 struct reset_control *pwr; member
63 if (drv_data->pwr) { in st_ahci_deassert_resets()
64 err = reset_control_deassert(drv_data->pwr); in st_ahci_deassert_resets()
97 if (drv_data->pwr) { in st_ahci_host_stop()
98 err = reset_control_assert(drv_data->pwr); in st_ahci_host_stop()
111 drv_data->pwr = devm_reset_control_get(dev, "pwr-dwn"); in st_ahci_probe_resets()
112 if (IS_ERR(drv_data->pwr)) { in st_ahci_probe_resets()
114 drv_data->pwr = NULL; in st_ahci_probe_resets()
199 if (drv_data->pwr) { in st_ahci_suspend()
200 err = reset_control_assert(drv_data->pwr); in st_ahci_suspend()
/drivers/net/wireless/ti/wl18xx/
Ddebugfs.c122 WL18XX_DEBUGFS_FWSTATS_FILE(pwr, missing_bcns_cnt, "%u");
123 WL18XX_DEBUGFS_FWSTATS_FILE(pwr, rcvd_bcns_cnt, "%u");
124 WL18XX_DEBUGFS_FWSTATS_FILE(pwr, connection_out_of_sync, "%u");
125 WL18XX_DEBUGFS_FWSTATS_FILE_ARRAY(pwr, cont_miss_bcns_spread,
127 WL18XX_DEBUGFS_FWSTATS_FILE(pwr, rcvd_awake_bcns_cnt, "%u");
128 WL18XX_DEBUGFS_FWSTATS_FILE(pwr, sleep_time_count, "%u");
129 WL18XX_DEBUGFS_FWSTATS_FILE(pwr, sleep_time_avg, "%u");
130 WL18XX_DEBUGFS_FWSTATS_FILE(pwr, sleep_cycle_avg, "%u");
131 WL18XX_DEBUGFS_FWSTATS_FILE(pwr, sleep_percent, "%u");
132 WL18XX_DEBUGFS_FWSTATS_FILE(pwr, ap_sleep_active_conf, "%u");
[all …]
/drivers/phy/
Dphy-s5pv210-usb2.c118 u32 pwr; in s5pv210_phy_pwr() local
135 pwr = readl(drv->reg_phy + S5PV210_UPHYPWR); in s5pv210_phy_pwr()
136 pwr &= ~phypwr; in s5pv210_phy_pwr()
137 writel(pwr, drv->reg_phy + S5PV210_UPHYPWR); in s5pv210_phy_pwr()
146 pwr = readl(drv->reg_phy + S5PV210_UPHYPWR); in s5pv210_phy_pwr()
147 pwr |= phypwr; in s5pv210_phy_pwr()
148 writel(pwr, drv->reg_phy + S5PV210_UPHYPWR); in s5pv210_phy_pwr()
Dphy-exynos4210-usb2.c155 u32 pwr; in exynos4210_phy_pwr() local
190 pwr = readl(drv->reg_phy + EXYNOS_4210_UPHYPWR); in exynos4210_phy_pwr()
191 pwr &= ~phypwr; in exynos4210_phy_pwr()
192 writel(pwr, drv->reg_phy + EXYNOS_4210_UPHYPWR); in exynos4210_phy_pwr()
204 pwr = readl(drv->reg_phy + EXYNOS_4210_UPHYPWR); in exynos4210_phy_pwr()
205 pwr |= phypwr; in exynos4210_phy_pwr()
206 writel(pwr, drv->reg_phy + EXYNOS_4210_UPHYPWR); in exynos4210_phy_pwr()
Dphy-exynos4x12-usb2.c217 u32 pwr; in exynos4x12_phy_pwr() local
243 pwr = readl(drv->reg_phy + EXYNOS_4x12_UPHYPWR); in exynos4x12_phy_pwr()
244 pwr &= ~phypwr; in exynos4x12_phy_pwr()
245 writel(pwr, drv->reg_phy + EXYNOS_4x12_UPHYPWR); in exynos4x12_phy_pwr()
257 pwr = readl(drv->reg_phy + EXYNOS_4x12_UPHYPWR); in exynos4x12_phy_pwr()
258 pwr |= phypwr; in exynos4x12_phy_pwr()
259 writel(pwr, drv->reg_phy + EXYNOS_4x12_UPHYPWR); in exynos4x12_phy_pwr()
Dphy-core.c283 if (phy->pwr) { in phy_power_on()
284 ret = regulator_enable(phy->pwr); in phy_power_on()
311 if (phy->pwr) in phy_power_on()
312 regulator_disable(phy->pwr); in phy_power_on()
338 if (phy->pwr) in phy_power_off()
339 regulator_disable(phy->pwr); in phy_power_off()
753 phy->pwr = regulator_get_optional(&phy->dev, "phy"); in phy_create()
754 if (IS_ERR(phy->pwr)) { in phy_create()
755 ret = PTR_ERR(phy->pwr); in phy_create()
759 phy->pwr = NULL; in phy_create()
[all …]
/drivers/net/wireless/ath/ath5k/
Deeprom.c772 pd->pd_pwr[point] = 2 * pcinfo->pwr[point]; in ath5k_eeprom_convert_pcal_info_5111()
853 cdata->pwr[0] = ((val << 2) & AR5K_EEPROM_POWER_M); in ath5k_eeprom_read_pcal_info_5111()
856 cdata->pwr[0] |= ((val >> 14) & 0x3); in ath5k_eeprom_read_pcal_info_5111()
857 cdata->pwr[1] = ((val >> 8) & AR5K_EEPROM_POWER_M); in ath5k_eeprom_read_pcal_info_5111()
858 cdata->pwr[2] = ((val >> 2) & AR5K_EEPROM_POWER_M); in ath5k_eeprom_read_pcal_info_5111()
859 cdata->pwr[3] = ((val << 4) & AR5K_EEPROM_POWER_M); in ath5k_eeprom_read_pcal_info_5111()
862 cdata->pwr[3] |= ((val >> 12) & 0xf); in ath5k_eeprom_read_pcal_info_5111()
863 cdata->pwr[4] = ((val >> 6) & AR5K_EEPROM_POWER_M); in ath5k_eeprom_read_pcal_info_5111()
864 cdata->pwr[5] = (val & AR5K_EEPROM_POWER_M); in ath5k_eeprom_read_pcal_info_5111()
867 cdata->pwr[6] = ((val >> 10) & AR5K_EEPROM_POWER_M); in ath5k_eeprom_read_pcal_info_5111()
[all …]
/drivers/net/wireless/intel/iwlwifi/
Diwl-7000.c276 {.pwr = 1600, .backoff = 0},
277 {.pwr = 1300, .backoff = 467},
278 {.pwr = 900, .backoff = 1900},
279 {.pwr = 800, .backoff = 2630},
280 {.pwr = 700, .backoff = 3720},
281 {.pwr = 600, .backoff = 5550},
282 {.pwr = 500, .backoff = 9350},
/drivers/usb/host/
Dehci-st.c38 struct reset_control *pwr; member
73 ret = reset_control_deassert(priv->pwr); in st_ehci_platform_power_on()
113 reset_control_assert(priv->pwr); in st_ehci_platform_power_on()
124 reset_control_assert(priv->pwr); in st_ehci_platform_power_off()
209 priv->pwr = in st_ehci_platform_probe()
211 if (IS_ERR(priv->pwr)) { in st_ehci_platform_probe()
212 err = PTR_ERR(priv->pwr); in st_ehci_platform_probe()
215 priv->pwr = NULL; in st_ehci_platform_probe()
Dohci-st.c37 struct reset_control *pwr; member
54 ret = reset_control_deassert(priv->pwr); in st_ohci_platform_power_on()
94 reset_control_assert(priv->pwr); in st_ohci_platform_power_on()
106 reset_control_assert(priv->pwr); in st_ohci_platform_power_off()
191 priv->pwr = in st_ohci_platform_probe()
193 if (IS_ERR(priv->pwr)) { in st_ohci_platform_probe()
194 err = PTR_ERR(priv->pwr); in st_ohci_platform_probe()
/drivers/thermal/st/
Dst_thermal_syscfg.c70 return regmap_field_write(sensor->pwr, power_state); in st_syscfg_power_ctrl()
77 sensor->pwr = devm_regmap_field_alloc(dev, sensor->regmap, in st_syscfg_alloc_regfields()
80 if (IS_ERR(sensor->pwr)) { in st_syscfg_alloc_regfields()
82 return PTR_ERR(sensor->pwr); in st_syscfg_alloc_regfields()
/drivers/media/pci/ttpci/
Dbudget-patch.c271 u8 pwr = 0; in alps_bsrv2_tuner_set_params() local
277 pwr = 3; in alps_bsrv2_tuner_set_params()
279 pwr = 2; in alps_bsrv2_tuner_set_params()
281 pwr = 1; in alps_bsrv2_tuner_set_params()
283 pwr = 0; in alps_bsrv2_tuner_set_params()
285 pwr = 1; in alps_bsrv2_tuner_set_params()
286 else pwr = 2; in alps_bsrv2_tuner_set_params()
291 buf[3] = (pwr << 6) | 0x30; in alps_bsrv2_tuner_set_params()
Dbudget.c213 u8 pwr = 0; in alps_bsrv2_tuner_set_params() local
219 pwr = 3; in alps_bsrv2_tuner_set_params()
221 pwr = 2; in alps_bsrv2_tuner_set_params()
223 pwr = 1; in alps_bsrv2_tuner_set_params()
225 pwr = 0; in alps_bsrv2_tuner_set_params()
227 pwr = 1; in alps_bsrv2_tuner_set_params()
228 else pwr = 2; in alps_bsrv2_tuner_set_params()
233 buf[3] = (pwr << 6) | 0x30; in alps_bsrv2_tuner_set_params()
/drivers/soc/samsung/
Dpm_domains.c52 u32 timeout, pwr; in exynos_pd_power() local
77 pwr = power_on ? pd->local_pwr_cfg : 0; in exynos_pd_power()
78 writel_relaxed(pwr, base); in exynos_pd_power()
83 while ((readl_relaxed(base + 0x4) & pd->local_pwr_cfg) != pwr) { in exynos_pd_power()
/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Ddport.c331 u8 pwr; in nvkm_dp_train() local
360 if (!nvkm_rdaux(outp->aux, DPCD_SC00, &pwr, 1)) { in nvkm_dp_train()
361 if ((pwr & DPCD_SC00_SET_POWER) != DPCD_SC00_SET_POWER_D0) { in nvkm_dp_train()
362 pwr &= ~DPCD_SC00_SET_POWER; in nvkm_dp_train()
363 pwr |= DPCD_SC00_SET_POWER_D0; in nvkm_dp_train()
364 nvkm_wraux(outp->aux, DPCD_SC00, &pwr, 1); in nvkm_dp_train()
/drivers/soc/rockchip/
Dpm_domains.c79 #define DOMAIN(pwr, status, req, idle, ack, wakeup) \ argument
81 .pwr_mask = (pwr >= 0) ? BIT(pwr) : 0, \
89 #define DOMAIN_RK3288(pwr, status, req, wakeup) \ argument
90 DOMAIN(pwr, status, req, req, (req) + 16, wakeup)
92 #define DOMAIN_RK3368(pwr, status, req, wakeup) \ argument
93 DOMAIN(pwr, status, req, (req) + 16, req, wakeup)
95 #define DOMAIN_RK3399(pwr, status, req, wakeup) \ argument
96 DOMAIN(pwr, status, req, req, req, wakeup)
/drivers/mmc/host/
Dmmci.c284 static void mmci_write_pwrreg(struct mmci_host *host, u32 pwr) in mmci_write_pwrreg() argument
286 if (host->pwr_reg != pwr) { in mmci_write_pwrreg()
287 host->pwr_reg = pwr; in mmci_write_pwrreg()
288 writel(pwr, host->base + MMCIPOWER); in mmci_write_pwrreg()
1307 u32 pwr = 0; in mmci_set_ios() local
1335 pwr |= variant->pwrreg_powerup; in mmci_set_ios()
1348 pwr |= MCI_PWR_ON; in mmci_set_ios()
1358 pwr |= host->pwr_reg_add; in mmci_set_ios()
1361 pwr &= ~MCI_ST_DATA74DIREN; in mmci_set_ios()
1363 pwr &= (~MCI_ST_DATA74DIREN & in mmci_set_ios()
[all …]
Dsdhci-pxav3.c316 u8 pwr = host->pwr; in pxav3_set_power() local
320 if (host->pwr == pwr) in pxav3_set_power()
323 if (host->pwr == 0) in pxav3_set_power()
/drivers/gpu/drm/nouveau/
Dnv50_display.c1559 struct nv50_disp_dac_pwr_v0 pwr; in nv50_dac_dpms() member
1565 .pwr.state = 1, in nv50_dac_dpms()
1566 .pwr.data = 1, in nv50_dac_dpms()
1567 .pwr.vsync = (mode != DRM_MODE_DPMS_SUSPEND && in nv50_dac_dpms()
1569 .pwr.hsync = (mode != DRM_MODE_DPMS_STANDBY && in nv50_dac_dpms()
1801 struct nv50_disp_sor_hdmi_pwr_v0 pwr; in nv50_hdmi_mode_set() member
1808 .pwr.state = 1, in nv50_hdmi_mode_set()
1809 .pwr.rekey = 56, /* binary driver, and tegra, constant */ in nv50_hdmi_mode_set()
1819 max_ac_packet -= args.pwr.rekey; in nv50_hdmi_mode_set()
1821 args.pwr.max_ac_packet = max_ac_packet / 32; in nv50_hdmi_mode_set()
[all …]

1234