Home
last modified time | relevance | path

Searched refs:role (Results 1 – 11 of 11) sorted by relevance

/device/google/bonito/usb/
DUsb.cpp86 std::string convertRoletoString(PortRole role) { in convertRoletoString() argument
87 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()
DUsb.h45 Return<void> switchRole(const hidl_string& portName, const V1_0::PortRole& role) override;
/device/google/wahoo/usb/
DUsb.cpp112 std::string convertRoletoString(PortRole role) { in convertRoletoString() argument
113 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()
DUsb.h45 Return<void> switchRole(const hidl_string& portName, const V1_0::PortRole& role) override;
/device/google/crosshatch/usb/
DUsb.cpp88 std::string convertRoletoString(PortRole role) { in convertRoletoString() argument
89 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()
DUsb.h45 Return<void> switchRole(const hidl_string& portName, const V1_0::PortRole& role) override;
/device/google/coral/usb/
DUsb.cpp174 std::string convertRoletoString(PortRole role) { in convertRoletoString() argument
175 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()
DUsb.h53 Return<void> switchRole(const hidl_string &portName, const V1_0::PortRole &role) override;
/device/linaro/poplar/vendor/
Dinit.poplar.rc6 write /sys/kernel/debug/hisi_inno_phy/role "peripheral"
/device/amlogic/yukawa/
Dinit.yukawa.usb.rc46 write /sys/class/usb_role/ffe09000.usb-role-switch/role device
Dinit.recovery.hardware.rc52 write /sys/class/usb_role/ffe09000.usb-role-switch/role device