Searched refs:cable_type (Results 1 – 7 of 7) sorted by relevance
| /linux/drivers/extcon/ |
| H A D | extcon-max77693.c | 312 int cable_type = 0; in max77693_muic_get_cable_type() local 336 cable_type = info->prev_cable_type; in max77693_muic_get_cable_type() 341 cable_type = info->prev_cable_type = adc; in max77693_muic_get_cable_type() 360 cable_type = info->prev_cable_type_gnd; in max77693_muic_get_cable_type() 381 cable_type = ((0x1 << 8) in max77693_muic_get_cable_type() 387 info->prev_cable_type_gnd = cable_type; in max77693_muic_get_cable_type() 402 cable_type = info->prev_chg_type; in max77693_muic_get_cable_type() 412 cable_type = info->prev_chg_type = chg_type; in max77693_muic_get_cable_type() 439 cable_type = vbvolt; in max77693_muic_get_cable_type() 443 cable_type = -EINVAL; in max77693_muic_get_cable_type() [all …]
|
| H A D | extcon-max14577.c | 257 int cable_type = 0; in max14577_muic_get_cable_type() local 278 cable_type = info->prev_cable_type; in max14577_muic_get_cable_type() 283 cable_type = info->prev_cable_type = adc; in max14577_muic_get_cable_type() 298 cable_type = info->prev_chg_type; in max14577_muic_get_cable_type() 308 cable_type = info->prev_chg_type = chg_type; in max14577_muic_get_cable_type() 314 cable_type = -EINVAL; in max14577_muic_get_cable_type() 318 return cable_type; in max14577_muic_get_cable_type() 322 int cable_type, bool attached) in max14577_muic_jig_handler() argument 329 attached ? "attached" : "detached", cable_type); in max14577_muic_jig_handler() 331 switch (cable_type) { in max14577_muic_jig_handler() [all …]
|
| H A D | extcon-max77843.c | 263 int adc, chg_type, cable_type, gnd_type; in max77843_muic_get_cable_type() local 273 cable_type = info->prev_cable_type; in max77843_muic_get_cable_type() 277 cable_type = info->prev_cable_type = adc; in max77843_muic_get_cable_type() 293 cable_type = info->prev_chg_type; in max77843_muic_get_cable_type() 302 cable_type = MAX77843_MUIC_CHG_GND; in max77843_muic_get_cable_type() 311 cable_type = info->prev_chg_type; in max77843_muic_get_cable_type() 315 cable_type = MAX77843_MUIC_CHG_DOCK; in max77843_muic_get_cable_type() 323 cable_type = info->prev_chg_type; in max77843_muic_get_cable_type() 327 cable_type = info->prev_chg_type = chg_type; in max77843_muic_get_cable_type() 333 cable_type = info->prev_gnd_type; in max77843_muic_get_cable_type() [all …]
|
| H A D | extcon-max8997.c | 249 int cable_type = 0; in max8997_muic_get_cable_type() local 270 cable_type = info->prev_cable_type; in max8997_muic_get_cable_type() 275 cable_type = info->prev_cable_type = adc; in max8997_muic_get_cable_type() 289 cable_type = info->prev_chg_type; in max8997_muic_get_cable_type() 299 cable_type = info->prev_chg_type = chg_type; in max8997_muic_get_cable_type() 305 cable_type = -EINVAL; in max8997_muic_get_cable_type() 309 return cable_type; in max8997_muic_get_cable_type() 342 int cable_type, bool attached) in max8997_muic_handle_dock() argument 352 switch (cable_type) { in max8997_muic_handle_dock() 385 int cable_type; in max8997_muic_adc_handler() local [all …]
|
| H A D | extcon-rt8973a.c | 262 int ret, cable_type; in rt8973a_muic_get_cable_type() local 270 cable_type = adc & RT8973A_REG_ADC_MASK; in rt8973a_muic_get_cable_type() 282 cable_type = RT8973A_MUIC_ADC_USB; in rt8973a_muic_get_cable_type() 284 cable_type = RT8973A_MUIC_ADC_TA; in rt8973a_muic_get_cable_type() 286 cable_type = RT8973A_MUIC_ADC_OPEN; in rt8973a_muic_get_cable_type() 292 return cable_type; in rt8973a_muic_get_cable_type() 300 int ret, cable_type; in rt8973a_muic_cable_handler() local 306 cable_type = rt8973a_muic_get_cable_type(info); in rt8973a_muic_cable_handler() 310 cable_type = prev_cable_type; in rt8973a_muic_cable_handler() 318 cable_type = prev_cable_type; in rt8973a_muic_cable_handler() [all …]
|
| H A D | extcon-sm5502.c | 361 unsigned int cable_type, adc, dev_type1; in sm5502_muic_get_cable_type() local 375 cable_type = adc & SM5502_REG_ADC_MASK; in sm5502_muic_get_cable_type() 377 switch (cable_type) { in sm5502_muic_get_cable_type() 387 cable_type = SM5502_MUIC_ADC_GROUND_USB_OTG; in sm5502_muic_get_cable_type() 442 cable_type = SM5502_MUIC_ADC_OPEN_USB_OTG; in sm5502_muic_get_cable_type() 448 cable_type = SM5502_MUIC_ADC_OPEN_USB; in sm5502_muic_get_cable_type() 451 cable_type = SM5502_MUIC_ADC_OPEN_TA; in sm5502_muic_get_cable_type() 466 return cable_type; in sm5502_muic_get_cable_type() 473 unsigned int cable_type = SM5502_MUIC_ADC_GROUND; in sm5502_muic_cable_handler() local 481 cable_type = sm5502_muic_get_cable_type(info); in sm5502_muic_cable_handler() [all …]
|
| /linux/drivers/soc/qcom/ |
| H A D | pmic_glink_altmode.c | 52 u8 cable_type : 3; member 235 if (tbt->cable_type) { in pmic_glink_altmode_enable_tbt() 244 if (tbt->cable_type) { in pmic_glink_altmode_enable_tbt() 285 data.eudo |= FIELD_PREP(EUDO_CABLE_TYPE_MASK, tbt->cable_type); in pmic_glink_altmode_enable_usb4()
|