Searched refs:intval (Results 1 - 90 of 90) sorted by relevance

/linux-4.1.27/drivers/power/
H A Dapm_power.c59 if (bp->full.intval > bp->max_charge) { __find_main_battery()
61 bp->max_charge = bp->full.intval; __find_main_battery()
65 if (bp->full.intval > bp->max_energy) { __find_main_battery()
67 bp->max_energy = bp->full.intval; __find_main_battery()
94 if (bp.max_energy > bp.max_charge * bp.full.intval) find_main_battery()
100 if (bp.max_charge > bp.max_energy / bp.full.intval) find_main_battery()
137 if (!I.intval) do_calculate_time()
179 empty.intval = 0; do_calculate_time()
189 return ((cur.intval - full.intval) * 60L) / I.intval; do_calculate_time()
191 return -((cur.intval - empty.intval) * 60L) / I.intval; do_calculate_time()
266 empty.intval = 0; calculate_capacity()
269 if (full.intval - empty.intval) calculate_capacity()
270 ret = ((cur.intval - empty.intval) * 100L) / calculate_capacity()
271 (full.intval - empty.intval); calculate_capacity()
298 status.intval = POWER_SUPPLY_STATUS_UNKNOWN; apm_battery_apm_get_power_status()
302 if ((status.intval == POWER_SUPPLY_STATUS_CHARGING) || apm_battery_apm_get_power_status()
303 (status.intval == POWER_SUPPLY_STATUS_NOT_CHARGING) || apm_battery_apm_get_power_status()
304 (status.intval == POWER_SUPPLY_STATUS_FULL)) apm_battery_apm_get_power_status()
312 info->battery_life = capacity.intval; apm_battery_apm_get_power_status()
325 if (status.intval == POWER_SUPPLY_STATUS_CHARGING) { apm_battery_apm_get_power_status()
341 if (status.intval == POWER_SUPPLY_STATUS_CHARGING) { apm_battery_apm_get_power_status()
344 info->time = time_to_full.intval / 60; apm_battery_apm_get_power_status()
346 info->time = calculate_time(status.intval); apm_battery_apm_get_power_status()
350 info->time = time_to_empty.intval / 60; apm_battery_apm_get_power_status()
352 info->time = calculate_time(status.intval); apm_battery_apm_get_power_status()
H A Dpmu_battery.c39 val->intval = (!!(pmu_power_flags & PMU_PWR_AC_PRESENT)) || pmu_get_ac_prop()
95 val->intval = POWER_SUPPLY_STATUS_CHARGING; pmu_bat_get_property()
97 val->intval = POWER_SUPPLY_STATUS_FULL; pmu_bat_get_property()
99 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; pmu_bat_get_property()
102 val->intval = !!(pbi->flags & PMU_BATT_PRESENT); pmu_bat_get_property()
108 val->intval = pbi->charge * 1000; /* mWh -> µWh */ pmu_bat_get_property()
111 val->intval = pbi->max_charge * 1000; /* mWh -> µWh */ pmu_bat_get_property()
114 val->intval = pbi->amperage * 1000; /* mA -> µA */ pmu_bat_get_property()
117 val->intval = pbi->voltage * 1000; /* mV -> µV */ pmu_bat_get_property()
120 val->intval = pbi->time_remaining; pmu_bat_get_property()
H A Dolpc_battery.c71 val->intval = !!(status & BAT_STAT_AC); olpc_ac_get_prop()
100 val->intval = POWER_SUPPLY_STATUS_CHARGING; olpc_bat_get_status()
102 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; olpc_bat_get_status()
104 val->intval = POWER_SUPPLY_STATUS_FULL; olpc_bat_get_status()
106 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; olpc_bat_get_status()
110 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; olpc_bat_get_status()
112 val->intval = POWER_SUPPLY_STATUS_FULL; olpc_bat_get_status()
114 val->intval = POWER_SUPPLY_STATUS_CHARGING; olpc_bat_get_status()
131 val->intval = POWER_SUPPLY_HEALTH_GOOD; olpc_bat_get_health()
135 val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; olpc_bat_get_health()
139 val->intval = POWER_SUPPLY_HEALTH_OVERVOLTAGE; olpc_bat_get_health()
146 val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; olpc_bat_get_health()
194 val->intval = POWER_SUPPLY_TECHNOLOGY_NiMH; olpc_bat_get_tech()
197 val->intval = POWER_SUPPLY_TECHNOLOGY_LiFe; olpc_bat_get_tech()
200 val->intval = POWER_SUPPLY_TECHNOLOGY_UNKNOWN; olpc_bat_get_tech()
224 switch (tech.intval) { olpc_bat_get_charge_full_design()
228 val->intval = 3000000*.8; olpc_bat_get_charge_full_design()
239 val->intval = 2800000; olpc_bat_get_charge_full_design()
267 val->intval = soc * (full.intval / 100); olpc_bat_get_charge_now()
289 switch (tech.intval) { olpc_bat_get_voltage_max_design()
293 val->intval = 6000000; olpc_bat_get_voltage_max_design()
303 val->intval = 6400000; olpc_bat_get_voltage_max_design()
306 val->intval = 6500000; olpc_bat_get_voltage_max_design()
354 val->intval = POWER_SUPPLY_CHARGE_TYPE_TRICKLE; olpc_bat_get_property()
356 val->intval = POWER_SUPPLY_CHARGE_TYPE_FAST; olpc_bat_get_property()
358 val->intval = POWER_SUPPLY_CHARGE_TYPE_NONE; olpc_bat_get_property()
361 val->intval = !!(ec_byte & (BAT_STAT_PRESENT | olpc_bat_get_property()
367 val->intval = POWER_SUPPLY_HEALTH_DEAD; olpc_bat_get_property()
391 val->intval = (s16)be16_to_cpu(ec_word) * 9760L / 32; olpc_bat_get_property()
399 val->intval = (s16)be16_to_cpu(ec_word) * 15625L / 120; olpc_bat_get_property()
405 val->intval = ec_byte; olpc_bat_get_property()
409 val->intval = POWER_SUPPLY_CAPACITY_LEVEL_FULL; olpc_bat_get_property()
411 val->intval = POWER_SUPPLY_CAPACITY_LEVEL_LOW; olpc_bat_get_property()
413 val->intval = POWER_SUPPLY_CAPACITY_LEVEL_NORMAL; olpc_bat_get_property()
430 val->intval = (s16)be16_to_cpu(ec_word) * 100 / 256; olpc_bat_get_property()
437 val->intval = (int)be16_to_cpu(ec_word) * 100 / 256; olpc_bat_get_property()
444 val->intval = (s16)be16_to_cpu(ec_word) * 6250 / 15; olpc_bat_get_property()
H A Dtwl4030_madc_battery.c117 val->intval = POWER_SUPPLY_STATUS_FULL; twl4030_madc_bat_get_property()
120 val->intval = POWER_SUPPLY_STATUS_CHARGING; twl4030_madc_bat_get_property()
122 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; twl4030_madc_bat_get_property()
126 val->intval = twl4030_madc_bat_get_voltage(bat) * 1000; twl4030_madc_bat_get_property()
129 val->intval = POWER_SUPPLY_TECHNOLOGY_LION; twl4030_madc_bat_get_property()
132 val->intval = twl4030_madc_bat_get_current(bat); twl4030_madc_bat_get_property()
136 val->intval = 1; twl4030_madc_bat_get_property()
141 val->intval = (percent * bat->pdata->capacity) / 100; twl4030_madc_bat_get_property()
145 val->intval = twl4030_madc_bat_voltscale(bat, twl4030_madc_bat_get_property()
149 val->intval = bat->pdata->capacity; twl4030_madc_bat_get_property()
152 val->intval = twl4030_madc_bat_get_temp(bat); twl4030_madc_bat_get_property()
161 val->intval = (3600l * chg) / 400; twl4030_madc_bat_get_property()
H A Dmax17042_battery.c111 val->intval = 0; max17042_get_property()
113 val->intval = 1; max17042_get_property()
120 val->intval = data; max17042_get_property()
127 val->intval = data >> 8; max17042_get_property()
128 val->intval *= 20000; /* Units of LSB = 20mV */ max17042_get_property()
138 val->intval = data >> 7; max17042_get_property()
139 val->intval *= 10000; /* Units of LSB = 10mV */ max17042_get_property()
146 val->intval = data * 625 / 8; max17042_get_property()
153 val->intval = data * 625 / 8; max17042_get_property()
160 val->intval = data * 625 / 8; max17042_get_property()
167 val->intval = data >> 8; max17042_get_property()
174 val->intval = data * 1000 / 2; max17042_get_property()
181 val->intval = data * 1000 / 2; max17042_get_property()
188 val->intval = data; max17042_get_property()
190 if (val->intval & 0x8000) { max17042_get_property()
191 val->intval = (0x7fff & ~val->intval) + 1; max17042_get_property()
192 val->intval *= -1; max17042_get_property()
196 val->intval = val->intval * 10 / 256; max17042_get_property()
204 val->intval = data; max17042_get_property()
205 if (val->intval & 0x8000) { max17042_get_property()
207 val->intval = ~val->intval & 0x7fff; max17042_get_property()
208 val->intval++; max17042_get_property()
209 val->intval *= -1; max17042_get_property()
211 val->intval *= 1562500 / chip->pdata->r_sns; max17042_get_property()
222 val->intval = data; max17042_get_property()
223 if (val->intval & 0x8000) { max17042_get_property()
225 val->intval = ~val->intval & 0x7fff; max17042_get_property()
226 val->intval++; max17042_get_property()
227 val->intval *= -1; max17042_get_property()
229 val->intval *= 1562500 / chip->pdata->r_sns; max17042_get_property()
H A Dda9150-charger.c52 val->intval = (psy == charger->supply_online) ? 1 : 0; da9150_charger_supply_online()
69 val->intval = v_val * 1000; da9150_charger_vbus_voltage_now()
85 val->intval = i_val * 1000; da9150_charger_ibus_current_avg()
101 val->intval = t_val / 100; da9150_charger_tjunc_temp()
152 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; da9150_charger_battery_status()
165 val->intval = POWER_SUPPLY_STATUS_CHARGING; da9150_charger_battery_status()
172 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; da9150_charger_battery_status()
175 val->intval = POWER_SUPPLY_STATUS_FULL; da9150_charger_battery_status()
178 val->intval = POWER_SUPPLY_STATUS_UNKNOWN; da9150_charger_battery_status()
195 val->intval = POWER_SUPPLY_HEALTH_COLD; da9150_charger_battery_health()
198 val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; da9150_charger_battery_health()
208 val->intval = POWER_SUPPLY_HEALTH_DEAD; da9150_charger_battery_health()
211 val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; da9150_charger_battery_health()
214 val->intval = POWER_SUPPLY_HEALTH_GOOD; da9150_charger_battery_health()
229 val->intval = 0; da9150_charger_battery_present()
231 val->intval = 1; da9150_charger_battery_present()
245 val->intval = POWER_SUPPLY_CHARGE_TYPE_FAST; da9150_charger_battery_charge_type()
250 val->intval = POWER_SUPPLY_CHARGE_TYPE_TRICKLE; da9150_charger_battery_charge_type()
253 val->intval = POWER_SUPPLY_CHARGE_TYPE_NONE; da9150_charger_battery_charge_type()
268 val->intval = ((reg & DA9150_CHG_VFAULT_MASK) * 50000) + 2500000; da9150_charger_battery_voltage_min()
283 val->intval = v_val * 1000; da9150_charger_battery_voltage_now()
296 val->intval = reg * 25000; da9150_charger_battery_current_max()
309 val->intval = ((reg & DA9150_CHG_VBAT_MASK) * 25000) + 3650000; da9150_charger_battery_voltage_max()
H A Dipaq_micro_battery.c141 val->intval = POWER_SUPPLY_TECHNOLOGY_NiCd; micro_batt_get_property()
144 val->intval = POWER_SUPPLY_TECHNOLOGY_NiMH; micro_batt_get_property()
147 val->intval = POWER_SUPPLY_TECHNOLOGY_LION; micro_batt_get_property()
150 val->intval = POWER_SUPPLY_TECHNOLOGY_LIPO; micro_batt_get_property()
153 val->intval = POWER_SUPPLY_TECHNOLOGY_UNKNOWN; micro_batt_get_property()
158 val->intval = get_status(b); micro_batt_get_property()
161 val->intval = 4700000; micro_batt_get_property()
164 val->intval = get_capacity(b); micro_batt_get_property()
167 val->intval = mb->temperature; micro_batt_get_property()
170 val->intval = mb->voltage; micro_batt_get_property()
187 val->intval = mb->ac; micro_ac_get_property()
H A Djz4740-battery.c138 val->intval = jz_battery->status; jz_battery_get_property()
141 val->intval = jz_battery->pdata->info.technology; jz_battery_get_property()
146 val->intval = POWER_SUPPLY_HEALTH_DEAD; jz_battery_get_property()
148 val->intval = POWER_SUPPLY_HEALTH_GOOD; jz_battery_get_property()
151 val->intval = jz_battery_get_capacity(psy); jz_battery_get_property()
154 val->intval = jz_battery_read_voltage(jz_battery); jz_battery_get_property()
155 if (val->intval < 0) jz_battery_get_property()
156 return val->intval; jz_battery_get_property()
159 val->intval = info->voltage_max_design; jz_battery_get_property()
162 val->intval = info->voltage_min_design; jz_battery_get_property()
165 val->intval = 1; jz_battery_get_property()
H A Dsbs-battery.c307 val->intval = 1; sbs_get_battery_presence_and_health()
309 val->intval = 0; sbs_get_battery_presence_and_health()
310 chip->is_present = val->intval; sbs_get_battery_presence_and_health()
321 val->intval = 0; /* battery removed */ sbs_get_battery_presence_and_health()
331 val->intval = 0; sbs_get_battery_presence_and_health()
343 val->intval = 0; sbs_get_battery_presence_and_health()
345 val->intval = 1; sbs_get_battery_presence_and_health()
348 val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; sbs_get_battery_presence_and_health()
350 val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; sbs_get_battery_presence_and_health()
352 val->intval = POWER_SUPPLY_HEALTH_DEAD; sbs_get_battery_presence_and_health()
354 val->intval = POWER_SUPPLY_HEALTH_GOOD; sbs_get_battery_presence_and_health()
377 val->intval = ret; sbs_get_battery_property()
382 val->intval = POWER_SUPPLY_STATUS_FULL; sbs_get_battery_property()
384 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; sbs_get_battery_property()
386 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; sbs_get_battery_property()
388 val->intval = POWER_SUPPLY_STATUS_CHARGING; sbs_get_battery_property()
391 chip->last_state = val->intval; sbs_get_battery_property()
392 else if (chip->last_state != val->intval) { sbs_get_battery_property()
399 val->intval = POWER_SUPPLY_STATUS_UNKNOWN; sbs_get_battery_property()
401 val->intval = 0; sbs_get_battery_property()
434 val->intval *= BATTERY_MODE_CAP_MULT_WATT; sbs_unit_adjustment()
444 val->intval *= BASE_UNIT_CONVERSION; sbs_unit_adjustment()
451 val->intval -= TEMP_KELVIN_TO_CELSIUS; sbs_unit_adjustment()
459 val->intval *= TIME_UNIT_CONVERSION; sbs_unit_adjustment()
513 val->intval = min(ret, 100); sbs_get_battery_capacity()
515 val->intval = ret; sbs_get_battery_capacity()
571 val->intval = POWER_SUPPLY_TECHNOLOGY_LION; sbs_get_property()
650 "%s: property = %d, value = %x\n", __func__, psp, val->intval); sbs_get_property()
H A Dlp8788-charger.c156 val->intval = lp8788_is_charger_detected(pchg); lp8788_charger_get_property()
160 val->intval = LP8788_ISEL_STEP * lp8788_charger_get_property()
184 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; lp8788_get_battery_status()
190 val->intval = POWER_SUPPLY_STATUS_CHARGING; lp8788_get_battery_status()
193 val->intval = POWER_SUPPLY_STATUS_FULL; lp8788_get_battery_status()
196 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; lp8788_get_battery_status()
214 val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; lp8788_get_battery_health()
216 val->intval = POWER_SUPPLY_HEALTH_DEAD; lp8788_get_battery_health()
218 val->intval = POWER_SUPPLY_HEALTH_GOOD; lp8788_get_battery_health()
233 val->intval = !(data & LP8788_NO_BATT_M); lp8788_get_battery_present()
250 return lp8788_get_vbatt_adc(pchg, &val->intval); lp8788_get_battery_voltage()
278 val->intval = LP8788_MAX_BATT_CAPACITY; lp8788_get_battery_capacity()
284 val->intval = (vbatt * LP8788_MAX_BATT_CAPACITY) / max_vbatt; lp8788_get_battery_capacity()
285 val->intval = min(val->intval, LP8788_MAX_BATT_CAPACITY); lp8788_get_battery_capacity()
306 val->intval = result * 10; lp8788_get_battery_temperature()
318 val->intval = LP8788_ISEL_STEP * lp8788_get_battery_charging_current()
331 val->intval = LP8788_VTERM_MIN + LP8788_VTERM_STEP * read; lp8788_get_charging_termination_voltage()
H A Dpower_supply_sysfs.c77 value.intval = psy->desc->type; power_supply_show_property()
93 return sprintf(buf, "%s\n", status_text[value.intval]); power_supply_show_property()
95 return sprintf(buf, "%s\n", charge_type[value.intval]); power_supply_show_property()
97 return sprintf(buf, "%s\n", health_text[value.intval]); power_supply_show_property()
99 return sprintf(buf, "%s\n", technology_text[value.intval]); power_supply_show_property()
101 return sprintf(buf, "%s\n", capacity_level_text[value.intval]); power_supply_show_property()
103 return sprintf(buf, "%s\n", type_text[value.intval]); power_supply_show_property()
105 return sprintf(buf, "%s\n", scope_text[value.intval]); power_supply_show_property()
109 return sprintf(buf, "%d\n", value.intval); power_supply_show_property()
126 value.intval = long_val; power_supply_store_property()
H A Ds3c_adc_battery.c95 val->intval = bat->volt_value; s3c_adc_backup_bat_get_property()
98 val->intval = bat->pdata->backup_volt_min; s3c_adc_backup_bat_get_property()
101 val->intval = bat->pdata->backup_volt_max; s3c_adc_backup_bat_get_property()
210 val->intval = bat->level == 100000 ? s3c_adc_bat_get_property()
213 val->intval = bat->status; s3c_adc_bat_get_property()
216 val->intval = 100000; s3c_adc_bat_get_property()
219 val->intval = 0; s3c_adc_bat_get_property()
222 val->intval = bat->level; s3c_adc_bat_get_property()
225 val->intval = bat->volt_value; s3c_adc_bat_get_property()
228 val->intval = bat->cur_value; s3c_adc_bat_get_property()
H A Dtest_power.c48 val->intval = ac_online; test_power_get_ac_property()
62 val->intval = usb_online; test_power_get_usb_property()
85 val->intval = battery_status; test_power_get_battery_property()
88 val->intval = POWER_SUPPLY_CHARGE_TYPE_FAST; test_power_get_battery_property()
91 val->intval = battery_health; test_power_get_battery_property()
94 val->intval = battery_present; test_power_get_battery_property()
97 val->intval = battery_technology; test_power_get_battery_property()
100 val->intval = POWER_SUPPLY_CAPACITY_LEVEL_NORMAL; test_power_get_battery_property()
104 val->intval = battery_capacity; test_power_get_battery_property()
108 val->intval = 100; test_power_get_battery_property()
112 val->intval = 3600; test_power_get_battery_property()
115 val->intval = 26; test_power_get_battery_property()
118 val->intval = battery_voltage; test_power_get_battery_property()
H A Dgoldfish_battery.c75 val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_AC_ONLINE); goldfish_ac_get_property()
93 val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_STATUS); goldfish_battery_get_property()
96 val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_HEALTH); goldfish_battery_get_property()
99 val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_PRESENT); goldfish_battery_get_property()
102 val->intval = POWER_SUPPLY_TECHNOLOGY_LION; goldfish_battery_get_property()
105 val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_CAPACITY); goldfish_battery_get_property()
H A Dmax8997_charger.c54 val->intval = 0; max8997_battery_get_property()
59 val->intval = POWER_SUPPLY_STATUS_FULL; max8997_battery_get_property()
63 val->intval = 0; max8997_battery_get_property()
68 val->intval = 1; max8997_battery_get_property()
72 val->intval = 0; max8997_battery_get_property()
78 val->intval = 1; max8997_battery_get_property()
H A Dcollie_battery.c110 val->intval = bat->status; collie_bat_get_property()
113 val->intval = bat->technology; collie_bat_get_property()
116 val->intval = collie_read_bat(bat); collie_bat_get_property()
120 val->intval = bat->bat_max; collie_bat_get_property()
122 val->intval = bat->full_chrg; collie_bat_get_property()
125 val->intval = bat->bat_max; collie_bat_get_property()
128 val->intval = bat->bat_min; collie_bat_get_property()
131 val->intval = collie_read_temp(bat); collie_bat_get_property()
134 val->intval = bat->is_present ? bat->is_present(bat) : 1; collie_bat_get_property()
H A Dpower_supply_leds.c31 dev_dbg(&psy->dev, "%s %d\n", __func__, status.intval); power_supply_update_bat_leds()
33 switch (status.intval) { power_supply_update_bat_leds()
121 dev_dbg(&psy->dev, "%s %d\n", __func__, online.intval); power_supply_update_gen_leds()
123 if (online.intval) power_supply_update_gen_leds()
H A Dtosa_battery.c108 val->intval = bat->status; tosa_bat_get_property()
111 val->intval = bat->technology; tosa_bat_get_property()
114 val->intval = tosa_read_bat(bat); tosa_bat_get_property()
118 val->intval = bat->bat_max; tosa_bat_get_property()
120 val->intval = bat->full_chrg; tosa_bat_get_property()
123 val->intval = bat->bat_max; tosa_bat_get_property()
126 val->intval = bat->bat_min; tosa_bat_get_property()
129 val->intval = tosa_read_temp(bat); tosa_bat_get_property()
132 val->intval = bat->is_present ? bat->is_present(bat) : 1; tosa_bat_get_property()
H A Dda9052-battery.c513 ret = da9052_bat_check_status(bat, &val->intval); da9052_bat_get_property()
516 val->intval = da9052_bat_get_property()
520 ret = da9052_bat_check_presence(bat, &val->intval); da9052_bat_get_property()
523 ret = da9052_bat_check_health(bat, &val->intval); da9052_bat_get_property()
526 val->intval = DA9052_BAT_CUTOFF_VOLT * 1000; da9052_bat_get_property()
529 ret = da9052_bat_read_volt(bat, &val->intval); da9052_bat_get_property()
532 ret = da9052_read_chg_current(bat, &val->intval); da9052_bat_get_property()
535 ret = da9052_bat_read_capacity(bat, &val->intval); da9052_bat_get_property()
538 val->intval = da9052_adc_read_temp(bat->da9052); da9052_bat_get_property()
539 ret = val->intval; da9052_bat_get_property()
542 val->intval = POWER_SUPPLY_TECHNOLOGY_LION; da9052_bat_get_property()
H A Dmax8903_charger.c55 val->intval = POWER_SUPPLY_STATUS_UNKNOWN; max8903_get_property()
58 val->intval = POWER_SUPPLY_STATUS_CHARGING; max8903_get_property()
60 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; max8903_get_property()
62 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; max8903_get_property()
66 val->intval = 0; max8903_get_property()
68 val->intval = 1; max8903_get_property()
71 val->intval = POWER_SUPPLY_HEALTH_GOOD; max8903_get_property()
73 val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; max8903_get_property()
H A Drx51_battery.c169 val->intval = POWER_SUPPLY_TECHNOLOGY_LION; rx51_battery_get_property()
172 val->intval = 4200000; rx51_battery_get_property()
175 val->intval = rx51_battery_read_voltage(di) ? 1 : 0; rx51_battery_get_property()
178 val->intval = rx51_battery_read_voltage(di); rx51_battery_get_property()
181 val->intval = rx51_battery_read_temperature(di); rx51_battery_get_property()
184 val->intval = rx51_battery_read_capacity(di); rx51_battery_get_property()
190 if (val->intval == INT_MAX || val->intval == INT_MIN) rx51_battery_get_property()
H A Dmax8925_power.c204 val->intval = info->ac_online; max8925_ac_get_prop()
210 val->intval = ret * 2000; /* unit is uV */ max8925_ac_get_prop()
238 val->intval = info->usb_online; max8925_usb_get_prop()
244 val->intval = ret * 2000; /* unit is uV */ max8925_usb_get_prop()
272 val->intval = info->bat_online; max8925_bat_get_prop()
278 val->intval = ret * 2000; /* unit is uV */ max8925_bat_get_prop()
291 val->intval = 0; max8925_bat_get_prop()
293 val->intval = ret; /* unit is mA */ max8925_bat_get_prop()
309 val->intval = POWER_SUPPLY_CHARGE_TYPE_FAST; max8925_bat_get_prop()
313 val->intval = POWER_SUPPLY_CHARGE_TYPE_TRICKLE; max8925_bat_get_prop()
316 val->intval = POWER_SUPPLY_CHARGE_TYPE_NONE; max8925_bat_get_prop()
328 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; max8925_bat_get_prop()
330 val->intval = POWER_SUPPLY_STATUS_CHARGING; max8925_bat_get_prop()
332 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; max8925_bat_get_prop()
H A Dwm831x_backup.c37 val->intval = ret; wm831x_backup_read_voltage()
130 val->intval = POWER_SUPPLY_STATUS_CHARGING; wm831x_backup_get_prop()
132 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; wm831x_backup_get_prop()
142 val->intval = 1; wm831x_backup_get_prop()
144 val->intval = 0; wm831x_backup_get_prop()
H A Daxp288_fuel_gauge.c598 val->intval = info->status; fuel_gauge_get_property()
601 val->intval = fuel_gauge_battery_health(info); fuel_gauge_get_property()
607 val->intval = PROP_VOLT(value); fuel_gauge_get_property()
613 val->intval = PROP_VOLT(value); fuel_gauge_get_property()
619 val->intval = PROP_CURR(value); fuel_gauge_get_property()
627 val->intval = 1; fuel_gauge_get_property()
629 val->intval = 0; fuel_gauge_get_property()
639 val->intval = (ret & FG_REP_CAP_VAL_MASK); fuel_gauge_get_property()
645 val->intval = (ret & 0x0f); fuel_gauge_get_property()
651 val->intval = PROP_TEMP(value); fuel_gauge_get_property()
655 val->intval = PROP_TEMP(info->pdata->max_temp); fuel_gauge_get_property()
659 val->intval = PROP_TEMP(info->pdata->min_temp); fuel_gauge_get_property()
662 val->intval = POWER_SUPPLY_TECHNOLOGY_LION; fuel_gauge_get_property()
674 val->intval = value * FG_DES_CAP_RES_LSB; fuel_gauge_get_property()
686 val->intval = value * FG_DES_CAP_RES_LSB; fuel_gauge_get_property()
689 val->intval = PROP_CURR(info->pdata->design_cap); fuel_gauge_get_property()
692 val->intval = PROP_VOLT(info->pdata->max_volt); fuel_gauge_get_property()
695 val->intval = PROP_VOLT(info->pdata->min_volt); fuel_gauge_get_property()
723 info->status = val->intval; fuel_gauge_set_property()
727 if ((val->intval < PD_DEF_MIN_TEMP) || fuel_gauge_set_property()
728 (val->intval > PD_DEF_MAX_TEMP)) { fuel_gauge_set_property()
732 info->pdata->min_temp = UNPROP_TEMP(val->intval); fuel_gauge_set_property()
740 if ((val->intval < PD_DEF_MIN_TEMP) || fuel_gauge_set_property()
741 (val->intval > PD_DEF_MAX_TEMP)) { fuel_gauge_set_property()
745 info->pdata->max_temp = UNPROP_TEMP(val->intval); fuel_gauge_set_property()
752 if ((val->intval < 0) || (val->intval > 15)) { fuel_gauge_set_property()
760 ret |= (val->intval & 0xf); fuel_gauge_set_property()
H A Dwm97xx_battery.c62 val->intval = bat_status; wm97xx_bat_get_property()
65 val->intval = pdata->batt_tech; wm97xx_bat_get_property()
69 val->intval = wm97xx_read_bat(bat_ps); wm97xx_bat_get_property()
75 val->intval = wm97xx_read_temp(bat_ps); wm97xx_bat_get_property()
81 val->intval = pdata->max_voltage; wm97xx_bat_get_property()
87 val->intval = pdata->min_voltage; wm97xx_bat_get_property()
92 val->intval = 1; wm97xx_bat_get_property()
H A Dwm8350_power.c258 val->intval = !!(wm8350_get_supplies(wm8350) & wm8350_ac_get_prop()
262 val->intval = wm8350_read_line_uvolts(wm8350); wm8350_ac_get_prop()
288 val->intval = !!(wm8350_get_supplies(wm8350) & wm8350_usb_get_prop()
292 val->intval = wm8350_read_usb_uvolts(wm8350); wm8350_usb_get_prop()
354 val->intval = wm8350_batt_status(wm8350); wm8350_bat_get_property()
357 val->intval = !!(wm8350_get_supplies(wm8350) & wm8350_bat_get_property()
361 val->intval = wm8350_read_battery_uvolts(wm8350); wm8350_bat_get_property()
364 val->intval = wm8350_bat_check_health(wm8350); wm8350_bat_get_property()
367 val->intval = wm8350_bat_get_charge_type(wm8350); wm8350_bat_get_property()
H A Dds2760_battery.c412 val->intval = di->charge_status; ds2760_battery_get_property()
422 val->intval = di->voltage_uV; ds2760_battery_get_property()
425 val->intval = di->current_uA; ds2760_battery_get_property()
428 val->intval = di->rated_capacity; ds2760_battery_get_property()
431 val->intval = di->full_active_uAh; ds2760_battery_get_property()
434 val->intval = di->empty_uAh; ds2760_battery_get_property()
437 val->intval = di->accum_current_uAh; ds2760_battery_get_property()
440 val->intval = di->temp_C; ds2760_battery_get_property()
443 val->intval = di->life_sec; ds2760_battery_get_property()
446 val->intval = di->rem_capacity; ds2760_battery_get_property()
464 ds2760_battery_write_active_full(di, val->intval / 1000L); ds2760_battery_set_property()
469 ds2760_battery_set_current_accum(di, val->intval); ds2760_battery_set_property()
H A Drt5033_battery.c81 val->intval = rt5033_battery_get_watt_prop(battery->client, rt5033_battery_get_property()
85 val->intval = rt5033_battery_get_present(battery->client); rt5033_battery_get_property()
88 val->intval = rt5033_battery_get_capacity(battery->client); rt5033_battery_get_property()
H A Dmax8998_charger.c57 val->intval = 0; max8998_battery_get_property()
59 val->intval = 1; max8998_battery_get_property()
66 val->intval = 0; max8998_battery_get_property()
68 val->intval = 1; max8998_battery_get_property()
H A Dda9030_battery.c322 val->intval = POWER_SUPPLY_STATUS_CHARGING; da9030_battery_check_status()
324 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; da9030_battery_check_status()
326 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; da9030_battery_check_status()
334 val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; da9030_battery_check_health()
336 val->intval = POWER_SUPPLY_HEALTH_OVERVOLTAGE; da9030_battery_check_health()
338 val->intval = POWER_SUPPLY_HEALTH_GOOD; da9030_battery_check_health()
355 val->intval = charger->battery_info->technology; da9030_battery_get_property()
358 val->intval = charger->battery_info->voltage_max_design; da9030_battery_get_property()
361 val->intval = charger->battery_info->voltage_min_design; da9030_battery_get_property()
364 val->intval = da9030_reg_to_mV(charger->adc.vbat_res) * 1000; da9030_battery_get_property()
367 val->intval = da9030_battery_get_property()
H A Dgeneric-adc-battery.c163 val->intval = gab_get_status(adc_bat); gab_get_property()
166 val->intval = 0; gab_get_property()
169 val->intval = pdata->cal_charge(result); gab_get_property()
177 val->intval = result; gab_get_property()
180 val->intval = bat_info->technology; gab_get_property()
183 val->intval = bat_info->voltage_min_design; gab_get_property()
186 val->intval = bat_info->voltage_max_design; gab_get_property()
189 val->intval = bat_info->charge_full_design; gab_get_property()
H A Dz2_battery.c53 val->intval = charger->bat_status; z2_batt_get_property()
56 val->intval = info->batt_tech; z2_batt_get_property()
60 val->intval = z2_read_bat(charger); z2_batt_get_property()
66 val->intval = info->max_voltage; z2_batt_get_property()
72 val->intval = info->min_voltage; z2_batt_get_property()
77 val->intval = 1; z2_batt_get_property()
H A Dsmb347-charger.c885 int ret, intval; get_const_charge_current() local
900 intval = hw_to_current(fcc_tbl, ARRAY_SIZE(fcc_tbl), v & 7); get_const_charge_current()
903 intval = hw_to_current(pcc_tbl, ARRAY_SIZE(pcc_tbl), v & 7); get_const_charge_current()
906 return intval; get_const_charge_current()
915 int ret, intval; get_const_charge_voltage() local
929 intval = 3500000 + v * 20000; get_const_charge_voltage()
931 return intval; get_const_charge_voltage()
943 val->intval = smb->mains_online; smb347_mains_get_property()
951 val->intval = ret; smb347_mains_get_property()
959 val->intval = ret; smb347_mains_get_property()
984 val->intval = smb->usb_online; smb347_usb_get_property()
992 val->intval = ret; smb347_usb_get_property()
1000 val->intval = ret; smb347_usb_get_property()
1078 val->intval = ret; smb347_battery_get_property()
1091 val->intval = POWER_SUPPLY_CHARGE_TYPE_TRICKLE; smb347_battery_get_property()
1094 val->intval = POWER_SUPPLY_CHARGE_TYPE_FAST; smb347_battery_get_property()
1097 val->intval = POWER_SUPPLY_CHARGE_TYPE_NONE; smb347_battery_get_property()
1103 val->intval = pdata->battery_info.technology; smb347_battery_get_property()
1107 val->intval = pdata->battery_info.voltage_min_design; smb347_battery_get_property()
1111 val->intval = pdata->battery_info.voltage_max_design; smb347_battery_get_property()
1115 val->intval = pdata->battery_info.charge_full_design; smb347_battery_get_property()
H A Dcharger-manager.c108 if (ret == 0 && val.intval) is_batt_present()
125 if (ret == 0 && val.intval) { is_batt_present()
163 if (ret == 0 && val.intval) { is_ext_pwr_online()
196 *uV = val.intval; get_batt_uV()
239 if (val.intval == 0) { is_charging()
256 if (val.intval == POWER_SUPPLY_STATUS_FULL || is_charging()
257 val.intval == POWER_SUPPLY_STATUS_DISCHARGING || is_charging()
258 val.intval == POWER_SUPPLY_STATUS_NOT_CHARGING) is_charging()
291 val.intval = 0; is_full_charged()
296 if (!ret && val.intval > desc->fullbatt_full_capacity) { is_full_charged()
313 val.intval = 0; is_full_charged()
317 if (!ret && val.intval >= desc->fullbatt_soc) { is_full_charged()
897 val->intval = POWER_SUPPLY_STATUS_CHARGING; charger_get_property()
899 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; charger_get_property()
901 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; charger_get_property()
905 val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; charger_get_property()
907 val->intval = POWER_SUPPLY_HEALTH_COLD; charger_get_property()
909 val->intval = POWER_SUPPLY_HEALTH_GOOD; charger_get_property()
913 val->intval = 1; charger_get_property()
915 val->intval = 0; charger_get_property()
918 ret = get_batt_uV(cm, &val->intval); charger_get_property()
931 return cm_get_battery_temperature(cm, &val->intval); charger_get_property()
935 val->intval = 100; charger_get_property()
950 if (val->intval > 100) { charger_get_property()
951 val->intval = 100; charger_get_property()
954 if (val->intval < 0) charger_get_property()
955 val->intval = 0; charger_get_property()
974 val->intval = 100; charger_get_property()
981 val->intval = 1; charger_get_property()
983 val->intval = 0; charger_get_property()
987 val->intval = 1; charger_get_property()
989 val->intval = 0; charger_get_property()
1005 val->intval = 1; charger_get_property()
1009 val->intval = (val->intval > 0) ? charger_get_property()
1010 val->intval : 1; charger_get_property()
1013 val->intval = 0; charger_get_property()
H A Dbq24190_charger.c575 val->intval = type; bq24190_charger_get_charge_type()
596 switch (val->intval) { bq24190_charger_set_charge_type()
692 val->intval = health; bq24190_charger_get_health()
709 val->intval = v; bq24190_charger_get_online()
736 val->intval = curr; bq24190_charger_get_current()
745 val->intval = bq24190_ccc_ichg_values[idx]; bq24190_charger_get_current_max()
753 int ret, curr = val->intval; bq24190_charger_set_current()
783 val->intval = voltage; bq24190_charger_get_voltage()
792 val->intval = bq24190_cvc_vreg_values[idx]; bq24190_charger_get_voltage_max()
802 ARRAY_SIZE(bq24190_cvc_vreg_values), val->intval); bq24190_charger_set_voltage()
838 val->intval = POWER_SUPPLY_SCOPE_SYSTEM; bq24190_charger_get_property()
990 val->intval = status; bq24190_battery_get_status()
1040 val->intval = health; bq24190_battery_get_health()
1056 val->intval = !batfet_disable; bq24190_battery_get_online()
1065 BQ24190_REG_MOC_BATFET_DISABLE_SHIFT, !val->intval); bq24190_battery_set_online()
1081 val->intval = temp; bq24190_battery_get_temp_alert_max()
1092 ARRAY_SIZE(bq24190_ictrc_treg_values), val->intval); bq24190_battery_set_temp_alert_max()
1117 val->intval = POWER_SUPPLY_TECHNOLOGY_UNKNOWN; bq24190_battery_get_property()
1124 val->intval = POWER_SUPPLY_SCOPE_SYSTEM; bq24190_battery_get_property()
H A Dltc2941-battery-gauge.c302 return ltc294x_get_charge_now(info, &val->intval); ltc294x_get_property()
304 return ltc294x_get_charge_counter(info, &val->intval); ltc294x_get_property()
306 return ltc294x_get_voltage(info, &val->intval); ltc294x_get_property()
308 return ltc294x_get_current(info, &val->intval); ltc294x_get_property()
310 return ltc294x_get_temperature(info, &val->intval); ltc294x_get_property()
324 return ltc294x_set_charge_now(info, val->intval); ltc294x_set_property()
H A Dlp8727_charger.c319 val->intval = lp8727_is_charger_attached(psy->desc->name, pchg->devid); lp8727_charger_get_property()
348 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; lp8727_battery_get_property()
354 val->intval = (read & LP8727_CHGSTAT) == LP8727_STAT_EOC ? lp8727_battery_get_property()
362 val->intval = lp8727_is_high_temperature(temp) ? lp8727_battery_get_property()
371 val->intval = pdata->get_batt_present(); lp8727_battery_get_property()
378 val->intval = pdata->get_batt_level(); lp8727_battery_get_property()
385 val->intval = pdata->get_batt_capacity(); lp8727_battery_get_property()
392 val->intval = pdata->get_batt_temp(); lp8727_battery_get_property()
H A Dabx500_chargalg.c1002 di->batt_data.percent = ret.intval; abx500_chargalg_get_ext_psy_data()
1028 if (ret.intval) abx500_chargalg_get_ext_psy_data()
1036 if (!ret.intval && abx500_chargalg_get_ext_psy_data()
1043 else if (ret.intval && abx500_chargalg_get_ext_psy_data()
1052 if (!ret.intval && abx500_chargalg_get_ext_psy_data()
1059 else if (ret.intval && abx500_chargalg_get_ext_psy_data()
1077 if (!ret.intval && abx500_chargalg_get_ext_psy_data()
1084 else if (ret.intval && abx500_chargalg_get_ext_psy_data()
1095 if (!ret.intval && abx500_chargalg_get_ext_psy_data()
1102 else if (ret.intval && abx500_chargalg_get_ext_psy_data()
1121 switch (ret.intval) { abx500_chargalg_get_ext_psy_data()
1159 switch (ret.intval) { abx500_chargalg_get_ext_psy_data()
1202 di->batt_data.volt = ret.intval / 1000; abx500_chargalg_get_ext_psy_data()
1205 di->chg_info.ac_volt = ret.intval / 1000; abx500_chargalg_get_ext_psy_data()
1208 di->chg_info.usb_volt = ret.intval / 1000; abx500_chargalg_get_ext_psy_data()
1220 if (ret.intval) abx500_chargalg_get_ext_psy_data()
1229 if (ret.intval) abx500_chargalg_get_ext_psy_data()
1243 if (ret.intval) abx500_chargalg_get_ext_psy_data()
1255 di->batt_data.temp = ret.intval / 10; abx500_chargalg_get_ext_psy_data()
1262 ret.intval / 1000; abx500_chargalg_get_ext_psy_data()
1266 ret.intval / 1000; abx500_chargalg_get_ext_psy_data()
1269 di->batt_data.inst_curr = ret.intval / 1000; abx500_chargalg_get_ext_psy_data()
1279 di->batt_data.avg_curr = ret.intval / 1000; abx500_chargalg_get_ext_psy_data()
1282 if (ret.intval) abx500_chargalg_get_ext_psy_data()
1293 di->batt_data.percent = ret.intval; abx500_chargalg_get_ext_psy_data()
1785 val->intval = di->charge_status; abx500_chargalg_get_property()
1789 val->intval = POWER_SUPPLY_HEALTH_OVERVOLTAGE; abx500_chargalg_get_property()
1792 val->intval = POWER_SUPPLY_HEALTH_COLD; abx500_chargalg_get_property()
1794 val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; abx500_chargalg_get_property()
1797 val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; abx500_chargalg_get_property()
1799 val->intval = POWER_SUPPLY_HEALTH_GOOD; abx500_chargalg_get_property()
H A Dmax17040_battery.c64 val->intval = chip->status; max17040_get_property()
67 val->intval = chip->online; max17040_get_property()
70 val->intval = chip->vcell; max17040_get_property()
73 val->intval = chip->soc; max17040_get_property()
H A Dds2782_battery.c255 ret = ds278x_get_status(info, &val->intval); ds278x_battery_get_property()
259 ret = info->ops->get_battery_capacity(info, &val->intval); ds278x_battery_get_property()
263 ret = info->ops->get_battery_voltage(info, &val->intval); ds278x_battery_get_property()
267 ret = info->ops->get_battery_current(info, &val->intval); ds278x_battery_get_property()
271 ret = ds278x_get_temp(info, &val->intval); ds278x_battery_get_property()
H A Dtwl4030_charger.c483 val->intval = twl4030_bci_state_to_status(state); twl4030_bci_get_property()
485 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; twl4030_bci_get_property()
496 val->intval = ret * 6843; twl4030_bci_get_property()
502 val->intval = ret * 9775; twl4030_bci_get_property()
512 val->intval = ret; twl4030_bci_get_property()
515 val->intval = is_charging && twl4030_bci_get_property()
H A Dwm831x_power.c46 val->intval = 1; wm831x_power_check_online()
48 val->intval = 0; wm831x_power_check_online()
61 val->intval = ret; wm831x_power_read_voltage()
405 ret = wm831x_bat_check_status(wm831x, &val->intval); wm831x_bat_get_prop()
415 ret = wm831x_bat_check_health(wm831x, &val->intval); wm831x_bat_get_prop()
418 ret = wm831x_bat_check_type(wm831x, &val->intval); wm831x_bat_get_prop()
H A Dds2780_battery.c393 ret = ds2780_get_voltage(dev_info, &val->intval); ds2780_battery_get_property()
397 ret = ds2780_get_temperature(dev_info, &val->intval); ds2780_battery_get_property()
409 ret = ds2780_get_current(dev_info, CURRENT_NOW, &val->intval); ds2780_battery_get_property()
413 ret = ds2780_get_current(dev_info, CURRENT_AVG, &val->intval); ds2780_battery_get_property()
417 ret = ds2780_get_status(dev_info, &val->intval); ds2780_battery_get_property()
421 ret = ds2780_get_capacity(dev_info, &val->intval); ds2780_battery_get_property()
425 ret = ds2780_get_accumulated_current(dev_info, &val->intval); ds2780_battery_get_property()
429 ret = ds2780_get_charge_now(dev_info, &val->intval); ds2780_battery_get_property()
H A Dds2781_battery.c395 ret = ds2781_get_voltage(dev_info, &val->intval); ds2781_battery_get_property()
399 ret = ds2781_get_temperature(dev_info, &val->intval); ds2781_battery_get_property()
411 ret = ds2781_get_current(dev_info, CURRENT_NOW, &val->intval); ds2781_battery_get_property()
415 ret = ds2781_get_current(dev_info, CURRENT_AVG, &val->intval); ds2781_battery_get_property()
419 ret = ds2781_get_status(dev_info, &val->intval); ds2781_battery_get_property()
423 ret = ds2781_get_capacity(dev_info, &val->intval); ds2781_battery_get_property()
427 ret = ds2781_get_accumulated_current(dev_info, &val->intval); ds2781_battery_get_property()
431 ret = ds2781_get_charge_now(dev_info, &val->intval); ds2781_battery_get_property()
H A Dmax14577_charger.c429 ret = max14577_get_charger_state(chg, &val->intval); max14577_charger_get_property()
432 ret = max14577_get_charge_type(chg, &val->intval); max14577_charger_get_property()
435 ret = max14577_get_battery_health(chg, &val->intval); max14577_charger_get_property()
438 ret = max14577_get_present(chg, &val->intval); max14577_charger_get_property()
441 ret = max14577_get_online(chg, &val->intval); max14577_charger_get_property()
H A Dmax77693_charger.c229 ret = max77693_get_charger_state(regmap, &val->intval); max77693_charger_get_property()
232 ret = max77693_get_charge_type(regmap, &val->intval); max77693_charger_get_property()
235 ret = max77693_get_battery_health(regmap, &val->intval); max77693_charger_get_property()
238 ret = max77693_get_present(regmap, &val->intval); max77693_charger_get_property()
241 ret = max77693_get_online(regmap, &val->intval); max77693_charger_get_property()
H A D88pm860x_battery.c816 val->intval = info->present; pm860x_batt_get_prop()
829 val->intval = data; pm860x_batt_get_prop()
832 val->intval = POWER_SUPPLY_TECHNOLOGY_LION; pm860x_batt_get_prop()
839 val->intval = data * 1000; pm860x_batt_get_prop()
846 val->intval = data * 1000; pm860x_batt_get_prop()
852 val->intval = data; pm860x_batt_get_prop()
864 val->intval = data; pm860x_batt_get_prop()
H A D88pm860x_charger.c305 vbatt = data.intval / 1000; set_charging_fsm()
315 info->present = data.intval; set_charging_fsm()
442 value = temp.intval / 10; pm860x_temp_handler()
499 vbatt = val.intval / 1000; pm860x_done_handler()
604 val->intval = POWER_SUPPLY_STATUS_CHARGING; pm860x_usb_get_prop()
606 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; pm860x_usb_get_prop()
609 val->intval = info->online; pm860x_usb_get_prop()
H A Dintel_mid_battery.c414 val->intval = pbi->usb_is_present; pmic_usb_get_property()
417 val->intval = pbi->usb_health; pmic_usb_get_property()
453 val->intval = pbi->batt_status; pmic_battery_get_property()
456 val->intval = pbi->batt_health; pmic_battery_get_property()
459 val->intval = pbi->batt_is_present; pmic_battery_get_property()
462 val->intval = mAStouAh(pbi->batt_charge_now); pmic_battery_get_property()
465 val->intval = mAStouAh(pbi->batt_prev_charge_full); pmic_battery_get_property()
H A Dpower_supply_core.c292 return ret.intval; __power_supply_am_i_supplied()
320 return ret.intval; __power_supply_is_system_supplied()
533 *temp = val.intval * 100; power_supply_read_temp()
579 *state = val.intval; ps_get_max_charge_cntl_limit()
595 *state = val.intval; ps_get_cur_chrage_cntl_limit()
608 val.intval = state; ps_set_cur_charge_cntl_limit()
H A Dpcf50633-charger.c298 val->intval = mbc->adapter_online; adapter_get_property()
318 val->intval = mbc->usb_online && usb_get_property()
339 val->intval = mbc->usb_online && ac_get_property()
H A Dbq27x00_battery.c575 val->intval = (int)((s16)curr) * 1000; bq27x00_battery_current()
583 val->intval = curr * 3570 / BQ27000_RS; bq27x00_battery_current()
612 val->intval = status; bq27x00_battery_status()
642 val->intval = level; bq27x00_battery_capacity_level()
662 val->intval = volt * 1000; bq27x00_battery_voltage()
673 val->intval = value; bq27x00_simple_value()
703 val->intval = di->cache.flags < 0 ? 0 : 1; bq27x00_battery_get_property()
717 val->intval -= 2731; bq27x00_battery_get_property()
729 val->intval = POWER_SUPPLY_TECHNOLOGY_LION; bq27x00_battery_get_property()
H A Dab8500_charger.c1967 di->vbat = ret.intval / 1000; ab8500_charger_get_ext_psy_data()
2964 val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; ab8500_charger_ac_get_property()
2966 val->intval = POWER_SUPPLY_HEALTH_DEAD; ab8500_charger_ac_get_property()
2968 val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; ab8500_charger_ac_get_property()
2970 val->intval = POWER_SUPPLY_HEALTH_GOOD; ab8500_charger_ac_get_property()
2973 val->intval = di->ac.charger_online; ab8500_charger_ac_get_property()
2976 val->intval = di->ac.charger_connected; ab8500_charger_ac_get_property()
2983 val->intval = di->ac.charger_voltage * 1000; ab8500_charger_ac_get_property()
2991 val->intval = di->ac.cv_active; ab8500_charger_ac_get_property()
2997 val->intval = di->ac.charger_current * 1000; ab8500_charger_ac_get_property()
3031 val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; ab8500_charger_usb_get_property()
3033 val->intval = POWER_SUPPLY_HEALTH_DEAD; ab8500_charger_usb_get_property()
3035 val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; ab8500_charger_usb_get_property()
3037 val->intval = POWER_SUPPLY_HEALTH_OVERVOLTAGE; ab8500_charger_usb_get_property()
3039 val->intval = POWER_SUPPLY_HEALTH_GOOD; ab8500_charger_usb_get_property()
3042 val->intval = di->usb.charger_online; ab8500_charger_usb_get_property()
3045 val->intval = di->usb.charger_connected; ab8500_charger_usb_get_property()
3051 val->intval = di->usb.charger_voltage * 1000; ab8500_charger_usb_get_property()
3059 val->intval = di->usb.cv_active; ab8500_charger_usb_get_property()
3065 val->intval = di->usb.charger_current * 1000; ab8500_charger_usb_get_property()
3073 val->intval = 1; ab8500_charger_usb_get_property()
3075 val->intval = 0; ab8500_charger_usb_get_property()
H A Dab8500_btemp.c890 val->intval = 0; ab8500_btemp_get_property()
892 val->intval = 1; ab8500_btemp_get_property()
895 val->intval = di->bm->bat_type[di->bm->batt_id].name; ab8500_btemp_get_property()
898 val->intval = ab8500_btemp_get_temp(di); ab8500_btemp_get_property()
944 if (!ret.intval && di->events.ac_conn) { ab8500_btemp_get_ext_psy_data()
948 else if (ret.intval && !di->events.ac_conn) { ab8500_btemp_get_ext_psy_data()
956 if (!ret.intval && di->events.usb_conn) { ab8500_btemp_get_ext_psy_data()
960 else if (ret.intval && !di->events.usb_conn) { ab8500_btemp_get_ext_psy_data()
H A Dgpio-charger.c61 val->intval = !!gpio_get_value_cansleep(pdata->gpio); gpio_charger_get_property()
62 val->intval ^= pdata->gpio_active_low; gpio_charger_get_property()
H A Dpm2301_charger.c615 val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; pm2xxx_charger_ac_get_property()
617 val->intval = POWER_SUPPLY_HEALTH_DEAD; pm2xxx_charger_ac_get_property()
619 val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; pm2xxx_charger_ac_get_property()
621 val->intval = POWER_SUPPLY_HEALTH_OVERVOLTAGE; pm2xxx_charger_ac_get_property()
623 val->intval = POWER_SUPPLY_HEALTH_GOOD; pm2xxx_charger_ac_get_property()
626 val->intval = pm2->ac.charger_online; pm2xxx_charger_ac_get_property()
629 val->intval = pm2->ac.charger_connected; pm2xxx_charger_ac_get_property()
633 val->intval = pm2->ac.cv_active; pm2xxx_charger_ac_get_property()
H A Dab8500_fg.c2108 val->intval = BATT_OVV_VALUE * 1000; ab8500_fg_get_property()
2110 val->intval = di->vbat * 1000; ab8500_fg_get_property()
2113 val->intval = di->inst_curr * 1000; ab8500_fg_get_property()
2116 val->intval = di->avg_curr * 1000; ab8500_fg_get_property()
2119 val->intval = ab8500_fg_convert_mah_to_uwh(di, ab8500_fg_get_property()
2123 val->intval = ab8500_fg_convert_mah_to_uwh(di, ab8500_fg_get_property()
2129 val->intval = ab8500_fg_convert_mah_to_uwh(di, ab8500_fg_get_property()
2132 val->intval = ab8500_fg_convert_mah_to_uwh(di, ab8500_fg_get_property()
2136 val->intval = di->bat_cap.max_mah_design; ab8500_fg_get_property()
2139 val->intval = di->bat_cap.max_mah; ab8500_fg_get_property()
2144 val->intval = di->bat_cap.max_mah; ab8500_fg_get_property()
2146 val->intval = di->bat_cap.prev_mah; ab8500_fg_get_property()
2151 val->intval = 100; ab8500_fg_get_property()
2153 val->intval = di->bat_cap.prev_percent; ab8500_fg_get_property()
2158 val->intval = POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN; ab8500_fg_get_property()
2160 val->intval = di->bat_cap.prev_level; ab8500_fg_get_property()
2205 switch (ret.intval) { ab8500_fg_get_ext_psy_data()
2262 if (ret.intval) ab8500_fg_get_ext_psy_data()
2275 di->bat_temp = ret.intval; ab8500_fg_get_ext_psy_data()
H A Disp1704_charger.c334 val->intval = isp->present; isp1704_charger_get_property()
337 val->intval = isp->online; isp1704_charger_get_property()
340 val->intval = isp->current_max; isp1704_charger_get_property()
H A Dpda_power.c63 val->intval = pdata->is_ac_online ? pda_power_get_property()
66 val->intval = pdata->is_usb_online ? pda_power_get_property()
H A Dtps65090-charger.c141 val->intval = charger->ac_online; tps65090_ac_get_property()
H A Dbq2415x_charger.c818 mA = prop.intval; bq2415x_notifier_call()
1005 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; bq2415x_power_supply_get_property()
1007 val->intval = POWER_SUPPLY_STATUS_CHARGING; bq2415x_power_supply_get_property()
1009 val->intval = POWER_SUPPLY_STATUS_FULL; bq2415x_power_supply_get_property()
1011 val->intval = POWER_SUPPLY_STATUS_UNKNOWN; bq2415x_power_supply_get_property()
H A Dbq24735-charger.c200 val->intval = bq24735_charger_is_present(charger) ? 1 : 0; bq24735_charger_get_property()
/linux-4.1.27/scripts/rt-tester/
H A Drt-tester.py80 intval = int(val)
83 intval = intval / (10 ** int(arg))
84 intval = intval % 10
91 # progress("%d %s %d" %(intval, top[1], argval))
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/net/wireless/ath/ath9k/
H A Dcommon-beacon.c71 conf->intval = conf->beacon_interval; ath9k_cmn_beacon_config_sta()
77 dtim_intval = conf->intval * conf->dtim_period; ath9k_cmn_beacon_config_sta()
84 conf->nexttbtt = ath9k_get_next_tbtt(ah, tsf, conf->intval); ath9k_cmn_beacon_config_sta()
86 bs->bs_intval = TU_TO_USEC(conf->intval); ath9k_cmn_beacon_config_sta()
99 bs->bs_bmissthreshold = DIV_ROUND_UP(conf->bmiss_timeout, conf->intval); ath9k_cmn_beacon_config_sta()
115 conf->intval)); ath9k_cmn_beacon_config_sta()
133 conf->intval = TU_TO_USEC(conf->beacon_interval); ath9k_cmn_beacon_config_adhoc()
136 conf->nexttbtt = conf->intval; ath9k_cmn_beacon_config_adhoc()
147 "IBSS (%s) nexttbtt: %u intval: %u conf_intval: %u\n", ath9k_cmn_beacon_config_adhoc()
149 conf->nexttbtt, conf->intval, conf->beacon_interval); ath9k_cmn_beacon_config_adhoc()
165 conf->intval = TU_TO_USEC(conf->beacon_interval); ath9k_cmn_beacon_config_ap()
166 conf->intval /= bc_buf; ath9k_cmn_beacon_config_ap()
176 "AP (%s) nexttbtt: %u intval: %u conf_intval: %u\n", ath9k_cmn_beacon_config_ap()
178 conf->nexttbtt, conf->intval, conf->beacon_interval); ath9k_cmn_beacon_config_ap()
H A Dhtc_drv_beacon.c66 * Both nexttbtt and intval have to be in usecs.
77 if (conf->intval >= TU_TO_USEC(DEFAULT_SWBA_RESPONSE)) ath9k_htc_beacon_init()
86 ath9k_hw_beaconinit(ah, conf->nexttbtt, conf->intval); ath9k_htc_beacon_init()
268 u16 intval; ath9k_htc_choose_bslot() local
271 intval = priv->cur_beacon_conf.beacon_interval; ath9k_htc_choose_bslot()
275 slot = ((tsftu % intval) * ATH9K_HTC_MAX_BCN_VIF) / intval; ath9k_htc_choose_bslot()
279 "Choose slot: %d, tsf: %llu, tsftu: %u, intval: %u\n", ath9k_htc_choose_bslot()
280 slot, tsf, tsftu, intval); ath9k_htc_choose_bslot()
H A Dbeacon.c252 u16 intval; ath9k_beacon_choose_slot() local
264 intval = cur_conf->beacon_interval ? : ATH_DEFAULT_BINTVAL; ath9k_beacon_choose_slot()
268 slot = (tsftu % (intval * ATH_BCBUF)) / intval; ath9k_beacon_choose_slot()
442 * Both nexttbtt and intval have to be in usecs.
445 u32 intval, bool reset_tsf) ath9k_beacon_init()
453 ath9k_hw_beaconinit(ah, nexttbtt, intval); ath9k_beacon_init()
470 ath9k_beacon_init(sc, conf->nexttbtt, conf->intval, false); ath9k_beacon_config_ap()
499 ath9k_beacon_init(sc, conf->nexttbtt, conf->intval, conf->ibss_creator); ath9k_beacon_config_adhoc()
444 ath9k_beacon_init(struct ath_softc *sc, u32 nexttbtt, u32 intval, bool reset_tsf) ath9k_beacon_init() argument
H A Dcommon.h60 u32 intval; member in struct:ath_beacon_config
/linux-4.1.27/drivers/staging/nvec/
H A Dnvec_power.c232 val->intval = power->on; nvec_power_get_property()
248 val->intval = power->bat_status; nvec_battery_get_property()
251 val->intval = power->bat_cap; nvec_battery_get_property()
254 val->intval = power->bat_present; nvec_battery_get_property()
257 val->intval = power->bat_voltage_now; nvec_battery_get_property()
260 val->intval = power->bat_current_now; nvec_battery_get_property()
263 val->intval = power->bat_current_avg; nvec_battery_get_property()
266 val->intval = power->time_remain; nvec_battery_get_property()
269 val->intval = power->charge_full_design; nvec_battery_get_property()
272 val->intval = power->charge_last_full; nvec_battery_get_property()
275 val->intval = power->critical_capacity; nvec_battery_get_property()
278 val->intval = power->capacity_remain; nvec_battery_get_property()
281 val->intval = power->bat_temperature; nvec_battery_get_property()
290 val->intval = power->bat_type_enum; nvec_battery_get_property()
/linux-4.1.27/drivers/acpi/
H A Dsbs.c160 val->intval = sbs->charger_present; sbs_get_ac_property()
194 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; acpi_sbs_battery_get_property()
196 val->intval = POWER_SUPPLY_STATUS_CHARGING; acpi_sbs_battery_get_property()
198 val->intval = POWER_SUPPLY_STATUS_FULL; acpi_sbs_battery_get_property()
201 val->intval = battery->present; acpi_sbs_battery_get_property()
204 val->intval = acpi_battery_technology(battery); acpi_sbs_battery_get_property()
207 val->intval = battery->cycle_count; acpi_sbs_battery_get_property()
210 val->intval = battery->design_voltage * acpi_sbs_battery_get_property()
214 val->intval = battery->voltage_now * acpi_sbs_battery_get_property()
219 val->intval = abs(battery->rate_now) * acpi_sbs_battery_get_property()
221 val->intval *= (acpi_battery_mode(battery)) ? acpi_sbs_battery_get_property()
227 val->intval = abs(battery->rate_avg) * acpi_sbs_battery_get_property()
229 val->intval *= (acpi_battery_mode(battery)) ? acpi_sbs_battery_get_property()
234 val->intval = battery->state_of_charge; acpi_sbs_battery_get_property()
238 val->intval = battery->design_capacity * acpi_sbs_battery_get_property()
243 val->intval = battery->full_charge_capacity * acpi_sbs_battery_get_property()
248 val->intval = battery->capacity_now * acpi_sbs_battery_get_property()
252 val->intval = battery->temp_now - 2730; // dK -> dC acpi_sbs_battery_get_property()
H A Dbattery.c215 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; acpi_battery_get_property()
217 val->intval = POWER_SUPPLY_STATUS_CHARGING; acpi_battery_get_property()
219 val->intval = POWER_SUPPLY_STATUS_FULL; acpi_battery_get_property()
221 val->intval = POWER_SUPPLY_STATUS_UNKNOWN; acpi_battery_get_property()
224 val->intval = acpi_battery_present(battery); acpi_battery_get_property()
227 val->intval = acpi_battery_technology(battery); acpi_battery_get_property()
230 val->intval = battery->cycle_count; acpi_battery_get_property()
236 val->intval = battery->design_voltage * 1000; acpi_battery_get_property()
242 val->intval = battery->voltage_now * 1000; acpi_battery_get_property()
249 val->intval = battery->rate_now * 1000; acpi_battery_get_property()
256 val->intval = battery->design_capacity * 1000; acpi_battery_get_property()
263 val->intval = battery->full_charge_capacity * 1000; acpi_battery_get_property()
270 val->intval = battery->capacity_now * 1000; acpi_battery_get_property()
274 val->intval = battery->capacity_now * 100/ acpi_battery_get_property()
277 val->intval = 0; acpi_battery_get_property()
281 val->intval = POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL; acpi_battery_get_property()
284 val->intval = POWER_SUPPLY_CAPACITY_LEVEL_LOW; acpi_battery_get_property()
286 val->intval = POWER_SUPPLY_CAPACITY_LEVEL_FULL; acpi_battery_get_property()
288 val->intval = POWER_SUPPLY_CAPACITY_LEVEL_NORMAL; acpi_battery_get_property()
H A Dac.c157 val->intval = ac->state; get_ac_property()
/linux-4.1.27/drivers/platform/x86/
H A Dcompal-laptop.c572 val->intval = bat_status(); bat_get_property()
575 val->intval = bat_health(); bat_get_property()
578 val->intval = bat_is_present(); bat_get_property()
581 val->intval = bat_technology(); bat_get_property()
584 val->intval = ec_read_u16(BAT_VOLTAGE_DESIGN) * 1000; bat_get_property()
587 val->intval = ec_read_u16(BAT_VOLTAGE_NOW) * 1000; bat_get_property()
590 val->intval = ec_read_s16(BAT_CURRENT_NOW) * 1000; bat_get_property()
593 val->intval = ec_read_s16(BAT_CURRENT_AVG) * 1000; bat_get_property()
596 val->intval = ec_read_u8(BAT_POWER) * 1000000; bat_get_property()
599 val->intval = ec_read_u16(BAT_CHARGE_DESIGN) * 1000; bat_get_property()
602 val->intval = ec_read_u16(BAT_CHARGE_NOW) * 1000; bat_get_property()
605 val->intval = ec_read_u8(BAT_CAPACITY); bat_get_property()
608 val->intval = bat_capacity_level(); bat_get_property()
616 val->intval = ((222 - (int)ec_read_u8(BAT_TEMP)) * 1000) >> 8; bat_get_property()
619 val->intval = ec_read_s8(BAT_TEMP_AVG) * 10; bat_get_property()
/linux-4.1.27/drivers/mfd/
H A Dab8500-sysctrl.c56 if (!ret && val.intval) { ab8500_power_off()
70 if (!ret && val.intval != POWER_SUPPLY_TECHNOLOGY_UNKNOWN) { ab8500_power_off()
/linux-4.1.27/fs/ceph/
H A Dsuper.c179 int token, intval, ret; parse_fsopt_token() local
186 ret = match_int(&argstr[0], &intval); parse_fsopt_token()
192 dout("got int token %d val %d\n", token, intval); parse_fsopt_token()
212 fsopt->wsize = intval; parse_fsopt_token()
215 fsopt->rsize = intval; parse_fsopt_token()
218 fsopt->rasize = intval; parse_fsopt_token()
221 fsopt->caps_wanted_delay_min = intval; parse_fsopt_token()
224 fsopt->caps_wanted_delay_max = intval; parse_fsopt_token()
227 fsopt->max_readdir = intval; parse_fsopt_token()
230 fsopt->max_readdir_bytes = intval; parse_fsopt_token()
233 fsopt->congestion_kb = intval; parse_fsopt_token()
/linux-4.1.27/net/ceph/
H A Dceph_common.c367 int token, intval, ret; ceph_parse_options() local
382 ret = match_int(&argstr[0], &intval); ceph_parse_options()
388 dout("got int token %d val %d\n", token, intval); ceph_parse_options()
442 opt->osd_keepalive_timeout = intval; ceph_parse_options()
445 opt->osd_idle_ttl = intval; ceph_parse_options()
448 opt->mount_timeout = intval; ceph_parse_options()
/linux-4.1.27/drivers/s390/block/
H A Ddasd_ioctl.c464 int intval, rc; dasd_ioctl_set_ro() local
471 if (get_user(intval, (int __user *)argp)) dasd_ioctl_set_ro()
476 if (!intval && test_bit(DASD_FLAG_DEVICE_RO, &base->flags)) { dasd_ioctl_set_ro()
480 set_disk_ro(bdev->bd_disk, intval); dasd_ioctl_set_ro()
481 rc = dasd_set_feature(base->cdev, DASD_FEATURE_READONLY, intval); dasd_ioctl_set_ro()
/linux-4.1.27/drivers/net/wireless/ath/ath5k/
H A Dpcu.c730 * @intval: timers are increased by this interval
739 ath5k_check_timer_win(int a, int b, int window, int intval) ath5k_check_timer_win() argument
748 (a - b == intval - window) || /* 2.) */ ath5k_check_timer_win()
749 ((a | 0x10000) - b == intval - window) || /* 3.) */ ath5k_check_timer_win()
758 * @intval: beacon interval
795 ath5k_hw_check_beacon_timers(struct ath5k_hw *ah, int intval) ath5k_hw_check_beacon_timers() argument
807 if (ath5k_check_timer_win(nbtt, atim, 1, intval) && ath5k_hw_check_beacon_timers()
809 intval)) ath5k_hw_check_beacon_timers()
H A Dbase.c1975 "tsf %llx tsftu %x intval %u slot %u vif %p\n", ath5k_beacon_send()
2049 u32 nexttbtt, intval, hw_tu, bc_tu; ath5k_beacon_update_timers() local
2052 intval = ah->bintval & AR5K_BEACON_PERIOD; ath5k_beacon_update_timers()
2055 intval /= ATH_BCBUF; /* staggered multi-bss beacons */ ath5k_beacon_update_timers()
2056 if (intval < 15) ath5k_beacon_update_timers()
2057 ATH5K_WARN(ah, "intval %u is too low, min 15\n", ath5k_beacon_update_timers()
2058 intval); ath5k_beacon_update_timers()
2060 if (WARN_ON(!intval)) ath5k_beacon_update_timers()
2080 nexttbtt = roundup(hw_tu + FUDGE, intval); ath5k_beacon_update_timers()
2086 nexttbtt = intval; ath5k_beacon_update_timers()
2087 intval |= AR5K_BEACON_RESET_TSF; ath5k_beacon_update_timers()
2107 nexttbtt = bc_tu + roundup(hw_tu + FUDGE - bc_tu, intval); ath5k_beacon_update_timers()
2113 intval |= AR5K_BEACON_ENA; ath5k_beacon_update_timers()
2114 ath5k_hw_init_beacon_timers(ah, nexttbtt, intval); ath5k_beacon_update_timers()
2134 ATH5K_DBG_UNLIMIT(ah, ATH5K_DEBUG_BEACON, "intval %u %s %s\n", ath5k_beacon_update_timers()
2135 intval & AR5K_BEACON_PERIOD, ath5k_beacon_update_timers()
2136 intval & AR5K_BEACON_ENA ? "AR5K_BEACON_ENA" : "", ath5k_beacon_update_timers()
2137 intval & AR5K_BEACON_RESET_TSF ? "AR5K_BEACON_RESET_TSF" : ""); ath5k_beacon_update_timers()
H A Dath5k.h1556 bool ath5k_hw_check_beacon_timers(struct ath5k_hw *ah, int intval);
/linux-4.1.27/drivers/hid/
H A Dwacom_sys.c969 val->intval = wacom->wacom_wac.bat_connected; wacom_battery_get_property()
972 val->intval = POWER_SUPPLY_SCOPE_DEVICE; wacom_battery_get_property()
975 val->intval = wacom_battery_get_property()
980 val->intval = POWER_SUPPLY_STATUS_CHARGING; wacom_battery_get_property()
983 val->intval = POWER_SUPPLY_STATUS_FULL; wacom_battery_get_property()
985 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; wacom_battery_get_property()
987 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; wacom_battery_get_property()
1008 val->intval = wacom->wacom_wac.ps_connected; wacom_ac_get_property()
1011 val->intval = POWER_SUPPLY_SCOPE_DEVICE; wacom_ac_get_property()
H A Dhid-sony.c1698 val->intval = 1; sony_battery_get_property()
1701 val->intval = POWER_SUPPLY_SCOPE_DEVICE; sony_battery_get_property()
1704 val->intval = battery_capacity; sony_battery_get_property()
1708 val->intval = POWER_SUPPLY_STATUS_CHARGING; sony_battery_get_property()
1711 val->intval = POWER_SUPPLY_STATUS_FULL; sony_battery_get_property()
1713 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; sony_battery_get_property()
H A Dhid-input.c349 val->intval = 1; hidinput_get_battery_property()
373 val->intval = (100 * (buf[1] - dev->battery_min)) / hidinput_get_battery_property()
383 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; hidinput_get_battery_property()
387 val->intval = POWER_SUPPLY_SCOPE_DEVICE; hidinput_get_battery_property()
H A Dhid-wiimote-modules.c211 val->intval = POWER_SUPPLY_SCOPE_DEVICE; wiimod_battery_get_property()
233 val->intval = state * 100 / 255; wiimod_battery_get_property()
/linux-4.1.27/include/linux/
H A Dpower_supply.h173 int intval; member in union:power_supply_propval
/linux-4.1.27/drivers/media/dvb-frontends/
H A Dstb0899_algo.c804 u32 dec_ratio, dec_rate, decim, remain, intval, btr_nom_freq; stb0899_dvbs2_calc_srate() local
815 intval = (decim * (1 << (config->btr_nco_bits - 1))) / master_clk; stb0899_dvbs2_calc_srate()
818 intval = (1 << (config->btr_nco_bits - 1)) / (master_clk / 100) * decim / 100; stb0899_dvbs2_calc_srate()
821 btr_nom_freq = (intval * srate) + ((remain * srate) / master_clk); stb0899_dvbs2_calc_srate()
/linux-4.1.27/drivers/rapidio/devices/
H A Dtsi721.c471 u32 intval; tsi721_irqhandler() local
488 intval = ioread32(priv->regs + tsi721_irqhandler()
490 if (intval & TSI721_SR_CHINT_IDBQRCV) tsi721_irqhandler()
494 "Unsupported SR_CH_INT %x\n", intval); tsi721_irqhandler()
497 iowrite32(intval, tsi721_irqhandler()
546 intval = ioread32(priv->regs + TSI721_RIO_EM_INT_STAT); tsi721_irqhandler()
547 if (intval & TSI721_RIO_EM_INT_STAT_PW_RX) tsi721_irqhandler()
/linux-4.1.27/fs/ocfs2/dlm/
H A Ddlmdomain.c795 *wire = be32_to_cpu(response.intval); dlm_query_join_packet_to_wire()
803 response.intval = cpu_to_be32(wire); dlm_query_join_wire_to_packet()
H A Ddlmcommon.h682 __be32 intval; member in union:dlm_query_join_response
/linux-4.1.27/drivers/char/ipmi/
H A Dipmi_watchdog.c217 typedef int (*action_fn)(const char *intval, char *outval);
/linux-4.1.27/drivers/block/
H A Drbd.c764 int token, intval, ret; parse_rbd_opts_token() local
771 ret = match_int(&argstr[0], &intval); parse_rbd_opts_token()
777 dout("got int token %d val %d\n", token, intval); parse_rbd_opts_token()

Completed in 1563 milliseconds