Lines Matching refs:port
125 def execute_pd_state_cmd(self, port): argument
138 pd_cmd = cmd +" " + str(port) + " " + subcmd
154 def get_pd_state(self, port): argument
161 pd_dict = self.execute_pd_state_cmd(port)
164 def get_pd_port(self, port): argument
170 pd_dict = self.execute_pd_state_cmd(port)
173 def get_pd_role(self, port): argument
179 pd_dict = self.execute_pd_state_cmd(port)
182 def get_pd_flags(self, port): argument
188 pd_dict = self.execute_pd_state_cmd(port)
237 port = 0;
239 status['port'] = port
240 state = self.get_pd_state(port)
246 port = 1
247 status['port'] = port
248 state = self.get_pd_state(port)
256 def swap_power_role(self, port): argument
274 if self.is_pd_connected(port) == False:
277 current_pr = self.get_pd_state(port)
278 swap_cmd = 'pd %d swap power' % port
281 new_pr = self.get_pd_state(port)
283 if self.is_pd_connected(port) == False:
301 def is_pd_flag_set(self, port, key): argument
312 pd_flags = self.get_pd_flags(port)
315 def is_pd_connected(self, port): argument
322 state = self.get_pd_state(port)
353 def _verify_plankton_connection(self, port): argument
372 if self.dut_console.is_pd_connected(port):
377 if self.dut_console.is_pd_connected(port) == False:
380 if self.dut_console.is_pd_connected(port):
382 port)
395 for port in xrange(self.dut_console.PD_MAX_PORTS):
397 if self._verify_plankton_connection(port):
399 return port