Home
last modified time | relevance | path

Searched refs:port_id (Results 1 – 25 of 59) sorted by relevance

123

/external/crosvm/devices/src/usb/xhci/
Dusb_hub.rs22 port_id: u8,
26 port_id: u8,
46 AlreadyDetached(port_id) => write!(f, "device already detached from port {}", port_id), in fmt()
47 Attach { port_id, reason } => { in fmt()
48 write!(f, "failed to attach device to port {}: {}", port_id, reason) in fmt()
50 Detach { port_id, reason } => write!( in fmt()
53 port_id, reason in fmt()
65 NoSuchPort(port_id) => write!(f, "port {} does not exist", port_id), in fmt()
73 port_id: u8, field
84 port_id: u8, in new()
[all …]
Ddevice_slot.rs133 pub fn reset_port(&self, port_id: u8) -> Result<()> { in reset_port()
134 if let Some(port) = self.hub.get_port(port_id) { in reset_port()
247 port_id: PortId, // Valid port id starts from 1, to MAX_PORTS. field
270 port_id: PortId::new(), in new()
422 let port_id = device_context.slot_context.get_root_hub_port_number(); in set_address() localVariable
423 self.port_id.set(port_id)?; in set_address()
426 port_id, in set_address()
436 self.hub.get_port(port_id).ok_or(Error::GetPort(port_id))?, in set_address()
452 let port = self.hub.get_port(port_id).ok_or(Error::GetPort(port_id))?; in set_address()
680 self.port_id.reset(); in reset()
[all …]
/external/autotest/client/cros/chameleon/
Dchameleon_audio_ids.py146 def get_host(port_id): argument
157 host = port_id.split()[0]
159 raise ValueError('Not a valid port id: %r' % port_id)
163 def get_interface(port_id): argument
175 return port_id.split(' ', 1)[1]
177 raise ValueError('Not a valid port id: %r' % port_id)
180 def get_role(port_id): argument
191 if port_id in SOURCE_PORTS:
193 if port_id in SINK_PORTS:
195 if port_id in SOURCE_PORTS and port_id in SINK_PORTS:
[all …]
Dchameleon.py572 def __init__(self, chameleond_proxy, port_id): argument
579 self.port_id = port_id
587 return self.port_id
595 return self.chameleond_proxy.GetConnectorType(self.port_id)
603 return self.chameleond_proxy.HasAudioSupport(self.port_id)
611 return self.chameleond_proxy.HasVideoSupport(self.port_id)
616 logging.info('Plug Chameleon port %d', self.port_id)
617 self.chameleond_proxy.Plug(self.port_id)
622 logging.info('Unplug Chameleon port %d', self.port_id)
623 self.chameleond_proxy.Unplug(self.port_id)
[all …]
Dchameleon_audio_helper.py40 def __init__(self, port_id): argument
46 logging.debug('Creating AudioPort with port_id: %s', port_id)
47 self.port_id = port_id
48 self.host = ids.get_host(port_id)
49 self.interface = ids.get_interface(port_id)
50 self.role = ids.get_role(port_id)
159 link_type = self.LINK_TABLE.get((source.port_id, sink.port_id), None)
163 source.port_id, sink.port_id))
253 def create_widget(self, port_id, use_arc=False): argument
274 if audio_port.port_id == ids.ChameleonIds.HDMI:
[all …]
Daudio_board.py123 def _get_endpoint_name(self, port_id): argument
132 return self._PORT_ID_AUDIO_BUS_ENDPOINT_MAP[port_id]
156 def connect(self, port_id): argument
163 endpoint = self._get_endpoint_name(port_id)
166 def disconnect(self, port_id): argument
173 endpoint = self._get_endpoint_name(port_id)
Daudio_widget_link.py140 def _check_widget_id(self, port_id, widget): argument
148 if widget.audio_port.port_id != port_id:
151 self.name, port_id, widget.audio_port.port_id))
202 self._audio_bus.connect(widget.audio_port.port_id)
215 self._audio_bus.disconnect(widget.audio_port.port_id)
228 self._audio_bus.connect(widget.audio_port.port_id)
241 self._audio_bus.disconnect(widget.audio_port.port_id)
Daudio_widget.py52 def port_id(self): member in AudioWidget
58 return self.audio_port.port_id
104 self.port_id)
119 self.port_id)
218 if self.port_id in [ids.ChameleonIds.MIC, ids.CrosIds.INTERNAL_MIC]:
317 self.port_id)
Daudio_test_utils.py45 def cros_port_id_to_cras_node_type(port_id): argument
53 return CHAMELEON_AUDIO_IDS_TO_CRAS_NODE_TYPES[port_id]
56 def check_output_port(audio_facade, port_id): argument
62 output_node_type = cros_port_id_to_cras_node_type(port_id)
66 def check_input_port(audio_facade, port_id): argument
72 input_node_type = cros_port_id_to_cras_node_type(port_id)
/external/tensorflow/tensorflow/core/grappler/
Dgraph_view.cc26 int port_id) { in OpPortIdToArgId() argument
28 if (port_id < 0) { in OpPortIdToArgId()
30 } else if (port_id == 0) { in OpPortIdToArgId()
48 } else if (port_id < n) { in OpPortIdToArgId()
51 port_id -= n; in OpPortIdToArgId()
58 int OpOutputPortIdToArgId(const NodeDef& node, const OpDef& op, int port_id) { in OpOutputPortIdToArgId() argument
59 return OpPortIdToArgId(node, op.output_arg(), port_id); in OpOutputPortIdToArgId()
62 int OpInputPortIdToArgId(const NodeDef& node, const OpDef& op, int port_id) { in OpInputPortIdToArgId() argument
63 return OpPortIdToArgId(node, op.input_arg(), port_id); in OpInputPortIdToArgId()
Dgraph_view.h43 int OpOutputPortIdToArgId(const NodeDef& node, const OpDef& op, int port_id);
44 int OpInputPortIdToArgId(const NodeDef& node, const OpDef& op, int port_id);
72 Port() : node(nullptr), port_id(0) {} in Port()
73 Port(NodeDefT* n, int port) : node(n), port_id(port) {} in Port()
76 return node == other.node && port_id == other.port_id;
81 return H::combine(std::move(h), p.node, p.port_id); in AbslHashValue()
85 int port_id; member
127 InputPort GetInputPort(absl::string_view node_name, int port_id) const { in GetInputPort() argument
128 return InputPort(GetNode(node_name), port_id); in GetInputPort()
134 OutputPort GetOutputPort(absl::string_view node_name, int port_id) const { in GetOutputPort() argument
[all …]
Dgraph_view_test.cc90 for (int port_id = 0; port_id <= num_splits * 3; ++port_id) { in TEST_F() local
92 if (port_id < num_splits * 3) { in TEST_F()
93 arg_id = port_id / num_splits; in TEST_F()
95 EXPECT_EQ(OpOutputPortIdToArgId(b_node_def, *b_op_def, port_id), arg_id); in TEST_F()
136 EXPECT_EQ(input.port_id, 0); in TEST_F()
139 EXPECT_EQ(fanin.port_id, 0); in TEST_F()
143 EXPECT_EQ(input.port_id, 1); in TEST_F()
146 EXPECT_EQ(fanin.port_id, 0); in TEST_F()
150 EXPECT_EQ(output.port_id, 0); in TEST_F()
154 EXPECT_EQ(fanout.port_id, 0); in TEST_F()
[all …]
Dmutable_graph_view.cc56 return port.port_id == Graph::kControlSlot; in IsOutputPortControlling()
137 port.port_id = i; in SwapRegularFanoutInputs()
144 fanout.node->set_input(fanout.port_id, input); in SwapRegularFanoutInputs()
333 absl::StrCat(fanin.node->name(), "_", fanin.port_id), in GeneratedNameForIdentityConsumingSwitch()
369 std::max(max_regular_output_port()[output.node], output.port_id); in AddAndDedupFanouts()
392 if (!fanin_fanouts.empty() || max_port != fanin.port_id) { in UpdateMaxRegularOutputPortForRemovedFanin()
396 for (int i = fanin.port_id - 1; i >= 0; --i) { in UpdateMaxRegularOutputPortForRemovedFanin()
411 if (max_regular_output_port()[fanin.node] < fanin.port_id) { in UpdateMaxRegularOutputPortForAddedFanin()
412 max_regular_output_port()[fanin.node] = fanin.port_id; in UpdateMaxRegularOutputPortForAddedFanin()
419 port.port_id)); in GetFanout()
[all …]
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dpin_to_host_optimizer.cc93 const NodeDef& node, int port_id, in IsNodeOutputPortHostFriendly() argument
111 if (port_id >= output_properties_size) { in IsNodeOutputPortHostFriendly()
112 LOG(WARNING) << "port_id=" << port_id in IsNodeOutputPortHostFriendly()
118 if (!IsTensorSmall(output_properties[port_id])) { in IsNodeOutputPortHostFriendly()
128 graph, properties, *fanin.node, fanin.port_id, &fanin_candidate)); in IsNodeOutputPortHostFriendly()
152 const int output_arg_id = OpOutputPortIdToArgId(node, *op, port_id); in IsNodeOutputPortHostFriendly()
154 LOG(WARNING) << "Invalid port: " << port_id << "!\n" in IsNodeOutputPortHostFriendly()
182 bool IsNodeInputPortHostFriendly(const NodeDef& node, int port_id) { in IsNodeInputPortHostFriendly() argument
195 const int input_arg_id = OpInputPortIdToArgId(node, *op, port_id); in IsNodeInputPortHostFriendly()
248 graph, properties, *fanin.node, fanin.port_id, &fanin_candidate)); in IsNodeHostCandidate()
[all …]
Dremapper.cc179 int port_id) in ContractionWithBiasAddAndAdd()
183 port_id(port_id) {} in ContractionWithBiasAddAndAdd()
188 int port_id = 0; member
195 int port_id, int activation) in ContractionWithBiasAndAddActivation()
199 port_id(port_id), in ContractionWithBiasAndAddActivation()
205 int port_id = 0; member
635 const NodeDef& add_node_def, int port_id, in IsCpuCompatibleDataType() argument
638 if (add_node_view.NumRegularFanins() < port_id + 1) return false; in IsCpuCompatibleDataType()
640 add_node_view.GetRegularFanin(port_id).node_view(); in IsCpuCompatibleDataType()
690 matched->port_id = 0; in IsCpuCompatibleDataType()
[all …]
Dmodel_pruner.cc41 if (input.port_id == Graph::kControlSlot) { in IsTrivialIdentity()
50 if (output.port_id == Graph::kControlSlot) { in IsTrivialIdentity()
90 bool IsOutputPortRefValue(const NodeDef& node, int port_id, in IsOutputPortRefValue() argument
96 s = OutputTypeForNode(node, op_reg_data->op_def, port_id, &output_type); in IsOutputPortRefValue()
124 } else if (input.port_id == Graph::kControlSlot) { in CanRemoveNode()
130 } else if (IsOutputPortRefValue(*input.node, input.port_id, op_registry)) { in CanRemoveNode()
/external/kernel-headers/original/uapi/scsi/
Dscsi_bsg_fc.h74 __u8 port_id[3]; member
95 __u8 port_id[3]; member
119 __u8 port_id[3]; member
182 __u8 port_id[3]; member
/external/iproute2/tipc/
Dnametable.c29 char port_id[PORTID_STR_LEN]; in nametable_show_cb() local
54 snprintf(port_id, sizeof(port_id), "<%u.%u.%u:%u>", in nametable_show_cb()
64 port_id, in nametable_show_cb()
/external/rust/crates/libc/src/unix/haiku/
Dnative.rs36 pub type port_id = i32; typedef
83 pub port: port_id,
104 debugger_nub_port: port_id,
649 pub fn create_port(capacity: i32, name: *const ::c_char) -> port_id; in create_port() argument
650 pub fn find_port(name: *const ::c_char) -> port_id; in find_port() argument
652 port: port_id, in read_port() argument
658 port: port_id, in read_port_etc() argument
666 port: port_id, in write_port() argument
672 port: port_id, in write_port_etc() argument
679 pub fn close_port(port: port_id) -> status_t; in close_port()
[all …]
/external/autotest/client/common_lib/cros/cfm/usb/
Dusb_port_manager.py47 def _get_gpio_index(board, port_id): argument
48 return _PORT_ID_TO_GPIO_INDEX_DICT[board][port_id]
73 for port_id in port_ids:
74 gpio_index = _get_gpio_index(self._get_board(), port_id)
/external/igt-gpu-tools/lib/
Digt_chamelium.c1926 int port_id) in chamelium_has_video_support() argument
1931 res = chamelium_rpc(chamelium, NULL, "HasVideoSupport", "(i)", port_id); in chamelium_has_video_support()
1947 int res_len, i, port_id; in chamelium_get_video_ports() local
1954 xmlrpc_read_int(&chamelium->env, res_port, &port_id); in chamelium_get_video_ports()
1957 if (!chamelium_has_video_support(chamelium, port_id)) in chamelium_get_video_ports()
1961 port_ids[port_ids_len] = port_id; in chamelium_get_video_ports()
2062 int port_id = -1; in port_id_from_edid() local
2110 port_id = *(uint32_t *) &edid->serial; in port_id_from_edid()
2114 connector->connector_type_id, port_id); in port_id_from_edid()
2118 return port_id; in port_id_from_edid()
[all …]
/external/tcpdump/
Dprint-stp.c37 uint8_t port_id[2]; member
109 ND_TCHECK(stp_bpdu->port_id); in stp_print_config_bpdu()
112 EXTRACT_16BITS(&stp_bpdu->port_id), length)); in stp_print_config_bpdu()
273 ND_TCHECK(stp_bpdu->port_id); in stp_print_mstp_bpdu()
274 ND_PRINT((ndo, "CIST port-id %04x,", EXTRACT_16BITS(&stp_bpdu->port_id))); in stp_print_mstp_bpdu()
/external/autotest/client/common_lib/cros/
Dpower_cycle_usb_util.py117 port_id = [usb_port_manager.PortId(bus=bus_idx, port_number=port_idx)]
118 usb_manager.set_port_power(port_id, 0)
120 usb_manager.set_port_power(port_id, 1)
/external/autotest/server/site_tests/audio_AudioBasicBluetoothPlaybackRecord/
Daudio_AudioBasicBluetoothPlaybackRecord.py306 source_id=playback_source.port_id,
307 recorder_id=playback_recorder.port_id,
310 source_id=record_source.port_id,
311 recorder_id=record_recorder.port_id,
/external/bcc/tests/python/
Dtest_brb.c15 u32 port_id; member
85 skb->cb[1] = dest_p->port_id; in pem()
211 skb->cb[1] = dest_p->port_id; in br_common()

123