Searched refs:role (Results 1 – 11 of 11) sorted by relevance
86 std::string convertRoletoString(PortRole role) { in convertRoletoString() argument87 if (role.type == PortRoleType::POWER_ROLE) { in convertRoletoString()88 if (role.role == static_cast<uint32_t>(PortPowerRole::SOURCE)) in convertRoletoString()90 else if (role.role == static_cast<uint32_t>(PortPowerRole::SINK)) in convertRoletoString()92 } else if (role.type == PortRoleType::DATA_ROLE) { in convertRoletoString()93 if (role.role == static_cast<uint32_t>(PortDataRole::HOST)) return "host"; in convertRoletoString()94 if (role.role == static_cast<uint32_t>(PortDataRole::DEVICE)) in convertRoletoString()96 } else if (role.type == PortRoleType::MODE) { in convertRoletoString()97 if (role.role == static_cast<uint32_t>(PortMode_1_1::UFP)) return "sink"; in convertRoletoString()98 if (role.role == static_cast<uint32_t>(PortMode_1_1::DFP)) return "source"; in convertRoletoString()
45 Return<void> switchRole(const hidl_string& portName, const V1_0::PortRole& role) override;
112 std::string convertRoletoString(PortRole role) { in convertRoletoString() argument113 if (role.type == PortRoleType::POWER_ROLE) { in convertRoletoString()114 if (role.role == static_cast<uint32_t>(PortPowerRole::SOURCE)) in convertRoletoString()116 else if (role.role == static_cast<uint32_t>(PortPowerRole::SINK)) in convertRoletoString()118 } else if (role.type == PortRoleType::DATA_ROLE) { in convertRoletoString()119 if (role.role == static_cast<uint32_t>(PortDataRole::HOST)) return "host"; in convertRoletoString()120 if (role.role == static_cast<uint32_t>(PortDataRole::DEVICE)) in convertRoletoString()122 } else if (role.type == PortRoleType::MODE) { in convertRoletoString()123 if (role.role == static_cast<uint32_t>(PortMode_1_1::UFP)) return "sink"; in convertRoletoString()124 if (role.role == static_cast<uint32_t>(PortMode_1_1::DFP)) return "source"; in convertRoletoString()
88 std::string convertRoletoString(PortRole role) { in convertRoletoString() argument89 if (role.type == PortRoleType::POWER_ROLE) { in convertRoletoString()90 if (role.role == static_cast<uint32_t>(PortPowerRole::SOURCE)) in convertRoletoString()92 else if (role.role == static_cast<uint32_t>(PortPowerRole::SINK)) in convertRoletoString()94 } else if (role.type == PortRoleType::DATA_ROLE) { in convertRoletoString()95 if (role.role == static_cast<uint32_t>(PortDataRole::HOST)) return "host"; in convertRoletoString()96 if (role.role == static_cast<uint32_t>(PortDataRole::DEVICE)) in convertRoletoString()98 } else if (role.type == PortRoleType::MODE) { in convertRoletoString()99 if (role.role == static_cast<uint32_t>(PortMode_1_1::UFP)) return "sink"; in convertRoletoString()100 if (role.role == static_cast<uint32_t>(PortMode_1_1::DFP)) return "source"; in convertRoletoString()
174 std::string convertRoletoString(PortRole role) { in convertRoletoString() argument175 if (role.type == PortRoleType::POWER_ROLE) { in convertRoletoString()176 if (role.role == static_cast<uint32_t>(PortPowerRole::SOURCE)) in convertRoletoString()178 else if (role.role == static_cast<uint32_t>(PortPowerRole::SINK)) in convertRoletoString()180 } else if (role.type == PortRoleType::DATA_ROLE) { in convertRoletoString()181 if (role.role == static_cast<uint32_t>(PortDataRole::HOST)) in convertRoletoString()183 if (role.role == static_cast<uint32_t>(PortDataRole::DEVICE)) in convertRoletoString()185 } else if (role.type == PortRoleType::MODE) { in convertRoletoString()186 if (role.role == static_cast<uint32_t>(PortMode_1_1::UFP)) in convertRoletoString()188 if (role.role == static_cast<uint32_t>(PortMode_1_1::DFP)) in convertRoletoString()
53 Return<void> switchRole(const hidl_string &portName, const V1_0::PortRole &role) override;
6 write /sys/kernel/debug/hisi_inno_phy/role "peripheral"
46 write /sys/class/usb_role/ffe09000.usb-role-switch/role device
52 write /sys/class/usb_role/ffe09000.usb-role-switch/role device