Home
last modified time | relevance | path

Searched refs:fd_map (Results 1 – 7 of 7) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_tag.c27 static void bpf_gen_imm_prog(unsigned int insns, int fd_map) in bpf_gen_imm_prog() argument
37 static void bpf_gen_map_prog(unsigned int insns, int fd_map) in bpf_gen_map_prog() argument
43 BPF_LD_MAP_FD(j++ % BPF_REG_10, fd_map) in bpf_gen_map_prog()
53 static int bpf_try_load_prog(int insns, int fd_map, in bpf_try_load_prog() argument
55 int fd_map)) in bpf_try_load_prog()
59 bpf_filler(insns, fd_map); in bpf_try_load_prog()
63 if (fd_map > 0) in bpf_try_load_prog()
154 static void tag_exit_report(int insns, int fd_map, uint8_t *ftag, in tag_exit_report() argument
158 fd_map < 0 ? "" : " with map"); in tag_exit_report()
165 static void do_test(uint32_t *tests, int start_insns, int fd_map, in do_test() argument
[all …]
/external/fonttools/Lib/fontTools/varLib/
Dcff.py151 def get_private(regionFDArrays, fd_index, ri, fd_map): argument
153 region_fd_map = fd_map[fd_index]
162 def merge_PrivateDicts(top_dicts, vsindex_dict, var_model, fd_map): argument
197 pd = get_private(regionFDArrays, fd_index, ri, fd_map)
288 fd_map = {}
296 fd_map[0] = {ri:0 for ri in range(num_regions)}
297 return fd_map
304 if fdIndex not in fd_map:
305 fd_map[fdIndex] = {}
312 fd_map[default_fdIndex][ri] = 0
[all …]
/external/mesa3d/src/broadcom/simulator/
Dv3d_simulator.c88 struct hash_table *fd_map; member
133 struct hash_entry *entry = _mesa_hash_table_search(sim_state.fd_map, in v3d_get_simulator_file_for_fd()
624 sim_state.fd_map = in v3d_simulator_init_global()
655 _mesa_hash_table_insert(sim_state.fd_map, int_to_key(fd + 1), in v3d_simulator_init()
672 _mesa_hash_table_destroy(sim_state.fd_map, NULL); in v3d_simulator_destroy()
/external/mesa3d/src/drm-shim/
Ddevice.c79 shim_device.fd_map = _mesa_hash_table_create(NULL, in drm_shim_device_init()
119 _mesa_hash_table_insert(shim_device.fd_map, (void *)(uintptr_t)(fd + 1), shim_fd); in drm_shim_fd_register()
129 _mesa_hash_table_search(shim_device.fd_map, (void *)(uintptr_t)(fd + 1)); in drm_shim_fd_lookup()
Ddrm_shim.h42 struct hash_table *fd_map; member
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_simulator.c74 struct hash_table *fd_map; member
120 struct hash_entry *entry = _mesa_hash_table_search(sim_state.fd_map, in vc4_get_simulator_file_for_fd()
662 sim_state.fd_map = in vc4_simulator_init_global()
681 _mesa_hash_table_insert(sim_state.fd_map, int_to_key(screen->fd + 1), in vc4_simulator_init()
693 _mesa_hash_table_destroy(sim_state.fd_map, NULL); in vc4_simulator_destroy()
/external/minijail/
Dlibminijail.c2744 } fd_map[] = { in setup_child_std_fds() local
2750 for (size_t i = 0; i < ARRAY_SIZE(fd_map); ++i) { in setup_child_std_fds()
2751 if (fd_map[i].from == -1 || fd_map[i].from == fd_map[i].to) in setup_child_std_fds()
2753 if (dup2(fd_map[i].from, fd_map[i].to) == -1) in setup_child_std_fds()
2754 die("failed to set up %s pipe", fd_map[i].name); in setup_child_std_fds()
3350 } fd_map[] = { in minijail_run_config_internal() local
3356 for (size_t i = 0; i < ARRAY_SIZE(fd_map); ++i) { in minijail_run_config_internal()
3357 if (fd_map[i].pfd) { in minijail_run_config_internal()
3358 *fd_map[i].pfd = *fd_map[i].psrc; in minijail_run_config_internal()
3359 *fd_map[i].psrc = -1; in minijail_run_config_internal()