Lines Matching refs:attached
195 u8 val, bool attached) in max8997_muic_set_path() argument
200 if (attached) in max8997_muic_set_path()
212 if (attached) in max8997_muic_set_path()
227 ctrl1, ctrl2, attached ? "attached" : "detached"); in max8997_muic_set_path()
244 enum max8997_muic_cable_group group, bool *attached) in max8997_muic_get_cable_type() argument
265 *attached = false; in max8997_muic_get_cable_type()
270 *attached = true; in max8997_muic_get_cable_type()
284 *attached = false; in max8997_muic_get_cable_type()
289 *attached = true; in max8997_muic_get_cable_type()
310 enum max8997_muic_usb_type usb_type, bool attached) in max8997_muic_handle_usb() argument
314 ret = max8997_muic_set_path(info, info->path_usb, attached); in max8997_muic_handle_usb()
322 extcon_set_state_sync(info->edev, EXTCON_USB_HOST, attached); in max8997_muic_handle_usb()
325 extcon_set_state_sync(info->edev, EXTCON_USB, attached); in max8997_muic_handle_usb()
327 attached); in max8997_muic_handle_usb()
331 attached ? "attached" : "detached"); in max8997_muic_handle_usb()
339 int cable_type, bool attached) in max8997_muic_handle_dock() argument
343 ret = max8997_muic_set_path(info, CONTROL1_SW_AUDIO, attached); in max8997_muic_handle_dock()
352 extcon_set_state_sync(info->edev, EXTCON_DOCK, attached); in max8997_muic_handle_dock()
356 attached ? "attached" : "detached"); in max8997_muic_handle_dock()
364 bool attached) in max8997_muic_handle_jig_uart() argument
369 ret = max8997_muic_set_path(info, info->path_uart, attached); in max8997_muic_handle_jig_uart()
375 extcon_set_state_sync(info->edev, EXTCON_JIG, attached); in max8997_muic_handle_jig_uart()
383 bool attached; in max8997_muic_adc_handler() local
388 MAX8997_CABLE_GROUP_ADC, &attached); in max8997_muic_adc_handler()
392 ret = max8997_muic_handle_usb(info, MAX8997_USB_HOST, attached); in max8997_muic_adc_handler()
397 extcon_set_state_sync(info->edev, EXTCON_DISP_MHL, attached); in max8997_muic_adc_handler()
402 MAX8997_USB_DEVICE, attached); in max8997_muic_adc_handler()
408 ret = max8997_muic_handle_dock(info, cable_type, attached); in max8997_muic_adc_handler()
413 ret = max8997_muic_handle_jig_uart(info, attached); in max8997_muic_adc_handler()
446 attached ? "attached" : "detached", cable_type); in max8997_muic_adc_handler()
451 attached ? "attached" : "detached", cable_type); in max8997_muic_adc_handler()
461 bool attached; in max8997_muic_chg_handler() local
465 MAX8997_CABLE_GROUP_CHG, &attached); in max8997_muic_chg_handler()
476 MAX8997_USB_DEVICE, attached); in max8997_muic_chg_handler()
481 attached); in max8997_muic_chg_handler()
485 attached); in max8997_muic_chg_handler()
489 attached); in max8997_muic_chg_handler()
493 attached); in max8997_muic_chg_handler()
498 attached ? "attached" : "detached", chg_type); in max8997_muic_chg_handler()
576 bool attached; in max8997_muic_detect_dev() local
590 &attached); in max8997_muic_detect_dev()
591 if (attached && adc != MAX8997_MUIC_ADC_OPEN) { in max8997_muic_detect_dev()
601 &attached); in max8997_muic_detect_dev()
602 if (attached && chg_type != MAX8997_CHARGER_TYPE_NONE) { in max8997_muic_detect_dev()
634 bool attached; in max8997_muic_probe() local
735 MAX8997_CABLE_GROUP_ADC, &attached); in max8997_muic_probe()
736 if (attached && cable_type == MAX8997_MUIC_ADC_FACTORY_MODE_UART_OFF) in max8997_muic_probe()