Lines Matching +defs:val +defs:x

40 #define ADP5061_VINX_SET_ILIM_MODE(x)		(((x) & 0x0F) << 0)  argument
44 #define ADP5061_TERM_SET_VTRM_MODE(x) (((x) & 0x3F) << 2) argument
46 #define ADP5061_TERM_SET_CHG_VLIM_MODE(x) (((x) & 0x03) << 0) argument
50 #define ADP5061_CHG_CURR_ICHG_MODE(x) (((x) & 0x1F) << 2) argument
52 #define ADP5061_CHG_CURR_ITRK_DEAD_MODE(x) (((x) & 0x03) << 0) argument
56 #define ADP5061_VOLTAGE_TH_DIS_RCH_MODE(x) (((x) & 0x01) << 7) argument
58 #define ADP5061_VOLTAGE_TH_VRCH_MODE(x) (((x) & 0x03) << 5) argument
60 #define ADP5061_VOLTAGE_TH_VTRK_DEAD_MODE(x) (((x) & 0x03) << 3) argument
62 #define ADP5061_VOLTAGE_TH_VWEAK_MODE(x) (((x) & 0x07) << 0) argument
65 #define ADP5061_CHG_STATUS_1_VIN_OV(x) (((x) >> 7) & 0x1) argument
66 #define ADP5061_CHG_STATUS_1_VIN_OK(x) (((x) >> 6) & 0x1) argument
67 #define ADP5061_CHG_STATUS_1_VIN_ILIM(x) (((x) >> 5) & 0x1) argument
68 #define ADP5061_CHG_STATUS_1_THERM_LIM(x) (((x) >> 4) & 0x1) argument
69 #define ADP5061_CHG_STATUS_1_CHDONE(x) (((x) >> 3) & 0x1) argument
70 #define ADP5061_CHG_STATUS_1_CHG_STATUS(x) (((x) >> 0) & 0x7) argument
73 #define ADP5061_CHG_STATUS_2_THR_STATUS(x) (((x) >> 5) & 0x7) argument
74 #define ADP5061_CHG_STATUS_2_RCH_LIM_INFO(x) (((x) >> 3) & 0x1) argument
75 #define ADP5061_CHG_STATUS_2_BAT_STATUS(x) (((x) >> 0) & 0x7) argument
79 #define ADP5061_IEND_IEND_MODE(x) (((x) & 0x07) << 5) argument
145 static int adp5061_get_array_index(const int *array, u8 size, int val) in adp5061_get_array_index()
176 union power_supply_propval *val) in adp5061_get_input_current_limit()
191 static int adp5061_set_input_current_limit(struct adp5061_state *st, int val) in adp5061_set_input_current_limit()
208 static int adp5061_set_min_voltage(struct adp5061_state *st, int val) in adp5061_set_min_voltage()
226 union power_supply_propval *val) in adp5061_get_min_voltage()
242 union power_supply_propval *val) in adp5061_get_chg_volt_lim()
258 union power_supply_propval *val) in adp5061_get_max_voltage()
276 static int adp5061_set_max_voltage(struct adp5061_state *st, int val) in adp5061_set_max_voltage()
297 static int adp5061_set_const_chg_vmax(struct adp5061_state *st, int val) in adp5061_set_const_chg_vmax()
314 static int adp5061_set_const_chg_current(struct adp5061_state *st, int val) in adp5061_set_const_chg_current()
336 union power_supply_propval *val) in adp5061_get_const_chg_current()
355 union power_supply_propval *val) in adp5061_get_prechg_current()
370 static int adp5061_set_prechg_current(struct adp5061_state *st, int val) in adp5061_set_prechg_current()
388 union power_supply_propval *val) in adp5061_get_vweak_th()
403 static int adp5061_set_vweak_th(struct adp5061_state *st, int val) in adp5061_set_vweak_th()
421 union power_supply_propval *val) in adp5061_get_chg_type()
440 union power_supply_propval *val) in adp5061_get_charger_status()
473 union power_supply_propval *val) in adp5061_get_battery_status()
505 union power_supply_propval *val) in adp5061_get_termination_current()
520 static int adp5061_set_termination_current(struct adp5061_state *st, int val) in adp5061_set_termination_current()
537 union power_supply_propval *val) in adp5061_get_property()
621 const union power_supply_propval *val) in adp5061_set_property()