• Home
  • Raw
  • Download

Lines Matching refs:currentRole

363 Status getCurrentRoleHelper(const string &portName, bool connected, PortRole *currentRole) {  in getCurrentRoleHelper()  argument
370 if (currentRole->getTag() == PortRole::powerRole) { in getCurrentRoleHelper()
372 currentRole->set<PortRole::powerRole>(PortPowerRole::NONE); in getCurrentRoleHelper()
373 } else if (currentRole->getTag() == PortRole::dataRole) { in getCurrentRoleHelper()
375 currentRole->set<PortRole::dataRole>(PortDataRole::NONE); in getCurrentRoleHelper()
376 } else if (currentRole->getTag() == PortRole::mode) { in getCurrentRoleHelper()
378 currentRole->set<PortRole::mode>(PortMode::NONE); in getCurrentRoleHelper()
386 if (currentRole->getTag() == PortRole::mode) { in getCurrentRoleHelper()
391 currentRole->set<PortRole::mode>(PortMode::AUDIO_ACCESSORY); in getCurrentRoleHelper()
394 currentRole->set<PortRole::mode>(PortMode::DEBUG_ACCESSORY); in getCurrentRoleHelper()
408 currentRole->set<PortRole::powerRole>(PortPowerRole::SOURCE); in getCurrentRoleHelper()
410 currentRole->set<PortRole::powerRole>(PortPowerRole::SINK); in getCurrentRoleHelper()
412 if (currentRole->getTag() == PortRole::dataRole) in getCurrentRoleHelper()
413 currentRole->set<PortRole::dataRole>(PortDataRole::HOST); in getCurrentRoleHelper()
415 currentRole->set<PortRole::mode>(PortMode::DFP); in getCurrentRoleHelper()
417 if (currentRole->getTag() == PortRole::dataRole) in getCurrentRoleHelper()
418 currentRole->set<PortRole::dataRole>(PortDataRole::DEVICE); in getCurrentRoleHelper()
420 currentRole->set<PortRole::mode>(PortMode::UFP); in getCurrentRoleHelper()
485 PortRole currentRole; in getPortStatusHelper() local
486 currentRole.set<PortRole::powerRole>(PortPowerRole::NONE); in getPortStatusHelper()
487 if (getCurrentRoleHelper(port.first, port.second, &currentRole) == Status::SUCCESS){ in getPortStatusHelper()
488 (*currentPortStatus)[i].currentPowerRole = currentRole.get<PortRole::powerRole>(); in getPortStatusHelper()
494 currentRole.set<PortRole::dataRole>(PortDataRole::NONE); in getPortStatusHelper()
495 if (getCurrentRoleHelper(port.first, port.second, &currentRole) == Status::SUCCESS) { in getPortStatusHelper()
496 (*currentPortStatus)[i].currentDataRole = currentRole.get<PortRole::dataRole>(); in getPortStatusHelper()
502 currentRole.set<PortRole::mode>(PortMode::NONE); in getPortStatusHelper()
503 if (getCurrentRoleHelper(port.first, port.second, &currentRole) == Status::SUCCESS) { in getPortStatusHelper()
504 (*currentPortStatus)[i].currentMode = currentRole.get<PortRole::mode>(); in getPortStatusHelper()