| /kernel/linux/linux-5.10/arch/x86/platform/intel-mid/ |
| D | pwr.c | 106 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 …]
|
| /kernel/linux/linux-6.6/arch/x86/platform/intel-mid/ |
| D | pwr.c | 106 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 …]
|
| /kernel/linux/linux-6.6/drivers/input/misc/ |
| 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 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 …]
|
| D | tps65218-pwrbutton.c | 57 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, ®); 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 …]
|
| D | tps65219-pwrbutton.c | 26 struct tps65219_pwrbutton *pwr = _pwr; in tps65219_pb_push_irq() local 28 input_report_key(pwr->idev, KEY_POWER, 1); in tps65219_pb_push_irq() 29 pm_wakeup_event(pwr->dev, 0); in tps65219_pb_push_irq() 30 input_sync(pwr->idev); in tps65219_pb_push_irq() 37 struct tps65219_pwrbutton *pwr = _pwr; in tps65219_pb_release_irq() local 39 input_report_key(pwr->idev, KEY_POWER, 0); in tps65219_pb_release_irq() 40 input_sync(pwr->idev); in tps65219_pb_release_irq() 49 struct tps65219_pwrbutton *pwr; in tps65219_pb_probe() local 55 pwr = devm_kzalloc(dev, sizeof(*pwr), GFP_KERNEL); in tps65219_pb_probe() 56 if (!pwr) in tps65219_pb_probe() [all …]
|
| D | mc13783-pwrbutton.c | 33 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 …]
|
| 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() 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 …]
|
| /kernel/linux/linux-5.10/drivers/input/misc/ |
| 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 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 …]
|
| D | tps65218-pwrbutton.c | 65 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, ®); 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 …]
|
| D | mc13783-pwrbutton.c | 33 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 …]
|
| D | twl4030-pwrbutton.c | 38 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 input_set_capability(pwr, EV_KEY, KEY_POWER); in twl4030_pwrbutton_probe() 68 pwr->name = "twl4030_pwrbutton"; in twl4030_pwrbutton_probe() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/ti/wl12xx/ |
| D | debugfs.c | 62 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/ti/wl12xx/ |
| D | debugfs.c | 62 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/ti/wl1251/ |
| D | debugfs.c | 144 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/ti/wl1251/ |
| D | debugfs.c | 144 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 …]
|
| /kernel/linux/linux-5.10/drivers/ata/ |
| D | ahci_st.c | 34 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() 79 dev_err(dev, "unable to bring out of pwr-rst\n"); 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() 120 drv_data->pwr_rst = devm_reset_control_get(dev, "pwr-rst"); in st_ahci_probe_resets() [all …]
|
| /kernel/linux/linux-6.6/drivers/ata/ |
| D | ahci_st.c | 34 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() 79 dev_err(dev, "unable to bring out of pwr-rst\n"); 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() 120 drv_data->pwr_rst = devm_reset_control_get(dev, "pwr-rst"); in st_ahci_probe_resets() [all …]
|
| /kernel/linux/linux-5.10/drivers/pinctrl/mvebu/ |
| D | pinctrl-dove.c | 379 MPP_FUNCTION(CONFIG_PMU | 0x4, "cpu-pwr-down", NULL), 380 MPP_FUNCTION(CONFIG_PMU | 0x5, "standby-pwr-down", NULL), 381 MPP_FUNCTION(CONFIG_PMU | 0x8, "core-pwr-good", NULL), 396 MPP_FUNCTION(CONFIG_PMU | 0x4, "cpu-pwr-down", NULL), 397 MPP_FUNCTION(CONFIG_PMU | 0x5, "standby-pwr-down", NULL), 398 MPP_FUNCTION(CONFIG_PMU | 0x8, "core-pwr-good", NULL), 414 MPP_FUNCTION(CONFIG_PMU | 0x4, "cpu-pwr-down", NULL), 415 MPP_FUNCTION(CONFIG_PMU | 0x5, "standby-pwr-down", NULL), 416 MPP_FUNCTION(CONFIG_PMU | 0x8, "core-pwr-good", NULL), 433 MPP_FUNCTION(CONFIG_PMU | 0x4, "cpu-pwr-down", NULL), [all …]
|
| /kernel/linux/linux-6.6/drivers/pinctrl/mvebu/ |
| D | pinctrl-dove.c | 379 MPP_FUNCTION(CONFIG_PMU | 0x4, "cpu-pwr-down", NULL), 380 MPP_FUNCTION(CONFIG_PMU | 0x5, "standby-pwr-down", NULL), 381 MPP_FUNCTION(CONFIG_PMU | 0x8, "core-pwr-good", NULL), 396 MPP_FUNCTION(CONFIG_PMU | 0x4, "cpu-pwr-down", NULL), 397 MPP_FUNCTION(CONFIG_PMU | 0x5, "standby-pwr-down", NULL), 398 MPP_FUNCTION(CONFIG_PMU | 0x8, "core-pwr-good", NULL), 414 MPP_FUNCTION(CONFIG_PMU | 0x4, "cpu-pwr-down", NULL), 415 MPP_FUNCTION(CONFIG_PMU | 0x5, "standby-pwr-down", NULL), 416 MPP_FUNCTION(CONFIG_PMU | 0x8, "core-pwr-good", NULL), 433 MPP_FUNCTION(CONFIG_PMU | 0x4, "cpu-pwr-down", NULL), [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/rtc/ |
| 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>;
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/rtc/ |
| 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>;
|
| /kernel/linux/linux-6.6/drivers/net/wireless/ti/wl18xx/ |
| D | debugfs.c | 110 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/ti/wl18xx/ |
| D | debugfs.c | 110 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 …]
|
| /kernel/linux/linux-5.10/tools/perf/ |
| D | builtin-timechart.c | 355 struct power_event *pwr = zalloc(sizeof(*pwr)); in c_state_end() local 357 if (!pwr) in c_state_end() 360 pwr->state = cpus_cstate_state[cpu]; in c_state_end() 361 pwr->start_time = cpus_cstate_start_times[cpu]; in c_state_end() 362 pwr->end_time = timestamp; in c_state_end() 363 pwr->cpu = cpu; in c_state_end() 364 pwr->type = CSTATE; in c_state_end() 365 pwr->next = tchart->power_events; in c_state_end() 367 tchart->power_events = pwr; in c_state_end() 372 struct power_event *pwr; in p_state_change() local [all …]
|
| /kernel/linux/linux-6.6/tools/perf/ |
| D | builtin-timechart.c | 365 struct power_event *pwr = zalloc(sizeof(*pwr)); in c_state_end() local 367 if (!pwr) in c_state_end() 370 pwr->state = cpus_cstate_state[cpu]; in c_state_end() 371 pwr->start_time = cpus_cstate_start_times[cpu]; in c_state_end() 372 pwr->end_time = timestamp; in c_state_end() 373 pwr->cpu = cpu; in c_state_end() 374 pwr->type = CSTATE; in c_state_end() 375 pwr->next = tchart->power_events; in c_state_end() 377 tchart->power_events = pwr; in c_state_end() 383 struct power_event *pwr = zalloc(sizeof(*pwr)); in p_state_end() local [all …]
|