Lines Matching refs:attached

185  * max8997_muic_set_path - Set hardware line according to attached cable
187 * @value: the path according to attached cable
188 * @attached: the state of cable (true:attached, false:detached)
192 * attached cable.
195 u8 val, bool attached)
200 if (attached)
212 if (attached)
227 ctrl1, ctrl2, attached ? "attached" : "detached");
235 * @group: the path according to attached cable
236 * @attached: store cable state and return
238 * This function check the cable state either attached or detached,
244 enum max8997_muic_cable_group group, bool *attached)
265 *attached = false;
270 *attached = true;
284 *attached = false;
289 *attached = true;
310 enum max8997_muic_usb_type usb_type, bool attached)
314 ret = max8997_muic_set_path(info, info->path_usb, attached);
322 extcon_set_state_sync(info->edev, EXTCON_USB_HOST, attached);
325 extcon_set_state_sync(info->edev, EXTCON_USB, attached);
327 attached);
331 attached ? "attached" : "detached");
339 int cable_type, bool attached)
343 ret = max8997_muic_set_path(info, CONTROL1_SW_AUDIO, attached);
352 extcon_set_state_sync(info->edev, EXTCON_DOCK, attached);
356 attached ? "attached" : "detached");
364 bool attached)
369 ret = max8997_muic_set_path(info, info->path_uart, attached);
375 extcon_set_state_sync(info->edev, EXTCON_JIG, attached);
383 bool attached;
386 /* Check cable state which is either detached or attached */
388 MAX8997_CABLE_GROUP_ADC, &attached);
392 ret = max8997_muic_handle_usb(info, MAX8997_USB_HOST, attached);
397 extcon_set_state_sync(info->edev, EXTCON_DISP_MHL, attached);
402 MAX8997_USB_DEVICE, attached);
408 ret = max8997_muic_handle_dock(info, cable_type, attached);
413 ret = max8997_muic_handle_jig_uart(info, attached);
442 * proper operation when this cable is attached/detached.
446 attached ? "attached" : "detached", cable_type);
451 attached ? "attached" : "detached", cable_type);
461 bool attached;
465 MAX8997_CABLE_GROUP_CHG, &attached);
476 MAX8997_USB_DEVICE, attached);
481 attached);
485 attached);
489 attached);
493 attached);
498 attached ? "attached" : "detached", chg_type);
576 bool attached;
590 &attached);
591 if (attached && adc != MAX8997_MUIC_ADC_OPEN) {
601 &attached);
602 if (attached && chg_type != MAX8997_CHARGER_TYPE_NONE) {
634 bool attached;
735 MAX8997_CABLE_GROUP_ADC, &attached);
736 if (attached && cable_type == MAX8997_MUIC_ADC_FACTORY_MODE_UART_OFF)