Lines Matching refs:attached
290 u8 val, bool attached) in max77693_muic_set_path() argument
295 if (attached) in max77693_muic_set_path()
307 if (attached) in max77693_muic_set_path()
322 ctrl1, ctrl2, attached ? "attached" : "detached"); in max77693_muic_set_path()
341 enum max77693_muic_cable_group group, bool *attached) in max77693_muic_get_cable_type() argument
365 *attached = false; in max77693_muic_get_cable_type()
370 *attached = true; in max77693_muic_get_cable_type()
389 *attached = false; in max77693_muic_get_cable_type()
394 *attached = true; in max77693_muic_get_cable_type()
431 *attached = false; in max77693_muic_get_cable_type()
436 *attached = true; in max77693_muic_get_cable_type()
459 *attached = false; in max77693_muic_get_cable_type()
461 *attached = true; in max77693_muic_get_cable_type()
482 int cable_type, bool attached) in max77693_muic_dock_handler() argument
491 attached ? "attached" : "detached", cable_type); in max77693_muic_dock_handler()
503 if (attached && !vbvolt) { in max77693_muic_dock_handler()
528 ret = max77693_muic_set_path(info, info->path_usb, attached); in max77693_muic_dock_handler()
532 extcon_set_cable_state(info->edev, "Dock-Smart", attached); in max77693_muic_dock_handler()
533 extcon_set_cable_state(info->edev, "MHL", attached); in max77693_muic_dock_handler()
540 if (!attached) in max77693_muic_dock_handler()
545 attached ? "attached" : "detached"); in max77693_muic_dock_handler()
550 ret = max77693_muic_set_path(info, CONTROL1_SW_AUDIO, attached); in max77693_muic_dock_handler()
553 extcon_set_cable_state(info->edev, dock_name, attached); in max77693_muic_dock_handler()
560 int button_type, bool attached) in max77693_muic_dock_button_handler() argument
592 attached ? "pressed" : "released", button_type); in max77693_muic_dock_button_handler()
596 input_event(dock, EV_KEY, code, attached); in max77693_muic_dock_button_handler()
606 bool attached; in max77693_muic_adc_ground_handler() local
609 MAX77693_CABLE_GROUP_ADC_GND, &attached); in max77693_muic_adc_ground_handler()
615 ret = max77693_muic_set_path(info, CONTROL1_SW_USB, attached); in max77693_muic_adc_ground_handler()
618 extcon_set_cable_state(info->edev, "USB-Host", attached); in max77693_muic_adc_ground_handler()
622 ret = max77693_muic_set_path(info, CONTROL1_SW_AUDIO, attached); in max77693_muic_adc_ground_handler()
626 "Audio-video-load", attached); in max77693_muic_adc_ground_handler()
631 extcon_set_cable_state(info->edev, "MHL", attached); in max77693_muic_adc_ground_handler()
635 attached ? "attached" : "detached"); in max77693_muic_adc_ground_handler()
643 int cable_type, bool attached) in max77693_muic_jig_handler() argument
651 attached ? "attached" : "detached", cable_type); in max77693_muic_jig_handler()
676 attached ? "attached" : "detached"); in max77693_muic_jig_handler()
680 ret = max77693_muic_set_path(info, path, attached); in max77693_muic_jig_handler()
684 extcon_set_cable_state(info->edev, cable_name, attached); in max77693_muic_jig_handler()
693 bool attached; in max77693_muic_adc_handler() local
698 MAX77693_CABLE_GROUP_ADC, &attached); in max77693_muic_adc_handler()
702 attached ? "attached" : "detached", cable_type, in max77693_muic_adc_handler()
715 ret = max77693_muic_jig_handler(info, cable_type, attached); in max77693_muic_adc_handler()
731 ret = max77693_muic_dock_handler(info, cable_type, attached); in max77693_muic_adc_handler()
750 if (attached) in max77693_muic_adc_handler()
756 attached); in max77693_muic_adc_handler()
785 attached ? "attached" : "detached", cable_type); in max77693_muic_adc_handler()
790 attached ? "attached" : "detached", cable_type); in max77693_muic_adc_handler()
802 bool attached; in max77693_muic_chg_handler() local
807 MAX77693_CABLE_GROUP_CHG, &attached); in max77693_muic_chg_handler()
811 attached ? "attached" : "detached", in max77693_muic_chg_handler()
838 extcon_set_cable_state(info->edev, "MHL-TA", attached); in max77693_muic_chg_handler()
864 extcon_set_cable_state(info->edev, "USB", attached); in max77693_muic_chg_handler()
892 attached); in max77693_muic_chg_handler()
897 attached); in max77693_muic_chg_handler()
898 extcon_set_cable_state(info->edev, "MHL", attached); in max77693_muic_chg_handler()
928 attached); in max77693_muic_chg_handler()
932 extcon_set_cable_state(info->edev, "USB", attached); in max77693_muic_chg_handler()
936 extcon_set_cable_state(info->edev, "TA", attached); in max77693_muic_chg_handler()
942 "Charge-downstream", attached); in max77693_muic_chg_handler()
945 extcon_set_cable_state(info->edev, "Slow-charger", attached); in max77693_muic_chg_handler()
948 extcon_set_cable_state(info->edev, "Fast-charger", attached); in max77693_muic_chg_handler()
955 attached ? "attached" : "detached", chg_type); in max77693_muic_chg_handler()
1044 bool attached; in max77693_muic_detect_accessory() local
1058 &attached); in max77693_muic_detect_accessory()
1059 if (attached && adc != MAX77693_MUIC_ADC_OPEN) { in max77693_muic_detect_accessory()
1069 &attached); in max77693_muic_detect_accessory()
1070 if (attached && chg_type != MAX77693_CHARGER_TYPE_NONE) { in max77693_muic_detect_accessory()