Searched refs:currentRole (Results 1 – 3 of 3) sorted by relevance
119 PortRoleType type, uint32_t ¤tRole) { in getCurrentRoleHelper() argument126 currentRole = static_cast<uint32_t>(PortPowerRole::NONE); in getCurrentRoleHelper()130 currentRole = static_cast<uint32_t> (PortDataRole::NONE); in getCurrentRoleHelper()134 currentRole = static_cast<uint32_t> (PortMode::NONE); in getCurrentRoleHelper()143 currentRole = static_cast<uint32_t> (PortMode::DFP); in getCurrentRoleHelper()145 currentRole = static_cast<uint32_t> (PortMode::UFP); in getCurrentRoleHelper()147 currentRole = static_cast<uint32_t> (PortPowerRole::SOURCE); in getCurrentRoleHelper()149 currentRole = static_cast<uint32_t> (PortPowerRole::SINK); in getCurrentRoleHelper()151 currentRole = static_cast<uint32_t> (PortDataRole::HOST); in getCurrentRoleHelper()153 currentRole = static_cast<uint32_t> (PortDataRole::DEVICE); in getCurrentRoleHelper()[all …]
363 Status getCurrentRoleHelper(const string &portName, bool connected, PortRole *currentRole) { in getCurrentRoleHelper() argument370 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()[all …]
40 int currentRole = remainingRoles & (~(remainingRoles - 1)); in GetNextDetections() local44 occupantDetection.role = static_cast<Role>(currentRole); in GetNextDetections()