Lines Matching refs:attached
199 u8 val, bool attached, bool nobccomp) in max77843_muic_set_path() argument
205 if (attached) in max77843_muic_set_path()
224 if (attached) in max77843_muic_set_path()
240 ctrl1, ctrl2, attached ? "attached" : "detached"); in max77843_muic_set_path()
261 enum max77843_muic_cable_group group, bool *attached) in max77843_muic_get_cable_type() argument
272 *attached = false; in max77843_muic_get_cable_type()
276 *attached = true; in max77843_muic_get_cable_type()
292 *attached = false; in max77843_muic_get_cable_type()
301 *attached = true; in max77843_muic_get_cable_type()
310 *attached = false; in max77843_muic_get_cable_type()
314 *attached = true; in max77843_muic_get_cable_type()
322 *attached = false; in max77843_muic_get_cable_type()
326 *attached = true; in max77843_muic_get_cable_type()
332 *attached = false; in max77843_muic_get_cable_type()
336 *attached = true; in max77843_muic_get_cable_type()
371 bool attached; in max77843_muic_adc_gnd_handler() local
374 MAX77843_CABLE_GROUP_ADC_GND, &attached); in max77843_muic_adc_gnd_handler()
376 attached ? "attached" : "detached", gnd_cable_type); in max77843_muic_adc_gnd_handler()
383 attached, false); in max77843_muic_adc_gnd_handler()
387 extcon_set_state_sync(info->edev, EXTCON_USB_HOST, attached); in max77843_muic_adc_gnd_handler()
388 max77843_charger_set_otg_vbus(info, attached); in max77843_muic_adc_gnd_handler()
394 attached, false); in max77843_muic_adc_gnd_handler()
398 extcon_set_state_sync(info->edev, EXTCON_DISP_MHL, attached); in max77843_muic_adc_gnd_handler()
402 attached ? "attached" : "detached", gnd_cable_type); in max77843_muic_adc_gnd_handler()
410 int cable_type, bool attached) in max77843_muic_jig_handler() argument
416 attached ? "attached" : "detached", cable_type); in max77843_muic_jig_handler()
430 ret = max77843_muic_set_path(info, path, attached, false); in max77843_muic_jig_handler()
434 extcon_set_state_sync(info->edev, EXTCON_JIG, attached); in max77843_muic_jig_handler()
440 bool attached) in max77843_muic_dock_handler() argument
445 attached ? "attached" : "detached"); in max77843_muic_dock_handler()
448 attached, attached); in max77843_muic_dock_handler()
452 extcon_set_state_sync(info->edev, EXTCON_DISP_MHL, attached); in max77843_muic_dock_handler()
453 extcon_set_state_sync(info->edev, EXTCON_USB_HOST, attached); in max77843_muic_dock_handler()
454 extcon_set_state_sync(info->edev, EXTCON_DOCK, attached); in max77843_muic_dock_handler()
462 bool attached; in max77843_muic_adc_handler() local
465 MAX77843_CABLE_GROUP_ADC, &attached); in max77843_muic_adc_handler()
469 attached ? "attached" : "detached", cable_type, in max77843_muic_adc_handler()
474 ret = max77843_muic_dock_handler(info, attached); in max77843_muic_adc_handler()
486 ret = max77843_muic_jig_handler(info, cable_type, attached); in max77843_muic_adc_handler()
519 attached ? "attached" : "detached", cable_type); in max77843_muic_adc_handler()
524 attached ? "attached" : "detached", cable_type); in max77843_muic_adc_handler()
534 bool attached; in max77843_muic_chg_handler() local
537 MAX77843_CABLE_GROUP_CHG, &attached); in max77843_muic_chg_handler()
541 attached ? "attached" : "detached", in max77843_muic_chg_handler()
548 attached, false); in max77843_muic_chg_handler()
552 extcon_set_state_sync(info->edev, EXTCON_USB, attached); in max77843_muic_chg_handler()
554 attached); in max77843_muic_chg_handler()
559 attached, false); in max77843_muic_chg_handler()
564 attached); in max77843_muic_chg_handler()
569 attached, false); in max77843_muic_chg_handler()
574 attached); in max77843_muic_chg_handler()
579 attached, false); in max77843_muic_chg_handler()
584 attached); in max77843_muic_chg_handler()
589 attached, false); in max77843_muic_chg_handler()
594 attached); in max77843_muic_chg_handler()
598 MAX77843_CABLE_GROUP_ADC_GND, &attached); in max77843_muic_chg_handler()
609 extcon_set_state_sync(info->edev, EXTCON_CHG_USB_DCP, attached); in max77843_muic_chg_handler()
616 attached ? "attached" : "detached", chg_type); in max77843_muic_chg_handler()
619 attached, false); in max77843_muic_chg_handler()
708 bool attached; in max77843_muic_detect_cable_wq() local
721 MAX77843_CABLE_GROUP_ADC, &attached); in max77843_muic_detect_cable_wq()
722 if (attached && adc != MAX77843_MUIC_ADC_OPEN) { in max77843_muic_detect_cable_wq()
731 MAX77843_CABLE_GROUP_CHG, &attached); in max77843_muic_detect_cable_wq()
732 if (attached && chg_type != MAX77843_MUIC_CHG_NONE) { in max77843_muic_detect_cable_wq()
815 bool attached; in max77843_muic_probe() local
869 &attached); in max77843_muic_probe()
870 if (attached && cable_type == MAX77843_MUIC_ADC_FACTORY_MODE_UART_OFF) in max77843_muic_probe()