/linux-master/drivers/extcon/ |
H A D | extcon-max77843.c | 263 int adc, chg_type, cable_type, gnd_type; local 281 chg_type = info->status[MAX77843_MUIC_STATUS2] & 286 if (chg_type == MAX77843_MUIC_CHG_NONE) { 309 if (chg_type == MAX77843_MUIC_CHG_NONE) { 321 if (chg_type == MAX77843_MUIC_CHG_NONE) { 327 cable_type = info->prev_chg_type = chg_type; 533 int ret, chg_type, gnd_type; local 536 chg_type = max77843_muic_get_cable_type(info, 540 "external connector is %s(chg_type:0x%x, prev_chg_type:0x%x)\n", 542 chg_type, inf 707 int chg_type, adc, ret; local [all...] |
H A D | extcon-max14577.c | 259 int chg_type; local 291 chg_type = info->status[MAX14577_MUIC_STATUS2] & 293 chg_type >>= STATUS2_CHGTYP_SHIFT; 295 if (chg_type == MAX14577_CHARGER_TYPE_NONE) { 308 cable_type = info->prev_chg_type = chg_type; 429 int chg_type; local 433 chg_type = max14577_muic_get_cable_type(info, 437 "external connector is %s(chg_type:0x%x, prev_chg_type:0x%x)\n", 439 chg_type, info->prev_chg_type); 441 switch (chg_type) { 607 int chg_type; local [all...] |
H A D | extcon-max8997.c | 251 int chg_type; local 283 chg_type = info->status[1] & STATUS2_CHGTYP_MASK; 284 chg_type >>= STATUS2_CHGTYP_SHIFT; 286 if (chg_type == MAX8997_CHARGER_TYPE_NONE) { 299 cable_type = info->prev_chg_type = chg_type; 463 int chg_type; local 467 chg_type = max8997_muic_get_cable_type(info, 470 switch (chg_type) { 501 attached ? "attached" : "detached", chg_type); 580 int chg_type; local [all...] |
H A D | extcon-max77693.c | 317 int chg_type; local 396 chg_type = info->status[1] & MAX77693_STATUS2_CHGTYP_MASK; 397 chg_type >>= MAX77693_STATUS2_CHGTYP_SHIFT; 399 if (chg_type == MAX77693_CHARGER_TYPE_NONE) { 412 cable_type = info->prev_chg_type = chg_type; 423 chg_type = info->status[1] & MAX77693_STATUS2_CHGTYP_MASK; 424 chg_type >>= MAX77693_STATUS2_CHGTYP_SHIFT; 427 && chg_type == MAX77693_CHARGER_TYPE_NONE) 764 int chg_type; local 771 chg_type 1019 int chg_type; local [all...] |
/linux-master/drivers/usb/phy/ |
H A D | phy.c | 166 "USB_CHARGER_TYPE=%s", usb_chger_type[usb_phy->chg_type]); 180 usb_phy->chg_type = SDP_TYPE; 183 usb_phy->chg_type = CDP_TYPE; 186 usb_phy->chg_type = DCP_TYPE; 189 usb_phy->chg_type = ACA_TYPE; 192 usb_phy->chg_type = UNKNOWN_TYPE; 233 switch (usb_phy->chg_type) { 283 switch (usb_phy->chg_type) { 325 usb_phy->chg_type = usb_phy->charger_detect(usb_phy); 327 usb_phy->chg_type [all...] |
/linux-master/drivers/power/supply/ |
H A D | max14656_charger_detector.c | 140 u8 chg_type; local 147 chg_type = buf[MAX14656_STATUS_1] & STATUS1_CHG_TYPE_MASK; 148 if (chg_type < MAX14656_CHARGER_LAST) 149 chip->psy_desc.type = chg_type_props[chg_type].type;
|
H A D | max14577_charger.c | 126 enum max14577_muic_charger_type chg_type; local 133 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); 134 switch (chg_type) { 165 enum max14577_muic_charger_type chg_type; local 172 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); 173 if (chg_type == MAX14577_CHARGER_TYPE_DEAD_BATTERY) {
|
H A D | adp5061.c | 424 int chg_type, ret; local 430 chg_type = ADP5061_CHG_STATUS_1_CHG_STATUS(status1); 431 if (chg_type >= ARRAY_SIZE(adp5061_chg_type)) 434 val->intval = adp5061_chg_type[chg_type];
|
/linux-master/drivers/platform/chrome/ |
H A D | cros_usbpd_logger.c | 83 const char *fault, *role, *chg_type; local 112 chg_type = type_idx < ARRAY_SIZE(chg_type_names) ? 125 chg_type, meas->voltage_now,
|
/linux-master/drivers/phy/ti/ |
H A D | phy-tusb1210.c | 66 enum power_supply_usb_type chg_type; member in struct:tusb1210 186 tusb->chg_type = type; 270 tusb->chg_type = POWER_SUPPLY_USB_TYPE_UNKNOWN; 399 val->intval = tusb->chg_type; 402 if (tusb->chg_type == POWER_SUPPLY_USB_TYPE_DCP)
|
/linux-master/drivers/phy/rockchip/ |
H A D | phy-rockchip-inno-usb2.c | 237 * @chg_type: USB charger types. 254 enum power_supply_type chg_type; member in struct:rockchip_usb2phy 681 switch (rphy->chg_type) { 715 rphy->chg_type = POWER_SUPPLY_TYPE_UNKNOWN; 735 rphy->chg_type = POWER_SUPPLY_TYPE_UNKNOWN; 757 static const char *chg_to_string(enum power_supply_type chg_type) argument 759 switch (chg_type) { 856 rphy->chg_type = POWER_SUPPLY_TYPE_USB_DCP; 860 rphy->chg_type = POWER_SUPPLY_TYPE_USB; 872 rphy->chg_type [all...] |
/linux-master/include/linux/usb/ |
H A D | phy.h | 110 enum usb_charger_type chg_type; member in struct:usb_phy
|
/linux-master/drivers/usb/chipidea/ |
H A D | usbmisc_imx.c | 733 usb_phy->chg_type = DCP_TYPE; 736 usb_phy->chg_type = CDP_TYPE; 833 usb_phy->chg_type = SDP_TYPE; 882 if (!ret && usb_phy->chg_type != SDP_TYPE) 1159 usb_phy->chg_type = UNKNOWN_TYPE;
|
/linux-master/drivers/usb/gadget/udc/ |
H A D | tegra-xudc.c | 2168 if (xudc->curr_usbphy && xudc->curr_usbphy->chg_type == SDP_TYPE)
|