Home
last modified time | relevance | path

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

12

/external/u-boot/drivers/net/fm/
Dfm.c197 static u32 fm_assign_risc(int port_id) in fm_assign_risc() argument
200 risc_sel = (port_id & 0x1) ? FMFPPRC_RISC2 : FMFPPRC_RISC1; in fm_assign_risc()
201 val = (port_id << FMFPPRC_PORTID_SHIFT) & FMFPPRC_PORTID_MASK; in fm_assign_risc()
209 int i, port_id; in fm_init_fpm() local
219 port_id = OH_PORT_ID_BASE + i; in fm_init_fpm()
220 val = fm_assign_risc(port_id); in fm_init_fpm()
225 port_id = RX_PORT_1G_BASE + i; in fm_init_fpm()
226 val = fm_assign_risc(port_id); in fm_init_fpm()
231 port_id = TX_PORT_1G_BASE + i; in fm_init_fpm()
232 val = fm_assign_risc(port_id); in fm_init_fpm()
[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.py419 def __init__(self, chameleond_proxy, port_id): argument
426 self.port_id = port_id
434 return self.port_id
442 return self.chameleond_proxy.GetConnectorType(self.port_id)
450 return self.chameleond_proxy.HasAudioSupport(self.port_id)
458 return self.chameleond_proxy.HasVideoSupport(self.port_id)
463 logging.info('Plug Chameleon port %d', self.port_id)
464 self.chameleond_proxy.Plug(self.port_id)
469 logging.info('Unplug Chameleon port %d', self.port_id)
470 self.chameleond_proxy.Unplug(self.port_id)
[all …]
Dchameleon_audio_helper.py35 def __init__(self, port_id): argument
41 logging.debug('Creating AudioPort with port_id: %s', port_id)
42 self.port_id = port_id
43 self.host = ids.get_host(port_id)
44 self.interface = ids.get_interface(port_id)
45 self.role = ids.get_role(port_id)
154 link_type = self.LINK_TABLE.get((source.port_id, sink.port_id), None)
158 source.port_id, sink.port_id))
248 def create_widget(self, port_id, use_arc=False): argument
269 if audio_port.port_id == ids.ChameleonIds.HDMI:
[all …]
Daudio_board.py120 def _get_endpoint_name(self, port_id): argument
129 return self._PORT_ID_AUDIO_BUS_ENDPOINT_MAP[port_id]
158 def connect(self, port_id): argument
165 endpoint = self._get_endpoint_name(port_id)
169 def disconnect(self, port_id): argument
176 endpoint = self._get_endpoint_name(port_id)
Daudio_widget_link.py135 def _check_widget_id(self, port_id, widget): argument
143 if widget.audio_port.port_id != port_id:
146 self.name, port_id, widget.audio_port.port_id))
207 self._audio_bus.connect(widget.audio_port.port_id)
223 self._audio_bus.disconnect(widget.audio_port.port_id)
239 self._audio_bus.connect(widget.audio_port.port_id)
255 self._audio_bus.disconnect(widget.audio_port.port_id)
Daudio_test_utils.py39 def cros_port_id_to_cras_node_type(port_id): argument
47 return CHAMELEON_AUDIO_IDS_TO_CRAS_NODE_TYPES[port_id]
50 def check_output_port(audio_facade, port_id): argument
56 output_node_type = cros_port_id_to_cras_node_type(port_id)
60 def check_input_port(audio_facade, port_id): argument
66 input_node_type = cros_port_id_to_cras_node_type(port_id)
Daudio_level.py88 source_level = _SOURCE_LEVEL_TABLE[self._source.port_id]
89 sink_level = _SINK_LEVEL_TABLE[self._sink.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.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()
136 port.port_id = i; in SwapRegularFanoutInputs()
143 fanout.node->set_input(fanout.port_id, input); in SwapRegularFanoutInputs()
332 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.cc91 const NodeDef& node, int port_id, in IsNodeOutputPortHostFriendly() argument
107 if (port_id >= output_properties.size()) { in IsNodeOutputPortHostFriendly()
108 LOG(WARNING) << "port_id=" << port_id in IsNodeOutputPortHostFriendly()
114 if (!IsTensorSmall(output_properties[port_id])) { in IsNodeOutputPortHostFriendly()
124 graph, properties, *fanin.node, fanin.port_id, &fanin_candidate)); in IsNodeOutputPortHostFriendly()
148 const int output_arg_id = OpOutputPortIdToArgId(node, *op, port_id); in IsNodeOutputPortHostFriendly()
150 LOG(WARNING) << "Invalid port: " << port_id << "!\n" in IsNodeOutputPortHostFriendly()
178 bool IsNodeInputPortHostFriendly(const NodeDef& node, int port_id) { in IsNodeInputPortHostFriendly() argument
191 const int input_arg_id = OpInputPortIdToArgId(node, *op, port_id); in IsNodeInputPortHostFriendly()
244 graph, properties, *fanin.node, fanin.port_id, &fanin_candidate)); in IsNodeHostCandidate()
[all …]
Dmodel_pruner.cc40 if (input.port_id == Graph::kControlSlot) { in IsTrivialIdentity()
49 if (output.port_id == Graph::kControlSlot) { in IsTrivialIdentity()
81 bool IsOutputPortRefValue(const NodeDef& node, int port_id, in IsOutputPortRefValue() argument
87 s = OutputTypeForNode(node, op_reg_data->op_def, port_id, &output_type); in IsOutputPortRefValue()
106 } else if (input.port_id == Graph::kControlSlot) { in CanRemoveNode()
112 } else if (IsOutputPortRefValue(*input.node, input.port_id, op_registry)) { in CanRemoveNode()
Dshape_optimizer.cc65 if (prop.size() < reduce_indices.port_id) { in Optimize()
69 prop[reduce_indices.port_id].shape(); in Optimize()
/external/kernel-headers/original/uapi/scsi/
Dscsi_bsg_fc.h87 uint8_t port_id[3]; member
108 uint8_t port_id[3]; member
132 uint8_t port_id[3]; member
195 uint8_t 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/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/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/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()
/external/mesa3d/src/gallium/state_trackers/xvmc/tests/
Dtestlib.c51 XvPortID *port_id, in GetPort() argument
94 *port_id = adaptor_info[i].base_id + l; in GetPort()
/external/tensorflow/tensorflow/core/grappler/costs/
Dgraph_properties.cc764 int src_output = fanin.port_id; in UpdateNode()
901 int port_id; member
903 return node == other.node && port_id == other.port_id; in operator ==()
908 return std::hash<const NodeDef*>{}(shp.node) + shp.port_id; in operator ()()
914 int port_id; member
917 return node == other.node && port_id == other.port_id && in operator ==()
924 return std::hash<const NodeDef*>{}(dim.node) + dim.port_id + in operator ()()
1810 ShapeHandle input = src_ic->output(fanin.src.port_id); in UpdateMerge()
1811 ic->SetInput(fanin.dst.port_id, input); in UpdateMerge()
1813 src_ic->output_handle_shapes_and_types(fanin.src.port_id); in UpdateMerge()
[all …]

12