Lines Matching refs:newRole
135 const PortRole &newRole, struct Usb *usb) { in switchMode() argument
137 appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchMode()
154 int ret = fputs(convertRoletoString(newRole).c_str(), fp); in switchMode()
215 const V1_0::PortRole &newRole) { in switchRole() argument
217 appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchRole()
230 convertRoletoString(newRole).c_str()); in switchRole()
232 if (newRole.type == PortRoleType::MODE) { in switchRole()
233 roleSwitch = switchMode(portName, newRole, this); in switchRole()
237 int ret = fputs(convertRoletoString(newRole).c_str(), fp); in switchRole()
242 if (written == convertRoletoString(newRole)) { in switchRole()
258 mCallback_1_0->notifyRoleSwitchStatus(portName, newRole, in switchRole()