Searched refs:chg_type (Results 1 – 10 of 10) sorted by relevance
/Linux-v4.19/drivers/extcon/ |
D | extcon-max14577.c | 268 int chg_type; in max14577_muic_get_cable_type() local 300 chg_type = info->status[MAX14577_MUIC_STATUS2] & in max14577_muic_get_cable_type() 302 chg_type >>= STATUS2_CHGTYP_SHIFT; in max14577_muic_get_cable_type() 304 if (chg_type == MAX14577_CHARGER_TYPE_NONE) { in max14577_muic_get_cable_type() 317 cable_type = info->prev_chg_type = chg_type; in max14577_muic_get_cable_type() 438 int chg_type; in max14577_muic_chg_handler() local 442 chg_type = max14577_muic_get_cable_type(info, in max14577_muic_chg_handler() 448 chg_type, info->prev_chg_type); in max14577_muic_chg_handler() 450 switch (chg_type) { in max14577_muic_chg_handler() 483 attached ? "attached" : "detached", chg_type); in max14577_muic_chg_handler() [all …]
|
D | extcon-max8997.c | 258 int chg_type; in max8997_muic_get_cable_type() local 290 chg_type = info->status[1] & STATUS2_CHGTYP_MASK; in max8997_muic_get_cable_type() 291 chg_type >>= STATUS2_CHGTYP_SHIFT; in max8997_muic_get_cable_type() 293 if (chg_type == MAX8997_CHARGER_TYPE_NONE) { in max8997_muic_get_cable_type() 306 cable_type = info->prev_chg_type = chg_type; in max8997_muic_get_cable_type() 472 int chg_type; in max8997_muic_chg_handler() local 476 chg_type = max8997_muic_get_cable_type(info, in max8997_muic_chg_handler() 479 switch (chg_type) { in max8997_muic_chg_handler() 510 attached ? "attached" : "detached", chg_type); in max8997_muic_chg_handler() 587 int chg_type; in max8997_muic_detect_dev() local [all …]
|
D | extcon-max77693.c | 326 int chg_type; in max77693_muic_get_cable_type() local 405 chg_type = info->status[1] & MAX77693_STATUS2_CHGTYP_MASK; in max77693_muic_get_cable_type() 406 chg_type >>= MAX77693_STATUS2_CHGTYP_SHIFT; in max77693_muic_get_cable_type() 408 if (chg_type == MAX77693_CHARGER_TYPE_NONE) { in max77693_muic_get_cable_type() 421 cable_type = info->prev_chg_type = chg_type; in max77693_muic_get_cable_type() 432 chg_type = info->status[1] & MAX77693_STATUS2_CHGTYP_MASK; in max77693_muic_get_cable_type() 433 chg_type >>= MAX77693_STATUS2_CHGTYP_SHIFT; in max77693_muic_get_cable_type() 436 && chg_type == MAX77693_CHARGER_TYPE_NONE) in max77693_muic_get_cable_type() 773 int chg_type; in max77693_muic_chg_handler() local 780 chg_type = max77693_muic_get_cable_type(info, in max77693_muic_chg_handler() [all …]
|
D | extcon-max77843.c | 269 int adc, chg_type, cable_type, gnd_type; in max77843_muic_get_cable_type() local 287 chg_type = info->status[MAX77843_MUIC_STATUS2] & in max77843_muic_get_cable_type() 292 if (chg_type == MAX77843_MUIC_CHG_NONE) { in max77843_muic_get_cable_type() 315 if (chg_type == MAX77843_MUIC_CHG_NONE) { in max77843_muic_get_cable_type() 327 if (chg_type == MAX77843_MUIC_CHG_NONE) { in max77843_muic_get_cable_type() 333 cable_type = info->prev_chg_type = chg_type; in max77843_muic_get_cable_type() 539 int ret, chg_type, gnd_type; in max77843_muic_chg_handler() local 542 chg_type = max77843_muic_get_cable_type(info, in max77843_muic_chg_handler() 548 chg_type, info->prev_chg_type); in max77843_muic_chg_handler() 550 switch (chg_type) { in max77843_muic_chg_handler() [all …]
|
/Linux-v4.19/drivers/usb/phy/ |
D | phy.c | 131 usb_phy->chg_type = SDP_TYPE; in __usb_phy_get_charger_type() 134 usb_phy->chg_type = CDP_TYPE; in __usb_phy_get_charger_type() 137 usb_phy->chg_type = DCP_TYPE; in __usb_phy_get_charger_type() 140 usb_phy->chg_type = ACA_TYPE; in __usb_phy_get_charger_type() 143 usb_phy->chg_type = UNKNOWN_TYPE; in __usb_phy_get_charger_type() 184 switch (usb_phy->chg_type) { in usb_phy_set_charger_current() 234 switch (usb_phy->chg_type) { in usb_phy_get_charger_current() 276 usb_phy->chg_type = usb_phy->charger_detect(usb_phy); in usb_phy_set_charger_state() 278 usb_phy->chg_type = UNKNOWN_TYPE; in usb_phy_set_charger_state() 309 usb_phy->chg_type = UNKNOWN_TYPE; in usb_charger_init()
|
/Linux-v4.19/drivers/power/supply/ |
D | max14656_charger_detector.c | 145 u8 chg_type; in max14656_irq_worker() local 153 chg_type = buf[MAX14656_STATUS_1] & STATUS1_CHG_TYPE_MASK; in max14656_irq_worker() 154 if (chg_type < MAX14656_CHARGER_LAST) in max14656_irq_worker() 155 chip->psy_desc.type = chg_type_props[chg_type].type; in max14656_irq_worker()
|
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 | adp5061.c | 425 int chg_type, ret; in adp5061_get_chg_type() local 431 chg_type = adp5061_chg_type[ADP5061_CHG_STATUS_1_CHG_STATUS(status1)]; in adp5061_get_chg_type() 432 if (chg_type > ADP5061_CHG_FAST_CV) in adp5061_get_chg_type() 435 val->intval = chg_type; in adp5061_get_chg_type()
|
/Linux-v4.19/drivers/phy/rockchip/ |
D | phy-rockchip-inno-usb2.c | 228 enum power_supply_type chg_type; member 577 switch (rphy->chg_type) { in rockchip_usb2phy_otg_sm_work() 611 rphy->chg_type = POWER_SUPPLY_TYPE_UNKNOWN; in rockchip_usb2phy_otg_sm_work() 631 rphy->chg_type = POWER_SUPPLY_TYPE_UNKNOWN; in rockchip_usb2phy_otg_sm_work() 653 static const char *chg_to_string(enum power_supply_type chg_type) in chg_to_string() argument 655 switch (chg_type) { in chg_to_string() 752 rphy->chg_type = POWER_SUPPLY_TYPE_USB_DCP; in rockchip_chg_detect_work() 756 rphy->chg_type = POWER_SUPPLY_TYPE_USB; in rockchip_chg_detect_work() 768 rphy->chg_type = POWER_SUPPLY_TYPE_USB_DCP; in rockchip_chg_detect_work() 770 rphy->chg_type = POWER_SUPPLY_TYPE_USB_CDP; in rockchip_chg_detect_work() [all …]
|
/Linux-v4.19/include/linux/usb/ |
D | phy.h | 110 enum usb_charger_type chg_type; member
|