Lines Matching refs:id
38 unsigned int id[2]; in get_two_hyperthreads() local
40 RTE_LCORE_FOREACH(id[0]) { in get_two_hyperthreads()
41 RTE_LCORE_FOREACH(id[1]) { in get_two_hyperthreads()
42 if (id[0] == id[1]) in get_two_hyperthreads()
44 core[0] = rte_lcore_to_cpu_id(id[0]); in get_two_hyperthreads()
45 core[1] = rte_lcore_to_cpu_id(id[1]); in get_two_hyperthreads()
46 socket[0] = rte_lcore_to_socket_id(id[0]); in get_two_hyperthreads()
47 socket[1] = rte_lcore_to_socket_id(id[1]); in get_two_hyperthreads()
49 lcp->c1 = id[0]; in get_two_hyperthreads()
50 lcp->c2 = id[1]; in get_two_hyperthreads()
64 unsigned int id[2]; in get_two_cores() local
66 RTE_LCORE_FOREACH(id[0]) { in get_two_cores()
67 RTE_LCORE_FOREACH(id[1]) { in get_two_cores()
68 if (id[0] == id[1]) in get_two_cores()
70 core[0] = rte_lcore_to_cpu_id(id[0]); in get_two_cores()
71 core[1] = rte_lcore_to_cpu_id(id[1]); in get_two_cores()
72 socket[0] = rte_lcore_to_socket_id(id[0]); in get_two_cores()
73 socket[1] = rte_lcore_to_socket_id(id[1]); in get_two_cores()
75 lcp->c1 = id[0]; in get_two_cores()
76 lcp->c2 = id[1]; in get_two_cores()
89 unsigned int id[2]; in get_two_sockets() local
91 RTE_LCORE_FOREACH(id[0]) { in get_two_sockets()
92 RTE_LCORE_FOREACH(id[1]) { in get_two_sockets()
93 if (id[0] == id[1]) in get_two_sockets()
95 socket[0] = rte_lcore_to_socket_id(id[0]); in get_two_sockets()
96 socket[1] = rte_lcore_to_socket_id(id[1]); in get_two_sockets()
98 lcp->c1 = id[0]; in get_two_sockets()
99 lcp->c2 = id[1]; in get_two_sockets()