Lines Matching refs:portName

135 string appendRoleNodeHelper(const string &portName, PortRole::Tag tag) {  in appendRoleNodeHelper()  argument
136 string node(kTypecPath + portName); in appendRoleNodeHelper()
181 void switchToDrp(const string &portName) { in switchToDrp() argument
182 string filename = appendRoleNodeHelper(string(portName.c_str()), PortRole::mode); in switchToDrp()
200 bool switchMode(const string &portName, const PortRole &in_role, struct Usb *usb) { in switchMode() argument
201 string filename = appendRoleNodeHelper(string(portName.c_str()), in_role.getTag()); in switchMode()
248 switchToDrp(string(portName.c_str())); in switchMode()
351 Status getAccessoryConnected(const string &portName, string *accessory) { in getAccessoryConnected() argument
352 string filename = kTypecPath + portName + "-partner/accessory_mode"; in getAccessoryConnected()
363 Status getCurrentRoleHelper(const string &portName, bool connected, PortRole *currentRole) { in getCurrentRoleHelper() argument
371 filename = kTypecPath + portName + kPowerRoleNode; in getCurrentRoleHelper()
374 filename = kTypecPath + portName + kDataRoleNode; in getCurrentRoleHelper()
377 filename = kTypecPath + portName + kDataRoleNode; in getCurrentRoleHelper()
387 if (getAccessoryConnected(portName, &accessory) != Status::SUCCESS) { in getCurrentRoleHelper()
441 std::unordered_map<string, bool>::const_iterator portName = in getTypeCPortNamesHelper() local
443 if (portName == names->end()) { in getTypeCPortNamesHelper()
459 bool canSwitchRoleHelper(const string &portName) { in canSwitchRoleHelper() argument
460 string filename = kTypecPath + portName + "-partner/supports_usb_power_delivery"; in canSwitchRoleHelper()
483 (*currentPortStatus)[i].portName = port.first; in getPortStatusHelper()
625 string(currentPortStatus[i].portName.c_str()) + in uevent_event()
628 switchToDrp(currentPortStatus[i].portName); in uevent_event()