Lines Matching full:attached
248 * max77693_muic_set_path - Set hardware line according to attached cable
250 * @value: the path according to attached cable
251 * @attached: the state of cable (true:attached, false:detached)
255 * attached cable.
258 u8 val, bool attached) in max77693_muic_set_path() argument
263 if (attached) in max77693_muic_set_path()
275 if (attached) in max77693_muic_set_path()
291 ctrl1, ctrl2, attached ? "attached" : "detached"); in max77693_muic_set_path()
299 * @group: the path according to attached cable
300 * @attached: store cable state and return
302 * This function check the cable state either attached or detached,
310 enum max77693_muic_cable_group group, bool *attached) in max77693_muic_get_cable_type() argument
334 *attached = false; in max77693_muic_get_cable_type()
339 *attached = true; in max77693_muic_get_cable_type()
358 *attached = false; in max77693_muic_get_cable_type()
363 *attached = true; in max77693_muic_get_cable_type()
400 *attached = false; in max77693_muic_get_cable_type()
405 *attached = true; in max77693_muic_get_cable_type()
428 *attached = false; in max77693_muic_get_cable_type()
430 *attached = true; in max77693_muic_get_cable_type()
451 int cable_type, bool attached) in max77693_muic_dock_handler() argument
460 attached ? "attached" : "detached", cable_type); in max77693_muic_dock_handler()
465 * Check power cable whether attached or detached state. in max77693_muic_dock_handler()
472 if (attached && !vbvolt) { in max77693_muic_dock_handler()
497 ret = max77693_muic_set_path(info, info->path_usb, attached); in max77693_muic_dock_handler()
501 extcon_set_state_sync(info->edev, EXTCON_DOCK, attached); in max77693_muic_dock_handler()
502 extcon_set_state_sync(info->edev, EXTCON_DISP_MHL, attached); in max77693_muic_dock_handler()
509 if (!attached) { in max77693_muic_dock_handler()
517 attached ? "attached" : "detached"); in max77693_muic_dock_handler()
523 attached); in max77693_muic_dock_handler()
526 extcon_set_state_sync(info->edev, dock_id, attached); in max77693_muic_dock_handler()
533 int button_type, bool attached) in max77693_muic_dock_button_handler() argument
565 attached ? "pressed" : "released", button_type); in max77693_muic_dock_button_handler()
569 input_event(dock, EV_KEY, code, attached); in max77693_muic_dock_button_handler()
579 bool attached; in max77693_muic_adc_ground_handler() local
582 MAX77693_CABLE_GROUP_ADC_GND, &attached); in max77693_muic_adc_ground_handler()
589 attached); in max77693_muic_adc_ground_handler()
592 extcon_set_state_sync(info->edev, EXTCON_USB_HOST, attached); in max77693_muic_adc_ground_handler()
597 attached); in max77693_muic_adc_ground_handler()
600 extcon_set_state_sync(info->edev, EXTCON_USB, attached); in max77693_muic_adc_ground_handler()
602 attached); in max77693_muic_adc_ground_handler()
607 extcon_set_state_sync(info->edev, EXTCON_DISP_MHL, attached); in max77693_muic_adc_ground_handler()
611 attached ? "attached" : "detached"); in max77693_muic_adc_ground_handler()
619 int cable_type, bool attached) in max77693_muic_jig_handler() argument
626 attached ? "attached" : "detached", cable_type); in max77693_muic_jig_handler()
641 attached ? "attached" : "detached"); in max77693_muic_jig_handler()
645 ret = max77693_muic_set_path(info, path, attached); in max77693_muic_jig_handler()
649 extcon_set_state_sync(info->edev, EXTCON_JIG, attached); in max77693_muic_jig_handler()
658 bool attached; in max77693_muic_adc_handler() local
661 /* Check accessory state which is either detached or attached */ in max77693_muic_adc_handler()
663 MAX77693_CABLE_GROUP_ADC, &attached); in max77693_muic_adc_handler()
667 attached ? "attached" : "detached", cable_type, in max77693_muic_adc_handler()
680 ret = max77693_muic_jig_handler(info, cable_type, attached); in max77693_muic_adc_handler()
696 ret = max77693_muic_dock_handler(info, cable_type, attached); in max77693_muic_adc_handler()
715 if (attached) in max77693_muic_adc_handler()
721 attached); in max77693_muic_adc_handler()
746 * proper operation when this accessory is attached/detached. in max77693_muic_adc_handler()
750 attached ? "attached" : "detached", cable_type); in max77693_muic_adc_handler()
755 attached ? "attached" : "detached", cable_type); in max77693_muic_adc_handler()
767 bool attached; in max77693_muic_chg_handler() local
772 MAX77693_CABLE_GROUP_CHG, &attached); in max77693_muic_chg_handler()
776 attached ? "attached" : "detached", in max77693_muic_chg_handler()
804 attached); in max77693_muic_chg_handler()
830 attached); in max77693_muic_chg_handler()
832 attached); in max77693_muic_chg_handler()
860 attached); in max77693_muic_chg_handler()
865 attached); in max77693_muic_chg_handler()
867 attached); in max77693_muic_chg_handler()
876 * cable is attached, muic device happen below two irq. in max77693_muic_chg_handler()
896 attached); in max77693_muic_chg_handler()
901 attached); in max77693_muic_chg_handler()
903 attached); in max77693_muic_chg_handler()
908 attached); in max77693_muic_chg_handler()
914 attached); in max77693_muic_chg_handler()
918 attached); in max77693_muic_chg_handler()
922 attached); in max77693_muic_chg_handler()
929 attached ? "attached" : "detached", chg_type); in max77693_muic_chg_handler()
1020 bool attached; in max77693_muic_detect_accessory() local
1034 &attached); in max77693_muic_detect_accessory()
1035 if (attached && adc != MAX77693_MUIC_ADC_OPEN) { in max77693_muic_detect_accessory()
1045 &attached); in max77693_muic_detect_accessory()
1046 if (attached && chg_type != MAX77693_CHARGER_TYPE_NONE) { in max77693_muic_detect_accessory()
1077 bool attached; in max77693_muic_probe() local
1229 MAX77693_CABLE_GROUP_ADC, &attached); in max77693_muic_probe()
1230 if (attached && (cable_type == MAX77693_MUIC_ADC_FACTORY_MODE_UART_ON || in max77693_muic_probe()