Lines Matching refs:ports

54 	size = (sw->config.max_port_number + 1) * sizeof(*sw->ports);
55 sw->ports = kunit_kzalloc(test, size, GFP_KERNEL);
56 if (!sw->ports)
60 sw->ports[i].sw = sw;
61 sw->ports[i].port = i;
62 sw->ports[i].config.port_number = i;
64 kunit_ida_init(test, &sw->ports[i].in_hopids);
65 kunit_ida_init(test, &sw->ports[i].out_hopids);
83 sw->ports[0].config.type = TB_TYPE_PORT;
84 sw->ports[0].config.max_in_hop_id = 7;
85 sw->ports[0].config.max_out_hop_id = 7;
87 sw->ports[1].config.type = TB_TYPE_PORT;
88 sw->ports[1].config.max_in_hop_id = 19;
89 sw->ports[1].config.max_out_hop_id = 19;
90 sw->ports[1].total_credits = 60;
91 sw->ports[1].ctl_credits = 2;
92 sw->ports[1].dual_link_port = &sw->ports[2];
94 sw->ports[2].config.type = TB_TYPE_PORT;
95 sw->ports[2].config.max_in_hop_id = 19;
96 sw->ports[2].config.max_out_hop_id = 19;
97 sw->ports[2].total_credits = 60;
98 sw->ports[2].ctl_credits = 2;
99 sw->ports[2].dual_link_port = &sw->ports[1];
100 sw->ports[2].link_nr = 1;
102 sw->ports[3].config.type = TB_TYPE_PORT;
103 sw->ports[3].config.max_in_hop_id = 19;
104 sw->ports[3].config.max_out_hop_id = 19;
105 sw->ports[3].total_credits = 60;
106 sw->ports[3].ctl_credits = 2;
107 sw->ports[3].dual_link_port = &sw->ports[4];
109 sw->ports[4].config.type = TB_TYPE_PORT;
110 sw->ports[4].config.max_in_hop_id = 19;
111 sw->ports[4].config.max_out_hop_id = 19;
112 sw->ports[4].total_credits = 60;
113 sw->ports[4].ctl_credits = 2;
114 sw->ports[4].dual_link_port = &sw->ports[3];
115 sw->ports[4].link_nr = 1;
117 sw->ports[5].config.type = TB_TYPE_DP_HDMI_IN;
118 sw->ports[5].config.max_in_hop_id = 9;
119 sw->ports[5].config.max_out_hop_id = 9;
120 sw->ports[5].cap_adap = -1;
122 sw->ports[6].config.type = TB_TYPE_DP_HDMI_IN;
123 sw->ports[6].config.max_in_hop_id = 9;
124 sw->ports[6].config.max_out_hop_id = 9;
125 sw->ports[6].cap_adap = -1;
127 sw->ports[7].config.type = TB_TYPE_NHI;
128 sw->ports[7].config.max_in_hop_id = 11;
129 sw->ports[7].config.max_out_hop_id = 11;
130 sw->ports[7].config.nfc_credits = 0x41800000;
132 sw->ports[8].config.type = TB_TYPE_PCIE_DOWN;
133 sw->ports[8].config.max_in_hop_id = 8;
134 sw->ports[8].config.max_out_hop_id = 8;
136 sw->ports[9].config.type = TB_TYPE_PCIE_DOWN;
137 sw->ports[9].config.max_in_hop_id = 8;
138 sw->ports[9].config.max_out_hop_id = 8;
140 sw->ports[10].disabled = true;
141 sw->ports[11].disabled = true;
143 sw->ports[12].config.type = TB_TYPE_USB3_DOWN;
144 sw->ports[12].config.max_in_hop_id = 8;
145 sw->ports[12].config.max_out_hop_id = 8;
147 sw->ports[13].config.type = TB_TYPE_USB3_DOWN;
148 sw->ports[13].config.max_in_hop_id = 8;
149 sw->ports[13].config.max_out_hop_id = 8;
181 sw->ports[10].config.type = TB_TYPE_DP_HDMI_IN;
182 sw->ports[10].config.max_in_hop_id = 9;
183 sw->ports[10].config.max_out_hop_id = 9;
184 sw->ports[10].cap_adap = -1;
185 sw->ports[10].disabled = false;
204 sw->ports[0].config.type = TB_TYPE_PORT;
205 sw->ports[0].config.max_in_hop_id = 8;
206 sw->ports[0].config.max_out_hop_id = 8;
208 sw->ports[1].config.type = TB_TYPE_PORT;
209 sw->ports[1].config.max_in_hop_id = 19;
210 sw->ports[1].config.max_out_hop_id = 19;
211 sw->ports[1].total_credits = 60;
212 sw->ports[1].ctl_credits = 2;
213 sw->ports[1].dual_link_port = &sw->ports[2];
215 sw->ports[2].config.type = TB_TYPE_PORT;
216 sw->ports[2].config.max_in_hop_id = 19;
217 sw->ports[2].config.max_out_hop_id = 19;
218 sw->ports[2].total_credits = 60;
219 sw->ports[2].ctl_credits = 2;
220 sw->ports[2].dual_link_port = &sw->ports[1];
221 sw->ports[2].link_nr = 1;
223 sw->ports[3].config.type = TB_TYPE_PORT;
224 sw->ports[3].config.max_in_hop_id = 19;
225 sw->ports[3].config.max_out_hop_id = 19;
226 sw->ports[3].total_credits = 60;
227 sw->ports[3].ctl_credits = 2;
228 sw->ports[3].dual_link_port = &sw->ports[4];
230 sw->ports[4].config.type = TB_TYPE_PORT;
231 sw->ports[4].config.max_in_hop_id = 19;
232 sw->ports[4].config.max_out_hop_id = 19;
233 sw->ports[4].total_credits = 60;
234 sw->ports[4].ctl_credits = 2;
235 sw->ports[4].dual_link_port = &sw->ports[3];
236 sw->ports[4].link_nr = 1;
238 sw->ports[5].config.type = TB_TYPE_PORT;
239 sw->ports[5].config.max_in_hop_id = 19;
240 sw->ports[5].config.max_out_hop_id = 19;
241 sw->ports[5].total_credits = 60;
242 sw->ports[5].ctl_credits = 2;
243 sw->ports[5].dual_link_port = &sw->ports[6];
245 sw->ports[6].config.type = TB_TYPE_PORT;
246 sw->ports[6].config.max_in_hop_id = 19;
247 sw->ports[6].config.max_out_hop_id = 19;
248 sw->ports[6].total_credits = 60;
249 sw->ports[6].ctl_credits = 2;
250 sw->ports[6].dual_link_port = &sw->ports[5];
251 sw->ports[6].link_nr = 1;
253 sw->ports[7].config.type = TB_TYPE_PORT;
254 sw->ports[7].config.max_in_hop_id = 19;
255 sw->ports[7].config.max_out_hop_id = 19;
256 sw->ports[7].total_credits = 60;
257 sw->ports[7].ctl_credits = 2;
258 sw->ports[7].dual_link_port = &sw->ports[8];
260 sw->ports[8].config.type = TB_TYPE_PORT;
261 sw->ports[8].config.max_in_hop_id = 19;
262 sw->ports[8].config.max_out_hop_id = 19;
263 sw->ports[8].total_credits = 60;
264 sw->ports[8].ctl_credits = 2;
265 sw->ports[8].dual_link_port = &sw->ports[7];
266 sw->ports[8].link_nr = 1;
268 sw->ports[9].config.type = TB_TYPE_PCIE_UP;
269 sw->ports[9].config.max_in_hop_id = 8;
270 sw->ports[9].config.max_out_hop_id = 8;
272 sw->ports[10].config.type = TB_TYPE_PCIE_DOWN;
273 sw->ports[10].config.max_in_hop_id = 8;
274 sw->ports[10].config.max_out_hop_id = 8;
276 sw->ports[11].config.type = TB_TYPE_PCIE_DOWN;
277 sw->ports[11].config.max_in_hop_id = 8;
278 sw->ports[11].config.max_out_hop_id = 8;
280 sw->ports[12].config.type = TB_TYPE_PCIE_DOWN;
281 sw->ports[12].config.max_in_hop_id = 8;
282 sw->ports[12].config.max_out_hop_id = 8;
284 sw->ports[13].config.type = TB_TYPE_DP_HDMI_OUT;
285 sw->ports[13].config.max_in_hop_id = 9;
286 sw->ports[13].config.max_out_hop_id = 9;
287 sw->ports[13].cap_adap = -1;
289 sw->ports[14].config.type = TB_TYPE_DP_HDMI_OUT;
290 sw->ports[14].config.max_in_hop_id = 9;
291 sw->ports[14].config.max_out_hop_id = 9;
292 sw->ports[14].cap_adap = -1;
294 sw->ports[15].disabled = true;
296 sw->ports[16].config.type = TB_TYPE_USB3_UP;
297 sw->ports[16].config.max_in_hop_id = 8;
298 sw->ports[16].config.max_out_hop_id = 8;
300 sw->ports[17].config.type = TB_TYPE_USB3_DOWN;
301 sw->ports[17].config.max_in_hop_id = 8;
302 sw->ports[17].config.max_out_hop_id = 8;
304 sw->ports[18].config.type = TB_TYPE_USB3_DOWN;
305 sw->ports[18].config.max_in_hop_id = 8;
306 sw->ports[18].config.max_out_hop_id = 8;
308 sw->ports[19].config.type = TB_TYPE_USB3_DOWN;
309 sw->ports[19].config.max_in_hop_id = 8;
310 sw->ports[19].config.max_out_hop_id = 8;
350 sw->ports[13].config.type = TB_TYPE_DP_HDMI_IN;
351 sw->ports[13].config.max_in_hop_id = 9;
352 sw->ports[13].config.max_out_hop_id = 9;
354 sw->ports[14].config.type = TB_TYPE_DP_HDMI_IN;
355 sw->ports[14].config.max_in_hop_id = 9;
356 sw->ports[14].config.max_out_hop_id = 9;
380 sw->ports[i].disabled = true;
383 sw->ports[i].disabled = true;
385 sw->ports[13].cap_adap = 0;
386 sw->ports[14].cap_adap = 0;
389 sw->ports[i].disabled = true;
430 src_port = &host->ports[5];
449 src_port = &host->ports[12];
450 dst_port = &dev->ports[16];
456 KUNIT_EXPECT_PTR_EQ(test, p, &host->ports[3]);
467 KUNIT_EXPECT_PTR_EQ(test, p, &dev->ports[1]);
503 src_port = &host->ports[8];
504 dst_port = &dev->ports[9];
562 src_port = &host->ports[5];
563 dst_port = &dev2->ports[13];
625 src_port = &host->ports[5];
626 dst_port = &dev3->ports[13];
709 src_port = &dev3->ports[13];
710 dst_port = &dev9->ports[14];
812 src_port = &dev6->ports[13];
813 dst_port = &dev12->ports[13];
853 down = &dev1->ports[10];
854 up = &dev2->ports[9];
904 down = &host->ports[9];
905 up = &dev->ports[9];
966 in = &host->ports[5];
967 out = &dev->ports[13];
1046 in = &host->ports[5];
1047 out = &dev3->ports[13];
1126 in = &dev3->ports[13];
1127 out = &host->ports[5];
1218 in = &host->ports[5];
1219 out = &dev4->ports[13];
1310 in = &dev4->ports[13];
1311 out = &host->ports[5];
1355 down = &host->ports[8];
1356 up = &dev1->ports[9];
1370 down = &dev1->ports[10];
1371 up = &dev2->ports[9];
1406 in = &host->ports[5];
1407 out = &dev->ports[13];
1452 in = &host->ports[5];
1453 out = &dev4->ports[14];
1502 in = &dev2->ports[13];
1503 out = &dev5->ports[13];
1567 in = &dev6->ports[13];
1568 out = &dev12->ports[13];
1581 &host->ports[1]);
1583 &host->ports[3]);
1589 &host->ports[1]);
1591 &host->ports[3]);
1596 &host->ports[3]);
1598 &host->ports[1]);
1632 in1 = &host->ports[5];
1633 in2 = &host->ports[6];
1634 in3 = &host->ports[10];
1636 out1 = &dev2->ports[13];
1637 out2 = &dev5->ports[13];
1638 out3 = &dev4->ports[14];
1689 down = &host->ports[12];
1690 up = &dev1->ports[16];
1704 down = &dev1->ports[17];
1705 up = &dev2->ports[16];
1750 in = &dev2->ports[13];
1751 out = &dev5->ports[13];
1759 port = &host->ports[8];
1762 port = &host->ports[3];
1765 port = &dev1->ports[1];
1768 port = &dev1->ports[3];
1771 port = &dev1->ports[5];
1774 port = &dev1->ports[7];
1777 port = &dev3->ports[1];
1780 port = &dev5->ports[1];
1783 port = &dev4->ports[1];
1807 nhi = &host->ports[7];
1808 port = &host->ports[1];
1850 nhi = &host->ports[7];
1851 port = &host->ports[1];
1887 nhi = &host->ports[7];
1888 port = &host->ports[1];
1934 nhi = &host->ports[7];
1935 port = &dev2->ports[3];
1947 &dev2->ports[1]);
1949 &dev1->ports[7]);
1951 &dev1->ports[1]);
1953 &host->ports[1]);
1961 &dev1->ports[1]);
1963 &dev1->ports[7]);
1965 &dev2->ports[1]);
1979 nhi = &host->ports[7];
1980 port = &host->ports[1];
2033 down = &host->ports[8];
2034 up = &dev->ports[9];
2066 down = &host->ports[8];
2067 up = &dev->ports[9];
2099 down = &host->ports[8];
2100 up = &dev->ports[9];
2147 down = &host->ports[8];
2148 up = &dev->ports[9];
2182 in = &host->ports[5];
2183 out = &dev->ports[14];
2226 down = &host->ports[12];
2227 up = &dev->ports[16];
2259 nhi = &host->ports[7];
2260 port = &dev->ports[3];
2295 nhi = &host->ports[7];
2296 port = &dev->ports[3];
2299 * Create three DMA tunnels through the same ports. With the
2389 down = &host->ports[8];
2390 up = &dev->ports[9];
2419 in = &host->ports[5];
2420 out = &dev->ports[13];
2456 in = &host->ports[6];
2457 out = &dev->ports[14];
2493 down = &host->ports[12];
2494 up = &dev->ports[16];
2523 nhi = &host->ports[7];
2524 port = &dev->ports[3];
2553 nhi = &host->ports[7];
2554 port = &dev->ports[3];