/linux-2.6.39/drivers/power/ |
D | apm_power.c | 58 if (bp->full.intval > bp->max_charge) { in __find_main_battery() 60 bp->max_charge = bp->full.intval; in __find_main_battery() 64 if (bp->full.intval > bp->max_energy) { in __find_main_battery() 66 bp->max_energy = bp->full.intval; in __find_main_battery() 93 if (bp.max_energy > bp.max_charge * bp.full.intval) in find_main_battery() 99 if (bp.max_charge > bp.max_energy / bp.full.intval) in find_main_battery() 136 if (!I.intval) in do_calculate_time() 178 empty.intval = 0; in do_calculate_time() 188 return ((cur.intval - full.intval) * 60L) / I.intval; in do_calculate_time() 190 return -((cur.intval - empty.intval) * 60L) / I.intval; in do_calculate_time() [all …]
|
D | olpc_battery.c | 70 val->intval = !!(status & BAT_STAT_AC); in olpc_ac_get_prop() 97 val->intval = POWER_SUPPLY_STATUS_CHARGING; in olpc_bat_get_status() 99 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in olpc_bat_get_status() 101 val->intval = POWER_SUPPLY_STATUS_FULL; in olpc_bat_get_status() 103 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; in olpc_bat_get_status() 107 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in olpc_bat_get_status() 109 val->intval = POWER_SUPPLY_STATUS_FULL; in olpc_bat_get_status() 111 val->intval = POWER_SUPPLY_STATUS_CHARGING; in olpc_bat_get_status() 128 val->intval = POWER_SUPPLY_HEALTH_GOOD; in olpc_bat_get_health() 132 val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; in olpc_bat_get_health() [all …]
|
D | bq20z75.c | 223 val->intval = 1; in bq20z75_get_battery_presence_and_health() 225 val->intval = 0; in bq20z75_get_battery_presence_and_health() 226 bq20z75_device->is_present = val->intval; in bq20z75_get_battery_presence_and_health() 238 val->intval = 0; /* battery removed */ in bq20z75_get_battery_presence_and_health() 249 val->intval = 0; in bq20z75_get_battery_presence_and_health() 261 val->intval = 0; in bq20z75_get_battery_presence_and_health() 263 val->intval = 1; in bq20z75_get_battery_presence_and_health() 266 val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; in bq20z75_get_battery_presence_and_health() 268 val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; in bq20z75_get_battery_presence_and_health() 270 val->intval = POWER_SUPPLY_HEALTH_DEAD; in bq20z75_get_battery_presence_and_health() [all …]
|
D | pmu_battery.c | 38 val->intval = (!!(pmu_power_flags & PMU_PWR_AC_PRESENT)) || in pmu_get_ac_prop() 92 val->intval = POWER_SUPPLY_STATUS_CHARGING; in pmu_bat_get_property() 94 val->intval = POWER_SUPPLY_STATUS_FULL; in pmu_bat_get_property() 96 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in pmu_bat_get_property() 99 val->intval = !!(pbi->flags & PMU_BATT_PRESENT); in pmu_bat_get_property() 105 val->intval = pbi->charge * 1000; /* mWh -> µWh */ in pmu_bat_get_property() 108 val->intval = pbi->max_charge * 1000; /* mWh -> µWh */ in pmu_bat_get_property() 111 val->intval = pbi->amperage * 1000; /* mA -> µA */ in pmu_bat_get_property() 114 val->intval = pbi->voltage * 1000; /* mV -> µV */ in pmu_bat_get_property() 117 val->intval = pbi->time_remaining; in pmu_bat_get_property()
|
D | test_power.c | 27 val->intval = test_power_ac_online; in test_power_get_ac_property() 50 val->intval = test_power_battery_status; in test_power_get_battery_property() 53 val->intval = POWER_SUPPLY_CHARGE_TYPE_FAST; in test_power_get_battery_property() 56 val->intval = POWER_SUPPLY_HEALTH_GOOD; in test_power_get_battery_property() 59 val->intval = POWER_SUPPLY_TECHNOLOGY_LION; in test_power_get_battery_property() 62 val->intval = POWER_SUPPLY_CAPACITY_LEVEL_NORMAL; in test_power_get_battery_property() 65 val->intval = 50; in test_power_get_battery_property() 69 val->intval = 3600; in test_power_get_battery_property()
|
D | max8925_power.c | 205 val->intval = info->ac_online; in max8925_ac_get_prop() 211 val->intval = ret << 1; /* unit is mV */ in max8925_ac_get_prop() 239 val->intval = info->usb_online; in max8925_usb_get_prop() 245 val->intval = ret << 1; /* unit is mV */ in max8925_usb_get_prop() 274 val->intval = info->bat_online; in max8925_bat_get_prop() 280 val->intval = ret << 1; /* unit is mV */ in max8925_bat_get_prop() 293 val->intval = 0; in max8925_bat_get_prop() 295 val->intval = ret; /* unit is mA */ in max8925_bat_get_prop() 311 val->intval = POWER_SUPPLY_CHARGE_TYPE_FAST; in max8925_bat_get_prop() 315 val->intval = POWER_SUPPLY_CHARGE_TYPE_TRICKLE; in max8925_bat_get_prop() [all …]
|
D | power_supply_sysfs.c | 71 value.intval = psy->type; in power_supply_show_property() 86 return sprintf(buf, "%s\n", status_text[value.intval]); in power_supply_show_property() 88 return sprintf(buf, "%s\n", charge_type[value.intval]); in power_supply_show_property() 90 return sprintf(buf, "%s\n", health_text[value.intval]); in power_supply_show_property() 92 return sprintf(buf, "%s\n", technology_text[value.intval]); in power_supply_show_property() 94 return sprintf(buf, "%s\n", capacity_level_text[value.intval]); in power_supply_show_property() 96 return sprintf(buf, "%s\n", type_text[value.intval]); in power_supply_show_property() 100 return sprintf(buf, "%d\n", value.intval); in power_supply_show_property() 117 value.intval = long_val; in power_supply_store_property()
|
D | collie_battery.c | 109 val->intval = bat->status; in collie_bat_get_property() 112 val->intval = bat->technology; in collie_bat_get_property() 115 val->intval = collie_read_bat(bat); in collie_bat_get_property() 119 val->intval = bat->bat_max; in collie_bat_get_property() 121 val->intval = bat->full_chrg; in collie_bat_get_property() 124 val->intval = bat->bat_max; in collie_bat_get_property() 127 val->intval = bat->bat_min; in collie_bat_get_property() 130 val->intval = collie_read_temp(bat); in collie_bat_get_property() 133 val->intval = bat->is_present ? bat->is_present(bat) : 1; in collie_bat_get_property()
|
D | jz4740-battery.c | 137 val->intval = jz_battery->status; in jz_battery_get_property() 140 val->intval = jz_battery->pdata->info.technology; in jz_battery_get_property() 145 val->intval = POWER_SUPPLY_HEALTH_DEAD; in jz_battery_get_property() 147 val->intval = POWER_SUPPLY_HEALTH_GOOD; in jz_battery_get_property() 150 val->intval = jz_battery_get_capacity(psy); in jz_battery_get_property() 153 val->intval = jz_battery_read_voltage(jz_battery); in jz_battery_get_property() 154 if (val->intval < 0) in jz_battery_get_property() 155 return val->intval; in jz_battery_get_property() 158 val->intval = info->voltage_max_design; in jz_battery_get_property() 161 val->intval = info->voltage_min_design; in jz_battery_get_property() [all …]
|
D | s3c_adc_battery.c | 77 val->intval = bat->volt_value; in s3c_adc_backup_bat_get_property() 80 val->intval = bat->pdata->backup_volt_min; in s3c_adc_backup_bat_get_property() 83 val->intval = bat->pdata->backup_volt_max; in s3c_adc_backup_bat_get_property() 187 val->intval = bat->level == 100000 ? in s3c_adc_bat_get_property() 190 val->intval = bat->status; in s3c_adc_bat_get_property() 193 val->intval = 100000; in s3c_adc_bat_get_property() 196 val->intval = 0; in s3c_adc_bat_get_property() 199 val->intval = bat->level; in s3c_adc_bat_get_property() 202 val->intval = bat->volt_value; in s3c_adc_bat_get_property() 205 val->intval = bat->cur_value; in s3c_adc_bat_get_property()
|
D | wm97xx_battery.c | 63 val->intval = bat_status; in wm97xx_bat_get_property() 66 val->intval = pdata->batt_tech; in wm97xx_bat_get_property() 70 val->intval = wm97xx_read_bat(bat_ps); in wm97xx_bat_get_property() 76 val->intval = wm97xx_read_temp(bat_ps); in wm97xx_bat_get_property() 82 val->intval = pdata->max_voltage; in wm97xx_bat_get_property() 88 val->intval = pdata->min_voltage; in wm97xx_bat_get_property() 93 val->intval = 1; in wm97xx_bat_get_property()
|
D | ds2760_battery.c | 408 val->intval = di->charge_status; in ds2760_battery_get_property() 418 val->intval = di->voltage_uV; in ds2760_battery_get_property() 421 val->intval = di->current_uA; in ds2760_battery_get_property() 424 val->intval = di->rated_capacity; in ds2760_battery_get_property() 427 val->intval = di->full_active_uAh; in ds2760_battery_get_property() 430 val->intval = di->empty_uAh; in ds2760_battery_get_property() 433 val->intval = di->accum_current_uAh; in ds2760_battery_get_property() 436 val->intval = di->temp_C; in ds2760_battery_get_property() 439 val->intval = di->life_sec; in ds2760_battery_get_property() 442 val->intval = di->rem_capacity; in ds2760_battery_get_property() [all …]
|
D | tosa_battery.c | 108 val->intval = bat->status; in tosa_bat_get_property() 111 val->intval = bat->technology; in tosa_bat_get_property() 114 val->intval = tosa_read_bat(bat); in tosa_bat_get_property() 118 val->intval = bat->bat_max; in tosa_bat_get_property() 120 val->intval = bat->full_chrg; in tosa_bat_get_property() 123 val->intval = bat->bat_max; in tosa_bat_get_property() 126 val->intval = bat->bat_min; in tosa_bat_get_property() 129 val->intval = tosa_read_temp(bat); in tosa_bat_get_property() 132 val->intval = bat->is_present ? bat->is_present(bat) : 1; in tosa_bat_get_property()
|
D | wm831x_backup.c | 35 val->intval = ret; in wm831x_backup_read_voltage() 128 val->intval = POWER_SUPPLY_STATUS_CHARGING; in wm831x_backup_get_prop() 130 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; in wm831x_backup_get_prop() 140 val->intval = 1; in wm831x_backup_get_prop() 142 val->intval = 0; in wm831x_backup_get_prop()
|
D | da9030_battery.c | 320 val->intval = POWER_SUPPLY_STATUS_CHARGING; in da9030_battery_check_status() 322 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; in da9030_battery_check_status() 324 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in da9030_battery_check_status() 332 val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; in da9030_battery_check_health() 334 val->intval = POWER_SUPPLY_HEALTH_OVERVOLTAGE; in da9030_battery_check_health() 336 val->intval = POWER_SUPPLY_HEALTH_GOOD; in da9030_battery_check_health() 354 val->intval = charger->battery_info->technology; in da9030_battery_get_property() 357 val->intval = charger->battery_info->voltage_max_design; in da9030_battery_get_property() 360 val->intval = charger->battery_info->voltage_min_design; in da9030_battery_get_property() 363 val->intval = da9030_reg_to_mV(charger->adc.vbat_res) * 1000; in da9030_battery_get_property() [all …]
|
D | wm8350_power.c | 258 val->intval = !!(wm8350_get_supplies(wm8350) & in wm8350_ac_get_prop() 262 val->intval = wm8350_read_line_uvolts(wm8350); in wm8350_ac_get_prop() 288 val->intval = !!(wm8350_get_supplies(wm8350) & in wm8350_usb_get_prop() 292 val->intval = wm8350_read_usb_uvolts(wm8350); in wm8350_usb_get_prop() 354 val->intval = wm8350_batt_status(wm8350); in wm8350_bat_get_property() 357 val->intval = !!(wm8350_get_supplies(wm8350) & in wm8350_bat_get_property() 361 val->intval = wm8350_read_battery_uvolts(wm8350); in wm8350_bat_get_property() 364 val->intval = wm8350_bat_check_health(wm8350); in wm8350_bat_get_property() 367 val->intval = wm8350_bat_get_charge_type(wm8350); in wm8350_bat_get_property()
|
D | z2_battery.c | 53 val->intval = charger->bat_status; in z2_batt_get_property() 56 val->intval = info->batt_tech; in z2_batt_get_property() 60 val->intval = z2_read_bat(charger); in z2_batt_get_property() 66 val->intval = info->max_voltage; in z2_batt_get_property() 72 val->intval = info->min_voltage; in z2_batt_get_property() 77 val->intval = 1; in z2_batt_get_property()
|
D | power_supply_leds.c | 30 dev_dbg(psy->dev, "%s %d\n", __func__, status.intval); in power_supply_update_bat_leds() 32 switch (status.intval) { in power_supply_update_bat_leds() 124 dev_dbg(psy->dev, "%s %d\n", __func__, online.intval); in power_supply_update_gen_leds() 126 if (online.intval) in power_supply_update_gen_leds()
|
D | bq27x00_battery.c | 316 val->intval = di->cache.temperature - 2731; in bq27x00_battery_temperature() 318 val->intval = ((di->cache.temperature * 5) - 5463) / 2; in bq27x00_battery_temperature() 343 val->intval = (int)((s16)curr) * 1000; in bq27x00_battery_current() 350 val->intval = curr * 3570 / BQ27000_RS; in bq27x00_battery_current() 379 val->intval = status; in bq27x00_battery_status() 397 val->intval = volt * 1000; in bq27x00_battery_voltage() 422 val->intval = ae; in bq27x00_battery_energy() 434 val->intval = value; in bq27x00_simple_value() 467 val->intval = di->cache.flags < 0 ? 0 : 1; in bq27x00_battery_get_property() 488 val->intval = POWER_SUPPLY_TECHNOLOGY_LION; in bq27x00_battery_get_property()
|
D | power_supply_core.c | 77 if (ret.intval) in __power_supply_am_i_supplied() 78 return ret.intval; in __power_supply_am_i_supplied() 105 if (ret.intval) in __power_supply_is_system_supplied() 106 return ret.intval; in __power_supply_is_system_supplied()
|
/linux-2.6.39/drivers/net/wireless/ath/ath9k/ |
D | htc_drv_beacon.c | 29 u32 nexttbtt = 0, intval, tsftu; in ath9k_htc_beacon_config_sta() local 38 intval = bss_conf->beacon_interval & ATH9K_BEACON_PERIOD; in ath9k_htc_beacon_config_sta() 54 sleepduration = intval; in ath9k_htc_beacon_config_sta() 56 sleepduration = intval; in ath9k_htc_beacon_config_sta() 65 num_beacons = tsftu / intval + 1; in ath9k_htc_beacon_config_sta() 66 offset = tsftu % intval; in ath9k_htc_beacon_config_sta() 69 nexttbtt += intval; in ath9k_htc_beacon_config_sta() 86 bs.bs_intval = intval; in ath9k_htc_beacon_config_sta() 88 bs.bs_dtimperiod = dtimperiod*intval; in ath9k_htc_beacon_config_sta() 89 bs.bs_nextdtim = bs.bs_nexttbtt + dtimcount*intval; in ath9k_htc_beacon_config_sta() [all …]
|
D | beacon.c | 285 int intval; in ath_beacon_alloc() local 287 intval = cur_conf->beacon_interval ? : ATH_DEFAULT_BINTVAL; in ath_beacon_alloc() 297 tsfadjust = intval * avp->av_bslot / ATH_BCBUF; in ath_beacon_alloc() 302 avp->av_bslot, intval, (unsigned long long)tsfadjust); in ath_beacon_alloc() 360 u16 intval; in ath_beacon_tasklet() local 401 intval = cur_conf->beacon_interval ? : ATH_DEFAULT_BINTVAL; in ath_beacon_tasklet() 405 slot = ((tsftu % intval) * ATH_BCBUF) / intval; in ath_beacon_tasklet() 418 slot, tsf, tsftu, intval, vif); in ath_beacon_tasklet() 484 u32 nexttbtt, intval; in ath_beacon_config_ap() local 487 intval = conf->beacon_interval & ATH9K_BEACON_PERIOD; in ath_beacon_config_ap() [all …]
|
/linux-2.6.39/scripts/rt-tester/ |
D | rt-tester.py | 80 intval = int(val) 83 intval = intval / (10 ** int(arg)) 84 intval = intval % 10 93 if top[1] == "eq" and intval == argval: 95 if top[1] == "lt" and intval < argval: 97 if top[1] == "gt" and intval > argval:
|
/linux-2.6.39/drivers/platform/x86/ |
D | compal-laptop.c | 579 val->intval = bat_status(); in bat_get_property() 582 val->intval = bat_health(); in bat_get_property() 585 val->intval = bat_is_present(); in bat_get_property() 588 val->intval = bat_technology(); in bat_get_property() 591 val->intval = ec_read_u16(BAT_VOLTAGE_DESIGN) * 1000; in bat_get_property() 594 val->intval = ec_read_u16(BAT_VOLTAGE_NOW) * 1000; in bat_get_property() 597 val->intval = ec_read_s16(BAT_CURRENT_NOW) * 1000; in bat_get_property() 600 val->intval = ec_read_s16(BAT_CURRENT_AVG) * 1000; in bat_get_property() 603 val->intval = ec_read_u8(BAT_POWER) * 1000000; in bat_get_property() 606 val->intval = ec_read_u16(BAT_CHARGE_DESIGN) * 1000; in bat_get_property() [all …]
|
/linux-2.6.39/drivers/acpi/ |
D | sbs.c | 169 val->intval = sbs->charger_present; in sbs_get_ac_property() 201 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in acpi_sbs_battery_get_property() 203 val->intval = POWER_SUPPLY_STATUS_CHARGING; in acpi_sbs_battery_get_property() 205 val->intval = POWER_SUPPLY_STATUS_FULL; in acpi_sbs_battery_get_property() 208 val->intval = battery->present; in acpi_sbs_battery_get_property() 211 val->intval = acpi_battery_technology(battery); in acpi_sbs_battery_get_property() 214 val->intval = battery->cycle_count; in acpi_sbs_battery_get_property() 217 val->intval = battery->design_voltage * in acpi_sbs_battery_get_property() 221 val->intval = battery->voltage_now * in acpi_sbs_battery_get_property() 226 val->intval = abs(battery->rate_now) * in acpi_sbs_battery_get_property() [all …]
|