Lines Matching refs: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)
263 if (attached)
275 if (attached)
291 ctrl1, ctrl2, attached ? "attached" : "detached");
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)
334 *attached = false;
339 *attached = true;
358 *attached = false;
363 *attached = true;
400 *attached = false;
405 *attached = true;
428 *attached = false;
430 *attached = true;
451 int cable_type, bool attached)
460 attached ? "attached" : "detached", cable_type);
465 * Check power cable whether attached or detached state.
472 if (attached && !vbvolt) {
497 ret = max77693_muic_set_path(info, info->path_usb, attached);
501 extcon_set_state_sync(info->edev, EXTCON_DOCK, attached);
502 extcon_set_state_sync(info->edev, EXTCON_DISP_MHL, attached);
509 if (!attached) {
517 attached ? "attached" : "detached");
523 attached);
526 extcon_set_state_sync(info->edev, dock_id, attached);
533 int button_type, bool attached)
565 attached ? "pressed" : "released", button_type);
569 input_event(dock, EV_KEY, code, attached);
579 bool attached;
582 MAX77693_CABLE_GROUP_ADC_GND, &attached);
589 attached);
592 extcon_set_state_sync(info->edev, EXTCON_USB_HOST, attached);
597 attached);
600 extcon_set_state_sync(info->edev, EXTCON_USB, attached);
602 attached);
607 extcon_set_state_sync(info->edev, EXTCON_DISP_MHL, attached);
611 attached ? "attached" : "detached");
619 int cable_type, bool attached)
626 attached ? "attached" : "detached", cable_type);
641 attached ? "attached" : "detached");
645 ret = max77693_muic_set_path(info, path, attached);
649 extcon_set_state_sync(info->edev, EXTCON_JIG, attached);
658 bool attached;
661 /* Check accessory state which is either detached or attached */
663 MAX77693_CABLE_GROUP_ADC, &attached);
667 attached ? "attached" : "detached", cable_type,
680 ret = max77693_muic_jig_handler(info, cable_type, attached);
696 ret = max77693_muic_dock_handler(info, cable_type, attached);
715 if (attached)
721 attached);
746 * proper operation when this accessory is attached/detached.
750 attached ? "attached" : "detached", cable_type);
755 attached ? "attached" : "detached", cable_type);
767 bool attached;
772 MAX77693_CABLE_GROUP_CHG, &attached);
776 attached ? "attached" : "detached",
804 attached);
830 attached);
832 attached);
860 attached);
865 attached);
867 attached);
876 * cable is attached, muic device happen below two irq.
896 attached);
901 attached);
903 attached);
908 attached);
914 attached);
918 attached);
922 attached);
929 attached ? "attached" : "detached", chg_type);
1020 bool attached;
1034 &attached);
1035 if (attached && adc != MAX77693_MUIC_ADC_OPEN) {
1045 &attached);
1046 if (attached && chg_type != MAX77693_CHARGER_TYPE_NONE) {
1077 bool attached;
1229 MAX77693_CABLE_GROUP_ADC, &attached);
1230 if (attached && (cable_type == MAX77693_MUIC_ADC_FACTORY_MODE_UART_ON ||