/linux-4.1.27/drivers/power/ |
D | apm_power.c | 59 if (bp->full.intval > bp->max_charge) { in __find_main_battery() 61 bp->max_charge = bp->full.intval; in __find_main_battery() 65 if (bp->full.intval > bp->max_energy) { in __find_main_battery() 67 bp->max_energy = bp->full.intval; in __find_main_battery() 94 if (bp.max_energy > bp.max_charge * bp.full.intval) in find_main_battery() 100 if (bp.max_charge > bp.max_energy / bp.full.intval) in find_main_battery() 137 if (!I.intval) in do_calculate_time() 179 empty.intval = 0; in do_calculate_time() 189 return ((cur.intval - full.intval) * 60L) / I.intval; in do_calculate_time() 191 return -((cur.intval - empty.intval) * 60L) / I.intval; in do_calculate_time() [all …]
|
D | olpc_battery.c | 71 val->intval = !!(status & BAT_STAT_AC); in olpc_ac_get_prop() 100 val->intval = POWER_SUPPLY_STATUS_CHARGING; in olpc_bat_get_status() 102 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in olpc_bat_get_status() 104 val->intval = POWER_SUPPLY_STATUS_FULL; in olpc_bat_get_status() 106 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; in olpc_bat_get_status() 110 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in olpc_bat_get_status() 112 val->intval = POWER_SUPPLY_STATUS_FULL; in olpc_bat_get_status() 114 val->intval = POWER_SUPPLY_STATUS_CHARGING; in olpc_bat_get_status() 131 val->intval = POWER_SUPPLY_HEALTH_GOOD; in olpc_bat_get_health() 135 val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; in olpc_bat_get_health() [all …]
|
D | max17042_battery.c | 111 val->intval = 0; in max17042_get_property() 113 val->intval = 1; in max17042_get_property() 120 val->intval = data; in max17042_get_property() 127 val->intval = data >> 8; in max17042_get_property() 128 val->intval *= 20000; /* Units of LSB = 20mV */ in max17042_get_property() 138 val->intval = data >> 7; in max17042_get_property() 139 val->intval *= 10000; /* Units of LSB = 10mV */ in max17042_get_property() 146 val->intval = data * 625 / 8; in max17042_get_property() 153 val->intval = data * 625 / 8; in max17042_get_property() 160 val->intval = data * 625 / 8; in max17042_get_property() [all …]
|
D | da9150-charger.c | 52 val->intval = (psy == charger->supply_online) ? 1 : 0; in da9150_charger_supply_online() 69 val->intval = v_val * 1000; in da9150_charger_vbus_voltage_now() 85 val->intval = i_val * 1000; in da9150_charger_ibus_current_avg() 101 val->intval = t_val / 100; in da9150_charger_tjunc_temp() 152 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in da9150_charger_battery_status() 165 val->intval = POWER_SUPPLY_STATUS_CHARGING; in da9150_charger_battery_status() 172 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; in da9150_charger_battery_status() 175 val->intval = POWER_SUPPLY_STATUS_FULL; in da9150_charger_battery_status() 178 val->intval = POWER_SUPPLY_STATUS_UNKNOWN; in da9150_charger_battery_status() 195 val->intval = POWER_SUPPLY_HEALTH_COLD; in da9150_charger_battery_health() [all …]
|
D | pmu_battery.c | 39 val->intval = (!!(pmu_power_flags & PMU_PWR_AC_PRESENT)) || in pmu_get_ac_prop() 95 val->intval = POWER_SUPPLY_STATUS_CHARGING; in pmu_bat_get_property() 97 val->intval = POWER_SUPPLY_STATUS_FULL; in pmu_bat_get_property() 99 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in pmu_bat_get_property() 102 val->intval = !!(pbi->flags & PMU_BATT_PRESENT); in pmu_bat_get_property() 108 val->intval = pbi->charge * 1000; /* mWh -> µWh */ in pmu_bat_get_property() 111 val->intval = pbi->max_charge * 1000; /* mWh -> µWh */ in pmu_bat_get_property() 114 val->intval = pbi->amperage * 1000; /* mA -> µA */ in pmu_bat_get_property() 117 val->intval = pbi->voltage * 1000; /* mV -> µV */ in pmu_bat_get_property() 120 val->intval = pbi->time_remaining; in pmu_bat_get_property()
|
D | twl4030_madc_battery.c | 117 val->intval = POWER_SUPPLY_STATUS_FULL; in twl4030_madc_bat_get_property() 120 val->intval = POWER_SUPPLY_STATUS_CHARGING; in twl4030_madc_bat_get_property() 122 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in twl4030_madc_bat_get_property() 126 val->intval = twl4030_madc_bat_get_voltage(bat) * 1000; in twl4030_madc_bat_get_property() 129 val->intval = POWER_SUPPLY_TECHNOLOGY_LION; in twl4030_madc_bat_get_property() 132 val->intval = twl4030_madc_bat_get_current(bat); in twl4030_madc_bat_get_property() 136 val->intval = 1; in twl4030_madc_bat_get_property() 141 val->intval = (percent * bat->pdata->capacity) / 100; in twl4030_madc_bat_get_property() 145 val->intval = twl4030_madc_bat_voltscale(bat, in twl4030_madc_bat_get_property() 149 val->intval = bat->pdata->capacity; in twl4030_madc_bat_get_property() [all …]
|
D | ipaq_micro_battery.c | 141 val->intval = POWER_SUPPLY_TECHNOLOGY_NiCd; in micro_batt_get_property() 144 val->intval = POWER_SUPPLY_TECHNOLOGY_NiMH; in micro_batt_get_property() 147 val->intval = POWER_SUPPLY_TECHNOLOGY_LION; in micro_batt_get_property() 150 val->intval = POWER_SUPPLY_TECHNOLOGY_LIPO; in micro_batt_get_property() 153 val->intval = POWER_SUPPLY_TECHNOLOGY_UNKNOWN; in micro_batt_get_property() 158 val->intval = get_status(b); in micro_batt_get_property() 161 val->intval = 4700000; in micro_batt_get_property() 164 val->intval = get_capacity(b); in micro_batt_get_property() 167 val->intval = mb->temperature; in micro_batt_get_property() 170 val->intval = mb->voltage; in micro_batt_get_property() [all …]
|
D | sbs-battery.c | 307 val->intval = 1; in sbs_get_battery_presence_and_health() 309 val->intval = 0; in sbs_get_battery_presence_and_health() 310 chip->is_present = val->intval; in sbs_get_battery_presence_and_health() 321 val->intval = 0; /* battery removed */ in sbs_get_battery_presence_and_health() 331 val->intval = 0; in sbs_get_battery_presence_and_health() 343 val->intval = 0; in sbs_get_battery_presence_and_health() 345 val->intval = 1; in sbs_get_battery_presence_and_health() 348 val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; in sbs_get_battery_presence_and_health() 350 val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; in sbs_get_battery_presence_and_health() 352 val->intval = POWER_SUPPLY_HEALTH_DEAD; in sbs_get_battery_presence_and_health() [all …]
|
D | test_power.c | 48 val->intval = ac_online; in test_power_get_ac_property() 62 val->intval = usb_online; in test_power_get_usb_property() 85 val->intval = battery_status; in test_power_get_battery_property() 88 val->intval = POWER_SUPPLY_CHARGE_TYPE_FAST; in test_power_get_battery_property() 91 val->intval = battery_health; in test_power_get_battery_property() 94 val->intval = battery_present; in test_power_get_battery_property() 97 val->intval = battery_technology; in test_power_get_battery_property() 100 val->intval = POWER_SUPPLY_CAPACITY_LEVEL_NORMAL; in test_power_get_battery_property() 104 val->intval = battery_capacity; in test_power_get_battery_property() 108 val->intval = 100; in test_power_get_battery_property() [all …]
|
D | rx51_battery.c | 169 val->intval = POWER_SUPPLY_TECHNOLOGY_LION; in rx51_battery_get_property() 172 val->intval = 4200000; in rx51_battery_get_property() 175 val->intval = rx51_battery_read_voltage(di) ? 1 : 0; in rx51_battery_get_property() 178 val->intval = rx51_battery_read_voltage(di); in rx51_battery_get_property() 181 val->intval = rx51_battery_read_temperature(di); in rx51_battery_get_property() 184 val->intval = rx51_battery_read_capacity(di); in rx51_battery_get_property() 190 if (val->intval == INT_MAX || val->intval == INT_MIN) in rx51_battery_get_property()
|
D | power_supply_sysfs.c | 77 value.intval = psy->desc->type; in power_supply_show_property() 93 return sprintf(buf, "%s\n", status_text[value.intval]); in power_supply_show_property() 95 return sprintf(buf, "%s\n", charge_type[value.intval]); in power_supply_show_property() 97 return sprintf(buf, "%s\n", health_text[value.intval]); in power_supply_show_property() 99 return sprintf(buf, "%s\n", technology_text[value.intval]); in power_supply_show_property() 101 return sprintf(buf, "%s\n", capacity_level_text[value.intval]); in power_supply_show_property() 103 return sprintf(buf, "%s\n", type_text[value.intval]); in power_supply_show_property() 105 return sprintf(buf, "%s\n", scope_text[value.intval]); in power_supply_show_property() 109 return sprintf(buf, "%d\n", value.intval); in power_supply_show_property() 126 value.intval = long_val; in power_supply_store_property()
|
D | axp288_fuel_gauge.c | 598 val->intval = info->status; in fuel_gauge_get_property() 601 val->intval = fuel_gauge_battery_health(info); in fuel_gauge_get_property() 607 val->intval = PROP_VOLT(value); in fuel_gauge_get_property() 613 val->intval = PROP_VOLT(value); in fuel_gauge_get_property() 619 val->intval = PROP_CURR(value); in fuel_gauge_get_property() 627 val->intval = 1; in fuel_gauge_get_property() 629 val->intval = 0; in fuel_gauge_get_property() 639 val->intval = (ret & FG_REP_CAP_VAL_MASK); in fuel_gauge_get_property() 645 val->intval = (ret & 0x0f); in fuel_gauge_get_property() 651 val->intval = PROP_TEMP(value); in fuel_gauge_get_property() [all …]
|
D | lp8788-charger.c | 156 val->intval = lp8788_is_charger_detected(pchg); in lp8788_charger_get_property() 160 val->intval = LP8788_ISEL_STEP * in lp8788_charger_get_property() 184 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in lp8788_get_battery_status() 190 val->intval = POWER_SUPPLY_STATUS_CHARGING; in lp8788_get_battery_status() 193 val->intval = POWER_SUPPLY_STATUS_FULL; in lp8788_get_battery_status() 196 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; in lp8788_get_battery_status() 214 val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; in lp8788_get_battery_health() 216 val->intval = POWER_SUPPLY_HEALTH_DEAD; in lp8788_get_battery_health() 218 val->intval = POWER_SUPPLY_HEALTH_GOOD; in lp8788_get_battery_health() 233 val->intval = !(data & LP8788_NO_BATT_M); in lp8788_get_battery_present() [all …]
|
D | max8925_power.c | 204 val->intval = info->ac_online; in max8925_ac_get_prop() 210 val->intval = ret * 2000; /* unit is uV */ in max8925_ac_get_prop() 238 val->intval = info->usb_online; in max8925_usb_get_prop() 244 val->intval = ret * 2000; /* unit is uV */ in max8925_usb_get_prop() 272 val->intval = info->bat_online; in max8925_bat_get_prop() 278 val->intval = ret * 2000; /* unit is uV */ in max8925_bat_get_prop() 291 val->intval = 0; in max8925_bat_get_prop() 293 val->intval = ret; /* unit is mA */ in max8925_bat_get_prop() 309 val->intval = POWER_SUPPLY_CHARGE_TYPE_FAST; in max8925_bat_get_prop() 313 val->intval = POWER_SUPPLY_CHARGE_TYPE_TRICKLE; in max8925_bat_get_prop() [all …]
|
D | max8997_charger.c | 54 val->intval = 0; in max8997_battery_get_property() 59 val->intval = POWER_SUPPLY_STATUS_FULL; in max8997_battery_get_property() 63 val->intval = 0; in max8997_battery_get_property() 68 val->intval = 1; in max8997_battery_get_property() 72 val->intval = 0; in max8997_battery_get_property() 78 val->intval = 1; in max8997_battery_get_property()
|
D | jz4740-battery.c | 138 val->intval = jz_battery->status; in jz_battery_get_property() 141 val->intval = jz_battery->pdata->info.technology; in jz_battery_get_property() 146 val->intval = POWER_SUPPLY_HEALTH_DEAD; in jz_battery_get_property() 148 val->intval = POWER_SUPPLY_HEALTH_GOOD; in jz_battery_get_property() 151 val->intval = jz_battery_get_capacity(psy); in jz_battery_get_property() 154 val->intval = jz_battery_read_voltage(jz_battery); in jz_battery_get_property() 155 if (val->intval < 0) in jz_battery_get_property() 156 return val->intval; in jz_battery_get_property() 159 val->intval = info->voltage_max_design; in jz_battery_get_property() 162 val->intval = info->voltage_min_design; in jz_battery_get_property() [all …]
|
D | charger-manager.c | 108 if (ret == 0 && val.intval) in is_batt_present() 125 if (ret == 0 && val.intval) { in is_batt_present() 163 if (ret == 0 && val.intval) { in is_ext_pwr_online() 196 *uV = val.intval; in get_batt_uV() 239 if (val.intval == 0) { in is_charging() 256 if (val.intval == POWER_SUPPLY_STATUS_FULL || in is_charging() 257 val.intval == POWER_SUPPLY_STATUS_DISCHARGING || in is_charging() 258 val.intval == POWER_SUPPLY_STATUS_NOT_CHARGING) in is_charging() 291 val.intval = 0; in is_full_charged() 296 if (!ret && val.intval > desc->fullbatt_full_capacity) { in is_full_charged() [all …]
|
D | smb347-charger.c | 885 int ret, intval; in get_const_charge_current() local 900 intval = hw_to_current(fcc_tbl, ARRAY_SIZE(fcc_tbl), v & 7); in get_const_charge_current() 903 intval = hw_to_current(pcc_tbl, ARRAY_SIZE(pcc_tbl), v & 7); in get_const_charge_current() 906 return intval; in get_const_charge_current() 915 int ret, intval; in get_const_charge_voltage() local 929 intval = 3500000 + v * 20000; in get_const_charge_voltage() 931 return intval; in get_const_charge_voltage() 943 val->intval = smb->mains_online; in smb347_mains_get_property() 951 val->intval = ret; in smb347_mains_get_property() 959 val->intval = ret; in smb347_mains_get_property() [all …]
|
D | collie_battery.c | 110 val->intval = bat->status; in collie_bat_get_property() 113 val->intval = bat->technology; in collie_bat_get_property() 116 val->intval = collie_read_bat(bat); in collie_bat_get_property() 120 val->intval = bat->bat_max; in collie_bat_get_property() 122 val->intval = bat->full_chrg; in collie_bat_get_property() 125 val->intval = bat->bat_max; in collie_bat_get_property() 128 val->intval = bat->bat_min; in collie_bat_get_property() 131 val->intval = collie_read_temp(bat); in collie_bat_get_property() 134 val->intval = bat->is_present ? bat->is_present(bat) : 1; in collie_bat_get_property()
|
D | da9052-battery.c | 513 ret = da9052_bat_check_status(bat, &val->intval); in da9052_bat_get_property() 516 val->intval = in da9052_bat_get_property() 520 ret = da9052_bat_check_presence(bat, &val->intval); in da9052_bat_get_property() 523 ret = da9052_bat_check_health(bat, &val->intval); in da9052_bat_get_property() 526 val->intval = DA9052_BAT_CUTOFF_VOLT * 1000; in da9052_bat_get_property() 529 ret = da9052_bat_read_volt(bat, &val->intval); in da9052_bat_get_property() 532 ret = da9052_read_chg_current(bat, &val->intval); in da9052_bat_get_property() 535 ret = da9052_bat_read_capacity(bat, &val->intval); in da9052_bat_get_property() 538 val->intval = da9052_adc_read_temp(bat->da9052); in da9052_bat_get_property() 539 ret = val->intval; in da9052_bat_get_property() [all …]
|
D | goldfish_battery.c | 75 val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_AC_ONLINE); in goldfish_ac_get_property() 93 val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_STATUS); in goldfish_battery_get_property() 96 val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_HEALTH); in goldfish_battery_get_property() 99 val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_PRESENT); in goldfish_battery_get_property() 102 val->intval = POWER_SUPPLY_TECHNOLOGY_LION; in goldfish_battery_get_property() 105 val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_CAPACITY); in goldfish_battery_get_property()
|
D | s3c_adc_battery.c | 95 val->intval = bat->volt_value; in s3c_adc_backup_bat_get_property() 98 val->intval = bat->pdata->backup_volt_min; in s3c_adc_backup_bat_get_property() 101 val->intval = bat->pdata->backup_volt_max; in s3c_adc_backup_bat_get_property() 210 val->intval = bat->level == 100000 ? in s3c_adc_bat_get_property() 213 val->intval = bat->status; in s3c_adc_bat_get_property() 216 val->intval = 100000; in s3c_adc_bat_get_property() 219 val->intval = 0; in s3c_adc_bat_get_property() 222 val->intval = bat->level; in s3c_adc_bat_get_property() 225 val->intval = bat->volt_value; in s3c_adc_bat_get_property() 228 val->intval = bat->cur_value; in s3c_adc_bat_get_property()
|
D | wm97xx_battery.c | 62 val->intval = bat_status; in wm97xx_bat_get_property() 65 val->intval = pdata->batt_tech; in wm97xx_bat_get_property() 69 val->intval = wm97xx_read_bat(bat_ps); in wm97xx_bat_get_property() 75 val->intval = wm97xx_read_temp(bat_ps); in wm97xx_bat_get_property() 81 val->intval = pdata->max_voltage; in wm97xx_bat_get_property() 87 val->intval = pdata->min_voltage; in wm97xx_bat_get_property() 92 val->intval = 1; in wm97xx_bat_get_property()
|
D | ds2760_battery.c | 412 val->intval = di->charge_status; in ds2760_battery_get_property() 422 val->intval = di->voltage_uV; in ds2760_battery_get_property() 425 val->intval = di->current_uA; in ds2760_battery_get_property() 428 val->intval = di->rated_capacity; in ds2760_battery_get_property() 431 val->intval = di->full_active_uAh; in ds2760_battery_get_property() 434 val->intval = di->empty_uAh; in ds2760_battery_get_property() 437 val->intval = di->accum_current_uAh; in ds2760_battery_get_property() 440 val->intval = di->temp_C; in ds2760_battery_get_property() 443 val->intval = di->life_sec; in ds2760_battery_get_property() 446 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 | 37 val->intval = ret; in wm831x_backup_read_voltage() 130 val->intval = POWER_SUPPLY_STATUS_CHARGING; in wm831x_backup_get_prop() 132 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; in wm831x_backup_get_prop() 142 val->intval = 1; in wm831x_backup_get_prop() 144 val->intval = 0; in wm831x_backup_get_prop()
|
D | max8903_charger.c | 55 val->intval = POWER_SUPPLY_STATUS_UNKNOWN; in max8903_get_property() 58 val->intval = POWER_SUPPLY_STATUS_CHARGING; in max8903_get_property() 60 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; in max8903_get_property() 62 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in max8903_get_property() 66 val->intval = 0; in max8903_get_property() 68 val->intval = 1; in max8903_get_property() 71 val->intval = POWER_SUPPLY_HEALTH_GOOD; in max8903_get_property() 73 val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; in max8903_get_property()
|
D | da9030_battery.c | 322 val->intval = POWER_SUPPLY_STATUS_CHARGING; in da9030_battery_check_status() 324 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; in da9030_battery_check_status() 326 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in da9030_battery_check_status() 334 val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; in da9030_battery_check_health() 336 val->intval = POWER_SUPPLY_HEALTH_OVERVOLTAGE; in da9030_battery_check_health() 338 val->intval = POWER_SUPPLY_HEALTH_GOOD; in da9030_battery_check_health() 355 val->intval = charger->battery_info->technology; in da9030_battery_get_property() 358 val->intval = charger->battery_info->voltage_max_design; in da9030_battery_get_property() 361 val->intval = charger->battery_info->voltage_min_design; in da9030_battery_get_property() 364 val->intval = da9030_reg_to_mV(charger->adc.vbat_res) * 1000; in da9030_battery_get_property() [all …]
|
D | abx500_chargalg.c | 1002 di->batt_data.percent = ret.intval; in abx500_chargalg_get_ext_psy_data() 1028 if (ret.intval) in abx500_chargalg_get_ext_psy_data() 1036 if (!ret.intval && in abx500_chargalg_get_ext_psy_data() 1043 else if (ret.intval && in abx500_chargalg_get_ext_psy_data() 1052 if (!ret.intval && in abx500_chargalg_get_ext_psy_data() 1059 else if (ret.intval && in abx500_chargalg_get_ext_psy_data() 1077 if (!ret.intval && in abx500_chargalg_get_ext_psy_data() 1084 else if (ret.intval && in abx500_chargalg_get_ext_psy_data() 1095 if (!ret.intval && in abx500_chargalg_get_ext_psy_data() 1102 else if (ret.intval && in abx500_chargalg_get_ext_psy_data() [all …]
|
D | generic-adc-battery.c | 163 val->intval = gab_get_status(adc_bat); in gab_get_property() 166 val->intval = 0; in gab_get_property() 169 val->intval = pdata->cal_charge(result); in gab_get_property() 177 val->intval = result; in gab_get_property() 180 val->intval = bat_info->technology; in gab_get_property() 183 val->intval = bat_info->voltage_min_design; in gab_get_property() 186 val->intval = bat_info->voltage_max_design; in gab_get_property() 189 val->intval = bat_info->charge_full_design; in gab_get_property()
|
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 | max8998_charger.c | 57 val->intval = 0; in max8998_battery_get_property() 59 val->intval = 1; in max8998_battery_get_property() 66 val->intval = 0; in max8998_battery_get_property() 68 val->intval = 1; in max8998_battery_get_property()
|
D | power_supply_leds.c | 31 dev_dbg(&psy->dev, "%s %d\n", __func__, status.intval); in power_supply_update_bat_leds() 33 switch (status.intval) { in power_supply_update_bat_leds() 121 dev_dbg(&psy->dev, "%s %d\n", __func__, online.intval); in power_supply_update_gen_leds() 123 if (online.intval) in power_supply_update_gen_leds()
|
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 | bq24190_charger.c | 575 val->intval = type; in bq24190_charger_get_charge_type() 596 switch (val->intval) { in bq24190_charger_set_charge_type() 692 val->intval = health; in bq24190_charger_get_health() 709 val->intval = v; in bq24190_charger_get_online() 736 val->intval = curr; in bq24190_charger_get_current() 745 val->intval = bq24190_ccc_ichg_values[idx]; in bq24190_charger_get_current_max() 753 int ret, curr = val->intval; in bq24190_charger_set_current() 783 val->intval = voltage; in bq24190_charger_get_voltage() 792 val->intval = bq24190_cvc_vreg_values[idx]; in bq24190_charger_get_voltage_max() 802 ARRAY_SIZE(bq24190_cvc_vreg_values), val->intval); in bq24190_charger_set_voltage() [all …]
|
D | lp8727_charger.c | 319 val->intval = lp8727_is_charger_attached(psy->desc->name, pchg->devid); in lp8727_charger_get_property() 348 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in lp8727_battery_get_property() 354 val->intval = (read & LP8727_CHGSTAT) == LP8727_STAT_EOC ? in lp8727_battery_get_property() 362 val->intval = lp8727_is_high_temperature(temp) ? in lp8727_battery_get_property() 371 val->intval = pdata->get_batt_present(); in lp8727_battery_get_property() 378 val->intval = pdata->get_batt_level(); in lp8727_battery_get_property() 385 val->intval = pdata->get_batt_capacity(); in lp8727_battery_get_property() 392 val->intval = pdata->get_batt_temp(); in lp8727_battery_get_property()
|
D | intel_mid_battery.c | 414 val->intval = pbi->usb_is_present; in pmic_usb_get_property() 417 val->intval = pbi->usb_health; in pmic_usb_get_property() 453 val->intval = pbi->batt_status; in pmic_battery_get_property() 456 val->intval = pbi->batt_health; in pmic_battery_get_property() 459 val->intval = pbi->batt_is_present; in pmic_battery_get_property() 462 val->intval = mAStouAh(pbi->batt_charge_now); in pmic_battery_get_property() 465 val->intval = mAStouAh(pbi->batt_prev_charge_full); in pmic_battery_get_property()
|
D | rt5033_battery.c | 81 val->intval = rt5033_battery_get_watt_prop(battery->client, in rt5033_battery_get_property() 85 val->intval = rt5033_battery_get_present(battery->client); in rt5033_battery_get_property() 88 val->intval = rt5033_battery_get_capacity(battery->client); in rt5033_battery_get_property()
|
D | max17040_battery.c | 64 val->intval = chip->status; in max17040_get_property() 67 val->intval = chip->online; in max17040_get_property() 70 val->intval = chip->vcell; in max17040_get_property() 73 val->intval = chip->soc; in max17040_get_property()
|
D | ds2780_battery.c | 393 ret = ds2780_get_voltage(dev_info, &val->intval); in ds2780_battery_get_property() 397 ret = ds2780_get_temperature(dev_info, &val->intval); in ds2780_battery_get_property() 409 ret = ds2780_get_current(dev_info, CURRENT_NOW, &val->intval); in ds2780_battery_get_property() 413 ret = ds2780_get_current(dev_info, CURRENT_AVG, &val->intval); in ds2780_battery_get_property() 417 ret = ds2780_get_status(dev_info, &val->intval); in ds2780_battery_get_property() 421 ret = ds2780_get_capacity(dev_info, &val->intval); in ds2780_battery_get_property() 425 ret = ds2780_get_accumulated_current(dev_info, &val->intval); in ds2780_battery_get_property() 429 ret = ds2780_get_charge_now(dev_info, &val->intval); in ds2780_battery_get_property()
|
D | ds2782_battery.c | 255 ret = ds278x_get_status(info, &val->intval); in ds278x_battery_get_property() 259 ret = info->ops->get_battery_capacity(info, &val->intval); in ds278x_battery_get_property() 263 ret = info->ops->get_battery_voltage(info, &val->intval); in ds278x_battery_get_property() 267 ret = info->ops->get_battery_current(info, &val->intval); in ds278x_battery_get_property() 271 ret = ds278x_get_temp(info, &val->intval); in ds278x_battery_get_property()
|
D | ltc2941-battery-gauge.c | 302 return ltc294x_get_charge_now(info, &val->intval); in ltc294x_get_property() 304 return ltc294x_get_charge_counter(info, &val->intval); in ltc294x_get_property() 306 return ltc294x_get_voltage(info, &val->intval); in ltc294x_get_property() 308 return ltc294x_get_current(info, &val->intval); in ltc294x_get_property() 310 return ltc294x_get_temperature(info, &val->intval); in ltc294x_get_property() 324 return ltc294x_set_charge_now(info, val->intval); in ltc294x_set_property()
|
D | ds2781_battery.c | 395 ret = ds2781_get_voltage(dev_info, &val->intval); in ds2781_battery_get_property() 399 ret = ds2781_get_temperature(dev_info, &val->intval); in ds2781_battery_get_property() 411 ret = ds2781_get_current(dev_info, CURRENT_NOW, &val->intval); in ds2781_battery_get_property() 415 ret = ds2781_get_current(dev_info, CURRENT_AVG, &val->intval); in ds2781_battery_get_property() 419 ret = ds2781_get_status(dev_info, &val->intval); in ds2781_battery_get_property() 423 ret = ds2781_get_capacity(dev_info, &val->intval); in ds2781_battery_get_property() 427 ret = ds2781_get_accumulated_current(dev_info, &val->intval); in ds2781_battery_get_property() 431 ret = ds2781_get_charge_now(dev_info, &val->intval); in ds2781_battery_get_property()
|
D | 88pm860x_charger.c | 305 vbatt = data.intval / 1000; in set_charging_fsm() 315 info->present = data.intval; in set_charging_fsm() 442 value = temp.intval / 10; in pm860x_temp_handler() 499 vbatt = val.intval / 1000; in pm860x_done_handler() 604 val->intval = POWER_SUPPLY_STATUS_CHARGING; in pm860x_usb_get_prop() 606 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in pm860x_usb_get_prop() 609 val->intval = info->online; in pm860x_usb_get_prop()
|
D | bq27x00_battery.c | 575 val->intval = (int)((s16)curr) * 1000; in bq27x00_battery_current() 583 val->intval = curr * 3570 / BQ27000_RS; in bq27x00_battery_current() 612 val->intval = status; in bq27x00_battery_status() 642 val->intval = level; in bq27x00_battery_capacity_level() 662 val->intval = volt * 1000; in bq27x00_battery_voltage() 673 val->intval = value; in bq27x00_simple_value() 703 val->intval = di->cache.flags < 0 ? 0 : 1; in bq27x00_battery_get_property() 717 val->intval -= 2731; in bq27x00_battery_get_property() 729 val->intval = POWER_SUPPLY_TECHNOLOGY_LION; in bq27x00_battery_get_property()
|
D | max14577_charger.c | 429 ret = max14577_get_charger_state(chg, &val->intval); in max14577_charger_get_property() 432 ret = max14577_get_charge_type(chg, &val->intval); in max14577_charger_get_property() 435 ret = max14577_get_battery_health(chg, &val->intval); in max14577_charger_get_property() 438 ret = max14577_get_present(chg, &val->intval); in max14577_charger_get_property() 441 ret = max14577_get_online(chg, &val->intval); in max14577_charger_get_property()
|
D | wm831x_power.c | 46 val->intval = 1; in wm831x_power_check_online() 48 val->intval = 0; in wm831x_power_check_online() 61 val->intval = ret; in wm831x_power_read_voltage() 405 ret = wm831x_bat_check_status(wm831x, &val->intval); in wm831x_bat_get_prop() 415 ret = wm831x_bat_check_health(wm831x, &val->intval); in wm831x_bat_get_prop() 418 ret = wm831x_bat_check_type(wm831x, &val->intval); in wm831x_bat_get_prop()
|
D | twl4030_charger.c | 483 val->intval = twl4030_bci_state_to_status(state); in twl4030_bci_get_property() 485 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; in twl4030_bci_get_property() 496 val->intval = ret * 6843; in twl4030_bci_get_property() 502 val->intval = ret * 9775; in twl4030_bci_get_property() 512 val->intval = ret; in twl4030_bci_get_property() 515 val->intval = is_charging && in twl4030_bci_get_property()
|
D | ab8500_btemp.c | 890 val->intval = 0; in ab8500_btemp_get_property() 892 val->intval = 1; in ab8500_btemp_get_property() 895 val->intval = di->bm->bat_type[di->bm->batt_id].name; in ab8500_btemp_get_property() 898 val->intval = ab8500_btemp_get_temp(di); in ab8500_btemp_get_property() 944 if (!ret.intval && di->events.ac_conn) { in ab8500_btemp_get_ext_psy_data() 948 else if (ret.intval && !di->events.ac_conn) { in ab8500_btemp_get_ext_psy_data() 956 if (!ret.intval && di->events.usb_conn) { in ab8500_btemp_get_ext_psy_data() 960 else if (ret.intval && !di->events.usb_conn) { in ab8500_btemp_get_ext_psy_data()
|
D | power_supply_core.c | 292 return ret.intval; in __power_supply_am_i_supplied() 320 return ret.intval; in __power_supply_is_system_supplied() 533 *temp = val.intval * 100; in power_supply_read_temp() 579 *state = val.intval; in ps_get_max_charge_cntl_limit() 595 *state = val.intval; in ps_get_cur_chrage_cntl_limit() 608 val.intval = state; in ps_set_cur_charge_cntl_limit()
|
D | max77693_charger.c | 229 ret = max77693_get_charger_state(regmap, &val->intval); in max77693_charger_get_property() 232 ret = max77693_get_charge_type(regmap, &val->intval); in max77693_charger_get_property() 235 ret = max77693_get_battery_health(regmap, &val->intval); in max77693_charger_get_property() 238 ret = max77693_get_present(regmap, &val->intval); in max77693_charger_get_property() 241 ret = max77693_get_online(regmap, &val->intval); in max77693_charger_get_property()
|
D | ab8500_charger.c | 1967 di->vbat = ret.intval / 1000; in ab8500_charger_get_ext_psy_data() 2964 val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; in ab8500_charger_ac_get_property() 2966 val->intval = POWER_SUPPLY_HEALTH_DEAD; in ab8500_charger_ac_get_property() 2968 val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; in ab8500_charger_ac_get_property() 2970 val->intval = POWER_SUPPLY_HEALTH_GOOD; in ab8500_charger_ac_get_property() 2973 val->intval = di->ac.charger_online; in ab8500_charger_ac_get_property() 2976 val->intval = di->ac.charger_connected; in ab8500_charger_ac_get_property() 2983 val->intval = di->ac.charger_voltage * 1000; in ab8500_charger_ac_get_property() 2991 val->intval = di->ac.cv_active; in ab8500_charger_ac_get_property() 2997 val->intval = di->ac.charger_current * 1000; in ab8500_charger_ac_get_property() [all …]
|
D | ab8500_fg.c | 2108 val->intval = BATT_OVV_VALUE * 1000; in ab8500_fg_get_property() 2110 val->intval = di->vbat * 1000; in ab8500_fg_get_property() 2113 val->intval = di->inst_curr * 1000; in ab8500_fg_get_property() 2116 val->intval = di->avg_curr * 1000; in ab8500_fg_get_property() 2119 val->intval = ab8500_fg_convert_mah_to_uwh(di, in ab8500_fg_get_property() 2123 val->intval = ab8500_fg_convert_mah_to_uwh(di, in ab8500_fg_get_property() 2129 val->intval = ab8500_fg_convert_mah_to_uwh(di, in ab8500_fg_get_property() 2132 val->intval = ab8500_fg_convert_mah_to_uwh(di, in ab8500_fg_get_property() 2136 val->intval = di->bat_cap.max_mah_design; in ab8500_fg_get_property() 2139 val->intval = di->bat_cap.max_mah; in ab8500_fg_get_property() [all …]
|
D | 88pm860x_battery.c | 816 val->intval = info->present; in pm860x_batt_get_prop() 829 val->intval = data; in pm860x_batt_get_prop() 832 val->intval = POWER_SUPPLY_TECHNOLOGY_LION; in pm860x_batt_get_prop() 839 val->intval = data * 1000; in pm860x_batt_get_prop() 846 val->intval = data * 1000; in pm860x_batt_get_prop() 852 val->intval = data; in pm860x_batt_get_prop() 864 val->intval = data; in pm860x_batt_get_prop()
|
D | pm2301_charger.c | 615 val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; in pm2xxx_charger_ac_get_property() 617 val->intval = POWER_SUPPLY_HEALTH_DEAD; in pm2xxx_charger_ac_get_property() 619 val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; in pm2xxx_charger_ac_get_property() 621 val->intval = POWER_SUPPLY_HEALTH_OVERVOLTAGE; in pm2xxx_charger_ac_get_property() 623 val->intval = POWER_SUPPLY_HEALTH_GOOD; in pm2xxx_charger_ac_get_property() 626 val->intval = pm2->ac.charger_online; in pm2xxx_charger_ac_get_property() 629 val->intval = pm2->ac.charger_connected; in pm2xxx_charger_ac_get_property() 633 val->intval = pm2->ac.cv_active; in pm2xxx_charger_ac_get_property()
|
D | isp1704_charger.c | 334 val->intval = isp->present; in isp1704_charger_get_property() 337 val->intval = isp->online; in isp1704_charger_get_property() 340 val->intval = isp->current_max; in isp1704_charger_get_property()
|
D | pcf50633-charger.c | 298 val->intval = mbc->adapter_online; in adapter_get_property() 318 val->intval = mbc->usb_online && in usb_get_property() 339 val->intval = mbc->usb_online && in ac_get_property()
|
D | gpio-charger.c | 61 val->intval = !!gpio_get_value_cansleep(pdata->gpio); in gpio_charger_get_property() 62 val->intval ^= pdata->gpio_active_low; in gpio_charger_get_property()
|
D | pda_power.c | 63 val->intval = pdata->is_ac_online ? in pda_power_get_property() 66 val->intval = pdata->is_usb_online ? in pda_power_get_property()
|
D | bq2415x_charger.c | 818 mA = prop.intval; in bq2415x_notifier_call() 1005 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; in bq2415x_power_supply_get_property() 1007 val->intval = POWER_SUPPLY_STATUS_CHARGING; in bq2415x_power_supply_get_property() 1009 val->intval = POWER_SUPPLY_STATUS_FULL; in bq2415x_power_supply_get_property() 1011 val->intval = POWER_SUPPLY_STATUS_UNKNOWN; in bq2415x_power_supply_get_property()
|
D | tps65090-charger.c | 141 val->intval = charger->ac_online; in tps65090_ac_get_property()
|
D | bq24735-charger.c | 200 val->intval = bq24735_charger_is_present(charger) ? 1 : 0; in bq24735_charger_get_property()
|
/linux-4.1.27/drivers/net/wireless/ath/ath9k/ |
D | common-beacon.c | 71 conf->intval = conf->beacon_interval; in ath9k_cmn_beacon_config_sta() 77 dtim_intval = conf->intval * conf->dtim_period; in ath9k_cmn_beacon_config_sta() 84 conf->nexttbtt = ath9k_get_next_tbtt(ah, tsf, conf->intval); in ath9k_cmn_beacon_config_sta() 86 bs->bs_intval = TU_TO_USEC(conf->intval); in ath9k_cmn_beacon_config_sta() 99 bs->bs_bmissthreshold = DIV_ROUND_UP(conf->bmiss_timeout, conf->intval); in ath9k_cmn_beacon_config_sta() 115 conf->intval)); in ath9k_cmn_beacon_config_sta() 133 conf->intval = TU_TO_USEC(conf->beacon_interval); in ath9k_cmn_beacon_config_adhoc() 136 conf->nexttbtt = conf->intval; in ath9k_cmn_beacon_config_adhoc() 149 conf->nexttbtt, conf->intval, conf->beacon_interval); in ath9k_cmn_beacon_config_adhoc() 165 conf->intval = TU_TO_USEC(conf->beacon_interval); in ath9k_cmn_beacon_config_ap() [all …]
|
D | htc_drv_beacon.c | 77 if (conf->intval >= TU_TO_USEC(DEFAULT_SWBA_RESPONSE)) in ath9k_htc_beacon_init() 86 ath9k_hw_beaconinit(ah, conf->nexttbtt, conf->intval); in ath9k_htc_beacon_init() 268 u16 intval; in ath9k_htc_choose_bslot() local 271 intval = priv->cur_beacon_conf.beacon_interval; in ath9k_htc_choose_bslot() 275 slot = ((tsftu % intval) * ATH9K_HTC_MAX_BCN_VIF) / intval; in ath9k_htc_choose_bslot() 280 slot, tsf, tsftu, intval); in ath9k_htc_choose_bslot()
|
D | beacon.c | 252 u16 intval; in ath9k_beacon_choose_slot() local 264 intval = cur_conf->beacon_interval ? : ATH_DEFAULT_BINTVAL; in ath9k_beacon_choose_slot() 268 slot = (tsftu % (intval * ATH_BCBUF)) / intval; in ath9k_beacon_choose_slot() 445 u32 intval, bool reset_tsf) in ath9k_beacon_init() argument 453 ath9k_hw_beaconinit(ah, nexttbtt, intval); in ath9k_beacon_init() 470 ath9k_beacon_init(sc, conf->nexttbtt, conf->intval, false); in ath9k_beacon_config_ap() 499 ath9k_beacon_init(sc, conf->nexttbtt, conf->intval, conf->ibss_creator); in ath9k_beacon_config_adhoc()
|
D | common.h | 60 u32 intval; member
|
/linux-4.1.27/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-4.1.27/drivers/staging/nvec/ |
D | nvec_power.c | 232 val->intval = power->on; in nvec_power_get_property() 248 val->intval = power->bat_status; in nvec_battery_get_property() 251 val->intval = power->bat_cap; in nvec_battery_get_property() 254 val->intval = power->bat_present; in nvec_battery_get_property() 257 val->intval = power->bat_voltage_now; in nvec_battery_get_property() 260 val->intval = power->bat_current_now; in nvec_battery_get_property() 263 val->intval = power->bat_current_avg; in nvec_battery_get_property() 266 val->intval = power->time_remain; in nvec_battery_get_property() 269 val->intval = power->charge_full_design; in nvec_battery_get_property() 272 val->intval = power->charge_last_full; in nvec_battery_get_property() [all …]
|
/linux-4.1.27/drivers/acpi/ |
D | sbs.c | 160 val->intval = sbs->charger_present; in sbs_get_ac_property() 194 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in acpi_sbs_battery_get_property() 196 val->intval = POWER_SUPPLY_STATUS_CHARGING; in acpi_sbs_battery_get_property() 198 val->intval = POWER_SUPPLY_STATUS_FULL; in acpi_sbs_battery_get_property() 201 val->intval = battery->present; in acpi_sbs_battery_get_property() 204 val->intval = acpi_battery_technology(battery); in acpi_sbs_battery_get_property() 207 val->intval = battery->cycle_count; in acpi_sbs_battery_get_property() 210 val->intval = battery->design_voltage * in acpi_sbs_battery_get_property() 214 val->intval = battery->voltage_now * in acpi_sbs_battery_get_property() 219 val->intval = abs(battery->rate_now) * in acpi_sbs_battery_get_property() [all …]
|
D | battery.c | 215 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in acpi_battery_get_property() 217 val->intval = POWER_SUPPLY_STATUS_CHARGING; in acpi_battery_get_property() 219 val->intval = POWER_SUPPLY_STATUS_FULL; in acpi_battery_get_property() 221 val->intval = POWER_SUPPLY_STATUS_UNKNOWN; in acpi_battery_get_property() 224 val->intval = acpi_battery_present(battery); in acpi_battery_get_property() 227 val->intval = acpi_battery_technology(battery); in acpi_battery_get_property() 230 val->intval = battery->cycle_count; in acpi_battery_get_property() 236 val->intval = battery->design_voltage * 1000; in acpi_battery_get_property() 242 val->intval = battery->voltage_now * 1000; in acpi_battery_get_property() 249 val->intval = battery->rate_now * 1000; in acpi_battery_get_property() [all …]
|
D | ac.c | 157 val->intval = ac->state; in get_ac_property()
|
/linux-4.1.27/drivers/platform/x86/ |
D | compal-laptop.c | 572 val->intval = bat_status(); in bat_get_property() 575 val->intval = bat_health(); in bat_get_property() 578 val->intval = bat_is_present(); in bat_get_property() 581 val->intval = bat_technology(); in bat_get_property() 584 val->intval = ec_read_u16(BAT_VOLTAGE_DESIGN) * 1000; in bat_get_property() 587 val->intval = ec_read_u16(BAT_VOLTAGE_NOW) * 1000; in bat_get_property() 590 val->intval = ec_read_s16(BAT_CURRENT_NOW) * 1000; in bat_get_property() 593 val->intval = ec_read_s16(BAT_CURRENT_AVG) * 1000; in bat_get_property() 596 val->intval = ec_read_u8(BAT_POWER) * 1000000; in bat_get_property() 599 val->intval = ec_read_u16(BAT_CHARGE_DESIGN) * 1000; in bat_get_property() [all …]
|
/linux-4.1.27/fs/ceph/ |
D | super.c | 179 int token, intval, ret; in parse_fsopt_token() local 186 ret = match_int(&argstr[0], &intval); in parse_fsopt_token() 192 dout("got int token %d val %d\n", token, intval); in parse_fsopt_token() 212 fsopt->wsize = intval; in parse_fsopt_token() 215 fsopt->rsize = intval; in parse_fsopt_token() 218 fsopt->rasize = intval; in parse_fsopt_token() 221 fsopt->caps_wanted_delay_min = intval; in parse_fsopt_token() 224 fsopt->caps_wanted_delay_max = intval; in parse_fsopt_token() 227 fsopt->max_readdir = intval; in parse_fsopt_token() 230 fsopt->max_readdir_bytes = intval; in parse_fsopt_token() [all …]
|
/linux-4.1.27/drivers/net/wireless/ath/ath5k/ |
D | pcu.c | 739 ath5k_check_timer_win(int a, int b, int window, int intval) in ath5k_check_timer_win() argument 748 (a - b == intval - window) || /* 2.) */ in ath5k_check_timer_win() 749 ((a | 0x10000) - b == intval - window) || /* 3.) */ in ath5k_check_timer_win() 795 ath5k_hw_check_beacon_timers(struct ath5k_hw *ah, int intval) in ath5k_hw_check_beacon_timers() argument 807 if (ath5k_check_timer_win(nbtt, atim, 1, intval) && in ath5k_hw_check_beacon_timers() 809 intval)) in ath5k_hw_check_beacon_timers()
|
D | base.c | 2049 u32 nexttbtt, intval, hw_tu, bc_tu; in ath5k_beacon_update_timers() local 2052 intval = ah->bintval & AR5K_BEACON_PERIOD; in ath5k_beacon_update_timers() 2055 intval /= ATH_BCBUF; /* staggered multi-bss beacons */ in ath5k_beacon_update_timers() 2056 if (intval < 15) in ath5k_beacon_update_timers() 2058 intval); in ath5k_beacon_update_timers() 2060 if (WARN_ON(!intval)) in ath5k_beacon_update_timers() 2080 nexttbtt = roundup(hw_tu + FUDGE, intval); in ath5k_beacon_update_timers() 2086 nexttbtt = intval; in ath5k_beacon_update_timers() 2087 intval |= AR5K_BEACON_RESET_TSF; in ath5k_beacon_update_timers() 2107 nexttbtt = bc_tu + roundup(hw_tu + FUDGE - bc_tu, intval); in ath5k_beacon_update_timers() [all …]
|
D | ath5k.h | 1556 bool ath5k_hw_check_beacon_timers(struct ath5k_hw *ah, int intval);
|
/linux-4.1.27/net/ceph/ |
D | ceph_common.c | 367 int token, intval, ret; in ceph_parse_options() local 382 ret = match_int(&argstr[0], &intval); in ceph_parse_options() 388 dout("got int token %d val %d\n", token, intval); in ceph_parse_options() 442 opt->osd_keepalive_timeout = intval; in ceph_parse_options() 445 opt->osd_idle_ttl = intval; in ceph_parse_options() 448 opt->mount_timeout = intval; in ceph_parse_options()
|
/linux-4.1.27/drivers/mfd/ |
D | ab8500-sysctrl.c | 56 if (!ret && val.intval) { in ab8500_power_off() 70 if (!ret && val.intval != POWER_SUPPLY_TECHNOLOGY_UNKNOWN) { in ab8500_power_off()
|
/linux-4.1.27/drivers/s390/block/ |
D | dasd_ioctl.c | 464 int intval, rc; in dasd_ioctl_set_ro() local 471 if (get_user(intval, (int __user *)argp)) in dasd_ioctl_set_ro() 476 if (!intval && test_bit(DASD_FLAG_DEVICE_RO, &base->flags)) { in dasd_ioctl_set_ro() 480 set_disk_ro(bdev->bd_disk, intval); in dasd_ioctl_set_ro() 481 rc = dasd_set_feature(base->cdev, DASD_FEATURE_READONLY, intval); in dasd_ioctl_set_ro()
|
/linux-4.1.27/drivers/hid/ |
D | wacom_sys.c | 969 val->intval = wacom->wacom_wac.bat_connected; in wacom_battery_get_property() 972 val->intval = POWER_SUPPLY_SCOPE_DEVICE; in wacom_battery_get_property() 975 val->intval = in wacom_battery_get_property() 980 val->intval = POWER_SUPPLY_STATUS_CHARGING; in wacom_battery_get_property() 983 val->intval = POWER_SUPPLY_STATUS_FULL; in wacom_battery_get_property() 985 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; in wacom_battery_get_property() 987 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in wacom_battery_get_property() 1008 val->intval = wacom->wacom_wac.ps_connected; in wacom_ac_get_property() 1011 val->intval = POWER_SUPPLY_SCOPE_DEVICE; in wacom_ac_get_property()
|
D | hid-sony.c | 1698 val->intval = 1; in sony_battery_get_property() 1701 val->intval = POWER_SUPPLY_SCOPE_DEVICE; in sony_battery_get_property() 1704 val->intval = battery_capacity; in sony_battery_get_property() 1708 val->intval = POWER_SUPPLY_STATUS_CHARGING; in sony_battery_get_property() 1711 val->intval = POWER_SUPPLY_STATUS_FULL; in sony_battery_get_property() 1713 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in sony_battery_get_property()
|
D | hid-input.c | 349 val->intval = 1; in hidinput_get_battery_property() 373 val->intval = (100 * (buf[1] - dev->battery_min)) / in hidinput_get_battery_property() 383 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in hidinput_get_battery_property() 387 val->intval = POWER_SUPPLY_SCOPE_DEVICE; in hidinput_get_battery_property()
|
D | hid-wiimote-modules.c | 211 val->intval = POWER_SUPPLY_SCOPE_DEVICE; in wiimod_battery_get_property() 233 val->intval = state * 100 / 255; in wiimod_battery_get_property()
|
/linux-4.1.27/include/linux/ |
D | power_supply.h | 173 int intval; member
|
/linux-4.1.27/drivers/rapidio/devices/ |
D | tsi721.c | 471 u32 intval; in tsi721_irqhandler() local 488 intval = ioread32(priv->regs + in tsi721_irqhandler() 490 if (intval & TSI721_SR_CHINT_IDBQRCV) in tsi721_irqhandler() 494 "Unsupported SR_CH_INT %x\n", intval); in tsi721_irqhandler() 497 iowrite32(intval, in tsi721_irqhandler() 546 intval = ioread32(priv->regs + TSI721_RIO_EM_INT_STAT); in tsi721_irqhandler() 547 if (intval & TSI721_RIO_EM_INT_STAT_PW_RX) in tsi721_irqhandler()
|
/linux-4.1.27/drivers/media/dvb-frontends/ |
D | stb0899_algo.c | 804 u32 dec_ratio, dec_rate, decim, remain, intval, btr_nom_freq; in stb0899_dvbs2_calc_srate() local 815 intval = (decim * (1 << (config->btr_nco_bits - 1))) / master_clk; in stb0899_dvbs2_calc_srate() 818 intval = (1 << (config->btr_nco_bits - 1)) / (master_clk / 100) * decim / 100; in stb0899_dvbs2_calc_srate() 821 btr_nom_freq = (intval * srate) + ((remain * srate) / master_clk); in stb0899_dvbs2_calc_srate()
|
/linux-4.1.27/drivers/char/ipmi/ |
D | ipmi_watchdog.c | 217 typedef int (*action_fn)(const char *intval, char *outval);
|
/linux-4.1.27/fs/ocfs2/dlm/ |
D | dlmcommon.h | 682 __be32 intval; member
|
D | dlmdomain.c | 795 *wire = be32_to_cpu(response.intval); in dlm_query_join_packet_to_wire() 803 response.intval = cpu_to_be32(wire); in dlm_query_join_wire_to_packet()
|
/linux-4.1.27/drivers/block/ |
D | rbd.c | 764 int token, intval, ret; in parse_rbd_opts_token() local 771 ret = match_int(&argstr[0], &intval); in parse_rbd_opts_token() 777 dout("got int token %d val %d\n", token, intval); in parse_rbd_opts_token()
|