Lines Matching refs:map_idx
515 struct bpf_map_create_opts *map_attr, int map_idx)
538 map_name, map_idx, map_type, map_attr->btf_value_type_id,
564 if (map_idx >= 0 && !OPTS_GET(gen->opts, gen_hash, false))
567 sizeof(struct bpf_map_desc) * map_idx +
574 map_name, map_idx, map_type, value_size,
578 if (map_idx < 0) {
579 /* This bpf_gen__map_create() function is called with map_idx >= 0
585 } else if (map_idx != gen->nr_maps) {
1192 void bpf_gen__map_update_elem(struct bpf_gen *gen, int map_idx, void *pvalue,
1206 * if (map_desc[map_idx].initial_value) {
1222 sizeof(struct bpf_map_desc) * map_idx +
1238 map_idx, value, value_size, map_update_attr, attr_size);
1240 blob_fd_array_off(gen, map_idx));
1245 debug_ret(gen, "update_elem idx %d value_size %d", map_idx, value_size);
1278 void bpf_gen__map_freeze(struct bpf_gen *gen, int map_idx)
1287 map_idx, map_freeze_attr, attr_size);
1289 blob_fd_array_off(gen, map_idx));