| /linux/arch/x86/platform/intel-mid/ |
| A D | pwr.c | 251 mutex_lock(&pwr->lock); in mid_pwr_set_power_state() 264 if (pwr && pwr->available) in intel_mid_pci_set_power_state() 277 if (!pwr || !pwr->available) in intel_mid_pci_get_power_state() 301 mid_pwr_wait(pwr); in intel_mid_pwr_power_off() 352 struct mid_pwr *pwr; in mid_pwr_probe() local 367 pwr = devm_kzalloc(dev, sizeof(*pwr), GFP_KERNEL); in mid_pwr_probe() 368 if (!pwr) in mid_pwr_probe() 371 pwr->dev = dev; in mid_pwr_probe() 373 pwr->irq = pdev->irq; in mid_pwr_probe() 391 pwr->available = true; in mid_pwr_probe() [all …]
|
| /linux/drivers/input/misc/ |
| A D | rk805-pwrkey.c | 20 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 33 input_sync(pwr); in pwrkey_rise_irq() 40 struct input_dev *pwr; in rk805_pwrkey_probe() local 45 if (!pwr) { in rk805_pwrkey_probe() 50 pwr->name = "rk805 pwrkey"; in rk805_pwrkey_probe() 52 pwr->id.bustype = BUS_HOST; in rk805_pwrkey_probe() 66 "rk805_pwrkey_fall", pwr); in rk805_pwrkey_probe() [all …]
|
| A D | tps65218-pwrbutton.c | 75 input_sync(pwr->idev); in tps6521x_pb_irq() 94 pwr = devm_kzalloc(dev, sizeof(*pwr), GFP_KERNEL); in tps6521x_pb_probe() 95 if (!pwr) in tps6521x_pb_probe() 98 pwr->data = match->data; in tps6521x_pb_probe() 104 idev->name = pwr->data->name; in tps6521x_pb_probe() 105 snprintf(pwr->phys, sizeof(pwr->phys), "%s/input0", in tps6521x_pb_probe() 106 pwr->data->name); in tps6521x_pb_probe() 107 idev->phys = pwr->phys; in tps6521x_pb_probe() 114 pwr->dev = dev; in tps6521x_pb_probe() 115 pwr->idev = idev; in tps6521x_pb_probe() [all …]
|
| A D | tps65219-pwrbutton.c | 29 pm_wakeup_event(pwr->dev, 0); in tps65219_pb_push_irq() 30 input_sync(pwr->idev); in tps65219_pb_push_irq() 40 input_sync(pwr->idev); in tps65219_pb_release_irq() 55 pwr = devm_kzalloc(dev, sizeof(*pwr), GFP_KERNEL); in tps65219_pb_probe() 56 if (!pwr) in tps65219_pb_probe() 64 snprintf(pwr->phys, sizeof(pwr->phys), "%s/input0", in tps65219_pb_probe() 66 idev->phys = pwr->phys; in tps65219_pb_probe() 71 pwr->dev = dev; in tps65219_pb_probe() 72 pwr->idev = idev; in tps65219_pb_probe() 86 dev->init_name, pwr); in tps65219_pb_probe() [all …]
|
| A D | twl4030-pwrbutton.c | 39 struct input_dev *pwr = _pwr; in powerbutton_irq() local 45 pm_wakeup_event(pwr->dev.parent, 0); in powerbutton_irq() 47 input_sync(pwr); 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() 69 pwr->name = "twl4030_pwrbutton"; in twl4030_pwrbutton_probe() 70 pwr->phys = "twl4030_pwrbutton/input0"; in twl4030_pwrbutton_probe() 71 pwr->dev.parent = &pdev->dev; in twl4030_pwrbutton_probe() 76 "twl4030_pwrbutton", pwr); in twl4030_pwrbutton_probe() [all …]
|
| A D | mc13783-pwrbutton.c | 33 struct input_dev *pwr; member 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() 189 pwr->name = "mc13783_pwrbutton"; in mc13783_pwrbutton_probe() 191 pwr->dev.parent = &pdev->dev; in mc13783_pwrbutton_probe() 193 pwr->keycode = priv->keymap; in mc13783_pwrbutton_probe() 196 __set_bit(EV_KEY, pwr->evbit); in mc13783_pwrbutton_probe() [all …]
|
| A D | pmic8xxx-pwrkey.c | 84 struct input_dev *pwr = _pwr; in pwrkey_press_irq() local 86 input_report_key(pwr, KEY_POWER, 1); in pwrkey_press_irq() 87 input_sync(pwr); in pwrkey_press_irq() 94 struct input_dev *pwr = _pwr; in pwrkey_release_irq() local 96 input_report_key(pwr, KEY_POWER, 0); in pwrkey_release_irq() 97 input_sync(pwr); in pwrkey_release_irq() 333 struct input_dev *pwr; in pmic8xxx_pwrkey_probe() local 370 if (!pwr) { in pmic8xxx_pwrkey_probe() 377 pwr->name = "pmic8xxx_pwrkey"; in pmic8xxx_pwrkey_probe() 378 pwr->phys = "pmic8xxx_pwrkey/input0"; in pmic8xxx_pwrkey_probe() [all …]
|
| /linux/drivers/net/wireless/ti/wl12xx/ |
| A D | debugfs.c | 162 DEBUGFS_FWSTATS_ADD(pwr, ps_enter); in wl12xx_debugfs_add_files() 163 DEBUGFS_FWSTATS_ADD(pwr, elp_enter); in wl12xx_debugfs_add_files() 164 DEBUGFS_FWSTATS_ADD(pwr, missing_bcns); in wl12xx_debugfs_add_files() 165 DEBUGFS_FWSTATS_ADD(pwr, wake_on_host); in wl12xx_debugfs_add_files() 167 DEBUGFS_FWSTATS_ADD(pwr, tx_with_ps); in wl12xx_debugfs_add_files() 168 DEBUGFS_FWSTATS_ADD(pwr, tx_without_ps); in wl12xx_debugfs_add_files() 169 DEBUGFS_FWSTATS_ADD(pwr, rcvd_beacons); in wl12xx_debugfs_add_files() 170 DEBUGFS_FWSTATS_ADD(pwr, power_save_off); in wl12xx_debugfs_add_files() 171 DEBUGFS_FWSTATS_ADD(pwr, enable_ps); in wl12xx_debugfs_add_files() 172 DEBUGFS_FWSTATS_ADD(pwr, disable_ps); in wl12xx_debugfs_add_files() [all …]
|
| /linux/drivers/net/wireless/ti/wl1251/ |
| A D | debugfs.c | 284 DEBUGFS_FWSTATS_DEL(pwr, ps_enter); in wl1251_debugfs_delete_files() 285 DEBUGFS_FWSTATS_DEL(pwr, elp_enter); in wl1251_debugfs_delete_files() 289 DEBUGFS_FWSTATS_DEL(pwr, tx_with_ps); in wl1251_debugfs_delete_files() 293 DEBUGFS_FWSTATS_DEL(pwr, enable_ps); in wl1251_debugfs_delete_files() 294 DEBUGFS_FWSTATS_DEL(pwr, disable_ps); in wl1251_debugfs_delete_files() 295 DEBUGFS_FWSTATS_DEL(pwr, fix_tsf_ps); in wl1251_debugfs_delete_files() 383 DEBUGFS_FWSTATS_ADD(pwr, ps_enter); in wl1251_debugfs_add_files() 384 DEBUGFS_FWSTATS_ADD(pwr, elp_enter); in wl1251_debugfs_add_files() 388 DEBUGFS_FWSTATS_ADD(pwr, tx_with_ps); in wl1251_debugfs_add_files() 392 DEBUGFS_FWSTATS_ADD(pwr, enable_ps); in wl1251_debugfs_add_files() [all …]
|
| /linux/tools/perf/ |
| A D | builtin-timechart.c | 365 struct power_event *pwr = zalloc(sizeof(*pwr)); in c_state_end() local 367 if (!pwr) in c_state_end() 383 struct power_event *pwr = zalloc(sizeof(*pwr)); in p_state_end() local 385 if (!pwr) in p_state_end() 409 if (!pwr) in p_state_change() 706 pwr = zalloc(sizeof(*pwr)); in end_sample_processing() 707 if (!pwr) in end_sample_processing() 1029 svg_cstate(pwr->cpu, pwr->start_time, pwr->end_time, pwr->state); in draw_c_p_states() 1030 pwr = pwr->next; in draw_c_p_states() 1038 svg_pstate(pwr->cpu, pwr->start_time, pwr->end_time, pwr->state); in draw_c_p_states() [all …]
|
| /linux/drivers/ata/ |
| A D | ahci_st.c | 33 struct reset_control *pwr; member 59 if (drv_data->pwr) { in st_ahci_deassert_resets() 60 err = reset_control_deassert(drv_data->pwr); in st_ahci_deassert_resets() 93 if (drv_data->pwr) { in st_ahci_host_stop() 94 err = reset_control_assert(drv_data->pwr); in st_ahci_host_stop() 107 drv_data->pwr = devm_reset_control_get(dev, "pwr-dwn"); in st_ahci_probe_resets() 108 if (IS_ERR(drv_data->pwr)) { in st_ahci_probe_resets() 110 drv_data->pwr = NULL; in st_ahci_probe_resets() 191 if (drv_data->pwr) { in st_ahci_suspend() 192 err = reset_control_assert(drv_data->pwr); in st_ahci_suspend()
|
| /linux/drivers/net/wireless/ti/wl18xx/ |
| A D | debugfs.c | 494 DEBUGFS_FWSTATS_ADD(pwr, missing_bcns_cnt); in wl18xx_debugfs_add_files() 495 DEBUGFS_FWSTATS_ADD(pwr, rcvd_bcns_cnt); in wl18xx_debugfs_add_files() 497 DEBUGFS_FWSTATS_ADD(pwr, cont_miss_bcns_spread); in wl18xx_debugfs_add_files() 498 DEBUGFS_FWSTATS_ADD(pwr, rcvd_awake_bcns_cnt); in wl18xx_debugfs_add_files() 499 DEBUGFS_FWSTATS_ADD(pwr, sleep_time_count); in wl18xx_debugfs_add_files() 500 DEBUGFS_FWSTATS_ADD(pwr, sleep_time_avg); in wl18xx_debugfs_add_files() 501 DEBUGFS_FWSTATS_ADD(pwr, sleep_cycle_avg); in wl18xx_debugfs_add_files() 502 DEBUGFS_FWSTATS_ADD(pwr, sleep_percent); in wl18xx_debugfs_add_files() 503 DEBUGFS_FWSTATS_ADD(pwr, ap_sleep_active_conf); in wl18xx_debugfs_add_files() 504 DEBUGFS_FWSTATS_ADD(pwr, ap_sleep_user_conf); in wl18xx_debugfs_add_files() [all …]
|
| /linux/drivers/phy/samsung/ |
| A D | phy-s5pv210-usb2.c | 115 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()
|
| A D | phy-exynos4210-usb2.c | 152 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()
|
| A D | phy-exynos4x12-usb2.c | 214 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/Documentation/devicetree/bindings/regulator/ |
| A D | st,stm32mp1-pwr-reg.yaml | 4 $id: http://devicetree.org/schemas/regulator/st,stm32mp1-pwr-reg.yaml# 16 - const: st,stm32mp1,pwr-reg 18 - const: st,stm32mp13-pwr-reg 19 - const: st,stm32mp1,pwr-reg 44 pwr@50001000 { 45 compatible = "st,stm32mp1,pwr-reg";
|
| /linux/arch/powerpc/kernel/ |
| A D | vecemu.c | 41 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/drivers/net/wireless/ath/ath5k/ |
| A D | eeprom.c | 859 cdata->pwr[0] |= ((val >> 14) & 0x3); in ath5k_eeprom_read_pcal_info_5111() 865 cdata->pwr[3] |= ((val >> 12) & 0xf); in ath5k_eeprom_read_pcal_info_5111() 875 cdata->pwr[8] |= ((val >> 14) & 0x3); in ath5k_eeprom_read_pcal_info_5111() 1255 2 * pcinfo->pwr[pdg][point - 1]; in ath5k_eeprom_convert_pcal_info_2413() 1349 pcinfo->pwr[0][0] = (val >> 12) & 0xf; in ath5k_eeprom_read_pcal_info_2413() 1353 pcinfo->pwr[0][1] = (val >> 6) & 0xf; in ath5k_eeprom_read_pcal_info_2413() 1357 pcinfo->pwr[0][2] = val & 0xf; in ath5k_eeprom_read_pcal_info_2413() 1360 pcinfo->pwr[0][3] = 0; in ath5k_eeprom_read_pcal_info_2413() 1379 pcinfo->pwr[1][1] = val & 0xf; in ath5k_eeprom_read_pcal_info_2413() 1387 pcinfo->pwr[1][3] = 0; in ath5k_eeprom_read_pcal_info_2413() [all …]
|
| /linux/Documentation/devicetree/bindings/rtc/ |
| A D | isil,isl12026.txt | 14 - "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/drivers/net/wireless/intel/iwlwifi/cfg/ |
| A D | 7000.c | 197 {.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/drivers/pmdomain/rockchip/ |
| A D | pm-domains.c | 111 .pwr_mask = (pwr), \ 122 .pwr_w_mask = (pwr) << 16, \ 123 .pwr_mask = (pwr), \ 136 .pwr_w_mask = (pwr) << 16, \ 137 .pwr_mask = (pwr), \ 154 .pwr_w_mask = (pwr) << 16, \ 155 .pwr_mask = (pwr), \ 183 DOMAIN_M(name, pwr, pwr, req, idle, idle, wakeup) 189 DOMAIN_M(name, pwr, pwr, req, (req) << 10, req, wakeup) 197 #define DOMAIN_RK3568(name, pwr, req, wakeup) \ argument [all …]
|
| /linux/Documentation/devicetree/bindings/ata/ |
| A D | ahci-st.txt | 17 - reset-names : Associated names must be; "pwr-dwn", "sw-rst" and "pwr-rst" 32 reset-names = "pwr-dwn", "sw-rst", "pwr-rst";
|
| /linux/drivers/usb/host/ |
| A D | ehci-st.c | 36 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() 196 priv->pwr = in st_ehci_platform_probe() 198 if (IS_ERR(priv->pwr)) { in st_ehci_platform_probe() 199 err = PTR_ERR(priv->pwr); in st_ehci_platform_probe() 202 priv->pwr = NULL; in st_ehci_platform_probe()
|
| A D | ohci-st.c | 34 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() 176 priv->pwr = in st_ohci_platform_probe() 178 if (IS_ERR(priv->pwr)) { in st_ohci_platform_probe() 179 err = PTR_ERR(priv->pwr); in st_ohci_platform_probe()
|
| /linux/drivers/pmdomain/samsung/ |
| A D | exynos-pm-domains.c | 40 u32 timeout, pwr; in exynos_pd_power() local 46 pwr = power_on ? pd->local_pwr_cfg : 0; in exynos_pd_power() 47 writel_relaxed(pwr, base); in exynos_pd_power() 52 while ((readl_relaxed(base + 0x4) & pd->local_pwr_cfg) != pwr) { in exynos_pd_power()
|