/openbmc/linux/drivers/extcon/ |
H A D | extcon-max14577.c | 259 int chg_type; in max14577_muic_get_cable_type() local 291 chg_type = info->status[MAX14577_MUIC_STATUS2] & in max14577_muic_get_cable_type() 293 chg_type >>= STATUS2_CHGTYP_SHIFT; in max14577_muic_get_cable_type() 295 if (chg_type == MAX14577_CHARGER_TYPE_NONE) { in max14577_muic_get_cable_type() 308 cable_type = info->prev_chg_type = chg_type; in max14577_muic_get_cable_type() 429 int chg_type; in max14577_muic_chg_handler() local 433 chg_type = max14577_muic_get_cable_type(info, in max14577_muic_chg_handler() 439 chg_type, info->prev_chg_type); in max14577_muic_chg_handler() 441 switch (chg_type) { in max14577_muic_chg_handler() 474 attached ? "attached" : "detached", chg_type); in max14577_muic_chg_handler() [all …]
|
H A D | extcon-max8997.c | 251 int chg_type; in max8997_muic_get_cable_type() local 283 chg_type = info->status[1] & STATUS2_CHGTYP_MASK; in max8997_muic_get_cable_type() 284 chg_type >>= STATUS2_CHGTYP_SHIFT; in max8997_muic_get_cable_type() 286 if (chg_type == MAX8997_CHARGER_TYPE_NONE) { in max8997_muic_get_cable_type() 299 cable_type = info->prev_chg_type = chg_type; in max8997_muic_get_cable_type() 463 int chg_type; in max8997_muic_chg_handler() local 467 chg_type = max8997_muic_get_cable_type(info, in max8997_muic_chg_handler() 470 switch (chg_type) { in max8997_muic_chg_handler() 501 attached ? "attached" : "detached", chg_type); in max8997_muic_chg_handler() 580 int chg_type; in max8997_muic_detect_dev() local [all …]
|
H A D | extcon-max77693.c | 317 int chg_type; in max77693_muic_get_cable_type() local 397 chg_type >>= MAX77693_STATUS2_CHGTYP_SHIFT; in max77693_muic_get_cable_type() 399 if (chg_type == MAX77693_CHARGER_TYPE_NONE) { in max77693_muic_get_cable_type() 412 cable_type = info->prev_chg_type = chg_type; in max77693_muic_get_cable_type() 424 chg_type >>= MAX77693_STATUS2_CHGTYP_SHIFT; in max77693_muic_get_cable_type() 427 && chg_type == MAX77693_CHARGER_TYPE_NONE) in max77693_muic_get_cable_type() 764 int chg_type; in max77693_muic_chg_handler() local 777 chg_type, info->prev_chg_type); in max77693_muic_chg_handler() 779 switch (chg_type) { in max77693_muic_chg_handler() 872 switch (chg_type) { in max77693_muic_chg_handler() [all …]
|
H A D | extcon-max77843.c | 263 int adc, chg_type, cable_type, gnd_type; in max77843_muic_get_cable_type() local 286 if (chg_type == MAX77843_MUIC_CHG_NONE) { in max77843_muic_get_cable_type() 309 if (chg_type == MAX77843_MUIC_CHG_NONE) { in max77843_muic_get_cable_type() 321 if (chg_type == MAX77843_MUIC_CHG_NONE) { in max77843_muic_get_cable_type() 327 cable_type = info->prev_chg_type = chg_type; in max77843_muic_get_cable_type() 533 int ret, chg_type, gnd_type; in max77843_muic_chg_handler() local 536 chg_type = max77843_muic_get_cable_type(info, in max77843_muic_chg_handler() 542 chg_type, info->prev_chg_type); in max77843_muic_chg_handler() 544 switch (chg_type) { in max77843_muic_chg_handler() 707 int chg_type, adc, ret; in max77843_muic_detect_cable_wq() local [all …]
|
/openbmc/linux/drivers/usb/phy/ |
H A D | phy.c | 166 "USB_CHARGER_TYPE=%s", usb_chger_type[usb_phy->chg_type]); in usb_phy_uevent() 180 usb_phy->chg_type = SDP_TYPE; in __usb_phy_get_charger_type() 183 usb_phy->chg_type = CDP_TYPE; in __usb_phy_get_charger_type() 186 usb_phy->chg_type = DCP_TYPE; in __usb_phy_get_charger_type() 189 usb_phy->chg_type = ACA_TYPE; in __usb_phy_get_charger_type() 192 usb_phy->chg_type = UNKNOWN_TYPE; in __usb_phy_get_charger_type() 233 switch (usb_phy->chg_type) { in usb_phy_set_charger_current() 283 switch (usb_phy->chg_type) { in usb_phy_get_charger_current() 325 usb_phy->chg_type = usb_phy->charger_detect(usb_phy); in usb_phy_set_charger_state() 327 usb_phy->chg_type = UNKNOWN_TYPE; in usb_phy_set_charger_state() [all …]
|
/openbmc/linux/drivers/power/supply/ |
H A D | max14656_charger_detector.c | 140 u8 chg_type; in max14656_irq_worker() local 147 chg_type = buf[MAX14656_STATUS_1] & STATUS1_CHG_TYPE_MASK; in max14656_irq_worker() 148 if (chg_type < MAX14656_CHARGER_LAST) in max14656_irq_worker() 149 chip->psy_desc.type = chg_type_props[chg_type].type; in max14656_irq_worker()
|
H A D | max14577_charger.c | 126 enum max14577_muic_charger_type chg_type; in max14577_get_online() local 133 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); in max14577_get_online() 134 switch (chg_type) { in max14577_get_online() 165 enum max14577_muic_charger_type chg_type; in max14577_get_battery_health() local 172 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); in max14577_get_battery_health() 173 if (chg_type == MAX14577_CHARGER_TYPE_DEAD_BATTERY) { in max14577_get_battery_health()
|
H A D | adp5061.c | 424 int chg_type, ret; in adp5061_get_chg_type() local 430 chg_type = ADP5061_CHG_STATUS_1_CHG_STATUS(status1); in adp5061_get_chg_type() 431 if (chg_type >= ARRAY_SIZE(adp5061_chg_type)) in adp5061_get_chg_type() 434 val->intval = adp5061_chg_type[chg_type]; in adp5061_get_chg_type()
|
/openbmc/linux/drivers/phy/ti/ |
H A D | phy-tusb1210.c | 62 enum power_supply_usb_type chg_type; member 181 tusb->chg_type = type; in tusb1210_chg_det_set_type() 265 tusb->chg_type = POWER_SUPPLY_USB_TYPE_UNKNOWN; in tusb1210_chg_det_work() 394 val->intval = tusb->chg_type; in tusb1210_psy_get_prop() 397 if (tusb->chg_type == POWER_SUPPLY_USB_TYPE_DCP) in tusb1210_psy_get_prop()
|
/openbmc/linux/drivers/platform/chrome/ |
H A D | cros_usbpd_logger.c | 83 const char *fault, *role, *chg_type; in cros_usbpd_print_log_entry() local 112 chg_type = type_idx < ARRAY_SIZE(chg_type_names) ? in cros_usbpd_print_log_entry() 125 chg_type, meas->voltage_now, in cros_usbpd_print_log_entry()
|
/openbmc/linux/drivers/phy/rockchip/ |
H A D | phy-rockchip-inno-usb2.c | 250 enum power_supply_type chg_type; member 665 switch (rphy->chg_type) { in rockchip_usb2phy_otg_sm_work() 699 rphy->chg_type = POWER_SUPPLY_TYPE_UNKNOWN; in rockchip_usb2phy_otg_sm_work() 719 rphy->chg_type = POWER_SUPPLY_TYPE_UNKNOWN; in rockchip_usb2phy_otg_sm_work() 743 switch (chg_type) { in chg_to_string() 840 rphy->chg_type = POWER_SUPPLY_TYPE_USB_DCP; in rockchip_chg_detect_work() 844 rphy->chg_type = POWER_SUPPLY_TYPE_USB; in rockchip_chg_detect_work() 856 rphy->chg_type = POWER_SUPPLY_TYPE_USB_DCP; in rockchip_chg_detect_work() 858 rphy->chg_type = POWER_SUPPLY_TYPE_USB_CDP; in rockchip_chg_detect_work() 868 chg_to_string(rphy->chg_type)); in rockchip_chg_detect_work() [all …]
|
/openbmc/linux/drivers/usb/chipidea/ |
H A D | usbmisc_imx.c | 733 usb_phy->chg_type = DCP_TYPE; in imx7d_charger_secondary_detection() 736 usb_phy->chg_type = CDP_TYPE; in imx7d_charger_secondary_detection() 833 usb_phy->chg_type = SDP_TYPE; in imx7d_charger_primary_detection() 882 if (!ret && usb_phy->chg_type != SDP_TYPE) in imx7d_charger_detection() 1159 usb_phy->chg_type = UNKNOWN_TYPE; in imx_usbmisc_charger_detection()
|
/openbmc/linux/include/linux/usb/ |
H A D | phy.h | 110 enum usb_charger_type chg_type; member
|
/openbmc/linux/drivers/usb/gadget/udc/ |
H A D | tegra-xudc.c | 2168 if (xudc->curr_usbphy && xudc->curr_usbphy->chg_type == SDP_TYPE) in tegra_xudc_gadget_vbus_draw()
|