Lines Matching full:attached

247  * max77693_muic_set_path - Set hardware line according to attached cable
249 * @value: the path according to attached cable
250 * @attached: the state of cable (true:attached, false:detached)
254 * attached cable.
257 u8 val, bool attached) in max77693_muic_set_path() argument
262 if (attached) in max77693_muic_set_path()
274 if (attached) in max77693_muic_set_path()
290 ctrl1, ctrl2, attached ? "attached" : "detached"); in max77693_muic_set_path()
298 * @group: the path according to attached cable
299 * @attached: store cable state and return
301 * This function check the cable state either attached or detached,
309 enum max77693_muic_cable_group group, bool *attached) in max77693_muic_get_cable_type() argument
333 *attached = false; in max77693_muic_get_cable_type()
338 *attached = true; in max77693_muic_get_cable_type()
357 *attached = false; in max77693_muic_get_cable_type()
362 *attached = true; in max77693_muic_get_cable_type()
399 *attached = false; in max77693_muic_get_cable_type()
404 *attached = true; in max77693_muic_get_cable_type()
427 *attached = false; in max77693_muic_get_cable_type()
429 *attached = true; in max77693_muic_get_cable_type()
450 int cable_type, bool attached) in max77693_muic_dock_handler() argument
459 attached ? "attached" : "detached", cable_type); in max77693_muic_dock_handler()
464 * Check power cable whether attached or detached state. in max77693_muic_dock_handler()
471 if (attached && !vbvolt) { in max77693_muic_dock_handler()
496 ret = max77693_muic_set_path(info, info->path_usb, attached); in max77693_muic_dock_handler()
500 extcon_set_state_sync(info->edev, EXTCON_DOCK, attached); in max77693_muic_dock_handler()
501 extcon_set_state_sync(info->edev, EXTCON_DISP_MHL, attached); in max77693_muic_dock_handler()
508 if (!attached) { in max77693_muic_dock_handler()
516 attached ? "attached" : "detached"); in max77693_muic_dock_handler()
522 attached); in max77693_muic_dock_handler()
525 extcon_set_state_sync(info->edev, dock_id, attached); in max77693_muic_dock_handler()
532 int button_type, bool attached) in max77693_muic_dock_button_handler() argument
564 attached ? "pressed" : "released", button_type); in max77693_muic_dock_button_handler()
568 input_event(dock, EV_KEY, code, attached); in max77693_muic_dock_button_handler()
578 bool attached; in max77693_muic_adc_ground_handler() local
581 MAX77693_CABLE_GROUP_ADC_GND, &attached); in max77693_muic_adc_ground_handler()
588 attached); in max77693_muic_adc_ground_handler()
591 extcon_set_state_sync(info->edev, EXTCON_USB_HOST, attached); in max77693_muic_adc_ground_handler()
596 attached); in max77693_muic_adc_ground_handler()
599 extcon_set_state_sync(info->edev, EXTCON_USB, attached); in max77693_muic_adc_ground_handler()
601 attached); in max77693_muic_adc_ground_handler()
606 extcon_set_state_sync(info->edev, EXTCON_DISP_MHL, attached); in max77693_muic_adc_ground_handler()
610 attached ? "attached" : "detached"); in max77693_muic_adc_ground_handler()
618 int cable_type, bool attached) in max77693_muic_jig_handler() argument
625 attached ? "attached" : "detached", cable_type); in max77693_muic_jig_handler()
640 attached ? "attached" : "detached"); in max77693_muic_jig_handler()
644 ret = max77693_muic_set_path(info, path, attached); in max77693_muic_jig_handler()
648 extcon_set_state_sync(info->edev, EXTCON_JIG, attached); in max77693_muic_jig_handler()
657 bool attached; in max77693_muic_adc_handler() local
660 /* Check accessory state which is either detached or attached */ in max77693_muic_adc_handler()
662 MAX77693_CABLE_GROUP_ADC, &attached); in max77693_muic_adc_handler()
666 attached ? "attached" : "detached", cable_type, in max77693_muic_adc_handler()
679 ret = max77693_muic_jig_handler(info, cable_type, attached); in max77693_muic_adc_handler()
695 ret = max77693_muic_dock_handler(info, cable_type, attached); in max77693_muic_adc_handler()
714 if (attached) in max77693_muic_adc_handler()
720 attached); in max77693_muic_adc_handler()
745 * proper operation when this accessory is attached/detached. in max77693_muic_adc_handler()
749 attached ? "attached" : "detached", cable_type); in max77693_muic_adc_handler()
754 attached ? "attached" : "detached", cable_type); in max77693_muic_adc_handler()
766 bool attached; in max77693_muic_chg_handler() local
771 MAX77693_CABLE_GROUP_CHG, &attached); in max77693_muic_chg_handler()
775 attached ? "attached" : "detached", in max77693_muic_chg_handler()
803 attached); in max77693_muic_chg_handler()
829 attached); in max77693_muic_chg_handler()
831 attached); in max77693_muic_chg_handler()
859 attached); in max77693_muic_chg_handler()
864 attached); in max77693_muic_chg_handler()
866 attached); in max77693_muic_chg_handler()
875 * cable is attached, muic device happen below two irq. in max77693_muic_chg_handler()
895 attached); in max77693_muic_chg_handler()
900 attached); in max77693_muic_chg_handler()
902 attached); in max77693_muic_chg_handler()
907 attached); in max77693_muic_chg_handler()
913 attached); in max77693_muic_chg_handler()
917 attached); in max77693_muic_chg_handler()
921 attached); in max77693_muic_chg_handler()
928 attached ? "attached" : "detached", chg_type); in max77693_muic_chg_handler()
1019 bool attached; in max77693_muic_detect_accessory() local
1033 &attached); in max77693_muic_detect_accessory()
1034 if (attached && adc != MAX77693_MUIC_ADC_OPEN) { in max77693_muic_detect_accessory()
1044 &attached); in max77693_muic_detect_accessory()
1045 if (attached && chg_type != MAX77693_CHARGER_TYPE_NONE) { in max77693_muic_detect_accessory()
1076 bool attached; in max77693_muic_probe() local
1225 MAX77693_CABLE_GROUP_ADC, &attached); in max77693_muic_probe()
1226 if (attached && (cable_type == MAX77693_MUIC_ADC_FACTORY_MODE_UART_ON || in max77693_muic_probe()