intval 141 drivers/acpi/ac.c val->intval = ac->state; intval 231 drivers/acpi/battery.c val->intval = acpi_battery_handle_discharging(battery); intval 233 drivers/acpi/battery.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 235 drivers/acpi/battery.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 237 drivers/acpi/battery.c val->intval = POWER_SUPPLY_STATUS_UNKNOWN; intval 240 drivers/acpi/battery.c val->intval = acpi_battery_present(battery); intval 243 drivers/acpi/battery.c val->intval = acpi_battery_technology(battery); intval 246 drivers/acpi/battery.c val->intval = battery->cycle_count; intval 252 drivers/acpi/battery.c val->intval = battery->design_voltage * 1000; intval 258 drivers/acpi/battery.c val->intval = battery->voltage_now * 1000; intval 265 drivers/acpi/battery.c val->intval = battery->rate_now * 1000; intval 272 drivers/acpi/battery.c val->intval = battery->design_capacity * 1000; intval 279 drivers/acpi/battery.c val->intval = battery->full_charge_capacity * 1000; intval 286 drivers/acpi/battery.c val->intval = battery->capacity_now * 1000; intval 298 drivers/acpi/battery.c val->intval = battery->capacity_now * 100/ intval 303 drivers/acpi/battery.c val->intval = POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL; intval 306 drivers/acpi/battery.c val->intval = POWER_SUPPLY_CAPACITY_LEVEL_LOW; intval 308 drivers/acpi/battery.c val->intval = POWER_SUPPLY_CAPACITY_LEVEL_FULL; intval 310 drivers/acpi/battery.c val->intval = POWER_SUPPLY_CAPACITY_LEVEL_NORMAL; intval 141 drivers/acpi/sbs.c val->intval = sbs->charger_present; intval 175 drivers/acpi/sbs.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 177 drivers/acpi/sbs.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 179 drivers/acpi/sbs.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 182 drivers/acpi/sbs.c val->intval = battery->present; intval 185 drivers/acpi/sbs.c val->intval = acpi_battery_technology(battery); intval 188 drivers/acpi/sbs.c val->intval = battery->cycle_count; intval 191 drivers/acpi/sbs.c val->intval = battery->design_voltage * intval 195 drivers/acpi/sbs.c val->intval = battery->voltage_now * intval 200 drivers/acpi/sbs.c val->intval = abs(battery->rate_now) * intval 202 drivers/acpi/sbs.c val->intval *= (acpi_battery_mode(battery)) ? intval 208 drivers/acpi/sbs.c val->intval = abs(battery->rate_avg) * intval 210 drivers/acpi/sbs.c val->intval *= (acpi_battery_mode(battery)) ? intval 215 drivers/acpi/sbs.c val->intval = battery->state_of_charge; intval 219 drivers/acpi/sbs.c val->intval = battery->design_capacity * intval 224 drivers/acpi/sbs.c val->intval = battery->full_charge_capacity * intval 229 drivers/acpi/sbs.c val->intval = battery->capacity_now * intval 233 drivers/acpi/sbs.c val->intval = battery->temp_now - 2730; // dK -> dC intval 883 drivers/block/rbd.c int token, intval, ret; intval 887 drivers/block/rbd.c ret = match_int(&argstr[0], &intval); intval 892 drivers/block/rbd.c dout("got int token %d val %d\n", token, intval); intval 901 drivers/block/rbd.c if (intval < 1) { intval 905 drivers/block/rbd.c pctx->opts->queue_depth = intval; intval 908 drivers/block/rbd.c if (intval < SECTOR_SIZE) { intval 912 drivers/block/rbd.c if (!is_power_of_2(intval)) { intval 916 drivers/block/rbd.c pctx->opts->alloc_size = intval; intval 920 drivers/block/rbd.c if (intval < 0 || intval > INT_MAX / 1000) { intval 924 drivers/block/rbd.c pctx->opts->lock_timeout = msecs_to_jiffies(intval * 1000); intval 201 drivers/char/ipmi/ipmi_watchdog.c typedef int (*action_fn)(const char *intval, char *outval); intval 153 drivers/gpu/drm/rockchip/cdn-dp-core.c if (property.intval) intval 418 drivers/gpu/drm/rockchip/cdn-dp-core.c ret = cdn_dp_set_host_cap(dp, port->lanes, property.intval); intval 549 drivers/hid/hid-asus.c val->intval = drvdata->battery_stat; intval 551 drivers/hid/hid-asus.c val->intval = drvdata->battery_capacity; intval 554 drivers/hid/hid-asus.c val->intval = 1; intval 557 drivers/hid/hid-asus.c val->intval = POWER_SUPPLY_SCOPE_DEVICE; intval 380 drivers/hid/hid-input.c val->intval = 1; intval 393 drivers/hid/hid-input.c val->intval = value; intval 412 drivers/hid/hid-input.c val->intval = POWER_SUPPLY_STATUS_UNKNOWN; intval 414 drivers/hid/hid-input.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 416 drivers/hid/hid-input.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 420 drivers/hid/hid-input.c val->intval = POWER_SUPPLY_SCOPE_DEVICE; intval 1245 drivers/hid/hid-logitech-hidpp.c val->intval = hidpp->battery.status; intval 1248 drivers/hid/hid-logitech-hidpp.c val->intval = hidpp->battery.capacity; intval 1251 drivers/hid/hid-logitech-hidpp.c val->intval = hidpp->battery.level; intval 1254 drivers/hid/hid-logitech-hidpp.c val->intval = POWER_SUPPLY_SCOPE_DEVICE; intval 1257 drivers/hid/hid-logitech-hidpp.c val->intval = hidpp->battery.online; intval 2313 drivers/hid/hid-sony.c val->intval = 1; intval 2316 drivers/hid/hid-sony.c val->intval = POWER_SUPPLY_SCOPE_DEVICE; intval 2319 drivers/hid/hid-sony.c val->intval = battery_capacity; intval 2323 drivers/hid/hid-sony.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 2326 drivers/hid/hid-sony.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 2328 drivers/hid/hid-sony.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 328 drivers/hid/hid-steam.c val->intval = 1; intval 331 drivers/hid/hid-steam.c val->intval = POWER_SUPPLY_SCOPE_DEVICE; intval 334 drivers/hid/hid-steam.c val->intval = volts * 1000; /* mV -> uV */ intval 337 drivers/hid/hid-steam.c val->intval = batt; intval 208 drivers/hid/hid-wiimote-modules.c val->intval = POWER_SUPPLY_SCOPE_DEVICE; intval 230 drivers/hid/hid-wiimote-modules.c val->intval = state * 100 / 255; intval 1699 drivers/hid/wacom_sys.c val->intval = battery->bat_connected; intval 1702 drivers/hid/wacom_sys.c val->intval = POWER_SUPPLY_SCOPE_DEVICE; intval 1705 drivers/hid/wacom_sys.c val->intval = battery->battery_capacity; intval 1709 drivers/hid/wacom_sys.c val->intval = battery->bat_status; intval 1711 drivers/hid/wacom_sys.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 1714 drivers/hid/wacom_sys.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 1716 drivers/hid/wacom_sys.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 1718 drivers/hid/wacom_sys.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 792 drivers/media/dvb-frontends/stb0899_algo.c u32 dec_ratio, dec_rate, decim, remain, intval, btr_nom_freq; intval 803 drivers/media/dvb-frontends/stb0899_algo.c intval = (decim * (1 << (config->btr_nco_bits - 1))) / master_clk; intval 806 drivers/media/dvb-frontends/stb0899_algo.c intval = (1 << (config->btr_nco_bits - 1)) / (master_clk / 100) * decim / 100; intval 809 drivers/media/dvb-frontends/stb0899_algo.c btr_nom_freq = (intval * srate) + ((remain * srate) / master_clk); intval 59 drivers/mfd/ab8500-sysctrl.c if (!ret && val.intval) { intval 73 drivers/mfd/ab8500-sysctrl.c if (!ret && val.intval != POWER_SUPPLY_TECHNOLOGY_UNKNOWN) { intval 2506 drivers/net/ethernet/intel/i40e/i40e_txrx.c u32 intval; intval 2528 drivers/net/ethernet/intel/i40e/i40e_txrx.c intval = i40e_buildreg_itr(I40E_RX_ITR, intval 2538 drivers/net/ethernet/intel/i40e/i40e_txrx.c intval = i40e_buildreg_itr(I40E_TX_ITR, intval 2544 drivers/net/ethernet/intel/i40e/i40e_txrx.c intval = i40e_buildreg_itr(I40E_RX_ITR, intval 2550 drivers/net/ethernet/intel/i40e/i40e_txrx.c intval = i40e_buildreg_itr(I40E_ITR_NONE, 0); intval 2556 drivers/net/ethernet/intel/i40e/i40e_txrx.c wr32(hw, INTREG(q_vector->reg_idx), intval); intval 1647 drivers/net/ethernet/intel/iavf/iavf_txrx.c u32 intval; intval 1663 drivers/net/ethernet/intel/iavf/iavf_txrx.c intval = iavf_buildreg_itr(IAVF_RX_ITR, intval 1673 drivers/net/ethernet/intel/iavf/iavf_txrx.c intval = iavf_buildreg_itr(IAVF_TX_ITR, intval 1679 drivers/net/ethernet/intel/iavf/iavf_txrx.c intval = iavf_buildreg_itr(IAVF_RX_ITR, intval 1685 drivers/net/ethernet/intel/iavf/iavf_txrx.c intval = iavf_buildreg_itr(IAVF_ITR_NONE, 0); intval 1691 drivers/net/ethernet/intel/iavf/iavf_txrx.c wr32(hw, INTREG(q_vector->reg_idx), intval); intval 1557 drivers/net/wireless/ath/ath5k/ath5k.h bool ath5k_hw_check_beacon_timers(struct ath5k_hw *ah, int intval); intval 2048 drivers/net/wireless/ath/ath5k/base.c u32 nexttbtt, intval, hw_tu, bc_tu; intval 2051 drivers/net/wireless/ath/ath5k/base.c intval = ah->bintval & AR5K_BEACON_PERIOD; intval 2054 drivers/net/wireless/ath/ath5k/base.c intval /= ATH_BCBUF; /* staggered multi-bss beacons */ intval 2055 drivers/net/wireless/ath/ath5k/base.c if (intval < 15) intval 2057 drivers/net/wireless/ath/ath5k/base.c intval); intval 2059 drivers/net/wireless/ath/ath5k/base.c if (WARN_ON(!intval)) intval 2079 drivers/net/wireless/ath/ath5k/base.c nexttbtt = roundup(hw_tu + FUDGE, intval); intval 2085 drivers/net/wireless/ath/ath5k/base.c nexttbtt = intval; intval 2086 drivers/net/wireless/ath/ath5k/base.c intval |= AR5K_BEACON_RESET_TSF; intval 2106 drivers/net/wireless/ath/ath5k/base.c nexttbtt = bc_tu + roundup(hw_tu + FUDGE - bc_tu, intval); intval 2112 drivers/net/wireless/ath/ath5k/base.c intval |= AR5K_BEACON_ENA; intval 2113 drivers/net/wireless/ath/ath5k/base.c ath5k_hw_init_beacon_timers(ah, nexttbtt, intval); intval 2134 drivers/net/wireless/ath/ath5k/base.c intval & AR5K_BEACON_PERIOD, intval 2135 drivers/net/wireless/ath/ath5k/base.c intval & AR5K_BEACON_ENA ? "AR5K_BEACON_ENA" : "", intval 2136 drivers/net/wireless/ath/ath5k/base.c intval & AR5K_BEACON_RESET_TSF ? "AR5K_BEACON_RESET_TSF" : ""); intval 740 drivers/net/wireless/ath/ath5k/pcu.c ath5k_check_timer_win(int a, int b, int window, int intval) intval 749 drivers/net/wireless/ath/ath5k/pcu.c (a - b == intval - window) || /* 2.) */ intval 750 drivers/net/wireless/ath/ath5k/pcu.c ((a | 0x10000) - b == intval - window) || /* 3.) */ intval 796 drivers/net/wireless/ath/ath5k/pcu.c ath5k_hw_check_beacon_timers(struct ath5k_hw *ah, int intval) intval 808 drivers/net/wireless/ath/ath5k/pcu.c if (ath5k_check_timer_win(nbtt, atim, 1, intval) && intval 810 drivers/net/wireless/ath/ath5k/pcu.c intval)) intval 310 drivers/net/wireless/ath/ath9k/beacon.c u16 intval; intval 322 drivers/net/wireless/ath/ath9k/beacon.c intval = cur_conf->beacon_interval ? : ATH_DEFAULT_BINTVAL; intval 326 drivers/net/wireless/ath/ath9k/beacon.c slot = (tsftu % (intval * ATH_BCBUF)) / intval; intval 514 drivers/net/wireless/ath/ath9k/beacon.c u32 intval) intval 520 drivers/net/wireless/ath/ath9k/beacon.c ath9k_hw_beaconinit(ah, nexttbtt, intval); intval 547 drivers/net/wireless/ath/ath9k/beacon.c ath9k_beacon_init(sc, conf->nexttbtt, conf->intval); intval 576 drivers/net/wireless/ath/ath9k/beacon.c ath9k_beacon_init(sc, conf->nexttbtt, conf->intval); intval 57 drivers/net/wireless/ath/ath9k/common-beacon.c conf->intval = conf->beacon_interval; intval 63 drivers/net/wireless/ath/ath9k/common-beacon.c dtim_intval = conf->intval * conf->dtim_period; intval 70 drivers/net/wireless/ath/ath9k/common-beacon.c conf->nexttbtt = ath9k_get_next_tbtt(ah, tsf, conf->intval); intval 72 drivers/net/wireless/ath/ath9k/common-beacon.c bs->bs_intval = TU_TO_USEC(conf->intval); intval 85 drivers/net/wireless/ath/ath9k/common-beacon.c bs->bs_bmissthreshold = DIV_ROUND_UP(conf->bmiss_timeout, conf->intval); intval 101 drivers/net/wireless/ath/ath9k/common-beacon.c conf->intval)); intval 119 drivers/net/wireless/ath/ath9k/common-beacon.c conf->intval = TU_TO_USEC(conf->beacon_interval); intval 122 drivers/net/wireless/ath/ath9k/common-beacon.c conf->nexttbtt = conf->intval; intval 135 drivers/net/wireless/ath/ath9k/common-beacon.c conf->nexttbtt, conf->intval, conf->beacon_interval); intval 151 drivers/net/wireless/ath/ath9k/common-beacon.c conf->intval = TU_TO_USEC(conf->beacon_interval); intval 152 drivers/net/wireless/ath/ath9k/common-beacon.c conf->intval /= bc_buf; intval 164 drivers/net/wireless/ath/ath9k/common-beacon.c conf->nexttbtt, conf->intval, conf->beacon_interval); intval 61 drivers/net/wireless/ath/ath9k/common.h u32 intval; intval 77 drivers/net/wireless/ath/ath9k/htc_drv_beacon.c if (conf->intval >= TU_TO_USEC(DEFAULT_SWBA_RESPONSE)) intval 86 drivers/net/wireless/ath/ath9k/htc_drv_beacon.c ath9k_hw_beaconinit(ah, conf->nexttbtt, conf->intval); intval 270 drivers/net/wireless/ath/ath9k/htc_drv_beacon.c u16 intval; intval 273 drivers/net/wireless/ath/ath9k/htc_drv_beacon.c intval = priv->cur_beacon_conf.beacon_interval; intval 277 drivers/net/wireless/ath/ath9k/htc_drv_beacon.c slot = ((tsftu % intval) * ATH9K_HTC_MAX_BCN_VIF) / intval; intval 282 drivers/net/wireless/ath/ath9k/htc_drv_beacon.c slot, tsf, tsftu, intval); intval 144 drivers/net/wireless/mediatek/mt76/mt7603/beacon.c void mt7603_beacon_set_timer(struct mt7603_dev *dev, int idx, int intval) intval 149 drivers/net/wireless/mediatek/mt76/mt7603/beacon.c if (intval) intval 155 drivers/net/wireless/mediatek/mt76/mt7603/beacon.c if (!dev->mt76.beacon_mask || (!intval && idx < 0)) { intval 162 drivers/net/wireless/mediatek/mt76/mt7603/beacon.c dev->mt76.beacon_int = intval; intval 164 drivers/net/wireless/mediatek/mt76/mt7603/beacon.c FIELD_PREP(MT_TBTT_PERIOD, intval) | MT_TBTT_CAL_ENABLE); intval 199 drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h void mt7603_beacon_set_timer(struct mt7603_dev *dev, int idx, int intval); intval 390 drivers/phy/allwinner/phy-sun4i-usb.c return val.intval; intval 838 drivers/phy/rockchip/phy-rockchip-typec.c if (property.intval) intval 849 drivers/phy/rockchip/phy-rockchip-typec.c tcphy->flip = property.intval ? 1 : 0; intval 561 drivers/platform/x86/compal-laptop.c val->intval = bat_status(); intval 564 drivers/platform/x86/compal-laptop.c val->intval = bat_health(); intval 567 drivers/platform/x86/compal-laptop.c val->intval = bat_is_present(); intval 570 drivers/platform/x86/compal-laptop.c val->intval = bat_technology(); intval 573 drivers/platform/x86/compal-laptop.c val->intval = ec_read_u16(BAT_VOLTAGE_DESIGN) * 1000; intval 576 drivers/platform/x86/compal-laptop.c val->intval = ec_read_u16(BAT_VOLTAGE_NOW) * 1000; intval 579 drivers/platform/x86/compal-laptop.c val->intval = ec_read_s16(BAT_CURRENT_NOW) * 1000; intval 582 drivers/platform/x86/compal-laptop.c val->intval = ec_read_s16(BAT_CURRENT_AVG) * 1000; intval 585 drivers/platform/x86/compal-laptop.c val->intval = ec_read_u8(BAT_POWER) * 1000000; intval 588 drivers/platform/x86/compal-laptop.c val->intval = ec_read_u16(BAT_CHARGE_DESIGN) * 1000; intval 591 drivers/platform/x86/compal-laptop.c val->intval = ec_read_u16(BAT_CHARGE_NOW) * 1000; intval 594 drivers/platform/x86/compal-laptop.c val->intval = ec_read_u8(BAT_CHARGE_LIMIT); intval 597 drivers/platform/x86/compal-laptop.c val->intval = BAT_CHARGE_LIMIT_MAX; intval 600 drivers/platform/x86/compal-laptop.c val->intval = ec_read_u8(BAT_CAPACITY); intval 603 drivers/platform/x86/compal-laptop.c val->intval = bat_capacity_level(); intval 611 drivers/platform/x86/compal-laptop.c val->intval = ((222 - (int)ec_read_u8(BAT_TEMP)) * 1000) >> 8; intval 614 drivers/platform/x86/compal-laptop.c val->intval = ec_read_s8(BAT_TEMP_AVG) * 10; intval 640 drivers/platform/x86/compal-laptop.c level = val->intval; intval 813 drivers/power/supply/88pm860x_battery.c val->intval = info->present; intval 826 drivers/power/supply/88pm860x_battery.c val->intval = data; intval 829 drivers/power/supply/88pm860x_battery.c val->intval = POWER_SUPPLY_TECHNOLOGY_LION; intval 836 drivers/power/supply/88pm860x_battery.c val->intval = data * 1000; intval 843 drivers/power/supply/88pm860x_battery.c val->intval = data * 1000; intval 849 drivers/power/supply/88pm860x_battery.c val->intval = data; intval 861 drivers/power/supply/88pm860x_battery.c val->intval = data; intval 302 drivers/power/supply/88pm860x_charger.c vbatt = data.intval / 1000; intval 312 drivers/power/supply/88pm860x_charger.c info->present = data.intval; intval 439 drivers/power/supply/88pm860x_charger.c value = temp.intval / 10; intval 496 drivers/power/supply/88pm860x_charger.c vbatt = val.intval / 1000; intval 601 drivers/power/supply/88pm860x_charger.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 603 drivers/power/supply/88pm860x_charger.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 606 drivers/power/supply/88pm860x_charger.c val->intval = info->online; intval 829 drivers/power/supply/ab8500_btemp.c val->intval = 0; intval 831 drivers/power/supply/ab8500_btemp.c val->intval = 1; intval 834 drivers/power/supply/ab8500_btemp.c val->intval = di->bm->bat_type[di->bm->batt_id].name; intval 837 drivers/power/supply/ab8500_btemp.c val->intval = ab8500_btemp_get_temp(di); intval 878 drivers/power/supply/ab8500_btemp.c if (!ret.intval && di->events.ac_conn) { intval 882 drivers/power/supply/ab8500_btemp.c else if (ret.intval && !di->events.ac_conn) { intval 890 drivers/power/supply/ab8500_btemp.c if (!ret.intval && di->events.usb_conn) { intval 894 drivers/power/supply/ab8500_btemp.c else if (ret.intval && !di->events.usb_conn) { intval 1896 drivers/power/supply/ab8500_charger.c di->vbat = ret.intval / 1000; intval 2885 drivers/power/supply/ab8500_charger.c val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; intval 2887 drivers/power/supply/ab8500_charger.c val->intval = POWER_SUPPLY_HEALTH_DEAD; intval 2889 drivers/power/supply/ab8500_charger.c val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; intval 2891 drivers/power/supply/ab8500_charger.c val->intval = POWER_SUPPLY_HEALTH_GOOD; intval 2894 drivers/power/supply/ab8500_charger.c val->intval = di->ac.charger_online; intval 2897 drivers/power/supply/ab8500_charger.c val->intval = di->ac.charger_connected; intval 2904 drivers/power/supply/ab8500_charger.c val->intval = di->ac.charger_voltage * 1000; intval 2912 drivers/power/supply/ab8500_charger.c val->intval = di->ac.cv_active; intval 2918 drivers/power/supply/ab8500_charger.c val->intval = di->ac.charger_current * 1000; intval 2952 drivers/power/supply/ab8500_charger.c val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; intval 2954 drivers/power/supply/ab8500_charger.c val->intval = POWER_SUPPLY_HEALTH_DEAD; intval 2956 drivers/power/supply/ab8500_charger.c val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; intval 2958 drivers/power/supply/ab8500_charger.c val->intval = POWER_SUPPLY_HEALTH_OVERVOLTAGE; intval 2960 drivers/power/supply/ab8500_charger.c val->intval = POWER_SUPPLY_HEALTH_GOOD; intval 2963 drivers/power/supply/ab8500_charger.c val->intval = di->usb.charger_online; intval 2966 drivers/power/supply/ab8500_charger.c val->intval = di->usb.charger_connected; intval 2972 drivers/power/supply/ab8500_charger.c val->intval = di->usb.charger_voltage * 1000; intval 2980 drivers/power/supply/ab8500_charger.c val->intval = di->usb.cv_active; intval 2986 drivers/power/supply/ab8500_charger.c val->intval = di->usb.charger_current * 1000; intval 2994 drivers/power/supply/ab8500_charger.c val->intval = 1; intval 2996 drivers/power/supply/ab8500_charger.c val->intval = 0; intval 2101 drivers/power/supply/ab8500_fg.c val->intval = BATT_OVV_VALUE * 1000; intval 2103 drivers/power/supply/ab8500_fg.c val->intval = di->vbat * 1000; intval 2106 drivers/power/supply/ab8500_fg.c val->intval = di->inst_curr * 1000; intval 2109 drivers/power/supply/ab8500_fg.c val->intval = di->avg_curr * 1000; intval 2112 drivers/power/supply/ab8500_fg.c val->intval = ab8500_fg_convert_mah_to_uwh(di, intval 2116 drivers/power/supply/ab8500_fg.c val->intval = ab8500_fg_convert_mah_to_uwh(di, intval 2122 drivers/power/supply/ab8500_fg.c val->intval = ab8500_fg_convert_mah_to_uwh(di, intval 2125 drivers/power/supply/ab8500_fg.c val->intval = ab8500_fg_convert_mah_to_uwh(di, intval 2129 drivers/power/supply/ab8500_fg.c val->intval = di->bat_cap.max_mah_design; intval 2132 drivers/power/supply/ab8500_fg.c val->intval = di->bat_cap.max_mah; intval 2137 drivers/power/supply/ab8500_fg.c val->intval = di->bat_cap.max_mah; intval 2139 drivers/power/supply/ab8500_fg.c val->intval = di->bat_cap.prev_mah; intval 2144 drivers/power/supply/ab8500_fg.c val->intval = 100; intval 2146 drivers/power/supply/ab8500_fg.c val->intval = di->bat_cap.prev_percent; intval 2151 drivers/power/supply/ab8500_fg.c val->intval = POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN; intval 2153 drivers/power/supply/ab8500_fg.c val->intval = di->bat_cap.prev_level; intval 2193 drivers/power/supply/ab8500_fg.c switch (ret.intval) { intval 2250 drivers/power/supply/ab8500_fg.c if (ret.intval) intval 2263 drivers/power/supply/ab8500_fg.c di->bat_temp = ret.intval; intval 959 drivers/power/supply/abx500_chargalg.c di->batt_data.percent = ret.intval; intval 985 drivers/power/supply/abx500_chargalg.c if (ret.intval) intval 993 drivers/power/supply/abx500_chargalg.c if (!ret.intval && intval 1000 drivers/power/supply/abx500_chargalg.c else if (ret.intval && intval 1009 drivers/power/supply/abx500_chargalg.c if (!ret.intval && intval 1016 drivers/power/supply/abx500_chargalg.c else if (ret.intval && intval 1034 drivers/power/supply/abx500_chargalg.c if (!ret.intval && intval 1041 drivers/power/supply/abx500_chargalg.c else if (ret.intval && intval 1052 drivers/power/supply/abx500_chargalg.c if (!ret.intval && intval 1059 drivers/power/supply/abx500_chargalg.c else if (ret.intval && intval 1078 drivers/power/supply/abx500_chargalg.c switch (ret.intval) { intval 1116 drivers/power/supply/abx500_chargalg.c switch (ret.intval) { intval 1159 drivers/power/supply/abx500_chargalg.c di->batt_data.volt = ret.intval / 1000; intval 1162 drivers/power/supply/abx500_chargalg.c di->chg_info.ac_volt = ret.intval / 1000; intval 1165 drivers/power/supply/abx500_chargalg.c di->chg_info.usb_volt = ret.intval / 1000; intval 1177 drivers/power/supply/abx500_chargalg.c if (ret.intval) intval 1186 drivers/power/supply/abx500_chargalg.c if (ret.intval) intval 1200 drivers/power/supply/abx500_chargalg.c if (ret.intval) intval 1212 drivers/power/supply/abx500_chargalg.c di->batt_data.temp = ret.intval / 10; intval 1219 drivers/power/supply/abx500_chargalg.c ret.intval / 1000; intval 1223 drivers/power/supply/abx500_chargalg.c ret.intval / 1000; intval 1226 drivers/power/supply/abx500_chargalg.c di->batt_data.inst_curr = ret.intval / 1000; intval 1236 drivers/power/supply/abx500_chargalg.c di->batt_data.avg_curr = ret.intval / 1000; intval 1239 drivers/power/supply/abx500_chargalg.c if (ret.intval) intval 1250 drivers/power/supply/abx500_chargalg.c di->batt_data.percent = ret.intval; intval 1719 drivers/power/supply/abx500_chargalg.c val->intval = di->charge_status; intval 1723 drivers/power/supply/abx500_chargalg.c val->intval = POWER_SUPPLY_HEALTH_OVERVOLTAGE; intval 1726 drivers/power/supply/abx500_chargalg.c val->intval = POWER_SUPPLY_HEALTH_COLD; intval 1728 drivers/power/supply/abx500_chargalg.c val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; intval 1731 drivers/power/supply/abx500_chargalg.c val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; intval 1733 drivers/power/supply/abx500_chargalg.c val->intval = POWER_SUPPLY_HEALTH_GOOD; intval 352 drivers/power/supply/act8945a_charger.c ret = act8945a_get_charger_state(regmap, &val->intval); intval 355 drivers/power/supply/act8945a_charger.c ret = act8945a_get_charge_type(regmap, &val->intval); intval 358 drivers/power/supply/act8945a_charger.c val->intval = POWER_SUPPLY_TECHNOLOGY_LION; intval 361 drivers/power/supply/act8945a_charger.c ret = act8945a_get_battery_health(regmap, &val->intval); intval 365 drivers/power/supply/act8945a_charger.c regmap, &val->intval); intval 369 drivers/power/supply/act8945a_charger.c regmap, &val->intval); intval 186 drivers/power/supply/adp5061.c val->intval = adp5061_in_current_lim[mode] * 1000; intval 236 drivers/power/supply/adp5061.c val->intval = adp5061_vmin[regval] * 1000; intval 252 drivers/power/supply/adp5061.c val->intval = adp5061_const_chg_vmax[mode] * 1000; intval 271 drivers/power/supply/adp5061.c val->intval = adp5061_vmax[regval] * 1000; intval 349 drivers/power/supply/adp5061.c val->intval = adp5061_const_ichg[regval] * 1000; intval 365 drivers/power/supply/adp5061.c val->intval = adp5061_prechg_current[regval] * 1000; intval 398 drivers/power/supply/adp5061.c val->intval = adp5061_vweak_th[regval] * 1000; intval 432 drivers/power/supply/adp5061.c val->intval = POWER_SUPPLY_STATUS_UNKNOWN; intval 434 drivers/power/supply/adp5061.c val->intval = chg_type; intval 451 drivers/power/supply/adp5061.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 456 drivers/power/supply/adp5061.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 459 drivers/power/supply/adp5061.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 463 drivers/power/supply/adp5061.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 466 drivers/power/supply/adp5061.c val->intval = POWER_SUPPLY_STATUS_UNKNOWN; intval 485 drivers/power/supply/adp5061.c val->intval = POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN; intval 488 drivers/power/supply/adp5061.c val->intval = POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL; intval 491 drivers/power/supply/adp5061.c val->intval = POWER_SUPPLY_CAPACITY_LEVEL_LOW; intval 494 drivers/power/supply/adp5061.c val->intval = POWER_SUPPLY_CAPACITY_LEVEL_NORMAL; intval 512 drivers/power/supply/adp5061.c val->intval = adp5061_iend[regval]; intval 548 drivers/power/supply/adp5061.c val->intval = 0; intval 550 drivers/power/supply/adp5061.c val->intval = 1; intval 624 drivers/power/supply/adp5061.c return adp5061_set_input_current_limit(st, val->intval); intval 626 drivers/power/supply/adp5061.c return adp5061_set_max_voltage(st, val->intval); intval 628 drivers/power/supply/adp5061.c return adp5061_set_min_voltage(st, val->intval); intval 630 drivers/power/supply/adp5061.c return adp5061_set_const_chg_vmax(st, val->intval); intval 632 drivers/power/supply/adp5061.c return adp5061_set_const_chg_current(st, val->intval); intval 634 drivers/power/supply/adp5061.c return adp5061_set_prechg_current(st, val->intval); intval 636 drivers/power/supply/adp5061.c return adp5061_set_vweak_th(st, val->intval); intval 638 drivers/power/supply/adp5061.c return adp5061_set_termination_current(st, val->intval); intval 59 drivers/power/supply/apm_power.c if (bp->full.intval > bp->max_charge) { intval 61 drivers/power/supply/apm_power.c bp->max_charge = bp->full.intval; intval 65 drivers/power/supply/apm_power.c if (bp->full.intval > bp->max_energy) { intval 67 drivers/power/supply/apm_power.c bp->max_energy = bp->full.intval; intval 94 drivers/power/supply/apm_power.c if (bp.max_energy > bp.max_charge * bp.full.intval) intval 100 drivers/power/supply/apm_power.c if (bp.max_charge > bp.max_energy / bp.full.intval) intval 137 drivers/power/supply/apm_power.c if (!I.intval) intval 179 drivers/power/supply/apm_power.c empty.intval = 0; intval 189 drivers/power/supply/apm_power.c return ((cur.intval - full.intval) * 60L) / I.intval; intval 191 drivers/power/supply/apm_power.c return -((cur.intval - empty.intval) * 60L) / I.intval; intval 266 drivers/power/supply/apm_power.c empty.intval = 0; intval 269 drivers/power/supply/apm_power.c if (full.intval - empty.intval) intval 270 drivers/power/supply/apm_power.c ret = ((cur.intval - empty.intval) * 100L) / intval 271 drivers/power/supply/apm_power.c (full.intval - empty.intval); intval 298 drivers/power/supply/apm_power.c status.intval = POWER_SUPPLY_STATUS_UNKNOWN; intval 302 drivers/power/supply/apm_power.c if ((status.intval == POWER_SUPPLY_STATUS_CHARGING) || intval 303 drivers/power/supply/apm_power.c (status.intval == POWER_SUPPLY_STATUS_NOT_CHARGING) || intval 304 drivers/power/supply/apm_power.c (status.intval == POWER_SUPPLY_STATUS_FULL)) intval 312 drivers/power/supply/apm_power.c info->battery_life = capacity.intval; intval 325 drivers/power/supply/apm_power.c if (status.intval == POWER_SUPPLY_STATUS_CHARGING) { intval 341 drivers/power/supply/apm_power.c if (status.intval == POWER_SUPPLY_STATUS_CHARGING) { intval 344 drivers/power/supply/apm_power.c info->time = time_to_full.intval / 60; intval 346 drivers/power/supply/apm_power.c info->time = calculate_time(status.intval); intval 350 drivers/power/supply/apm_power.c info->time = time_to_empty.intval / 60; intval 352 drivers/power/supply/apm_power.c info->time = calculate_time(status.intval); intval 71 drivers/power/supply/axp20x_ac_power.c val->intval = POWER_SUPPLY_HEALTH_GOOD; intval 75 drivers/power/supply/axp20x_ac_power.c val->intval = POWER_SUPPLY_HEALTH_UNKNOWN; intval 83 drivers/power/supply/axp20x_ac_power.c val->intval = !!(reg & AXP20X_PWR_STATUS_ACIN_PRESENT); intval 91 drivers/power/supply/axp20x_ac_power.c val->intval = !!(reg & AXP20X_PWR_STATUS_ACIN_AVAIL); intval 94 drivers/power/supply/axp20x_ac_power.c if (val->intval && power->has_acin_path_sel) { intval 100 drivers/power/supply/axp20x_ac_power.c val->intval = !!(reg & AXP813_ACIN_PATH_SEL); intval 106 drivers/power/supply/axp20x_ac_power.c ret = iio_read_channel_processed(power->acin_v, &val->intval); intval 111 drivers/power/supply/axp20x_ac_power.c val->intval *= 1000; intval 116 drivers/power/supply/axp20x_ac_power.c ret = iio_read_channel_processed(power->acin_i, &val->intval); intval 121 drivers/power/supply/axp20x_ac_power.c val->intval *= 1000; intval 130 drivers/power/supply/axp20x_ac_power.c val->intval = AXP813_VHOLD_REG_TO_UV(reg); intval 139 drivers/power/supply/axp20x_ac_power.c val->intval = AXP813_CURR_LIMIT_REG_TO_UA(reg); intval 141 drivers/power/supply/axp20x_ac_power.c if (val->intval > 4000000) intval 142 drivers/power/supply/axp20x_ac_power.c val->intval = 4000000; intval 161 drivers/power/supply/axp20x_ac_power.c if (val->intval < 4000000 || val->intval > 4700000) intval 166 drivers/power/supply/axp20x_ac_power.c AXP813_VHOLD_UV_TO_BIT(val->intval)); intval 169 drivers/power/supply/axp20x_ac_power.c if (val->intval < 1500000 || val->intval > 4000000) intval 174 drivers/power/supply/axp20x_ac_power.c AXP813_CURR_LIMIT_UA_TO_BIT(val->intval)); intval 199 drivers/power/supply/axp20x_battery.c val->intval = !!(reg & AXP20X_PWR_OP_BATT_PRESENT); intval 209 drivers/power/supply/axp20x_battery.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 219 drivers/power/supply/axp20x_battery.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 232 drivers/power/supply/axp20x_battery.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 234 drivers/power/supply/axp20x_battery.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 244 drivers/power/supply/axp20x_battery.c val->intval = POWER_SUPPLY_HEALTH_DEAD; intval 248 drivers/power/supply/axp20x_battery.c val->intval = POWER_SUPPLY_HEALTH_GOOD; intval 253 drivers/power/supply/axp20x_battery.c &val->intval); intval 259 drivers/power/supply/axp20x_battery.c val->intval = axp20x_batt->max_ccc; intval 273 drivers/power/supply/axp20x_battery.c ret = iio_read_channel_processed(chan, &val->intval); intval 278 drivers/power/supply/axp20x_battery.c val->intval *= 1000; intval 289 drivers/power/supply/axp20x_battery.c val->intval = 100; intval 304 drivers/power/supply/axp20x_battery.c val->intval = reg & AXP209_FG_PERCENT; intval 309 drivers/power/supply/axp20x_battery.c &val->intval); intval 316 drivers/power/supply/axp20x_battery.c val->intval = 2600000 + 100000 * (reg & AXP20X_V_OFF_MASK); intval 321 drivers/power/supply/axp20x_battery.c &val->intval); intval 326 drivers/power/supply/axp20x_battery.c val->intval *= 1000; intval 460 drivers/power/supply/axp20x_battery.c return axp20x_set_voltage_min_design(axp20x_batt, val->intval); intval 463 drivers/power/supply/axp20x_battery.c return axp20x_batt->data->set_max_voltage(axp20x_batt, val->intval); intval 467 drivers/power/supply/axp20x_battery.c val->intval); intval 470 drivers/power/supply/axp20x_battery.c val->intval); intval 173 drivers/power/supply/axp20x_usb_power.c val->intval = AXP20X_VBUS_VHOLD_uV(v); intval 178 drivers/power/supply/axp20x_usb_power.c &val->intval); intval 186 drivers/power/supply/axp20x_usb_power.c val->intval *= 1000; intval 195 drivers/power/supply/axp20x_usb_power.c val->intval = ret * 1700; /* 1 step = 1.7 mV */ intval 199 drivers/power/supply/axp20x_usb_power.c return axp813_get_current_max(power, &val->intval); intval 200 drivers/power/supply/axp20x_usb_power.c return axp20x_get_current_max(power, &val->intval); intval 204 drivers/power/supply/axp20x_usb_power.c &val->intval); intval 212 drivers/power/supply/axp20x_usb_power.c val->intval *= 1000; intval 221 drivers/power/supply/axp20x_usb_power.c val->intval = ret * 375; /* 1 step = 0.375 mA */ intval 235 drivers/power/supply/axp20x_usb_power.c val->intval = POWER_SUPPLY_HEALTH_UNKNOWN; intval 239 drivers/power/supply/axp20x_usb_power.c val->intval = POWER_SUPPLY_HEALTH_GOOD; intval 248 drivers/power/supply/axp20x_usb_power.c val->intval = intval 253 drivers/power/supply/axp20x_usb_power.c val->intval = !!(input & AXP20X_PWR_STATUS_VBUS_PRESENT); intval 256 drivers/power/supply/axp20x_usb_power.c val->intval = !!(input & AXP20X_PWR_STATUS_VBUS_USED); intval 266 drivers/power/supply/axp20x_usb_power.c int intval) intval 270 drivers/power/supply/axp20x_usb_power.c switch (intval) { intval 279 drivers/power/supply/axp20x_usb_power.c val = (intval - 4000000) / 100000; intval 292 drivers/power/supply/axp20x_usb_power.c int intval) intval 296 drivers/power/supply/axp20x_usb_power.c switch (intval) { intval 305 drivers/power/supply/axp20x_usb_power.c val = (intval - 1000000) / 500000; intval 317 drivers/power/supply/axp20x_usb_power.c int intval) intval 321 drivers/power/supply/axp20x_usb_power.c switch (intval) { intval 328 drivers/power/supply/axp20x_usb_power.c val = (900000 - intval) / 400000; intval 347 drivers/power/supply/axp20x_usb_power.c return axp20x_usb_power_set_voltage_min(power, val->intval); intval 352 drivers/power/supply/axp20x_usb_power.c val->intval); intval 353 drivers/power/supply/axp20x_usb_power.c return axp20x_usb_power_set_current_max(power, val->intval); intval 367 drivers/power/supply/axp288_charger.c scaled_val = min(val->intval, info->max_cc); intval 374 drivers/power/supply/axp288_charger.c scaled_val = min(val->intval, info->max_cv); intval 381 drivers/power/supply/axp288_charger.c ret = axp288_charger_set_vbus_inlmt(info, val->intval); intval 403 drivers/power/supply/axp288_charger.c val->intval = 0; intval 409 drivers/power/supply/axp288_charger.c val->intval = ret; intval 414 drivers/power/supply/axp288_charger.c val->intval = 0; intval 420 drivers/power/supply/axp288_charger.c val->intval = ret; intval 423 drivers/power/supply/axp288_charger.c val->intval = axp288_get_charger_health(info); intval 426 drivers/power/supply/axp288_charger.c val->intval = info->cc * 1000; intval 429 drivers/power/supply/axp288_charger.c val->intval = info->max_cc * 1000; intval 432 drivers/power/supply/axp288_charger.c val->intval = info->cv * 1000; intval 435 drivers/power/supply/axp288_charger.c val->intval = info->max_cv * 1000; intval 441 drivers/power/supply/axp288_charger.c val->intval = ret; intval 445 drivers/power/supply/axp288_fuel_gauge.c val->intval = info->status; intval 448 drivers/power/supply/axp288_fuel_gauge.c val->intval = fuel_gauge_battery_health(info); intval 454 drivers/power/supply/axp288_fuel_gauge.c val->intval = PROP_VOLT(value); intval 460 drivers/power/supply/axp288_fuel_gauge.c val->intval = PROP_VOLT(value); intval 466 drivers/power/supply/axp288_fuel_gauge.c val->intval = PROP_CURR(value); intval 474 drivers/power/supply/axp288_fuel_gauge.c val->intval = 1; intval 476 drivers/power/supply/axp288_fuel_gauge.c val->intval = 0; intval 486 drivers/power/supply/axp288_fuel_gauge.c val->intval = (ret & FG_REP_CAP_VAL_MASK); intval 492 drivers/power/supply/axp288_fuel_gauge.c val->intval = (ret & 0x0f); intval 495 drivers/power/supply/axp288_fuel_gauge.c val->intval = POWER_SUPPLY_TECHNOLOGY_LION; intval 502 drivers/power/supply/axp288_fuel_gauge.c val->intval = ret * FG_DES_CAP_RES_LSB; intval 509 drivers/power/supply/axp288_fuel_gauge.c val->intval = ret * FG_DES_CAP_RES_LSB; intval 512 drivers/power/supply/axp288_fuel_gauge.c val->intval = PROP_VOLT(info->max_volt); intval 537 drivers/power/supply/axp288_fuel_gauge.c if ((val->intval < 0) || (val->intval > 15)) { intval 545 drivers/power/supply/axp288_fuel_gauge.c ret |= (val->intval & 0xf); intval 526 drivers/power/supply/bd70528-charger.c return bd70528_get_charger_status(bdpsy, &val->intval); intval 528 drivers/power/supply/bd70528-charger.c return bd70528_get_charge_type(bdpsy, &val->intval); intval 530 drivers/power/supply/bd70528-charger.c return bd70528_get_battery_health(bdpsy, &val->intval); intval 532 drivers/power/supply/bd70528-charger.c return bd70528_get_present(bdpsy, &val->intval); intval 534 drivers/power/supply/bd70528-charger.c ret = get_current_limit(bdpsy, &val->intval); intval 535 drivers/power/supply/bd70528-charger.c val->intval *= 1000; intval 538 drivers/power/supply/bd70528-charger.c ret = get_charge_current(bdpsy, &val->intval); intval 539 drivers/power/supply/bd70528-charger.c val->intval *= 1000; intval 542 drivers/power/supply/bd70528-charger.c return bd70528_get_online(bdpsy, &val->intval); intval 683 drivers/power/supply/bd70528-charger.c return set_current_limit(bdpsy, val->intval / 1000); intval 685 drivers/power/supply/bd70528-charger.c return set_charge_current(bdpsy, val->intval / 1000); intval 835 drivers/power/supply/bq2415x_charger.c if (!bq2415x_update_reported_mode(bq, prop.intval)) intval 1009 drivers/power/supply/bq2415x_charger.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 1011 drivers/power/supply/bq2415x_charger.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 1013 drivers/power/supply/bq2415x_charger.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 1015 drivers/power/supply/bq2415x_charger.c val->intval = POWER_SUPPLY_STATUS_UNKNOWN; intval 1672 drivers/power/supply/bq2415x_charger.c bq2415x_update_reported_mode(bq, prop.intval); intval 737 drivers/power/supply/bq24190_charger.c val->intval = type; intval 758 drivers/power/supply/bq24190_charger.c switch (val->intval) { intval 857 drivers/power/supply/bq24190_charger.c val->intval = health; intval 880 drivers/power/supply/bq24190_charger.c val->intval = pg_stat && !batfet_disable; intval 930 drivers/power/supply/bq24190_charger.c val->intval = ++v * 128 * 1000; intval 946 drivers/power/supply/bq24190_charger.c val->intval = ++v * 128 * 1000; intval 973 drivers/power/supply/bq24190_charger.c val->intval = curr; intval 982 drivers/power/supply/bq24190_charger.c val->intval = bq24190_ccc_ichg_values[idx]; intval 990 drivers/power/supply/bq24190_charger.c int ret, curr = val->intval; intval 1020 drivers/power/supply/bq24190_charger.c val->intval = voltage; intval 1029 drivers/power/supply/bq24190_charger.c val->intval = bq24190_cvc_vreg_values[idx]; intval 1039 drivers/power/supply/bq24190_charger.c ARRAY_SIZE(bq24190_cvc_vreg_values), val->intval); intval 1055 drivers/power/supply/bq24190_charger.c val->intval = iinlimit; intval 1066 drivers/power/supply/bq24190_charger.c ARRAY_SIZE(bq24190_isc_iinlim_values), val->intval); intval 1119 drivers/power/supply/bq24190_charger.c val->intval = POWER_SUPPLY_SCOPE_SYSTEM; intval 1306 drivers/power/supply/bq24190_charger.c val->intval = status; intval 1346 drivers/power/supply/bq24190_charger.c val->intval = health; intval 1362 drivers/power/supply/bq24190_charger.c val->intval = !batfet_disable; intval 1371 drivers/power/supply/bq24190_charger.c BQ24190_REG_MOC_BATFET_DISABLE_SHIFT, !val->intval); intval 1387 drivers/power/supply/bq24190_charger.c val->intval = temp; intval 1398 drivers/power/supply/bq24190_charger.c ARRAY_SIZE(bq24190_ictrc_treg_values), val->intval); intval 1426 drivers/power/supply/bq24190_charger.c val->intval = POWER_SUPPLY_TECHNOLOGY_UNKNOWN; intval 1433 drivers/power/supply/bq24190_charger.c val->intval = POWER_SUPPLY_SCOPE_SYSTEM; intval 280 drivers/power/supply/bq24257_charger.c val->intval = bq24257_iilimit_map[ret]; intval 297 drivers/power/supply/bq24257_charger.c bq24257_find_idx(val->intval, intval 316 drivers/power/supply/bq24257_charger.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 318 drivers/power/supply/bq24257_charger.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 320 drivers/power/supply/bq24257_charger.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 322 drivers/power/supply/bq24257_charger.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 324 drivers/power/supply/bq24257_charger.c val->intval = POWER_SUPPLY_STATUS_UNKNOWN; intval 336 drivers/power/supply/bq24257_charger.c val->intval = state.power_good; intval 342 drivers/power/supply/bq24257_charger.c val->intval = POWER_SUPPLY_HEALTH_GOOD; intval 347 drivers/power/supply/bq24257_charger.c val->intval = POWER_SUPPLY_HEALTH_OVERVOLTAGE; intval 352 drivers/power/supply/bq24257_charger.c val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; intval 356 drivers/power/supply/bq24257_charger.c val->intval = POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE; intval 360 drivers/power/supply/bq24257_charger.c val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; intval 367 drivers/power/supply/bq24257_charger.c val->intval = bq24257_ichg_map[bq->init_data.ichg]; intval 371 drivers/power/supply/bq24257_charger.c val->intval = bq24257_ichg_map[BQ24257_ICHG_MAP_SIZE - 1]; intval 375 drivers/power/supply/bq24257_charger.c val->intval = bq24257_vbat_map[bq->init_data.vbat]; intval 379 drivers/power/supply/bq24257_charger.c val->intval = bq24257_vbat_map[BQ24257_VBAT_MAP_SIZE - 1]; intval 383 drivers/power/supply/bq24257_charger.c val->intval = bq24257_iterm_map[bq->init_data.iterm]; intval 260 drivers/power/supply/bq24735-charger.c val->intval = bq24735_charger_is_present(charger) ? 1 : 0; intval 265 drivers/power/supply/bq24735-charger.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 268 drivers/power/supply/bq24735-charger.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 271 drivers/power/supply/bq24735-charger.c val->intval = POWER_SUPPLY_STATUS_UNKNOWN; intval 291 drivers/power/supply/bq24735-charger.c switch (val->intval) { intval 376 drivers/power/supply/bq25890_charger.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 378 drivers/power/supply/bq25890_charger.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 381 drivers/power/supply/bq25890_charger.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 383 drivers/power/supply/bq25890_charger.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 385 drivers/power/supply/bq25890_charger.c val->intval = POWER_SUPPLY_STATUS_UNKNOWN; intval 406 drivers/power/supply/bq25890_charger.c val->intval = state.online; intval 411 drivers/power/supply/bq25890_charger.c val->intval = POWER_SUPPLY_HEALTH_GOOD; intval 413 drivers/power/supply/bq25890_charger.c val->intval = POWER_SUPPLY_HEALTH_OVERVOLTAGE; intval 415 drivers/power/supply/bq25890_charger.c val->intval = POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE; intval 417 drivers/power/supply/bq25890_charger.c val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; intval 419 drivers/power/supply/bq25890_charger.c val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; intval 428 drivers/power/supply/bq25890_charger.c val->intval = ret * 50000; intval 432 drivers/power/supply/bq25890_charger.c val->intval = bq25890_find_val(bq->init_data.ichg, TBL_ICHG); intval 437 drivers/power/supply/bq25890_charger.c val->intval = 0; intval 446 drivers/power/supply/bq25890_charger.c val->intval = 2304000 + ret * 20000; intval 450 drivers/power/supply/bq25890_charger.c val->intval = bq25890_find_val(bq->init_data.vreg, TBL_VREG); intval 454 drivers/power/supply/bq25890_charger.c val->intval = bq25890_find_val(bq->init_data.iterm, TBL_ITERM); intval 463 drivers/power/supply/bq25890_charger.c val->intval = 2304000 + ret * 20000; intval 1662 drivers/power/supply/bq27xxx_battery.c val->intval = curr * BQ27XXX_CURRENT_CONSTANT / BQ27XXX_RS; intval 1665 drivers/power/supply/bq27xxx_battery.c val->intval = (int)((s16)curr) * 1000; intval 1694 drivers/power/supply/bq27xxx_battery.c val->intval = status; intval 1724 drivers/power/supply/bq27xxx_battery.c val->intval = level; intval 1744 drivers/power/supply/bq27xxx_battery.c val->intval = volt * 1000; intval 1755 drivers/power/supply/bq27xxx_battery.c val->intval = value; intval 1785 drivers/power/supply/bq27xxx_battery.c val->intval = di->cache.flags < 0 ? 0 : 1; intval 1799 drivers/power/supply/bq27xxx_battery.c val->intval -= 2731; /* convert decidegree k to c */ intval 1811 drivers/power/supply/bq27xxx_battery.c val->intval = POWER_SUPPLY_TECHNOLOGY_LION; intval 106 drivers/power/supply/charger-manager.c if (ret == 0 && val.intval) intval 123 drivers/power/supply/charger-manager.c if (ret == 0 && val.intval) { intval 161 drivers/power/supply/charger-manager.c if (ret == 0 && val.intval) { intval 194 drivers/power/supply/charger-manager.c *uV = val.intval; intval 237 drivers/power/supply/charger-manager.c if (val.intval == 0) { intval 254 drivers/power/supply/charger-manager.c if (val.intval == POWER_SUPPLY_STATUS_FULL || intval 255 drivers/power/supply/charger-manager.c val.intval == POWER_SUPPLY_STATUS_DISCHARGING || intval 256 drivers/power/supply/charger-manager.c val.intval == POWER_SUPPLY_STATUS_NOT_CHARGING) intval 289 drivers/power/supply/charger-manager.c val.intval = 0; intval 294 drivers/power/supply/charger-manager.c if (!ret && val.intval > desc->fullbatt_full_capacity) { intval 311 drivers/power/supply/charger-manager.c val.intval = 0; intval 315 drivers/power/supply/charger-manager.c if (!ret && val.intval >= desc->fullbatt_soc) { intval 895 drivers/power/supply/charger-manager.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 897 drivers/power/supply/charger-manager.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 899 drivers/power/supply/charger-manager.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 903 drivers/power/supply/charger-manager.c val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; intval 905 drivers/power/supply/charger-manager.c val->intval = POWER_SUPPLY_HEALTH_COLD; intval 907 drivers/power/supply/charger-manager.c val->intval = POWER_SUPPLY_HEALTH_GOOD; intval 911 drivers/power/supply/charger-manager.c val->intval = 1; intval 913 drivers/power/supply/charger-manager.c val->intval = 0; intval 916 drivers/power/supply/charger-manager.c ret = get_batt_uV(cm, &val->intval); intval 929 drivers/power/supply/charger-manager.c return cm_get_battery_temperature(cm, &val->intval); intval 933 drivers/power/supply/charger-manager.c val->intval = 100; intval 948 drivers/power/supply/charger-manager.c if (val->intval > 100) { intval 949 drivers/power/supply/charger-manager.c val->intval = 100; intval 952 drivers/power/supply/charger-manager.c if (val->intval < 0) intval 953 drivers/power/supply/charger-manager.c val->intval = 0; intval 972 drivers/power/supply/charger-manager.c val->intval = 100; intval 979 drivers/power/supply/charger-manager.c val->intval = 1; intval 981 drivers/power/supply/charger-manager.c val->intval = 0; intval 985 drivers/power/supply/charger-manager.c val->intval = 1; intval 987 drivers/power/supply/charger-manager.c val->intval = 0; intval 1003 drivers/power/supply/charger-manager.c val->intval = 1; intval 1007 drivers/power/supply/charger-manager.c val->intval = (val->intval > 0) ? intval 1008 drivers/power/supply/charger-manager.c val->intval : 1; intval 1011 drivers/power/supply/charger-manager.c val->intval = 0; intval 105 drivers/power/supply/collie_battery.c val->intval = bat->status; intval 108 drivers/power/supply/collie_battery.c val->intval = bat->technology; intval 111 drivers/power/supply/collie_battery.c val->intval = collie_read_bat(bat); intval 115 drivers/power/supply/collie_battery.c val->intval = bat->bat_max; intval 117 drivers/power/supply/collie_battery.c val->intval = bat->full_chrg; intval 120 drivers/power/supply/collie_battery.c val->intval = bat->bat_max; intval 123 drivers/power/supply/collie_battery.c val->intval = bat->bat_min; intval 126 drivers/power/supply/collie_battery.c val->intval = collie_read_temp(bat); intval 129 drivers/power/supply/collie_battery.c val->intval = bat->is_present ? bat->is_present(bat) : 1; intval 452 drivers/power/supply/cpcap-battery.c val->intval = 1; intval 454 drivers/power/supply/cpcap-battery.c val->intval = 0; intval 458 drivers/power/supply/cpcap-battery.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 462 drivers/power/supply/cpcap-battery.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 464 drivers/power/supply/cpcap-battery.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 467 drivers/power/supply/cpcap-battery.c val->intval = ddata->config.info.technology; intval 470 drivers/power/supply/cpcap-battery.c val->intval = cpcap_battery_get_voltage(ddata); intval 473 drivers/power/supply/cpcap-battery.c val->intval = ddata->config.info.voltage_max_design; intval 476 drivers/power/supply/cpcap-battery.c val->intval = ddata->config.info.voltage_min_design; intval 481 drivers/power/supply/cpcap-battery.c val->intval = cpcap_battery_cc_get_avg_current(ddata); intval 485 drivers/power/supply/cpcap-battery.c val->intval = cpcap_battery_cc_to_ua(ddata, sample, intval 490 drivers/power/supply/cpcap-battery.c val->intval = latest->current_ua; intval 493 drivers/power/supply/cpcap-battery.c val->intval = latest->counter_uah; intval 497 drivers/power/supply/cpcap-battery.c val->intval = div64_s64(tmp, 100); intval 504 drivers/power/supply/cpcap-battery.c val->intval = div64_s64(tmp, 100); intval 511 drivers/power/supply/cpcap-battery.c val->intval = div64_s64(tmp, 100); intval 515 drivers/power/supply/cpcap-battery.c val->intval = POWER_SUPPLY_CAPACITY_LEVEL_FULL; intval 517 drivers/power/supply/cpcap-battery.c val->intval = POWER_SUPPLY_CAPACITY_LEVEL_HIGH; intval 519 drivers/power/supply/cpcap-battery.c val->intval = POWER_SUPPLY_CAPACITY_LEVEL_NORMAL; intval 521 drivers/power/supply/cpcap-battery.c val->intval = POWER_SUPPLY_CAPACITY_LEVEL_LOW; intval 523 drivers/power/supply/cpcap-battery.c val->intval = POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL; intval 525 drivers/power/supply/cpcap-battery.c val->intval = POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN; intval 528 drivers/power/supply/cpcap-battery.c val->intval = ddata->config.info.charge_full_design; intval 531 drivers/power/supply/cpcap-battery.c val->intval = POWER_SUPPLY_SCOPE_SYSTEM; intval 534 drivers/power/supply/cpcap-battery.c val->intval = latest->temperature; intval 225 drivers/power/supply/cpcap-charger.c val->intval = ddata->status; intval 229 drivers/power/supply/cpcap-charger.c val->intval = cpcap_charger_get_charge_voltage(ddata) * intval 232 drivers/power/supply/cpcap-charger.c val->intval = 0; intval 236 drivers/power/supply/cpcap-charger.c val->intval = cpcap_charger_get_charge_current(ddata) * intval 239 drivers/power/supply/cpcap-charger.c val->intval = 0; intval 242 drivers/power/supply/cpcap-charger.c val->intval = ddata->status == POWER_SUPPLY_STATUS_CHARGING; intval 409 drivers/power/supply/cros_usbpd-charger.c val->intval = port->psy_online; intval 412 drivers/power/supply/cros_usbpd-charger.c val->intval = port->psy_status; intval 415 drivers/power/supply/cros_usbpd-charger.c val->intval = port->psy_current_max * 1000; intval 418 drivers/power/supply/cros_usbpd-charger.c val->intval = port->psy_voltage_max_design * 1000; intval 421 drivers/power/supply/cros_usbpd-charger.c val->intval = port->psy_voltage_now * 1000; intval 424 drivers/power/supply/cros_usbpd-charger.c val->intval = port->psy_usb_type; intval 428 drivers/power/supply/cros_usbpd-charger.c val->intval = -1; intval 430 drivers/power/supply/cros_usbpd-charger.c val->intval = input_current_limit * 1000; intval 434 drivers/power/supply/cros_usbpd-charger.c val->intval = -1; intval 436 drivers/power/supply/cros_usbpd-charger.c val->intval = input_voltage_limit * 1000; intval 458 drivers/power/supply/cros_usbpd-charger.c u16 intval; intval 462 drivers/power/supply/cros_usbpd-charger.c if (val->intval >= U16_MAX * 1000) intval 465 drivers/power/supply/cros_usbpd-charger.c if (val->intval < 0) intval 466 drivers/power/supply/cros_usbpd-charger.c intval = EC_POWER_LIMIT_NONE; intval 468 drivers/power/supply/cros_usbpd-charger.c intval = val->intval / 1000; intval 472 drivers/power/supply/cros_usbpd-charger.c ret = cros_usbpd_charger_set_ext_power_limit(charger, intval, intval 477 drivers/power/supply/cros_usbpd-charger.c input_current_limit = intval; intval 489 drivers/power/supply/cros_usbpd-charger.c intval); intval 493 drivers/power/supply/cros_usbpd-charger.c input_voltage_limit = intval; intval 319 drivers/power/supply/da9030_battery.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 321 drivers/power/supply/da9030_battery.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 323 drivers/power/supply/da9030_battery.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 331 drivers/power/supply/da9030_battery.c val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; intval 333 drivers/power/supply/da9030_battery.c val->intval = POWER_SUPPLY_HEALTH_OVERVOLTAGE; intval 335 drivers/power/supply/da9030_battery.c val->intval = POWER_SUPPLY_HEALTH_GOOD; intval 352 drivers/power/supply/da9030_battery.c val->intval = charger->battery_info->technology; intval 355 drivers/power/supply/da9030_battery.c val->intval = charger->battery_info->voltage_max_design; intval 358 drivers/power/supply/da9030_battery.c val->intval = charger->battery_info->voltage_min_design; intval 361 drivers/power/supply/da9030_battery.c val->intval = da9030_reg_to_mV(charger->adc.vbat_res) * 1000; intval 364 drivers/power/supply/da9030_battery.c val->intval = intval 509 drivers/power/supply/da9052-battery.c ret = da9052_bat_check_status(bat, &val->intval); intval 512 drivers/power/supply/da9052-battery.c val->intval = intval 516 drivers/power/supply/da9052-battery.c ret = da9052_bat_check_presence(bat, &val->intval); intval 519 drivers/power/supply/da9052-battery.c ret = da9052_bat_check_health(bat, &val->intval); intval 522 drivers/power/supply/da9052-battery.c val->intval = DA9052_BAT_CUTOFF_VOLT * 1000; intval 525 drivers/power/supply/da9052-battery.c ret = da9052_bat_read_volt(bat, &val->intval); intval 528 drivers/power/supply/da9052-battery.c ret = da9052_read_chg_current(bat, &val->intval); intval 531 drivers/power/supply/da9052-battery.c ret = da9052_bat_read_capacity(bat, &val->intval); intval 534 drivers/power/supply/da9052-battery.c val->intval = da9052_adc_read_temp(bat->da9052); intval 535 drivers/power/supply/da9052-battery.c ret = val->intval; intval 538 drivers/power/supply/da9052-battery.c val->intval = POWER_SUPPLY_TECHNOLOGY_LION; intval 48 drivers/power/supply/da9150-charger.c val->intval = (psy == charger->supply_online) ? 1 : 0; intval 65 drivers/power/supply/da9150-charger.c val->intval = v_val * 1000; intval 81 drivers/power/supply/da9150-charger.c val->intval = i_val * 1000; intval 97 drivers/power/supply/da9150-charger.c val->intval = t_val / 100; intval 148 drivers/power/supply/da9150-charger.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 161 drivers/power/supply/da9150-charger.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 168 drivers/power/supply/da9150-charger.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 171 drivers/power/supply/da9150-charger.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 174 drivers/power/supply/da9150-charger.c val->intval = POWER_SUPPLY_STATUS_UNKNOWN; intval 191 drivers/power/supply/da9150-charger.c val->intval = POWER_SUPPLY_HEALTH_COLD; intval 194 drivers/power/supply/da9150-charger.c val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; intval 204 drivers/power/supply/da9150-charger.c val->intval = POWER_SUPPLY_HEALTH_DEAD; intval 207 drivers/power/supply/da9150-charger.c val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; intval 210 drivers/power/supply/da9150-charger.c val->intval = POWER_SUPPLY_HEALTH_GOOD; intval 225 drivers/power/supply/da9150-charger.c val->intval = 0; intval 227 drivers/power/supply/da9150-charger.c val->intval = 1; intval 241 drivers/power/supply/da9150-charger.c val->intval = POWER_SUPPLY_CHARGE_TYPE_FAST; intval 246 drivers/power/supply/da9150-charger.c val->intval = POWER_SUPPLY_CHARGE_TYPE_TRICKLE; intval 249 drivers/power/supply/da9150-charger.c val->intval = POWER_SUPPLY_CHARGE_TYPE_NONE; intval 264 drivers/power/supply/da9150-charger.c val->intval = ((reg & DA9150_CHG_VFAULT_MASK) * 50000) + 2500000; intval 279 drivers/power/supply/da9150-charger.c val->intval = v_val * 1000; intval 292 drivers/power/supply/da9150-charger.c val->intval = reg * 25000; intval 305 drivers/power/supply/da9150-charger.c val->intval = ((reg & DA9150_CHG_VBAT_MASK) * 25000) + 3650000; intval 226 drivers/power/supply/da9150-fg.c val->intval = da9150_fg_read_attr_sync(fg, DA9150_QIF_SOC_PCT, intval 229 drivers/power/supply/da9150-fg.c if (val->intval > 100) intval 230 drivers/power/supply/da9150-fg.c val->intval = 100; intval 255 drivers/power/supply/da9150-fg.c val->intval = (int) res; intval 265 drivers/power/supply/da9150-fg.c val->intval = da9150_fg_read_attr_sync(fg, DA9150_QIF_UAVG, intval 268 drivers/power/supply/da9150-fg.c res = (u64) (val->intval * 186ULL); intval 270 drivers/power/supply/da9150-fg.c val->intval = (int) res; intval 278 drivers/power/supply/da9150-fg.c val->intval = da9150_fg_read_attr_sync(fg, DA9150_QIF_FCC_MAH, intval 281 drivers/power/supply/da9150-fg.c val->intval = val->intval * 1000; intval 293 drivers/power/supply/da9150-fg.c val->intval = da9150_fg_read_attr_sync(fg, DA9150_QIF_NTCAVG, intval 296 drivers/power/supply/da9150-fg.c val->intval = (val->intval * 10) / 1048576; intval 346 drivers/power/supply/da9150-fg.c if (val.intval != fg->soc) { intval 347 drivers/power/supply/da9150-fg.c fg->soc = val.intval; intval 552 drivers/power/supply/ds2760_battery.c val->intval = di->charge_status; intval 562 drivers/power/supply/ds2760_battery.c val->intval = di->voltage_uV; intval 565 drivers/power/supply/ds2760_battery.c val->intval = di->current_uA; intval 568 drivers/power/supply/ds2760_battery.c val->intval = di->rated_capacity; intval 571 drivers/power/supply/ds2760_battery.c val->intval = di->full_active_uAh; intval 574 drivers/power/supply/ds2760_battery.c val->intval = di->empty_uAh; intval 577 drivers/power/supply/ds2760_battery.c val->intval = di->accum_current_uAh; intval 580 drivers/power/supply/ds2760_battery.c val->intval = di->temp_C; intval 583 drivers/power/supply/ds2760_battery.c val->intval = di->life_sec; intval 586 drivers/power/supply/ds2760_battery.c val->intval = di->rem_capacity; intval 604 drivers/power/supply/ds2760_battery.c ds2760_battery_write_active_full(di, val->intval / 1000L); intval 609 drivers/power/supply/ds2760_battery.c ds2760_battery_set_current_accum(di, val->intval); intval 384 drivers/power/supply/ds2780_battery.c ret = ds2780_get_voltage(dev_info, &val->intval); intval 388 drivers/power/supply/ds2780_battery.c ret = ds2780_get_temperature(dev_info, &val->intval); intval 400 drivers/power/supply/ds2780_battery.c ret = ds2780_get_current(dev_info, CURRENT_NOW, &val->intval); intval 404 drivers/power/supply/ds2780_battery.c ret = ds2780_get_current(dev_info, CURRENT_AVG, &val->intval); intval 408 drivers/power/supply/ds2780_battery.c ret = ds2780_get_status(dev_info, &val->intval); intval 412 drivers/power/supply/ds2780_battery.c ret = ds2780_get_capacity(dev_info, &val->intval); intval 416 drivers/power/supply/ds2780_battery.c ret = ds2780_get_accumulated_current(dev_info, &val->intval); intval 420 drivers/power/supply/ds2780_battery.c ret = ds2780_get_charge_now(dev_info, &val->intval); intval 386 drivers/power/supply/ds2781_battery.c ret = ds2781_get_voltage(dev_info, &val->intval); intval 390 drivers/power/supply/ds2781_battery.c ret = ds2781_get_temperature(dev_info, &val->intval); intval 402 drivers/power/supply/ds2781_battery.c ret = ds2781_get_current(dev_info, CURRENT_NOW, &val->intval); intval 406 drivers/power/supply/ds2781_battery.c ret = ds2781_get_current(dev_info, CURRENT_AVG, &val->intval); intval 410 drivers/power/supply/ds2781_battery.c ret = ds2781_get_status(dev_info, &val->intval); intval 414 drivers/power/supply/ds2781_battery.c ret = ds2781_get_capacity(dev_info, &val->intval); intval 418 drivers/power/supply/ds2781_battery.c ret = ds2781_get_accumulated_current(dev_info, &val->intval); intval 422 drivers/power/supply/ds2781_battery.c ret = ds2781_get_charge_now(dev_info, &val->intval); intval 251 drivers/power/supply/ds2782_battery.c ret = ds278x_get_status(info, &val->intval); intval 255 drivers/power/supply/ds2782_battery.c ret = info->ops->get_battery_capacity(info, &val->intval); intval 259 drivers/power/supply/ds2782_battery.c ret = info->ops->get_battery_voltage(info, &val->intval); intval 263 drivers/power/supply/ds2782_battery.c ret = info->ops->get_battery_current(info, &val->intval); intval 267 drivers/power/supply/ds2782_battery.c ret = ds278x_get_temp(info, &val->intval); intval 163 drivers/power/supply/generic-adc-battery.c val->intval = gab_get_status(adc_bat); intval 166 drivers/power/supply/generic-adc-battery.c val->intval = 0; intval 169 drivers/power/supply/generic-adc-battery.c val->intval = pdata->cal_charge(result); intval 177 drivers/power/supply/generic-adc-battery.c val->intval = result; intval 180 drivers/power/supply/generic-adc-battery.c val->intval = bat_info->technology; intval 183 drivers/power/supply/generic-adc-battery.c val->intval = bat_info->voltage_min_design; intval 186 drivers/power/supply/generic-adc-battery.c val->intval = bat_info->voltage_max_design; intval 189 drivers/power/supply/generic-adc-battery.c val->intval = bat_info->charge_full_design; intval 71 drivers/power/supply/goldfish_battery.c val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_AC_ONLINE); intval 74 drivers/power/supply/goldfish_battery.c val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_VOLTAGE_MAX); intval 77 drivers/power/supply/goldfish_battery.c val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_CURRENT_MAX); intval 95 drivers/power/supply/goldfish_battery.c val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_STATUS); intval 98 drivers/power/supply/goldfish_battery.c val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_HEALTH); intval 101 drivers/power/supply/goldfish_battery.c val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_PRESENT); intval 104 drivers/power/supply/goldfish_battery.c val->intval = POWER_SUPPLY_TECHNOLOGY_LION; intval 107 drivers/power/supply/goldfish_battery.c val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_CAPACITY); intval 110 drivers/power/supply/goldfish_battery.c val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_VOLTAGE); intval 113 drivers/power/supply/goldfish_battery.c val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_TEMP); intval 116 drivers/power/supply/goldfish_battery.c val->intval = GOLDFISH_BATTERY_READ(data, intval 120 drivers/power/supply/goldfish_battery.c val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_CURRENT_NOW); intval 123 drivers/power/supply/goldfish_battery.c val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_CURRENT_AVG); intval 126 drivers/power/supply/goldfish_battery.c val->intval = GOLDFISH_BATTERY_READ(data, intval 130 drivers/power/supply/goldfish_battery.c val->intval = GOLDFISH_BATTERY_READ(data, BATTERY_CYCLE_COUNT); intval 53 drivers/power/supply/gpio-charger.c val->intval = gpiod_get_value_cansleep(gpio_charger->gpiod); intval 57 drivers/power/supply/gpio-charger.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 59 drivers/power/supply/gpio-charger.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 34 drivers/power/supply/ingenic-battery.c ret = iio_read_channel_processed(bat->channel, &val->intval); intval 35 drivers/power/supply/ingenic-battery.c val->intval *= 1000; intval 36 drivers/power/supply/ingenic-battery.c if (val->intval < info->voltage_min_design_uv) intval 37 drivers/power/supply/ingenic-battery.c val->intval = POWER_SUPPLY_HEALTH_DEAD; intval 38 drivers/power/supply/ingenic-battery.c else if (val->intval > info->voltage_max_design_uv) intval 39 drivers/power/supply/ingenic-battery.c val->intval = POWER_SUPPLY_HEALTH_OVERVOLTAGE; intval 41 drivers/power/supply/ingenic-battery.c val->intval = POWER_SUPPLY_HEALTH_GOOD; intval 44 drivers/power/supply/ingenic-battery.c ret = iio_read_channel_processed(bat->channel, &val->intval); intval 45 drivers/power/supply/ingenic-battery.c val->intval *= 1000; intval 48 drivers/power/supply/ingenic-battery.c val->intval = info->voltage_min_design_uv; intval 51 drivers/power/supply/ingenic-battery.c val->intval = info->voltage_max_design_uv; intval 138 drivers/power/supply/ipaq_micro_battery.c val->intval = POWER_SUPPLY_TECHNOLOGY_NiCd; intval 141 drivers/power/supply/ipaq_micro_battery.c val->intval = POWER_SUPPLY_TECHNOLOGY_NiMH; intval 144 drivers/power/supply/ipaq_micro_battery.c val->intval = POWER_SUPPLY_TECHNOLOGY_LION; intval 147 drivers/power/supply/ipaq_micro_battery.c val->intval = POWER_SUPPLY_TECHNOLOGY_LIPO; intval 150 drivers/power/supply/ipaq_micro_battery.c val->intval = POWER_SUPPLY_TECHNOLOGY_UNKNOWN; intval 155 drivers/power/supply/ipaq_micro_battery.c val->intval = get_status(b); intval 158 drivers/power/supply/ipaq_micro_battery.c val->intval = 4700000; intval 161 drivers/power/supply/ipaq_micro_battery.c val->intval = get_capacity(b); intval 164 drivers/power/supply/ipaq_micro_battery.c val->intval = mb->temperature; intval 167 drivers/power/supply/ipaq_micro_battery.c val->intval = mb->voltage; intval 184 drivers/power/supply/ipaq_micro_battery.c val->intval = mb->ac; intval 312 drivers/power/supply/isp1704_charger.c val->intval = isp->present; intval 315 drivers/power/supply/isp1704_charger.c val->intval = isp->online; intval 318 drivers/power/supply/isp1704_charger.c val->intval = isp->current_max; intval 46 drivers/power/supply/lego_ev3_battery.c val->intval = batt->technology; intval 50 drivers/power/supply/lego_ev3_battery.c ret = iio_read_channel_processed(batt->iio_v, &val->intval); intval 54 drivers/power/supply/lego_ev3_battery.c val->intval *= 2000; intval 55 drivers/power/supply/lego_ev3_battery.c val->intval += 50000; intval 64 drivers/power/supply/lego_ev3_battery.c val->intval += val2; intval 67 drivers/power/supply/lego_ev3_battery.c val->intval = batt->v_max; intval 70 drivers/power/supply/lego_ev3_battery.c val->intval = batt->v_min; intval 74 drivers/power/supply/lego_ev3_battery.c ret = iio_read_channel_processed(batt->iio_i, &val->intval); intval 78 drivers/power/supply/lego_ev3_battery.c val->intval *= 20000; intval 79 drivers/power/supply/lego_ev3_battery.c val->intval /= 15; intval 82 drivers/power/supply/lego_ev3_battery.c val->intval = POWER_SUPPLY_SCOPE_SYSTEM; intval 109 drivers/power/supply/lego_ev3_battery.c switch (val->intval) { intval 315 drivers/power/supply/lp8727_charger.c val->intval = lp8727_is_charger_attached(psy->desc->name, pchg->devid); intval 344 drivers/power/supply/lp8727_charger.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 350 drivers/power/supply/lp8727_charger.c val->intval = (read & LP8727_CHGSTAT) == LP8727_STAT_EOC ? intval 358 drivers/power/supply/lp8727_charger.c val->intval = lp8727_is_high_temperature(temp) ? intval 367 drivers/power/supply/lp8727_charger.c val->intval = pdata->get_batt_present(); intval 374 drivers/power/supply/lp8727_charger.c val->intval = pdata->get_batt_level(); intval 381 drivers/power/supply/lp8727_charger.c val->intval = pdata->get_batt_capacity(); intval 388 drivers/power/supply/lp8727_charger.c val->intval = pdata->get_batt_temp(); intval 152 drivers/power/supply/lp8788-charger.c val->intval = lp8788_is_charger_detected(pchg); intval 156 drivers/power/supply/lp8788-charger.c val->intval = LP8788_ISEL_STEP * intval 180 drivers/power/supply/lp8788-charger.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 186 drivers/power/supply/lp8788-charger.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 189 drivers/power/supply/lp8788-charger.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 192 drivers/power/supply/lp8788-charger.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 210 drivers/power/supply/lp8788-charger.c val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; intval 212 drivers/power/supply/lp8788-charger.c val->intval = POWER_SUPPLY_HEALTH_DEAD; intval 214 drivers/power/supply/lp8788-charger.c val->intval = POWER_SUPPLY_HEALTH_GOOD; intval 229 drivers/power/supply/lp8788-charger.c val->intval = !(data & LP8788_NO_BATT_M); intval 246 drivers/power/supply/lp8788-charger.c return lp8788_get_vbatt_adc(pchg, &val->intval); intval 274 drivers/power/supply/lp8788-charger.c val->intval = LP8788_MAX_BATT_CAPACITY; intval 280 drivers/power/supply/lp8788-charger.c val->intval = (vbatt * LP8788_MAX_BATT_CAPACITY) / max_vbatt; intval 281 drivers/power/supply/lp8788-charger.c val->intval = min(val->intval, LP8788_MAX_BATT_CAPACITY); intval 302 drivers/power/supply/lp8788-charger.c val->intval = result * 10; intval 314 drivers/power/supply/lp8788-charger.c val->intval = LP8788_ISEL_STEP * intval 327 drivers/power/supply/lp8788-charger.c val->intval = LP8788_VTERM_MIN + LP8788_VTERM_STEP * read; intval 49 drivers/power/supply/lt3651-charger.c val->intval = POWER_SUPPLY_STATUS_UNKNOWN; intval 53 drivers/power/supply/lt3651-charger.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 55 drivers/power/supply/lt3651-charger.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 58 drivers/power/supply/lt3651-charger.c val->intval = gpiod_get_value(lt3651_charger->acpr_gpio); intval 62 drivers/power/supply/lt3651-charger.c val->intval = POWER_SUPPLY_HEALTH_UNKNOWN; intval 66 drivers/power/supply/lt3651-charger.c val->intval = POWER_SUPPLY_HEALTH_GOOD; intval 74 drivers/power/supply/lt3651-charger.c val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; intval 77 drivers/power/supply/lt3651-charger.c val->intval = gpiod_get_value(lt3651_charger->chrg_gpio) ? intval 366 drivers/power/supply/ltc2941-battery-gauge.c &val->intval); intval 369 drivers/power/supply/ltc2941-battery-gauge.c &val->intval); intval 372 drivers/power/supply/ltc2941-battery-gauge.c &val->intval); intval 374 drivers/power/supply/ltc2941-battery-gauge.c return ltc294x_get_charge_counter(info, &val->intval); intval 376 drivers/power/supply/ltc2941-battery-gauge.c return ltc294x_get_voltage(info, &val->intval); intval 378 drivers/power/supply/ltc2941-battery-gauge.c return ltc294x_get_current(info, &val->intval); intval 380 drivers/power/supply/ltc2941-battery-gauge.c return ltc294x_get_temperature(info, &val->intval); intval 395 drivers/power/supply/ltc2941-battery-gauge.c LTC294X_REG_CHARGE_THR_HIGH_MSB, val->intval); intval 398 drivers/power/supply/ltc2941-battery-gauge.c LTC294X_REG_CHARGE_THR_LOW_MSB, val->intval); intval 400 drivers/power/supply/ltc2941-battery-gauge.c return ltc294x_set_charge_now(info, val->intval); intval 419 drivers/power/supply/max14577_charger.c ret = max14577_get_charger_state(chg, &val->intval); intval 422 drivers/power/supply/max14577_charger.c ret = max14577_get_charge_type(chg, &val->intval); intval 425 drivers/power/supply/max14577_charger.c ret = max14577_get_battery_health(chg, &val->intval); intval 428 drivers/power/supply/max14577_charger.c ret = max14577_get_present(chg, &val->intval); intval 431 drivers/power/supply/max14577_charger.c ret = max14577_get_online(chg, &val->intval); intval 218 drivers/power/supply/max14656_charger_detector.c val->intval = chip->online; intval 55 drivers/power/supply/max17040_battery.c val->intval = chip->status; intval 58 drivers/power/supply/max17040_battery.c val->intval = chip->online; intval 61 drivers/power/supply/max17040_battery.c val->intval = chip->vcell; intval 64 drivers/power/supply/max17040_battery.c val->intval = chip->soc; intval 243 drivers/power/supply/max17042_battery.c ret = max17042_get_status(chip, &val->intval); intval 253 drivers/power/supply/max17042_battery.c val->intval = 0; intval 255 drivers/power/supply/max17042_battery.c val->intval = 1; intval 258 drivers/power/supply/max17042_battery.c val->intval = POWER_SUPPLY_TECHNOLOGY_LION; intval 265 drivers/power/supply/max17042_battery.c val->intval = data; intval 272 drivers/power/supply/max17042_battery.c val->intval = data >> 8; intval 273 drivers/power/supply/max17042_battery.c val->intval *= 20000; /* Units of LSB = 20mV */ intval 280 drivers/power/supply/max17042_battery.c val->intval = (data & 0xff) * 20000; /* Units of 20mV */ intval 290 drivers/power/supply/max17042_battery.c val->intval = data >> 7; intval 291 drivers/power/supply/max17042_battery.c val->intval *= 10000; /* Units of LSB = 10mV */ intval 298 drivers/power/supply/max17042_battery.c val->intval = data * 625 / 8; intval 305 drivers/power/supply/max17042_battery.c val->intval = data * 625 / 8; intval 312 drivers/power/supply/max17042_battery.c val->intval = data * 625 / 8; intval 319 drivers/power/supply/max17042_battery.c val->intval = data >> 8; intval 328 drivers/power/supply/max17042_battery.c val->intval = data64; intval 337 drivers/power/supply/max17042_battery.c val->intval = data64; intval 346 drivers/power/supply/max17042_battery.c val->intval = data64; intval 353 drivers/power/supply/max17042_battery.c val->intval = data * 1000 / 2; intval 356 drivers/power/supply/max17042_battery.c ret = max17042_get_temperature(chip, &val->intval); intval 365 drivers/power/supply/max17042_battery.c val->intval = sign_extend32(data & 0xff, 7) * 10; intval 372 drivers/power/supply/max17042_battery.c val->intval = sign_extend32(data >> 8, 7) * 10; intval 375 drivers/power/supply/max17042_battery.c val->intval = chip->pdata->temp_min; intval 378 drivers/power/supply/max17042_battery.c val->intval = chip->pdata->temp_max; intval 381 drivers/power/supply/max17042_battery.c ret = max17042_get_battery_health(chip, &val->intval); intval 386 drivers/power/supply/max17042_battery.c val->intval = POWER_SUPPLY_SCOPE_SYSTEM; intval 394 drivers/power/supply/max17042_battery.c val->intval = sign_extend32(data, 15); intval 395 drivers/power/supply/max17042_battery.c val->intval *= 1562500 / chip->pdata->r_sns; intval 406 drivers/power/supply/max17042_battery.c val->intval = sign_extend32(data, 15); intval 407 drivers/power/supply/max17042_battery.c val->intval *= 1562500 / chip->pdata->r_sns; intval 435 drivers/power/supply/max17042_battery.c temp = val->intval / 10; intval 449 drivers/power/supply/max17042_battery.c temp = val->intval / 10; intval 142 drivers/power/supply/max1721x_battery.c val->intval = intval 148 drivers/power/supply/max1721x_battery.c val->intval = max172xx_percent_to_ps(reg); intval 152 drivers/power/supply/max1721x_battery.c val->intval = max172xx_voltage_to_ps(reg); intval 156 drivers/power/supply/max1721x_battery.c val->intval = max172xx_capacity_to_ps(reg); intval 160 drivers/power/supply/max1721x_battery.c val->intval = max172xx_capacity_to_ps(reg); intval 164 drivers/power/supply/max1721x_battery.c val->intval = max172xx_time_to_ps(reg); intval 168 drivers/power/supply/max1721x_battery.c val->intval = max172xx_time_to_ps(reg); intval 172 drivers/power/supply/max1721x_battery.c val->intval = max172xx_temperature_to_ps(reg); intval 177 drivers/power/supply/max1721x_battery.c val->intval = intval 182 drivers/power/supply/max1721x_battery.c val->intval = intval 204 drivers/power/supply/max77650-charger.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 213 drivers/power/supply/max77650-charger.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 222 drivers/power/supply/max77650-charger.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 225 drivers/power/supply/max77650-charger.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 228 drivers/power/supply/max77650-charger.c val->intval = POWER_SUPPLY_STATUS_UNKNOWN; intval 236 drivers/power/supply/max77650-charger.c val->intval = MAX77650_CHARGER_CHG_CHARGING(reg); intval 244 drivers/power/supply/max77650-charger.c val->intval = POWER_SUPPLY_CHARGE_TYPE_NONE; intval 254 drivers/power/supply/max77650-charger.c val->intval = POWER_SUPPLY_CHARGE_TYPE_FAST; intval 258 drivers/power/supply/max77650-charger.c val->intval = POWER_SUPPLY_CHARGE_TYPE_TRICKLE; intval 261 drivers/power/supply/max77650-charger.c val->intval = POWER_SUPPLY_CHARGE_TYPE_UNKNOWN; intval 220 drivers/power/supply/max77693_charger.c ret = max77693_get_charger_state(regmap, &val->intval); intval 223 drivers/power/supply/max77693_charger.c ret = max77693_get_charge_type(regmap, &val->intval); intval 226 drivers/power/supply/max77693_charger.c ret = max77693_get_battery_health(regmap, &val->intval); intval 229 drivers/power/supply/max77693_charger.c ret = max77693_get_present(regmap, &val->intval); intval 232 drivers/power/supply/max77693_charger.c ret = max77693_get_online(regmap, &val->intval); intval 44 drivers/power/supply/max8903_charger.c val->intval = POWER_SUPPLY_STATUS_UNKNOWN; intval 47 drivers/power/supply/max8903_charger.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 49 drivers/power/supply/max8903_charger.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 51 drivers/power/supply/max8903_charger.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 55 drivers/power/supply/max8903_charger.c val->intval = 0; intval 57 drivers/power/supply/max8903_charger.c val->intval = 1; intval 60 drivers/power/supply/max8903_charger.c val->intval = POWER_SUPPLY_HEALTH_GOOD; intval 62 drivers/power/supply/max8903_charger.c val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; intval 202 drivers/power/supply/max8925_power.c val->intval = info->ac_online; intval 208 drivers/power/supply/max8925_power.c val->intval = ret * 2000; /* unit is uV */ intval 236 drivers/power/supply/max8925_power.c val->intval = info->usb_online; intval 242 drivers/power/supply/max8925_power.c val->intval = ret * 2000; /* unit is uV */ intval 270 drivers/power/supply/max8925_power.c val->intval = info->bat_online; intval 276 drivers/power/supply/max8925_power.c val->intval = ret * 2000; /* unit is uV */ intval 289 drivers/power/supply/max8925_power.c val->intval = 0; intval 291 drivers/power/supply/max8925_power.c val->intval = ret; /* unit is mA */ intval 307 drivers/power/supply/max8925_power.c val->intval = POWER_SUPPLY_CHARGE_TYPE_FAST; intval 311 drivers/power/supply/max8925_power.c val->intval = POWER_SUPPLY_CHARGE_TYPE_TRICKLE; intval 314 drivers/power/supply/max8925_power.c val->intval = POWER_SUPPLY_CHARGE_TYPE_NONE; intval 326 drivers/power/supply/max8925_power.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 328 drivers/power/supply/max8925_power.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 330 drivers/power/supply/max8925_power.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 40 drivers/power/supply/max8997_charger.c val->intval = 0; intval 45 drivers/power/supply/max8997_charger.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 49 drivers/power/supply/max8997_charger.c val->intval = 0; intval 54 drivers/power/supply/max8997_charger.c val->intval = 1; intval 58 drivers/power/supply/max8997_charger.c val->intval = 0; intval 64 drivers/power/supply/max8997_charger.c val->intval = 1; intval 44 drivers/power/supply/max8998_charger.c val->intval = 0; intval 46 drivers/power/supply/max8998_charger.c val->intval = 1; intval 53 drivers/power/supply/max8998_charger.c val->intval = 0; intval 55 drivers/power/supply/max8998_charger.c val->intval = 1; intval 77 drivers/power/supply/olpc_battery.c val->intval = !!(status & BAT_STAT_AC); intval 103 drivers/power/supply/olpc_battery.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 105 drivers/power/supply/olpc_battery.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 107 drivers/power/supply/olpc_battery.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 109 drivers/power/supply/olpc_battery.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 113 drivers/power/supply/olpc_battery.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 115 drivers/power/supply/olpc_battery.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 117 drivers/power/supply/olpc_battery.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 134 drivers/power/supply/olpc_battery.c val->intval = POWER_SUPPLY_HEALTH_GOOD; intval 138 drivers/power/supply/olpc_battery.c val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; intval 142 drivers/power/supply/olpc_battery.c val->intval = POWER_SUPPLY_HEALTH_OVERVOLTAGE; intval 149 drivers/power/supply/olpc_battery.c val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; intval 197 drivers/power/supply/olpc_battery.c val->intval = POWER_SUPPLY_TECHNOLOGY_NiMH; intval 200 drivers/power/supply/olpc_battery.c val->intval = POWER_SUPPLY_TECHNOLOGY_LiFe; intval 203 drivers/power/supply/olpc_battery.c val->intval = POWER_SUPPLY_TECHNOLOGY_UNKNOWN; intval 227 drivers/power/supply/olpc_battery.c switch (tech.intval) { intval 231 drivers/power/supply/olpc_battery.c val->intval = 3000000*.8; intval 242 drivers/power/supply/olpc_battery.c val->intval = 2800000; intval 270 drivers/power/supply/olpc_battery.c val->intval = soc * (full.intval / 100); intval 292 drivers/power/supply/olpc_battery.c switch (tech.intval) { intval 296 drivers/power/supply/olpc_battery.c val->intval = 6000000; intval 306 drivers/power/supply/olpc_battery.c val->intval = 6400000; intval 309 drivers/power/supply/olpc_battery.c val->intval = 6500000; intval 366 drivers/power/supply/olpc_battery.c val->intval = POWER_SUPPLY_CHARGE_TYPE_TRICKLE; intval 368 drivers/power/supply/olpc_battery.c val->intval = POWER_SUPPLY_CHARGE_TYPE_FAST; intval 370 drivers/power/supply/olpc_battery.c val->intval = POWER_SUPPLY_CHARGE_TYPE_NONE; intval 373 drivers/power/supply/olpc_battery.c val->intval = !!(ec_byte & (BAT_STAT_PRESENT | intval 379 drivers/power/supply/olpc_battery.c val->intval = POWER_SUPPLY_HEALTH_DEAD; intval 403 drivers/power/supply/olpc_battery.c val->intval = ecword_to_cpu(data, ec_word) * 9760L / 32; intval 411 drivers/power/supply/olpc_battery.c val->intval = ecword_to_cpu(data, ec_word) * 15625L / 120; intval 417 drivers/power/supply/olpc_battery.c val->intval = ec_byte; intval 421 drivers/power/supply/olpc_battery.c val->intval = POWER_SUPPLY_CAPACITY_LEVEL_FULL; intval 423 drivers/power/supply/olpc_battery.c val->intval = POWER_SUPPLY_CAPACITY_LEVEL_LOW; intval 425 drivers/power/supply/olpc_battery.c val->intval = POWER_SUPPLY_CAPACITY_LEVEL_NORMAL; intval 442 drivers/power/supply/olpc_battery.c val->intval = ecword_to_cpu(data, ec_word) * 10 / 256; intval 449 drivers/power/supply/olpc_battery.c val->intval = (int)ecword_to_cpu(data, ec_word) * 10 / 256; intval 456 drivers/power/supply/olpc_battery.c val->intval = ecword_to_cpu(data, ec_word) * 6250 / 15; intval 288 drivers/power/supply/pcf50633-charger.c val->intval = mbc->adapter_online; intval 308 drivers/power/supply/pcf50633-charger.c val->intval = mbc->usb_online && intval 329 drivers/power/supply/pcf50633-charger.c val->intval = mbc->usb_online && intval 60 drivers/power/supply/pda_power.c val->intval = pdata->is_ac_online ? intval 63 drivers/power/supply/pda_power.c val->intval = pdata->is_usb_online ? intval 612 drivers/power/supply/pm2301_charger.c val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; intval 614 drivers/power/supply/pm2301_charger.c val->intval = POWER_SUPPLY_HEALTH_DEAD; intval 616 drivers/power/supply/pm2301_charger.c val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; intval 618 drivers/power/supply/pm2301_charger.c val->intval = POWER_SUPPLY_HEALTH_OVERVOLTAGE; intval 620 drivers/power/supply/pm2301_charger.c val->intval = POWER_SUPPLY_HEALTH_GOOD; intval 623 drivers/power/supply/pm2301_charger.c val->intval = pm2->ac.charger_online; intval 626 drivers/power/supply/pm2301_charger.c val->intval = pm2->ac.charger_connected; intval 630 drivers/power/supply/pm2301_charger.c val->intval = pm2->ac.cv_active; intval 36 drivers/power/supply/pmu_battery.c val->intval = (!!(pmu_power_flags & PMU_PWR_AC_PRESENT)) || intval 92 drivers/power/supply/pmu_battery.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 94 drivers/power/supply/pmu_battery.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 96 drivers/power/supply/pmu_battery.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 99 drivers/power/supply/pmu_battery.c val->intval = !!(pbi->flags & PMU_BATT_PRESENT); intval 105 drivers/power/supply/pmu_battery.c val->intval = pbi->charge * 1000; /* mWh -> µWh */ intval 108 drivers/power/supply/pmu_battery.c val->intval = pbi->max_charge * 1000; /* mWh -> µWh */ intval 111 drivers/power/supply/pmu_battery.c val->intval = pbi->amperage * 1000; /* mA -> µA */ intval 114 drivers/power/supply/pmu_battery.c val->intval = pbi->voltage * 1000; /* mV -> µV */ intval 117 drivers/power/supply/pmu_battery.c val->intval = pbi->time_remaining; intval 321 drivers/power/supply/power_supply_core.c return ret.intval; intval 354 drivers/power/supply/power_supply_core.c return ret.intval; intval 389 drivers/power/supply/power_supply_core.c return ret.intval; intval 412 drivers/power/supply/power_supply_core.c val.intval = curr; intval 858 drivers/power/supply/power_supply_core.c *temp = val.intval * 100; intval 906 drivers/power/supply/power_supply_core.c *state = val.intval; intval 924 drivers/power/supply/power_supply_core.c *state = val.intval; intval 937 drivers/power/supply/power_supply_core.c val.intval = state; intval 176 drivers/power/supply/power_supply_hwmon.c pspval.intval = DIV_ROUND_CLOSEST(pspval.intval, 1000); intval 182 drivers/power/supply/power_supply_hwmon.c if (check_mul_overflow(pspval.intval, 100, intval 183 drivers/power/supply/power_supply_hwmon.c &pspval.intval)) intval 190 drivers/power/supply/power_supply_hwmon.c *val = pspval.intval; intval 208 drivers/power/supply/power_supply_hwmon.c pspval.intval = val; intval 218 drivers/power/supply/power_supply_hwmon.c if (check_mul_overflow(pspval.intval, 1000, intval 219 drivers/power/supply/power_supply_hwmon.c &pspval.intval)) intval 226 drivers/power/supply/power_supply_hwmon.c pspval.intval = DIV_ROUND_CLOSEST(pspval.intval, 100); intval 30 drivers/power/supply/power_supply_leds.c dev_dbg(&psy->dev, "%s %d\n", __func__, status.intval); intval 32 drivers/power/supply/power_supply_leds.c switch (status.intval) { intval 120 drivers/power/supply/power_supply_leds.c dev_dbg(&psy->dev, "%s %d\n", __func__, online.intval); intval 122 drivers/power/supply/power_supply_leds.c if (online.intval) intval 94 drivers/power/supply/power_supply_sysfs.c if (value->intval == usb_type) { intval 124 drivers/power/supply/power_supply_sysfs.c value.intval = psy->desc->type; intval 143 drivers/power/supply/power_supply_sysfs.c power_supply_status_text[value.intval]); intval 147 drivers/power/supply/power_supply_sysfs.c power_supply_charge_type_text[value.intval]); intval 151 drivers/power/supply/power_supply_sysfs.c power_supply_health_text[value.intval]); intval 155 drivers/power/supply/power_supply_sysfs.c power_supply_technology_text[value.intval]); intval 159 drivers/power/supply/power_supply_sysfs.c power_supply_capacity_level_text[value.intval]); intval 163 drivers/power/supply/power_supply_sysfs.c power_supply_type_text[value.intval]); intval 172 drivers/power/supply/power_supply_sysfs.c power_supply_scope_text[value.intval]); intval 178 drivers/power/supply/power_supply_sysfs.c ret = sprintf(buf, "%d\n", value.intval); intval 229 drivers/power/supply/power_supply_sysfs.c value.intval = ret; intval 498 drivers/power/supply/qcom_smbb.c val->intval = !(chg->status & STATUS_CHG_GONE) && intval 503 drivers/power/supply/qcom_smbb.c val->intval = chg->attr[ATTR_USBIN_IMAX]; intval 506 drivers/power/supply/qcom_smbb.c val->intval = 2500000; intval 526 drivers/power/supply/qcom_smbb.c val->intval); intval 546 drivers/power/supply/qcom_smbb.c val->intval = !(chg->status & STATUS_CHG_GONE) && intval 551 drivers/power/supply/qcom_smbb.c val->intval = chg->attr[ATTR_DCIN_IMAX]; intval 554 drivers/power/supply/qcom_smbb.c val->intval = 2500000; intval 574 drivers/power/supply/qcom_smbb.c val->intval); intval 605 drivers/power/supply/qcom_smbb.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 607 drivers/power/supply/qcom_smbb.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 609 drivers/power/supply/qcom_smbb.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 611 drivers/power/supply/qcom_smbb.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 613 drivers/power/supply/qcom_smbb.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 615 drivers/power/supply/qcom_smbb.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 619 drivers/power/supply/qcom_smbb.c val->intval = POWER_SUPPLY_HEALTH_GOOD; intval 621 drivers/power/supply/qcom_smbb.c val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; intval 623 drivers/power/supply/qcom_smbb.c val->intval = POWER_SUPPLY_HEALTH_COLD; intval 627 drivers/power/supply/qcom_smbb.c val->intval = POWER_SUPPLY_CHARGE_TYPE_FAST; intval 629 drivers/power/supply/qcom_smbb.c val->intval = POWER_SUPPLY_CHARGE_TYPE_TRICKLE; intval 631 drivers/power/supply/qcom_smbb.c val->intval = POWER_SUPPLY_CHARGE_TYPE_NONE; intval 634 drivers/power/supply/qcom_smbb.c val->intval = !!(status & STATUS_BAT_PRESENT); intval 637 drivers/power/supply/qcom_smbb.c val->intval = chg->attr[ATTR_BAT_IMAX]; intval 640 drivers/power/supply/qcom_smbb.c val->intval = chg->attr[ATTR_BAT_VMAX]; intval 647 drivers/power/supply/qcom_smbb.c val->intval = POWER_SUPPLY_TECHNOLOGY_LION; intval 650 drivers/power/supply/qcom_smbb.c val->intval = 3000000; /* single-cell li-ion low end */ intval 669 drivers/power/supply/qcom_smbb.c rc = smbb_charger_attr_write(chg, ATTR_BAT_IMAX, val->intval); intval 672 drivers/power/supply/qcom_smbb.c rc = smbb_charger_attr_write(chg, ATTR_BAT_VMAX, val->intval); intval 78 drivers/power/supply/rt5033_battery.c val->intval = rt5033_battery_get_watt_prop(battery->client, intval 82 drivers/power/supply/rt5033_battery.c val->intval = rt5033_battery_get_present(battery->client); intval 85 drivers/power/supply/rt5033_battery.c val->intval = rt5033_battery_get_capacity(battery->client); intval 370 drivers/power/supply/rt9455_charger.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 390 drivers/power/supply/rt9455_charger.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 393 drivers/power/supply/rt9455_charger.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 396 drivers/power/supply/rt9455_charger.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 399 drivers/power/supply/rt9455_charger.c val->intval = POWER_SUPPLY_STATUS_UNKNOWN; intval 411 drivers/power/supply/rt9455_charger.c val->intval = POWER_SUPPLY_HEALTH_GOOD; intval 420 drivers/power/supply/rt9455_charger.c val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; intval 424 drivers/power/supply/rt9455_charger.c val->intval = POWER_SUPPLY_HEALTH_OVERVOLTAGE; intval 428 drivers/power/supply/rt9455_charger.c val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; intval 439 drivers/power/supply/rt9455_charger.c val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; intval 443 drivers/power/supply/rt9455_charger.c val->intval = POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE; intval 454 drivers/power/supply/rt9455_charger.c val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; intval 458 drivers/power/supply/rt9455_charger.c val->intval = POWER_SUPPLY_HEALTH_OVERVOLTAGE; intval 462 drivers/power/supply/rt9455_charger.c val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; intval 466 drivers/power/supply/rt9455_charger.c val->intval = POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE; intval 477 drivers/power/supply/rt9455_charger.c val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; intval 500 drivers/power/supply/rt9455_charger.c val->intval = !v; intval 517 drivers/power/supply/rt9455_charger.c val->intval = (int)v; intval 537 drivers/power/supply/rt9455_charger.c val->intval = curr; intval 547 drivers/power/supply/rt9455_charger.c val->intval = rt9455_ichrg_values[idx]; intval 567 drivers/power/supply/rt9455_charger.c val->intval = voltage; intval 577 drivers/power/supply/rt9455_charger.c val->intval = rt9455_vmreg_values[idx]; intval 606 drivers/power/supply/rt9455_charger.c val->intval = ichrg * ieoc_percentage / 100; intval 635 drivers/power/supply/rt9455_charger.c val->intval = POWER_SUPPLY_SCOPE_SYSTEM; intval 155 drivers/power/supply/rx51_battery.c val->intval = POWER_SUPPLY_TECHNOLOGY_LION; intval 158 drivers/power/supply/rx51_battery.c val->intval = 4200000; intval 161 drivers/power/supply/rx51_battery.c val->intval = rx51_battery_read_voltage(di) ? 1 : 0; intval 164 drivers/power/supply/rx51_battery.c val->intval = rx51_battery_read_voltage(di); intval 167 drivers/power/supply/rx51_battery.c val->intval = rx51_battery_read_temperature(di); intval 170 drivers/power/supply/rx51_battery.c val->intval = rx51_battery_read_capacity(di); intval 176 drivers/power/supply/rx51_battery.c if (val->intval == INT_MAX || val->intval == INT_MIN) intval 95 drivers/power/supply/s3c_adc_battery.c val->intval = bat->volt_value; intval 98 drivers/power/supply/s3c_adc_battery.c val->intval = bat->pdata->backup_volt_min; intval 101 drivers/power/supply/s3c_adc_battery.c val->intval = bat->pdata->backup_volt_max; intval 210 drivers/power/supply/s3c_adc_battery.c val->intval = bat->level == 100000 ? intval 213 drivers/power/supply/s3c_adc_battery.c val->intval = bat->status; intval 216 drivers/power/supply/s3c_adc_battery.c val->intval = 100000; intval 219 drivers/power/supply/s3c_adc_battery.c val->intval = 0; intval 222 drivers/power/supply/s3c_adc_battery.c val->intval = bat->level; intval 225 drivers/power/supply/s3c_adc_battery.c val->intval = bat->volt_value; intval 228 drivers/power/supply/s3c_adc_battery.c val->intval = bat->cur_value; intval 286 drivers/power/supply/sbs-battery.c static int sbs_status_correct(struct i2c_client *client, int *intval) intval 298 drivers/power/supply/sbs-battery.c *intval = POWER_SUPPLY_STATUS_FULL; intval 300 drivers/power/supply/sbs-battery.c if (*intval == POWER_SUPPLY_STATUS_FULL) { intval 303 drivers/power/supply/sbs-battery.c *intval = POWER_SUPPLY_STATUS_CHARGING; intval 305 drivers/power/supply/sbs-battery.c *intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 322 drivers/power/supply/sbs-battery.c val->intval = 0; intval 329 drivers/power/supply/sbs-battery.c val->intval = 1; /* battery present */ intval 332 drivers/power/supply/sbs-battery.c val->intval = POWER_SUPPLY_HEALTH_UNKNOWN; intval 351 drivers/power/supply/sbs-battery.c val->intval = 0; /* battery removed */ intval 358 drivers/power/supply/sbs-battery.c val->intval = 0; /* battery removed */ intval 364 drivers/power/supply/sbs-battery.c val->intval = 0; intval 376 drivers/power/supply/sbs-battery.c val->intval = 0; intval 378 drivers/power/supply/sbs-battery.c val->intval = 1; intval 381 drivers/power/supply/sbs-battery.c val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; intval 383 drivers/power/supply/sbs-battery.c val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; intval 385 drivers/power/supply/sbs-battery.c val->intval = POWER_SUPPLY_HEALTH_DEAD; intval 387 drivers/power/supply/sbs-battery.c val->intval = POWER_SUPPLY_HEALTH_GOOD; intval 410 drivers/power/supply/sbs-battery.c val->intval = ret; intval 413 drivers/power/supply/sbs-battery.c val->intval = intval 416 drivers/power/supply/sbs-battery.c val->intval = intval 419 drivers/power/supply/sbs-battery.c val->intval = intval 422 drivers/power/supply/sbs-battery.c val->intval = intval 430 drivers/power/supply/sbs-battery.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 432 drivers/power/supply/sbs-battery.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 434 drivers/power/supply/sbs-battery.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 436 drivers/power/supply/sbs-battery.c sbs_status_correct(client, &val->intval); intval 439 drivers/power/supply/sbs-battery.c chip->last_state = val->intval; intval 440 drivers/power/supply/sbs-battery.c else if (chip->last_state != val->intval) { intval 447 drivers/power/supply/sbs-battery.c val->intval = POWER_SUPPLY_STATUS_UNKNOWN; intval 452 drivers/power/supply/sbs-battery.c val->intval = min(ret, 100); intval 454 drivers/power/supply/sbs-battery.c val->intval = 0; intval 487 drivers/power/supply/sbs-battery.c val->intval *= BATTERY_MODE_CAP_MULT_WATT; intval 497 drivers/power/supply/sbs-battery.c val->intval *= BASE_UNIT_CONVERSION; intval 504 drivers/power/supply/sbs-battery.c val->intval -= TEMP_KELVIN_TO_CELSIUS; intval 512 drivers/power/supply/sbs-battery.c val->intval *= TIME_UNIT_CONVERSION; intval 565 drivers/power/supply/sbs-battery.c val->intval = ret; intval 617 drivers/power/supply/sbs-battery.c val->intval = ret; intval 618 drivers/power/supply/sbs-battery.c chip->is_present = val->intval; intval 641 drivers/power/supply/sbs-battery.c val->intval = POWER_SUPPLY_TECHNOLOGY_LION; intval 727 drivers/power/supply/sbs-battery.c "%s: property = %d, value = %x\n", __func__, psp, val->intval); intval 55 drivers/power/supply/sbs-charger.c val->intval = !!(reg & SBS_CHARGER_STATUS_BATTERY_PRESENT); intval 59 drivers/power/supply/sbs-charger.c val->intval = !!(reg & SBS_CHARGER_STATUS_AC_PRESENT); intval 63 drivers/power/supply/sbs-charger.c val->intval = POWER_SUPPLY_STATUS_UNKNOWN; intval 66 drivers/power/supply/sbs-charger.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 69 drivers/power/supply/sbs-charger.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 71 drivers/power/supply/sbs-charger.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 77 drivers/power/supply/sbs-charger.c val->intval = POWER_SUPPLY_HEALTH_COLD; intval 79 drivers/power/supply/sbs-charger.c val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; intval 81 drivers/power/supply/sbs-charger.c val->intval = POWER_SUPPLY_HEALTH_GOOD; intval 104 drivers/power/supply/sbs-manager.c val->intval = !!(regval & SBSM_BIT_AC_PRESENT); intval 113 drivers/power/supply/sbs-manager.c val->intval = POWER_SUPPLY_CHARGE_TYPE_NONE; intval 116 drivers/power/supply/sbs-manager.c val->intval = POWER_SUPPLY_CHARGE_TYPE_TRICKLE; intval 124 drivers/power/supply/sbs-manager.c val->intval = POWER_SUPPLY_CHARGE_TYPE_FAST; intval 156 drivers/power/supply/sbs-manager.c regval = val->intval == intval 218 drivers/power/supply/sc2731_charger.c ret = sc2731_charger_set_current(info, val->intval / 1000); intval 225 drivers/power/supply/sc2731_charger.c val->intval / 1000); intval 251 drivers/power/supply/sc2731_charger.c val->intval = sc2731_charger_get_status(info); intval 253 drivers/power/supply/sc2731_charger.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 258 drivers/power/supply/sc2731_charger.c val->intval = 0; intval 264 drivers/power/supply/sc2731_charger.c val->intval = cur * 1000; intval 270 drivers/power/supply/sc2731_charger.c val->intval = 0; intval 276 drivers/power/supply/sc2731_charger.c val->intval = cur * 1000; intval 503 drivers/power/supply/sc27xx_fuel_gauge.c *status = val.intval; intval 525 drivers/power/supply/sc27xx_fuel_gauge.c val->intval = value; intval 533 drivers/power/supply/sc27xx_fuel_gauge.c val->intval = value; intval 537 drivers/power/supply/sc27xx_fuel_gauge.c val->intval = data->bat_present; intval 545 drivers/power/supply/sc27xx_fuel_gauge.c val->intval = value; intval 549 drivers/power/supply/sc27xx_fuel_gauge.c val->intval = POWER_SUPPLY_TECHNOLOGY_LION; intval 557 drivers/power/supply/sc27xx_fuel_gauge.c val->intval = value; intval 565 drivers/power/supply/sc27xx_fuel_gauge.c val->intval = value * 1000; intval 573 drivers/power/supply/sc27xx_fuel_gauge.c val->intval = value; intval 581 drivers/power/supply/sc27xx_fuel_gauge.c val->intval = value; intval 590 drivers/power/supply/sc27xx_fuel_gauge.c val->intval = value * 1000; intval 594 drivers/power/supply/sc27xx_fuel_gauge.c val->intval = data->total_cap * 1000; intval 618 drivers/power/supply/sc27xx_fuel_gauge.c ret = sc27xx_fgu_save_last_cap(data, val->intval); intval 624 drivers/power/supply/sc27xx_fuel_gauge.c sc27xx_fgu_adjust_cap(data, val->intval); intval 882 drivers/power/supply/smb347-charger.c int ret, intval; intval 897 drivers/power/supply/smb347-charger.c intval = hw_to_current(fcc_tbl, ARRAY_SIZE(fcc_tbl), v & 7); intval 900 drivers/power/supply/smb347-charger.c intval = hw_to_current(pcc_tbl, ARRAY_SIZE(pcc_tbl), v & 7); intval 903 drivers/power/supply/smb347-charger.c return intval; intval 912 drivers/power/supply/smb347-charger.c int ret, intval; intval 926 drivers/power/supply/smb347-charger.c intval = 3500000 + v * 20000; intval 928 drivers/power/supply/smb347-charger.c return intval; intval 940 drivers/power/supply/smb347-charger.c val->intval = smb->mains_online; intval 948 drivers/power/supply/smb347-charger.c val->intval = ret; intval 956 drivers/power/supply/smb347-charger.c val->intval = ret; intval 981 drivers/power/supply/smb347-charger.c val->intval = smb->usb_online; intval 989 drivers/power/supply/smb347-charger.c val->intval = ret; intval 997 drivers/power/supply/smb347-charger.c val->intval = ret; intval 1075 drivers/power/supply/smb347-charger.c val->intval = ret; intval 1088 drivers/power/supply/smb347-charger.c val->intval = POWER_SUPPLY_CHARGE_TYPE_TRICKLE; intval 1091 drivers/power/supply/smb347-charger.c val->intval = POWER_SUPPLY_CHARGE_TYPE_FAST; intval 1094 drivers/power/supply/smb347-charger.c val->intval = POWER_SUPPLY_CHARGE_TYPE_NONE; intval 1100 drivers/power/supply/smb347-charger.c val->intval = pdata->battery_info.technology; intval 1104 drivers/power/supply/smb347-charger.c val->intval = pdata->battery_info.voltage_min_design; intval 1108 drivers/power/supply/smb347-charger.c val->intval = pdata->battery_info.voltage_max_design; intval 1112 drivers/power/supply/smb347-charger.c val->intval = pdata->battery_info.charge_full_design; intval 45 drivers/power/supply/test_power.c val->intval = ac_online; intval 59 drivers/power/supply/test_power.c val->intval = usb_online; intval 82 drivers/power/supply/test_power.c val->intval = battery_status; intval 85 drivers/power/supply/test_power.c val->intval = POWER_SUPPLY_CHARGE_TYPE_FAST; intval 88 drivers/power/supply/test_power.c val->intval = battery_health; intval 91 drivers/power/supply/test_power.c val->intval = battery_present; intval 94 drivers/power/supply/test_power.c val->intval = battery_technology; intval 97 drivers/power/supply/test_power.c val->intval = POWER_SUPPLY_CAPACITY_LEVEL_NORMAL; intval 101 drivers/power/supply/test_power.c val->intval = battery_capacity; intval 105 drivers/power/supply/test_power.c val->intval = 100; intval 109 drivers/power/supply/test_power.c val->intval = 3600; intval 112 drivers/power/supply/test_power.c val->intval = 26; intval 115 drivers/power/supply/test_power.c val->intval = battery_voltage; intval 104 drivers/power/supply/tosa_battery.c val->intval = bat->status; intval 107 drivers/power/supply/tosa_battery.c val->intval = bat->technology; intval 110 drivers/power/supply/tosa_battery.c val->intval = tosa_read_bat(bat); intval 114 drivers/power/supply/tosa_battery.c val->intval = bat->bat_max; intval 116 drivers/power/supply/tosa_battery.c val->intval = bat->full_chrg; intval 119 drivers/power/supply/tosa_battery.c val->intval = bat->bat_max; intval 122 drivers/power/supply/tosa_battery.c val->intval = bat->bat_min; intval 125 drivers/power/supply/tosa_battery.c val->intval = tosa_read_temp(bat); intval 128 drivers/power/supply/tosa_battery.c val->intval = bat->is_present ? bat->is_present(bat) : 1; intval 131 drivers/power/supply/tps65090-charger.c val->intval = charger->ac_online; intval 111 drivers/power/supply/tps65217_charger.c val->intval = charger->online; intval 823 drivers/power/supply/twl4030_charger.c val->intval = twl4030_bci_state_to_status(state); intval 825 drivers/power/supply/twl4030_charger.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 836 drivers/power/supply/twl4030_charger.c val->intval = ret * 6843; intval 842 drivers/power/supply/twl4030_charger.c val->intval = ret * 9775; intval 852 drivers/power/supply/twl4030_charger.c val->intval = ret; intval 855 drivers/power/supply/twl4030_charger.c val->intval = is_charging && intval 860 drivers/power/supply/twl4030_charger.c val->intval = -1; intval 863 drivers/power/supply/twl4030_charger.c val->intval = bci->ac_cur; intval 866 drivers/power/supply/twl4030_charger.c val->intval = bci->usb_cur_target; intval 868 drivers/power/supply/twl4030_charger.c if (val->intval < 0) { intval 871 drivers/power/supply/twl4030_charger.c val->intval = twl4030bci_read_adc_val(TWL4030_BCIIREF1); intval 872 drivers/power/supply/twl4030_charger.c if (val->intval < 0) intval 873 drivers/power/supply/twl4030_charger.c return val->intval; intval 877 drivers/power/supply/twl4030_charger.c val->intval = regval2ua(val->intval, bcictl1 & intval 897 drivers/power/supply/twl4030_charger.c bci->usb_cur_target = val->intval; intval 899 drivers/power/supply/twl4030_charger.c bci->ac_cur = val->intval; intval 117 drivers/power/supply/twl4030_madc_battery.c val->intval = POWER_SUPPLY_STATUS_FULL; intval 120 drivers/power/supply/twl4030_madc_battery.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 122 drivers/power/supply/twl4030_madc_battery.c val->intval = POWER_SUPPLY_STATUS_DISCHARGING; intval 126 drivers/power/supply/twl4030_madc_battery.c val->intval = twl4030_madc_bat_get_voltage(bat) * 1000; intval 129 drivers/power/supply/twl4030_madc_battery.c val->intval = POWER_SUPPLY_TECHNOLOGY_LION; intval 132 drivers/power/supply/twl4030_madc_battery.c val->intval = twl4030_madc_bat_get_current(bat); intval 136 drivers/power/supply/twl4030_madc_battery.c val->intval = 1; intval 141 drivers/power/supply/twl4030_madc_battery.c val->intval = (percent * bat->pdata->capacity) / 100; intval 145 drivers/power/supply/twl4030_madc_battery.c val->intval = twl4030_madc_bat_voltscale(bat, intval 149 drivers/power/supply/twl4030_madc_battery.c val->intval = bat->pdata->capacity; intval 152 drivers/power/supply/twl4030_madc_battery.c val->intval = twl4030_madc_bat_get_temp(bat); intval 161 drivers/power/supply/twl4030_madc_battery.c val->intval = (3600l * chg) / 400; intval 127 drivers/power/supply/ucs1002_power.c val->intval = !!(reg & F_CHG_ACT); intval 186 drivers/power/supply/ucs1002_power.c val->intval = 0; intval 189 drivers/power/supply/ucs1002_power.c val->intval += bit_weights_uAh[i]; intval 214 drivers/power/supply/ucs1002_power.c val->intval = 0; intval 217 drivers/power/supply/ucs1002_power.c val->intval += bit_weights_uA[i]; intval 240 drivers/power/supply/ucs1002_power.c val->intval = ucs1002_current_limit_uA[reg & UCS1002_ILIM_SW_MASK]; intval 341 drivers/power/supply/ucs1002_power.c val->intval = type; intval 367 drivers/power/supply/ucs1002_power.c val->intval = health; intval 392 drivers/power/supply/ucs1002_power.c val->intval = info->present; intval 410 drivers/power/supply/ucs1002_power.c return ucs1002_set_max_current(info, val->intval); intval 412 drivers/power/supply/ucs1002_power.c return ucs1002_set_usb_type(info, val->intval); intval 113 drivers/power/supply/wilco-charger.c val->intval = raw; intval 127 drivers/power/supply/wilco-charger.c mode = psp_val_to_charge_mode(val->intval); intval 132 drivers/power/supply/wilco-charger.c if (val->intval < CHARGE_LOWER_LIMIT_MIN || intval 133 drivers/power/supply/wilco-charger.c val->intval > CHARGE_LOWER_LIMIT_MAX) intval 136 drivers/power/supply/wilco-charger.c val->intval); intval 138 drivers/power/supply/wilco-charger.c if (val->intval < CHARGE_UPPER_LIMIT_MIN || intval 139 drivers/power/supply/wilco-charger.c val->intval > CHARGE_UPPER_LIMIT_MAX) intval 142 drivers/power/supply/wilco-charger.c val->intval); intval 34 drivers/power/supply/wm831x_backup.c val->intval = ret; intval 127 drivers/power/supply/wm831x_backup.c val->intval = POWER_SUPPLY_STATUS_CHARGING; intval 129 drivers/power/supply/wm831x_backup.c val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; intval 139 drivers/power/supply/wm831x_backup.c val->intval = 1; intval 141 drivers/power/supply/wm831x_backup.c val->intval = 0; intval 46 drivers/power/supply/wm831x_power.c val->intval = 1; intval 48 drivers/power/supply/wm831x_power.c val->intval = 0; intval 61 drivers/power/supply/wm831x_power.c val->intval = ret; intval 442 drivers/power/supply/wm831x_power.c ret = wm831x_bat_check_status(wm831x, &val->intval); intval 452 drivers/power/supply/wm831x_power.c ret = wm831x_bat_check_health(wm831x, &val->intval); intval 455 drivers/power/supply/wm831x_power.c ret = wm831x_bat_check_type(wm831x, &val->intval); intval 256 drivers/power/supply/wm8350_power.c val->intval = !!(wm8350_get_supplies(wm8350) & intval 260 drivers/power/supply/wm8350_power.c val->intval = wm8350_read_line_uvolts(wm8350); intval 286 drivers/power/supply/wm8350_power.c val->intval = !!(wm8350_get_supplies(wm8350) & intval 290 drivers/power/supply/wm8350_power.c val->intval = wm8350_read_usb_uvolts(wm8350); intval 352 drivers/power/supply/wm8350_power.c val->intval = wm8350_batt_status(wm8350); intval 355 drivers/power/supply/wm8350_power.c val->intval = !!(wm8350_get_supplies(wm8350) & intval 359 drivers/power/supply/wm8350_power.c val->intval = wm8350_read_battery_uvolts(wm8350); intval 362 drivers/power/supply/wm8350_power.c val->intval = wm8350_bat_check_health(wm8350); intval 365 drivers/power/supply/wm8350_power.c val->intval = wm8350_bat_get_charge_type(wm8350); intval 53 drivers/power/supply/wm97xx_battery.c val->intval = bat_status; intval 56 drivers/power/supply/wm97xx_battery.c val->intval = pdata->batt_tech; intval 60 drivers/power/supply/wm97xx_battery.c val->intval = wm97xx_read_bat(bat_ps); intval 66 drivers/power/supply/wm97xx_battery.c val->intval = wm97xx_read_temp(bat_ps); intval 72 drivers/power/supply/wm97xx_battery.c val->intval = pdata->max_voltage; intval 78 drivers/power/supply/wm97xx_battery.c val->intval = pdata->min_voltage; intval 83 drivers/power/supply/wm97xx_battery.c val->intval = 1; intval 49 drivers/power/supply/z2_battery.c val->intval = charger->bat_status; intval 52 drivers/power/supply/z2_battery.c val->intval = info->batt_tech; intval 56 drivers/power/supply/z2_battery.c val->intval = z2_read_bat(charger); intval 62 drivers/power/supply/z2_battery.c val->intval = info->max_voltage; intval 68 drivers/power/supply/z2_battery.c val->intval = info->min_voltage; intval 73 drivers/power/supply/z2_battery.c val->intval = 1; intval 462 drivers/rapidio/devices/tsi721.c u32 intval; intval 479 drivers/rapidio/devices/tsi721.c intval = ioread32(priv->regs + intval 481 drivers/rapidio/devices/tsi721.c if (intval & TSI721_SR_CHINT_IDBQRCV) intval 485 drivers/rapidio/devices/tsi721.c "Unsupported SR_CH_INT %x", intval); intval 488 drivers/rapidio/devices/tsi721.c iowrite32(intval, intval 537 drivers/rapidio/devices/tsi721.c intval = ioread32(priv->regs + TSI721_RIO_EM_INT_STAT); intval 538 drivers/rapidio/devices/tsi721.c if (intval & TSI721_RIO_EM_INT_STAT_PW_RX) intval 620 drivers/regulator/act8865-regulator.c val->intval = ret; intval 541 drivers/s390/block/dasd_ioctl.c int intval, rc; intval 548 drivers/s390/block/dasd_ioctl.c if (get_user(intval, (int __user *)argp)) intval 553 drivers/s390/block/dasd_ioctl.c if (!intval && test_bit(DASD_FLAG_DEVICE_RO, &base->flags)) { intval 557 drivers/s390/block/dasd_ioctl.c set_disk_ro(bdev->bd_disk, intval); intval 558 drivers/s390/block/dasd_ioctl.c rc = dasd_set_feature(base->cdev, DASD_FEATURE_READONLY, intval); intval 632 drivers/staging/greybus/power_supply.c val->intval = prop->val; intval 806 drivers/staging/greybus/power_supply.c return gb_power_supply_property_set(gbpsy, psp, val->intval); intval 230 drivers/staging/nvec/nvec_power.c val->intval = power->on; intval 246 drivers/staging/nvec/nvec_power.c val->intval = power->bat_status; intval 249 drivers/staging/nvec/nvec_power.c val->intval = power->bat_cap; intval 252 drivers/staging/nvec/nvec_power.c val->intval = power->bat_present; intval 255 drivers/staging/nvec/nvec_power.c val->intval = power->bat_voltage_now; intval 258 drivers/staging/nvec/nvec_power.c val->intval = power->bat_current_now; intval 261 drivers/staging/nvec/nvec_power.c val->intval = power->bat_current_avg; intval 264 drivers/staging/nvec/nvec_power.c val->intval = power->time_remain; intval 267 drivers/staging/nvec/nvec_power.c val->intval = power->charge_full_design; intval 270 drivers/staging/nvec/nvec_power.c val->intval = power->charge_last_full; intval 273 drivers/staging/nvec/nvec_power.c val->intval = power->critical_capacity; intval 276 drivers/staging/nvec/nvec_power.c val->intval = power->capacity_remain; intval 279 drivers/staging/nvec/nvec_power.c val->intval = power->bat_temperature; intval 288 drivers/staging/nvec/nvec_power.c val->intval = power->bat_type_enum; intval 4524 drivers/usb/typec/tcpm/tcpm.c val->intval = TCPM_PSY_PROG_ONLINE; intval 4526 drivers/usb/typec/tcpm/tcpm.c val->intval = TCPM_PSY_FIXED_ONLINE; intval 4528 drivers/usb/typec/tcpm/tcpm.c val->intval = TCPM_PSY_OFFLINE; intval 4538 drivers/usb/typec/tcpm/tcpm.c val->intval = port->pps_data.min_volt * 1000; intval 4540 drivers/usb/typec/tcpm/tcpm.c val->intval = port->supply_voltage * 1000; intval 4549 drivers/usb/typec/tcpm/tcpm.c val->intval = port->pps_data.max_volt * 1000; intval 4551 drivers/usb/typec/tcpm/tcpm.c val->intval = port->supply_voltage * 1000; intval 4559 drivers/usb/typec/tcpm/tcpm.c val->intval = port->supply_voltage * 1000; intval 4568 drivers/usb/typec/tcpm/tcpm.c val->intval = port->pps_data.max_curr * 1000; intval 4570 drivers/usb/typec/tcpm/tcpm.c val->intval = port->current_limit * 1000; intval 4578 drivers/usb/typec/tcpm/tcpm.c val->intval = port->current_limit * 1000; intval 4592 drivers/usb/typec/tcpm/tcpm.c val->intval = port->usb_type; intval 4625 drivers/usb/typec/tcpm/tcpm.c switch (val->intval) { intval 4652 drivers/usb/typec/tcpm/tcpm.c if (val->intval < port->pps_data.min_volt * 1000 || intval 4653 drivers/usb/typec/tcpm/tcpm.c val->intval > port->pps_data.max_volt * 1000) intval 4656 drivers/usb/typec/tcpm/tcpm.c ret = tcpm_pps_set_out_volt(port, val->intval / 1000); intval 4659 drivers/usb/typec/tcpm/tcpm.c if (val->intval > port->pps_data.max_curr * 1000) intval 4662 drivers/usb/typec/tcpm/tcpm.c ret = tcpm_pps_set_op_curr(port, val->intval / 1000); intval 457 drivers/usb/typec/ucsi/ucsi_ccg.c u8 intval; intval 462 drivers/usb/typec/ucsi/ucsi_ccg.c status = ccg_read(uc, CCGX_RAB_INTR_REG, &intval, intval 463 drivers/usb/typec/ucsi/ucsi_ccg.c sizeof(intval)); intval 467 drivers/usb/typec/ucsi/ucsi_ccg.c if (intval & DEV_INT) intval 482 drivers/usb/typec/ucsi/ucsi_ccg.c status = ccg_write(uc, CCGX_RAB_INTR_REG, &intval, sizeof(intval)); intval 241 fs/ceph/super.c int token, intval, ret; intval 248 fs/ceph/super.c ret = match_int(&argstr[0], &intval); intval 253 fs/ceph/super.c dout("got int token %d val %d\n", token, intval); intval 304 fs/ceph/super.c if (intval < (int)PAGE_SIZE || intval > CEPH_MAX_WRITE_SIZE) intval 306 fs/ceph/super.c fsopt->wsize = ALIGN(intval, PAGE_SIZE); intval 309 fs/ceph/super.c if (intval < (int)PAGE_SIZE || intval > CEPH_MAX_READ_SIZE) intval 311 fs/ceph/super.c fsopt->rsize = ALIGN(intval, PAGE_SIZE); intval 314 fs/ceph/super.c if (intval < 0) intval 316 fs/ceph/super.c fsopt->rasize = ALIGN(intval, PAGE_SIZE); intval 319 fs/ceph/super.c if (intval < 1) intval 321 fs/ceph/super.c fsopt->caps_wanted_delay_min = intval; intval 324 fs/ceph/super.c if (intval < 1) intval 326 fs/ceph/super.c fsopt->caps_wanted_delay_max = intval; intval 329 fs/ceph/super.c if (intval < 0) intval 331 fs/ceph/super.c fsopt->caps_max = intval; intval 334 fs/ceph/super.c if (intval < 1) intval 336 fs/ceph/super.c fsopt->max_readdir = intval; intval 339 fs/ceph/super.c if (intval < (int)PAGE_SIZE && intval != 0) intval 341 fs/ceph/super.c fsopt->max_readdir_bytes = intval; intval 344 fs/ceph/super.c if (intval < 1024) /* at least 1M */ intval 346 fs/ceph/super.c fsopt->congestion_kb = intval; intval 658 fs/ocfs2/dlm/dlmcommon.h __be32 intval; intval 779 fs/ocfs2/dlm/dlmdomain.c *wire = be32_to_cpu(response.intval); intval 787 fs/ocfs2/dlm/dlmdomain.c response.intval = cpu_to_be32(wire); intval 163 include/linux/extcon.h int intval; /* type : integer (intval) */ intval 200 include/linux/power_supply.h int intval; intval 356 kernel/cgroup/rdma.c static int parse_resource(char *c, int *intval) intval 376 kernel/cgroup/rdma.c ret = match_int(&argstr, intval); intval 378 kernel/cgroup/rdma.c if (*intval < 0) intval 383 kernel/cgroup/rdma.c *intval = S32_MAX; intval 397 kernel/cgroup/rdma.c int index, intval; intval 399 kernel/cgroup/rdma.c index = parse_resource(c, &intval); intval 403 kernel/cgroup/rdma.c new_limits[index] = intval; intval 402 net/ceph/ceph_common.c int token, intval; intval 417 net/ceph/ceph_common.c err = match_int(&argstr[0], &intval); intval 422 net/ceph/ceph_common.c dout("got int token %d val %d\n", token, intval); intval 488 net/ceph/ceph_common.c if (intval < 1 || intval > INT_MAX / 1000) { intval 494 net/ceph/ceph_common.c msecs_to_jiffies(intval * 1000); intval 498 net/ceph/ceph_common.c if (intval < 1 || intval > INT_MAX / 1000) { intval 503 net/ceph/ceph_common.c opt->osd_idle_ttl = msecs_to_jiffies(intval * 1000); intval 507 net/ceph/ceph_common.c if (intval < 0 || intval > INT_MAX / 1000) { intval 512 net/ceph/ceph_common.c opt->mount_timeout = msecs_to_jiffies(intval * 1000); intval 516 net/ceph/ceph_common.c if (intval < 0 || intval > INT_MAX / 1000) { intval 521 net/ceph/ceph_common.c opt->osd_request_timeout = msecs_to_jiffies(intval * 1000);