Searched refs:chg_type (Results 1 – 8 of 8) sorted by relevance
/linux-4.4.14/drivers/extcon/ |
D | extcon-max14577.c | 267 int chg_type; in max14577_muic_get_cable_type() local 299 chg_type = info->status[MAX14577_MUIC_STATUS2] & in max14577_muic_get_cable_type() 301 chg_type >>= STATUS2_CHGTYP_SHIFT; in max14577_muic_get_cable_type() 303 if (chg_type == MAX14577_CHARGER_TYPE_NONE) { in max14577_muic_get_cable_type() 316 cable_type = info->prev_chg_type = chg_type; in max14577_muic_get_cable_type() 437 int chg_type; in max14577_muic_chg_handler() local 441 chg_type = max14577_muic_get_cable_type(info, in max14577_muic_chg_handler() 447 chg_type, info->prev_chg_type); in max14577_muic_chg_handler() 449 switch (chg_type) { in max14577_muic_chg_handler() 480 attached ? "attached" : "detached", chg_type); in max14577_muic_chg_handler() [all …]
|
D | extcon-max77693.c | 323 int chg_type; in max77693_muic_get_cable_type() local 402 chg_type = info->status[1] & MAX77693_STATUS2_CHGTYP_MASK; in max77693_muic_get_cable_type() 403 chg_type >>= MAX77693_STATUS2_CHGTYP_SHIFT; in max77693_muic_get_cable_type() 405 if (chg_type == MAX77693_CHARGER_TYPE_NONE) { in max77693_muic_get_cable_type() 418 cable_type = info->prev_chg_type = chg_type; in max77693_muic_get_cable_type() 429 chg_type = info->status[1] & MAX77693_STATUS2_CHGTYP_MASK; in max77693_muic_get_cable_type() 430 chg_type >>= MAX77693_STATUS2_CHGTYP_SHIFT; in max77693_muic_get_cable_type() 433 && chg_type == MAX77693_CHARGER_TYPE_NONE) in max77693_muic_get_cable_type() 765 int chg_type; in max77693_muic_chg_handler() local 772 chg_type = max77693_muic_get_cable_type(info, in max77693_muic_chg_handler() [all …]
|
D | extcon-max8997.c | 257 int chg_type; in max8997_muic_get_cable_type() local 289 chg_type = info->status[1] & STATUS2_CHGTYP_MASK; in max8997_muic_get_cable_type() 290 chg_type >>= STATUS2_CHGTYP_SHIFT; in max8997_muic_get_cable_type() 292 if (chg_type == MAX8997_CHARGER_TYPE_NONE) { in max8997_muic_get_cable_type() 305 cable_type = info->prev_chg_type = chg_type; in max8997_muic_get_cable_type() 469 int chg_type; in max8997_muic_chg_handler() local 473 chg_type = max8997_muic_get_cable_type(info, in max8997_muic_chg_handler() 476 switch (chg_type) { in max8997_muic_chg_handler() 507 attached ? "attached" : "detached", chg_type); in max8997_muic_chg_handler() 584 int chg_type; in max8997_muic_detect_dev() local [all …]
|
D | extcon-max77843.c | 243 int adc, chg_type, cable_type, gnd_type; in max77843_muic_get_cable_type() local 261 chg_type = info->status[MAX77843_MUIC_STATUS2] & in max77843_muic_get_cable_type() 266 if (chg_type == MAX77843_MUIC_CHG_NONE) { in max77843_muic_get_cable_type() 284 if (chg_type == MAX77843_MUIC_CHG_NONE) { in max77843_muic_get_cable_type() 290 cable_type = info->prev_chg_type = chg_type; in max77843_muic_get_cable_type() 469 int ret, chg_type, gnd_type; in max77843_muic_chg_handler() local 472 chg_type = max77843_muic_get_cable_type(info, in max77843_muic_chg_handler() 478 chg_type, info->prev_chg_type); in max77843_muic_chg_handler() 480 switch (chg_type) { in max77843_muic_chg_handler() 547 attached ? "attached" : "detached", chg_type); in max77843_muic_chg_handler() [all …]
|
/linux-4.4.14/drivers/power/ |
D | max14577_charger.c | 136 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()
|
D | axp288_charger.c | 170 enum power_supply_type chg_type; member 592 info->cable.chg_type = POWER_SUPPLY_TYPE_USB; in axp288_charger_extcon_evt_worker() 597 info->cable.chg_type = POWER_SUPPLY_TYPE_USB_CDP; in axp288_charger_extcon_evt_worker() 602 info->cable.chg_type = POWER_SUPPLY_TYPE_USB_DCP; in axp288_charger_extcon_evt_worker() 607 info->cable.chg_type = POWER_SUPPLY_TYPE_USB; in axp288_charger_extcon_evt_worker() 627 switch (info->cable.chg_type) { in axp288_charger_extcon_evt_worker()
|
/linux-4.4.14/include/linux/usb/ |
D | msm_hsusb.h | 181 enum usb_chg_type chg_type; member
|
/linux-4.4.14/drivers/usb/phy/ |
D | phy-msm-usb.c | 680 if (motg->chg_type == USB_SDP_CHARGER) in msm_otg_set_power() 1115 motg->chg_type = USB_SDP_CHARGER; in msm_chg_detect_work() 1123 motg->chg_type = USB_DCP_CHARGER; in msm_chg_detect_work() 1125 motg->chg_type = USB_CDP_CHARGER; in msm_chg_detect_work() 1132 dev_dbg(phy->dev, "charger = %d\n", motg->chg_type); in msm_chg_detect_work() 1211 switch (motg->chg_type) { in msm_otg_sm_work() 1250 motg->chg_type = USB_INVALID_CHARGER; in msm_otg_sm_work() 1263 motg->chg_type = USB_INVALID_CHARGER; in msm_otg_sm_work()
|