Home
last modified time | relevance | path

Searched refs:port_id (Results 1 – 25 of 66) 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.rs129 pub fn reset_port(&self, port_id: u8) -> std::result::Result<(), ()> { in reset_port()
130 if let Some(port) = self.hub.get_port(port_id) { in reset_port()
243 port_id: PortId, // Valid port id starts from 1, to MAX_PORTS. field
266 port_id: PortId::new(), in new()
418 let port_id = device_context.slot_context.get_root_hub_port_number(); in set_address() localVariable
419 self.port_id.set(port_id)?; in set_address()
422 port_id, in set_address()
432 self.hub.get_port(port_id).ok_or(Error::GetPort(port_id))?, in set_address()
448 let port = self.hub.get_port(port_id).ok_or(Error::GetPort(port_id))?; in set_address()
676 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.py544 def __init__(self, chameleond_proxy, port_id): argument
551 self.port_id = port_id
559 return self.port_id
567 return self.chameleond_proxy.GetConnectorType(self.port_id)
575 return self.chameleond_proxy.HasAudioSupport(self.port_id)
583 return self.chameleond_proxy.HasVideoSupport(self.port_id)
588 logging.info('Plug Chameleon port %d', self.port_id)
589 self.chameleond_proxy.Plug(self.port_id)
594 logging.info('Unplug Chameleon port %d', self.port_id)
595 self.chameleond_proxy.Unplug(self.port_id)
[all …]
Dchameleon_audio_helper.py33 def __init__(self, port_id): argument
39 logging.debug('Creating AudioPort with port_id: %s', port_id)
40 self.port_id = port_id
41 self.host = ids.get_host(port_id)
42 self.interface = ids.get_interface(port_id)
43 self.role = ids.get_role(port_id)
152 link_type = self.LINK_TABLE.get((source.port_id, sink.port_id), None)
156 source.port_id, sink.port_id))
246 def create_widget(self, port_id, use_arc=False): argument
267 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.py134 def _check_widget_id(self, port_id, widget): argument
142 if widget.audio_port.port_id != port_id:
145 self.name, port_id, widget.audio_port.port_id))
196 self._audio_bus.connect(widget.audio_port.port_id)
209 self._audio_bus.disconnect(widget.audio_port.port_id)
222 self._audio_bus.connect(widget.audio_port.port_id)
235 self._audio_bus.disconnect(widget.audio_port.port_id)
Daudio_widget.py46 def port_id(self): member in AudioWidget
52 return self.audio_port.port_id
98 self.port_id)
113 self.port_id)
212 if self.port_id in [ids.ChameleonIds.MIC, ids.CrosIds.INTERNAL_MIC]:
311 self.port_id)
/external/u-boot/drivers/net/fm/
Dfm.c200 static u32 fm_assign_risc(int port_id) in fm_assign_risc() argument
203 risc_sel = (port_id & 0x1) ? FMFPPRC_RISC2 : FMFPPRC_RISC1; in fm_assign_risc()
204 val = (port_id << FMFPPRC_PORTID_SHIFT) & FMFPPRC_PORTID_MASK; in fm_assign_risc()
212 int i, port_id; in fm_init_fpm() local
222 port_id = OH_PORT_ID_BASE + i; in fm_init_fpm()
223 val = fm_assign_risc(port_id); in fm_init_fpm()
228 port_id = RX_PORT_1G_BASE + i; in fm_init_fpm()
229 val = fm_assign_risc(port_id); in fm_init_fpm()
234 port_id = TX_PORT_1G_BASE + i; in fm_init_fpm()
235 val = fm_assign_risc(port_id); in fm_init_fpm()
[all …]
/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.cc89 for (int port_id = 0; port_id <= num_splits * 3; ++port_id) { in TEST_F() local
91 if (port_id < num_splits * 3) { in TEST_F()
92 arg_id = port_id / num_splits; in TEST_F()
94 EXPECT_EQ(OpOutputPortIdToArgId(b_node_def, *b_op_def, port_id), arg_id); in TEST_F()
135 EXPECT_EQ(input.port_id, 0); in TEST_F()
138 EXPECT_EQ(fanin.port_id, 0); in TEST_F()
142 EXPECT_EQ(input.port_id, 1); in TEST_F()
145 EXPECT_EQ(fanin.port_id, 0); in TEST_F()
149 EXPECT_EQ(output.port_id, 0); in TEST_F()
153 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/u-boot/drivers/net/ti/
Dam65-cpsw-nuss.c116 u32 port_id; member
179 struct am65_cpsw_port *port = &common->ports[priv->port_id]; in am65_cpsw_update_link()
199 priv->port_id, phy->speed, in am65_cpsw_update_link()
202 printf("link down on port %d\n", priv->port_id); in am65_cpsw_update_link()
276 struct am65_cpsw_port *port = &common->ports[priv->port_id]; in am65_cpsw_start()
337 writel(BIT(0) | BIT(priv->port_id), in am65_cpsw_start()
370 common->ale_base + AM65_CPSW_ALE_PN_CTL_REG(priv->port_id)); in am65_cpsw_start()
399 writel(0, common->ale_base + AM65_CPSW_ALE_PN_CTL_REG(priv->port_id)); in am65_cpsw_start()
432 packet_data.dest_tag = priv->port_id; in am65_cpsw_send()
475 struct am65_cpsw_port *port = &common->ports[priv->port_id]; in am65_cpsw_stop()
[all …]
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dpin_to_host_optimizer.cc93 const NodeDef& node, int port_id, in IsNodeOutputPortHostFriendly() argument
110 if (port_id >= output_properties.size()) { in IsNodeOutputPortHostFriendly()
111 LOG(WARNING) << "port_id=" << port_id in IsNodeOutputPortHostFriendly()
117 if (!IsTensorSmall(output_properties[port_id])) { in IsNodeOutputPortHostFriendly()
127 graph, properties, *fanin.node, fanin.port_id, &fanin_candidate)); in IsNodeOutputPortHostFriendly()
151 const int output_arg_id = OpOutputPortIdToArgId(node, *op, port_id); in IsNodeOutputPortHostFriendly()
153 LOG(WARNING) << "Invalid port: " << port_id << "!\n" in IsNodeOutputPortHostFriendly()
181 bool IsNodeInputPortHostFriendly(const NodeDef& node, int port_id) { in IsNodeInputPortHostFriendly() argument
194 const int input_arg_id = OpInputPortIdToArgId(node, *op, port_id); in IsNodeInputPortHostFriendly()
247 graph, properties, *fanin.node, fanin.port_id, &fanin_candidate)); in IsNodeHostCandidate()
[all …]
/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/autotest/client/common_lib/cros/cfm/usb/
Dusb_port_manager.py43 def _get_gpio_index(board, port_id): argument
44 return _PORT_ID_TO_GPIO_INDEX_DICT[board][port_id]
69 for port_id in port_ids:
70 gpio_index = _get_gpio_index(self._get_board(), port_id)
/external/u-boot/arch/arm/cpu/armv8/fsl-layerscape/
Dicid.c33 out_be32(&fm->fm_bmi_common.fmbm_ppid[tbl[i].port_id - 1], in set_fman_icids()
100 int get_fman_port_icid(int port_id, struct fman_icid_id_table *tbl, in get_fman_port_icid() argument
106 if (tbl[i].port_id == port_id) in get_fman_port_icid()
/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/u-boot/drivers/serial/
Dserial_s5p.c33 u8 port_id; /* uart port number */ member
104 uclk = get_uart_clk(plat->port_id); in s5p_serial_setbrg()
189 plat->port_id = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in s5p_serial_ofdata_to_platdata()
/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.py304 source_id=playback_source.port_id,
305 recorder_id=playback_recorder.port_id,
308 source_id=record_source.port_id,
309 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