Searched refs:chg_type (Results 1 - 14 of 14) sorted by relevance

/linux-master/drivers/extcon/
H A Dextcon-max77843.c263 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 Dextcon-max14577.c259 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 Dextcon-max8997.c251 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 Dextcon-max77693.c317 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 Dphy.c166 "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 Dmax14656_charger_detector.c140 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 Dmax14577_charger.c126 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 Dadp5061.c424 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 Dcros_usbpd_logger.c83 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 Dphy-tusb1210.c66 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 Dphy-rockchip-inno-usb2.c237 * @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 Dphy.h110 enum usb_charger_type chg_type; member in struct:usb_phy
/linux-master/drivers/usb/chipidea/
H A Dusbmisc_imx.c733 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 Dtegra-xudc.c2168 if (xudc->curr_usbphy && xudc->curr_usbphy->chg_type == SDP_TYPE)

Completed in 199 milliseconds