/drivers/usb/musb/ |
D | musb_virthub.c | 51 u8 power; in musb_port_suspend() local 62 power = musb_readb(mbase, MUSB_POWER); in musb_port_suspend() 66 power &= ~MUSB_POWER_RESUME; in musb_port_suspend() 67 power |= MUSB_POWER_SUSPENDM; in musb_port_suspend() 68 musb_writeb(mbase, MUSB_POWER, power); in musb_port_suspend() 71 power = musb_readb(mbase, MUSB_POWER); in musb_port_suspend() 72 while (power & MUSB_POWER_SUSPENDM) { in musb_port_suspend() 73 power = musb_readb(mbase, MUSB_POWER); in musb_port_suspend() 78 DBG(3, "Root port suspended, power %02x\n", power); in musb_port_suspend() 100 } else if (power & MUSB_POWER_SUSPENDM) { in musb_port_suspend() [all …]
|
D | omap2430.c | 57 u8 power; in musb_do_idle() local 83 power = musb_readb(musb->mregs, MUSB_POWER); in musb_do_idle() 84 power &= ~MUSB_POWER_RESUME; in musb_do_idle() 85 DBG(1, "root port resume stopped, power %02x\n", power); in musb_do_idle() 86 musb_writeb(musb->mregs, MUSB_POWER, power); in musb_do_idle()
|
/drivers/acpi/ |
D | processor_idle.c | 212 struct acpi_processor_power *pwr = &pr->power; in acpi_timer_check_state() 223 pr->power.timer_broadcast_on_state = state; in acpi_timer_check_state() 230 reason = pr->power.timer_broadcast_on_state < INT_MAX ? in acpi_propagate_timer_broadcast() 241 int state = cx - pr->power.states; in acpi_state_timer_broadcast() 243 if (state >= pr->power.timer_broadcast_on_state) { in acpi_state_timer_broadcast() 312 pr->power.states[ACPI_STATE_C2].type = ACPI_STATE_C2; in acpi_processor_get_power_info_fadt() 313 pr->power.states[ACPI_STATE_C3].type = ACPI_STATE_C3; in acpi_processor_get_power_info_fadt() 326 pr->power.states[ACPI_STATE_C2].address = pr->pblk + 4; in acpi_processor_get_power_info_fadt() 327 pr->power.states[ACPI_STATE_C3].address = pr->pblk + 5; in acpi_processor_get_power_info_fadt() 330 pr->power.states[ACPI_STATE_C2].latency = acpi_gbl_FADT.C2latency; in acpi_processor_get_power_info_fadt() [all …]
|
D | bus.c | 187 *state = device->parent->power.state; in acpi_bus_get_power() 195 if (device->power.flags.explicit_get) { in acpi_bus_get_power() 200 device->power.state = (int)psc; in acpi_bus_get_power() 201 } else if (device->power.flags.power_resources) { in acpi_bus_get_power() 207 *state = device->power.state; in acpi_bus_get_power() 211 device->pnp.bus_id, device->power.state)); in acpi_bus_get_power() 254 acpi_bus_get_power(device->handle, &device->power.state); in acpi_bus_set_power() 256 if ((state == device->power.state) && !device->flags.force_power_state) { in acpi_bus_set_power() 262 if (!device->power.states[state].flags.valid) { in acpi_bus_set_power() 266 if (device->parent && (state < device->parent->power.state)) { in acpi_bus_set_power() [all …]
|
D | power.c | 256 resource->device->power.state = ACPI_STATE_D0; in acpi_power_on() 313 resource->device->power.state = ACPI_STATE_D3; in acpi_power_off_device() 479 device->power.state = ACPI_STATE_UNKNOWN; in acpi_power_get_inferred_state() 486 list = &device->power.states[i].resources; in acpi_power_get_inferred_state() 495 device->power.state = i; in acpi_power_get_inferred_state() 500 device->power.state = ACPI_STATE_D3; in acpi_power_get_inferred_state() 516 if ((device->power.state < ACPI_STATE_D0) in acpi_power_transition() 517 || (device->power.state > ACPI_STATE_D3)) in acpi_power_transition() 520 cl = &device->power.states[device->power.state].resources; in acpi_power_transition() 521 tl = &device->power.states[state].resources; in acpi_power_transition() [all …]
|
/drivers/video/backlight/ |
D | ili9320.c | 130 static int ili9320_power(struct ili9320 *lcd, int power) in ili9320_power() argument 134 dev_dbg(lcd->dev, "power %d => %d\n", lcd->power, power); in ili9320_power() 136 if (POWER_IS_ON(power) && !POWER_IS_ON(lcd->power)) in ili9320_power() 138 else if (!POWER_IS_ON(power) && POWER_IS_ON(lcd->power)) in ili9320_power() 142 lcd->power = power; in ili9320_power() 144 dev_warn(lcd->dev, "failed to set power mode %d\n", power); in ili9320_power() 154 static int ili9320_set_power(struct lcd_device *ld, int power) in ili9320_set_power() argument 158 return ili9320_power(lcd, power); in ili9320_set_power() 165 return lcd->power; in ili9320_get_power() 232 ili->power = FB_BLANK_POWERDOWN; in ili9320_probe_spi() [all …]
|
D | ltv350qv.c | 25 int power; member 194 static int ltv350qv_power(struct ltv350qv *lcd, int power) in ltv350qv_power() argument 198 if (POWER_IS_ON(power) && !POWER_IS_ON(lcd->power)) in ltv350qv_power() 200 else if (!POWER_IS_ON(power) && POWER_IS_ON(lcd->power)) in ltv350qv_power() 204 lcd->power = power; in ltv350qv_power() 209 static int ltv350qv_set_power(struct lcd_device *ld, int power) in ltv350qv_set_power() argument 213 return ltv350qv_power(lcd, power); in ltv350qv_set_power() 220 return lcd->power; in ltv350qv_get_power() 239 lcd->power = FB_BLANK_POWERDOWN; in ltv350qv_probe()
|
D | platform_lcd.c | 27 unsigned int power; member 40 return plcd->power; in platform_lcd_get_power() 43 static int platform_lcd_set_power(struct lcd_device *lcd, int power) in platform_lcd_set_power() argument 48 if (power == FB_BLANK_POWERDOWN || plcd->suspended) in platform_lcd_set_power() 52 plcd->power = power; in platform_lcd_set_power() 129 platform_lcd_set_power(plcd->lcd, plcd->power); in platform_lcd_suspend() 139 platform_lcd_set_power(plcd->lcd, plcd->power); in platform_lcd_resume()
|
D | tdo24m.c | 38 int power; member 282 static int tdo24m_power(struct tdo24m *lcd, int power) in tdo24m_power() argument 286 if (POWER_IS_ON(power) && !POWER_IS_ON(lcd->power)) in tdo24m_power() 288 else if (!POWER_IS_ON(power) && POWER_IS_ON(lcd->power)) in tdo24m_power() 292 lcd->power = power; in tdo24m_power() 298 static int tdo24m_set_power(struct lcd_device *ld, int power) in tdo24m_set_power() argument 301 return tdo24m_power(lcd, power); in tdo24m_set_power() 307 return lcd->power; in tdo24m_get_power() 356 lcd->power = FB_BLANK_POWERDOWN; in tdo24m_probe()
|
D | corgi_lcd.c | 92 int power; member 364 static int corgi_lcd_set_power(struct lcd_device *ld, int power) in corgi_lcd_set_power() argument 368 if (POWER_IS_ON(power) && !POWER_IS_ON(lcd->power)) in corgi_lcd_set_power() 371 if (!POWER_IS_ON(power) && POWER_IS_ON(lcd->power)) in corgi_lcd_set_power() 374 lcd->power = power; in corgi_lcd_set_power() 382 return lcd->power; in corgi_lcd_get_power() 428 if (bd->props.power != FB_BLANK_UNBLANK) in corgi_bl_update_status() 558 lcd->power = FB_BLANK_POWERDOWN; in corgi_lcd_probe() 569 lcd->bl_dev->props.power = FB_BLANK_UNBLANK; in corgi_lcd_probe() 598 lcd->bl_dev->props.power = FB_BLANK_UNBLANK; in corgi_lcd_remove()
|
D | cr_bllcd.c | 77 if (bd->props.power == FB_BLANK_UNBLANK) in cr_backlight_set_intensity() 81 if (bd->props.power == FB_BLANK_POWERDOWN) in cr_backlight_set_intensity() 157 static int cr_lcd_set_power(struct lcd_device *ld, int power) in cr_lcd_set_power() argument 159 if (power == FB_BLANK_UNBLANK) in cr_lcd_set_power() 161 if (power == FB_BLANK_POWERDOWN) in cr_lcd_set_power() 221 crp->cr_backlight_device->props.power = FB_BLANK_UNBLANK; in cr_backlight_probe() 236 crp->cr_backlight_device->props.power = FB_BLANK_POWERDOWN; in cr_backlight_remove()
|
D | backlight.c | 81 return sprintf(buf, "%d\n", bd->props.power); in backlight_show_power() 89 unsigned long power; in backlight_store_power() local 91 rc = strict_strtoul(buf, 0, &power); in backlight_store_power() 98 pr_debug("backlight: set power to %lu\n", power); in backlight_store_power() 99 if (bd->props.power != power) { in backlight_store_power() 100 bd->props.power = power; in backlight_store_power()
|
D | tosa_bl.c | 57 int power = max(props->power, props->fb_blank); in tosa_bl_update_status() local 60 if (power) in tosa_bl_update_status() 111 data->bl->props.power = FB_BLANK_UNBLANK; in tosa_bl_probe()
|
/drivers/pcmcia/ |
D | pxa2xx_mainstone.c | 94 unsigned long power = 0; in mst_pcmcia_configure_socket() local 98 case 0: power |= MST_PCMCIA_PWR_VCC_0; break; in mst_pcmcia_configure_socket() 99 case 33: power |= MST_PCMCIA_PWR_VCC_33; break; in mst_pcmcia_configure_socket() 100 case 50: power |= MST_PCMCIA_PWR_VCC_50; break; in mst_pcmcia_configure_socket() 108 case 0: power |= MST_PCMCIA_PWR_VPP_0; break; in mst_pcmcia_configure_socket() 109 case 120: power |= MST_PCMCIA_PWR_VPP_120; break; in mst_pcmcia_configure_socket() 112 power |= MST_PCMCIA_PWR_VPP_VCC; in mst_pcmcia_configure_socket() 121 power |= MST_PCMCIA_RESET; in mst_pcmcia_configure_socket() 124 case 0: MST_PCMCIA0 = power; break; in mst_pcmcia_configure_socket() 125 case 1: MST_PCMCIA1 = power; break; in mst_pcmcia_configure_socket()
|
D | pxa2xx_trizeps4.c | 31 extern void board_pcmcia_power(int power); 154 unsigned short power = 0; in trizeps_pcmcia_configure_socket() local 158 case 0: power &= 0xfc; break; in trizeps_pcmcia_configure_socket() 159 case 33: power |= ConXS_BCR_S0_VCC_3V3; break; in trizeps_pcmcia_configure_socket() 169 case 0: power &= 0xf3; break; in trizeps_pcmcia_configure_socket() 170 case 33: power |= ConXS_BCR_S0_VPP_3V3; break; in trizeps_pcmcia_configure_socket() 183 board_pcmcia_power(power); in trizeps_pcmcia_configure_socket()
|
/drivers/power/ |
D | wm8350_power.c | 47 if (!wm8350->power.rev_g_coeff) in wm8350_charge_time_min() 189 struct wm8350_power *power = &wm8350->power; in wm8350_charger_handler() local 190 struct wm8350_charger_policy *policy = power->policy; in wm8350_charger_handler() 198 power_supply_changed(&power->battery); in wm8350_charger_handler() 205 power_supply_changed(&power->battery); in wm8350_charger_handler() 233 power_supply_changed(&power->battery); in wm8350_charger_handler() 234 power_supply_changed(&power->usb); in wm8350_charger_handler() 235 power_supply_changed(&power->ac); in wm8350_charger_handler() 441 struct wm8350_power *power = &wm8350->power; in wm8350_power_probe() local 442 struct wm8350_charger_policy *policy = power->policy; in wm8350_power_probe() [all …]
|
D | Kconfig | 4 Say Y here to enable power supply class support. This allows 5 power supply (batteries, AC, USB) monitoring by userspace 14 Say Y here to enable debugging messages for power supply class 18 tristate "Generic PDA/phone power driver" 21 Say Y here to enable generic power driver for PDAs and phones with 22 one or two external power supplies (AC/USB) connected to main and 36 Say Y here to enable support for the power management unit 94 Say Y to enable support for the battery and AC power in the Goldfish emulator.
|
/drivers/base/power/ |
D | main.c | 81 if (dev->parent->power.status >= DPM_SUSPENDING) in device_pm_add() 93 list_add_tail(&dev->power.entry, &dpm_list); in device_pm_add() 109 list_del_init(&dev->power.entry); in device_pm_remove() 318 list_for_each_entry(dev, &dpm_list, power.entry) in dpm_power_up() 319 if (dev->power.status > DPM_OFF) { in dpm_power_up() 322 dev->power.status = DPM_OFF; in dpm_power_up() 455 if (dev->power.status >= DPM_OFF) { in dpm_resume() 458 dev->power.status = DPM_RESUMING; in dpm_resume() 466 } else if (dev->power.status == DPM_SUSPENDING) { in dpm_resume() 468 dev->power.status = DPM_RESUMING; in dpm_resume() [all …]
|
/drivers/staging/agnx/ |
D | sta.c | 91 void get_sta_power(struct agnx_priv *priv, struct agnx_sta_power *power, unsigned int sta_idx) in get_sta_power() argument 94 memcpy_fromio(power, ctl + AGNX_TXM_STAPOWTEMP + sizeof(*power) * sta_idx, in get_sta_power() 95 sizeof(*power)); in get_sta_power() 99 set_sta_power(struct agnx_priv *priv, struct agnx_sta_power *power, unsigned int sta_idx) in set_sta_power() argument 103 memcpy_toio(ctl + AGNX_TXM_STAPOWTEMP + sizeof(*power) * sta_idx, in set_sta_power() 104 power, sizeof(*power)); in set_sta_power() 145 struct agnx_sta_power power; in sta_power_init() local 149 memset(&power, 0, sizeof(power)); in sta_power_init() 151 power.reg = cpu_to_le32(reg); in sta_power_init() 152 set_sta_power(priv, &power, sta_idx); in sta_power_init()
|
/drivers/net/wireless/iwlwifi/ |
D | iwl-3945.c | 1636 s8 power; in iwl3945_hw_reg_set_scan_power() local 1644 power = min(ch_info->scan_power, clip_pwrs[IWL_RATE_6M_INDEX_TABLE]); in iwl3945_hw_reg_set_scan_power() 1649 power = min(power, priv->user_txpower_limit); in iwl3945_hw_reg_set_scan_power() 1650 scan_power_info->requested_power = power; in iwl3945_hw_reg_set_scan_power() 1658 - (power - ch_info->power_info in iwl3945_hw_reg_set_scan_power() 1716 txpower.power[i].tpc = ch_info->power_info[i].tpc; in iwl3945_hw_reg_send_txpower() 1717 txpower.power[i].rate = iwl3945_rates[rate_idx].plcp; in iwl3945_hw_reg_send_txpower() 1722 txpower.power[i].tpc.tx_gain, in iwl3945_hw_reg_send_txpower() 1723 txpower.power[i].tpc.dsp_atten, in iwl3945_hw_reg_send_txpower() 1724 txpower.power[i].rate); in iwl3945_hw_reg_send_txpower() [all …]
|
/drivers/media/radio/ |
D | radio-maxiradio.c | 83 static const int clk = 1, data = 2, wren = 4, mo_st = 8, power = 16 ; variable 140 outb( power|wren|data ,io); udelay(4); in outbit() 141 outb( power|wren|data|clk ,io); udelay(4); in outbit() 142 outb( power|wren|data ,io); udelay(4); in outbit() 146 outb( power|wren ,io); udelay(4); in outbit() 147 outb( power|wren|clk ,io); udelay(4); in outbit() 148 outb( power|wren ,io); udelay(4); in outbit() 156 outb(power, io); in turn_power() 200 outb(power,io); in get_stereo() 208 outb(power+clk,io); in get_tune()
|
/drivers/input/misc/ |
D | gpio_event.c | 109 ip->info->power(ip->info, 0); in gpio_event_suspend() 116 ip->info->power(ip->info, 1); in gpio_event_resume() 171 if (event_info->power) { in gpio_event_probe() 178 ip->info->power(ip->info, 1); in gpio_event_probe() 200 if (event_info->power) { in gpio_event_probe() 204 ip->info->power(ip->info, 0); in gpio_event_probe() 224 if (ip->info->power) { in gpio_event_remove() 228 ip->info->power(ip->info, 0); in gpio_event_remove()
|
/drivers/idle/ |
D | Kconfig | 2 menu "Memory power savings" 9 tristate "Intel chipset idle memory power saving driver" 13 Enable memory power savings when idle with certain Intel server 15 Intel 7300. The power savings depends on the type and quantity of
|
/drivers/staging/rtl8187se/ieee80211/ |
D | ieee80211_softmac_wx.c | 504 if (wrqu->power.disabled){ 509 switch (wrqu->power.flags & IW_POWER_MODE) { 527 if (wrqu->power.flags & IW_POWER_TIMEOUT) { 529 ieee->ps_timeout = wrqu->power.value / 1000; 533 if (wrqu->power.flags & IW_POWER_PERIOD) { 556 wrqu->power.disabled = 1; 560 wrqu->power.disabled = 0; 563 wrqu->power.flags = IW_POWER_TIMEOUT; 564 wrqu->power.value = ieee->ps_timeout * 1000; 575 wrqu->power.flags |= IW_POWER_ALL_R; [all …]
|
/drivers/macintosh/ |
D | windfarm_pm91.c | 220 s32 new_setpoint, temp, power; in wf_smu_cpu_fans_tick() local 238 rc = sensor_cpu_power->ops->get_value(sensor_cpu_power, &power); in wf_smu_cpu_fans_tick() 247 FIX32TOPRINT(temp), FIX32TOPRINT(power)); in wf_smu_cpu_fans_tick() 256 new_setpoint = wf_cpu_pid_run(&st->pid, power, temp); in wf_smu_cpu_fans_tick() 413 s32 new_setpoint, power; in wf_smu_slots_fans_tick() local 423 rc = sensor_slots_power->ops->get_value(sensor_slots_power, &power); in wf_smu_slots_fans_tick() 432 FIX32TOPRINT(power)); in wf_smu_slots_fans_tick() 435 if (power > (st->pid.param.itarget + 0x50000)) in wf_smu_slots_fans_tick() 439 new_setpoint = wf_pid_run(&st->pid, power); in wf_smu_slots_fans_tick()
|