Lines Matching refs:newRole
137 const PortRole &newRole, struct Usb *usb) { in switchMode() argument
139 appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchMode()
156 int ret = fputs(convertRoletoString(newRole).c_str(), fp); in switchMode()
217 const V1_0::PortRole &newRole) { in switchRole() argument
219 appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchRole()
232 convertRoletoString(newRole).c_str()); in switchRole()
234 if (newRole.type == PortRoleType::MODE) { in switchRole()
235 roleSwitch = switchMode(portName, newRole, this); in switchRole()
239 int ret = fputs(convertRoletoString(newRole).c_str(), fp); in switchRole()
244 if (written == convertRoletoString(newRole)) { in switchRole()
260 mCallback_1_0->notifyRoleSwitchStatus(portName, newRole, in switchRole()