Lines Matching refs:map_fd
17 static int map_fd[7]; variable
19 #define PORT_A (map_fd[0])
20 #define PORT_H (map_fd[1])
21 #define REG_RESULT_H (map_fd[2])
22 #define INLINE_RESULT_H (map_fd[3])
23 #define A_OF_PORT_A (map_fd[4]) /* Test case #0 */
24 #define H_OF_PORT_A (map_fd[5]) /* Test case #1 */
25 #define H_OF_PORT_H (map_fd[6]) /* Test case #2 */
142 map_fd[0] = bpf_object__find_map_fd_by_name(obj, "port_a"); in main()
143 map_fd[1] = bpf_object__find_map_fd_by_name(obj, "port_h"); in main()
144 map_fd[2] = bpf_object__find_map_fd_by_name(obj, "reg_result_h"); in main()
145 map_fd[3] = bpf_object__find_map_fd_by_name(obj, "inline_result_h"); in main()
146 map_fd[4] = bpf_object__find_map_fd_by_name(obj, "a_of_port_a"); in main()
147 map_fd[5] = bpf_object__find_map_fd_by_name(obj, "h_of_port_a"); in main()
148 map_fd[6] = bpf_object__find_map_fd_by_name(obj, "h_of_port_h"); in main()
149 if (map_fd[0] < 0 || map_fd[1] < 0 || map_fd[2] < 0 || in main()
150 map_fd[3] < 0 || map_fd[4] < 0 || map_fd[5] < 0 || map_fd[6] < 0) { in main()