Lines Matching refs:attached
211 * max8997_muic_set_path - Set hardware line according to attached cable
213 * @value: the path according to attached cable
214 * @attached: the state of cable (true:attached, false:detached)
218 * attached cable.
221 u8 val, bool attached)
226 if (attached)
238 if (attached)
253 ctrl1, ctrl2, attached ? "attached" : "detached");
261 * @group: the path according to attached cable
262 * @attached: store cable state and return
264 * This function check the cable state either attached or detached,
270 enum max8997_muic_cable_group group, bool *attached)
291 *attached = false;
296 *attached = true;
310 *attached = false;
315 *attached = true;
336 enum max8997_muic_usb_type usb_type, bool attached)
341 ret = max8997_muic_set_path(info, info->path_usb, attached);
350 extcon_set_cable_state(info->edev, "USB-Host", attached);
353 extcon_set_cable_state(info->edev, "USB", attached);
357 attached ? "attached" : "detached");
365 int cable_type, bool attached)
369 ret = max8997_muic_set_path(info, CONTROL1_SW_AUDIO, attached);
377 extcon_set_cable_state(info->edev, "Dock-desk", attached);
380 extcon_set_cable_state(info->edev, "Dock-card", attached);
384 attached ? "attached" : "detached");
392 bool attached)
397 ret = max8997_muic_set_path(info, info->path_uart, attached);
403 extcon_set_cable_state(info->edev, "JIG", attached);
411 bool attached;
414 /* Check cable state which is either detached or attached */
416 MAX8997_CABLE_GROUP_ADC, &attached);
420 ret = max8997_muic_handle_usb(info, MAX8997_USB_HOST, attached);
425 extcon_set_cable_state(info->edev, "MHL", attached);
430 MAX8997_USB_DEVICE, attached);
436 ret = max8997_muic_handle_dock(info, cable_type, attached);
441 ret = max8997_muic_handle_jig_uart(info, attached);
470 * proper operation when this cable is attached/detached.
474 attached ? "attached" : "detached", cable_type);
479 attached ? "attached" : "detached", cable_type);
489 bool attached;
493 MAX8997_CABLE_GROUP_CHG, &attached);
504 MAX8997_USB_DEVICE, attached);
509 "Charge-downstream", attached);
512 extcon_set_cable_state(info->edev, "TA", attached);
515 extcon_set_cable_state(info->edev, "Slow-charger", attached);
518 extcon_set_cable_state(info->edev, "Fast-charger", attached);
523 attached ? "attached" : "detached", chg_type);
603 bool attached;
617 &attached);
618 if (attached && adc != MAX8997_MUIC_ADC_OPEN) {
628 &attached);
629 if (attached && chg_type != MAX8997_CHARGER_TYPE_NONE) {