Home
last modified time | relevance | path

Searched refs:chg_type (Results 1 – 7 of 7) sorted by relevance

/linux-4.1.27/drivers/extcon/
Dextcon-max14577.c286 int chg_type; in max14577_muic_get_cable_type() local
318 chg_type = info->status[MAX14577_MUIC_STATUS2] & in max14577_muic_get_cable_type()
320 chg_type >>= STATUS2_CHGTYP_SHIFT; in max14577_muic_get_cable_type()
322 if (chg_type == MAX14577_CHARGER_TYPE_NONE) { in max14577_muic_get_cable_type()
335 cable_type = info->prev_chg_type = chg_type; in max14577_muic_get_cable_type()
463 int chg_type; in max14577_muic_chg_handler() local
467 chg_type = max14577_muic_get_cable_type(info, in max14577_muic_chg_handler()
473 chg_type, info->prev_chg_type); in max14577_muic_chg_handler()
475 switch (chg_type) { in max14577_muic_chg_handler()
503 attached ? "attached" : "detached", chg_type); in max14577_muic_chg_handler()
[all …]
Dextcon-max8997.c274 int chg_type; in max8997_muic_get_cable_type() local
306 chg_type = info->status[1] & STATUS2_CHGTYP_MASK; in max8997_muic_get_cable_type()
307 chg_type >>= STATUS2_CHGTYP_SHIFT; in max8997_muic_get_cable_type()
309 if (chg_type == MAX8997_CHARGER_TYPE_NONE) { in max8997_muic_get_cable_type()
322 cable_type = info->prev_chg_type = chg_type; in max8997_muic_get_cable_type()
488 int chg_type; in max8997_muic_chg_handler() local
492 chg_type = max8997_muic_get_cable_type(info, in max8997_muic_chg_handler()
495 switch (chg_type) { in max8997_muic_chg_handler()
523 attached ? "attached" : "detached", chg_type); in max8997_muic_chg_handler()
600 int chg_type; in max8997_muic_detect_dev() local
[all …]
Dextcon-max77693.c348 int chg_type; in max77693_muic_get_cable_type() local
427 chg_type = info->status[1] & STATUS2_CHGTYP_MASK; in max77693_muic_get_cable_type()
428 chg_type >>= STATUS2_CHGTYP_SHIFT; in max77693_muic_get_cable_type()
430 if (chg_type == MAX77693_CHARGER_TYPE_NONE) { in max77693_muic_get_cable_type()
443 cable_type = info->prev_chg_type = chg_type; in max77693_muic_get_cable_type()
454 chg_type = info->status[1] & STATUS2_CHGTYP_MASK; in max77693_muic_get_cable_type()
455 chg_type >>= STATUS2_CHGTYP_SHIFT; in max77693_muic_get_cable_type()
458 && chg_type == MAX77693_CHARGER_TYPE_NONE) in max77693_muic_get_cable_type()
799 int chg_type; in max77693_muic_chg_handler() local
806 chg_type = max77693_muic_get_cable_type(info, in max77693_muic_chg_handler()
[all …]
Dextcon-max77843.c262 int adc, chg_type, cable_type, gnd_type; in max77843_muic_get_cable_type() local
280 chg_type = info->status[MAX77843_MUIC_STATUS2] & in max77843_muic_get_cable_type()
285 if (chg_type == MAX77843_MUIC_CHG_NONE) { in max77843_muic_get_cable_type()
303 if (chg_type == MAX77843_MUIC_CHG_NONE) { in max77843_muic_get_cable_type()
309 cable_type = info->prev_chg_type = chg_type; in max77843_muic_get_cable_type()
491 int ret, chg_type, gnd_type; in max77843_muic_chg_handler() local
494 chg_type = max77843_muic_get_cable_type(info, in max77843_muic_chg_handler()
500 chg_type, info->prev_chg_type); in max77843_muic_chg_handler()
502 switch (chg_type) { in max77843_muic_chg_handler()
554 attached ? "attached" : "detached", chg_type); in max77843_muic_chg_handler()
[all …]
/linux-4.1.27/drivers/power/
Dmax14577_charger.c136 enum max14577_muic_charger_type chg_type; in max14577_get_online() local
143 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); in max14577_get_online()
144 switch (chg_type) { in max14577_get_online()
175 enum max14577_muic_charger_type chg_type; in max14577_get_battery_health() local
182 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); in max14577_get_battery_health()
183 if (chg_type == MAX14577_CHARGER_TYPE_DEAD_BATTERY) { in max14577_get_battery_health()
/linux-4.1.27/include/linux/usb/
Dmsm_hsusb.h160 enum usb_chg_type chg_type; member
/linux-4.1.27/drivers/usb/phy/
Dphy-msm-usb.c654 if (motg->chg_type == USB_SDP_CHARGER) in msm_otg_set_power()
1089 motg->chg_type = USB_SDP_CHARGER; in msm_chg_detect_work()
1097 motg->chg_type = USB_DCP_CHARGER; in msm_chg_detect_work()
1099 motg->chg_type = USB_CDP_CHARGER; in msm_chg_detect_work()
1106 dev_dbg(phy->dev, "charger = %d\n", motg->chg_type); in msm_chg_detect_work()
1185 switch (motg->chg_type) { in msm_otg_sm_work()
1224 motg->chg_type = USB_INVALID_CHARGER; in msm_otg_sm_work()
1237 motg->chg_type = USB_INVALID_CHARGER; in msm_otg_sm_work()