Lines Matching refs:port
106 def execute_pd_state_cmd(self, port): argument
119 pd_cmd = cmd +" " + str(port) + " " + subcmd
135 def get_pd_state(self, port): argument
142 pd_dict = self.execute_pd_state_cmd(port)
145 def get_pd_port(self, port): argument
151 pd_dict = self.execute_pd_state_cmd(port)
154 def get_pd_role(self, port): argument
160 pd_dict = self.execute_pd_state_cmd(port)
163 def get_pd_flags(self, port): argument
169 pd_dict = self.execute_pd_state_cmd(port)
218 port = 0;
220 status['port'] = port
221 state = self.get_pd_state(port)
227 port = 1
228 status['port'] = port
229 state = self.get_pd_state(port)
251 def is_pd_flag_set(self, port, key): argument
262 pd_flags = self.get_pd_flags(port)
265 def is_pd_connected(self, port): argument
272 state = self.get_pd_state(port)
303 def _verify_plankton_connection(self, port): argument
322 if self.dut_console.is_pd_connected(port):
327 if self.dut_console.is_pd_connected(port) == False:
330 if self.dut_console.is_pd_connected(port):
331 logging.info('Plankton connection verfied on port %d', port)
344 for port in xrange(self.dut_console.PD_MAX_PORTS):
346 if self._verify_plankton_connection(port):
348 return port