Lines Matching refs:attached
219 u8 val, bool attached) in max77843_muic_set_path() argument
225 if (attached) in max77843_muic_set_path()
238 if (attached) in max77843_muic_set_path()
254 ctrl1, ctrl2, attached ? "attached" : "detached"); in max77843_muic_set_path()
260 enum max77843_muic_cable_group group, bool *attached) in max77843_muic_get_cable_type() argument
271 *attached = false; in max77843_muic_get_cable_type()
275 *attached = true; in max77843_muic_get_cable_type()
289 *attached = false; in max77843_muic_get_cable_type()
296 *attached = true; in max77843_muic_get_cable_type()
304 *attached = false; in max77843_muic_get_cable_type()
308 *attached = true; in max77843_muic_get_cable_type()
314 *attached = false; in max77843_muic_get_cable_type()
318 *attached = true; in max77843_muic_get_cable_type()
351 bool attached; in max77843_muic_adc_gnd_handler() local
354 MAX77843_CABLE_GROUP_ADC_GND, &attached); in max77843_muic_adc_gnd_handler()
356 attached ? "attached" : "detached", gnd_cable_type); in max77843_muic_adc_gnd_handler()
361 ret = max77843_muic_set_path(info, CONTROL1_SW_USB, attached); in max77843_muic_adc_gnd_handler()
365 extcon_set_cable_state(info->edev, "USB-HOST", attached); in max77843_muic_adc_gnd_handler()
369 ret = max77843_muic_set_path(info, CONTROL1_SW_OPEN, attached); in max77843_muic_adc_gnd_handler()
373 extcon_set_cable_state(info->edev, "MHL", attached); in max77843_muic_adc_gnd_handler()
377 attached ? "attached" : "detached", gnd_cable_type); in max77843_muic_adc_gnd_handler()
385 int cable_type, bool attached) in max77843_muic_jig_handler() argument
390 attached ? "attached" : "detached", cable_type); in max77843_muic_jig_handler()
394 ret = max77843_muic_set_path(info, CONTROL1_SW_USB, attached); in max77843_muic_jig_handler()
397 extcon_set_cable_state(info->edev, "JIG-USB-OFF", attached); in max77843_muic_jig_handler()
400 ret = max77843_muic_set_path(info, CONTROL1_SW_USB, attached); in max77843_muic_jig_handler()
403 extcon_set_cable_state(info->edev, "JIG-USB-ON", attached); in max77843_muic_jig_handler()
406 ret = max77843_muic_set_path(info, CONTROL1_SW_UART, attached); in max77843_muic_jig_handler()
409 extcon_set_cable_state(info->edev, "JIG-UART-OFF", attached); in max77843_muic_jig_handler()
412 ret = max77843_muic_set_path(info, CONTROL1_SW_OPEN, attached); in max77843_muic_jig_handler()
424 bool attached; in max77843_muic_adc_handler() local
427 MAX77843_CABLE_GROUP_ADC, &attached); in max77843_muic_adc_handler()
431 attached ? "attached" : "detached", cable_type, in max77843_muic_adc_handler()
443 ret = max77843_muic_jig_handler(info, cable_type, attached); in max77843_muic_adc_handler()
477 attached ? "attached" : "detached", cable_type); in max77843_muic_adc_handler()
482 attached ? "attached" : "detached", cable_type); in max77843_muic_adc_handler()
492 bool attached; in max77843_muic_chg_handler() local
495 MAX77843_CABLE_GROUP_CHG, &attached); in max77843_muic_chg_handler()
499 attached ? "attached" : "detached", in max77843_muic_chg_handler()
504 ret = max77843_muic_set_path(info, CONTROL1_SW_USB, attached); in max77843_muic_chg_handler()
508 extcon_set_cable_state(info->edev, "USB", attached); in max77843_muic_chg_handler()
511 ret = max77843_muic_set_path(info, CONTROL1_SW_OPEN, attached); in max77843_muic_chg_handler()
516 "CHARGER-DOWNSTREAM", attached); in max77843_muic_chg_handler()
519 ret = max77843_muic_set_path(info, CONTROL1_SW_OPEN, attached); in max77843_muic_chg_handler()
523 extcon_set_cable_state(info->edev, "TA", attached); in max77843_muic_chg_handler()
526 ret = max77843_muic_set_path(info, CONTROL1_SW_OPEN, attached); in max77843_muic_chg_handler()
530 extcon_set_cable_state(info->edev, "SLOW-CHAREGER", attached); in max77843_muic_chg_handler()
533 ret = max77843_muic_set_path(info, CONTROL1_SW_OPEN, attached); in max77843_muic_chg_handler()
537 extcon_set_cable_state(info->edev, "FAST-CHARGER", attached); in max77843_muic_chg_handler()
541 MAX77843_CABLE_GROUP_ADC_GND, &attached); in max77843_muic_chg_handler()
554 attached ? "attached" : "detached", chg_type); in max77843_muic_chg_handler()
556 max77843_muic_set_path(info, CONTROL1_SW_OPEN, attached); in max77843_muic_chg_handler()
645 bool attached; in max77843_muic_detect_cable_wq() local
658 MAX77843_CABLE_GROUP_ADC, &attached); in max77843_muic_detect_cable_wq()
659 if (attached && adc != MAX77843_MUIC_ADC_OPEN) { in max77843_muic_detect_cable_wq()
668 MAX77843_CABLE_GROUP_CHG, &attached); in max77843_muic_detect_cable_wq()
669 if (attached && chg_type != MAX77843_MUIC_CHG_NONE) { in max77843_muic_detect_cable_wq()