Lines Matching defs:map_idx
452 struct bpf_map_create_opts *map_attr, int map_idx)
474 attr.map_name, map_idx, map_type, attr.btf_value_type_id);
492 if (map_idx >= 0)
495 sizeof(struct bpf_map_desc) * map_idx +
501 attr.map_name, map_idx, map_type, value_size,
505 if (map_idx < 0) {
506 /* This bpf_gen__map_create() function is called with map_idx >= 0
512 } else if (map_idx != gen->nr_maps) {
1034 void bpf_gen__map_update_elem(struct bpf_gen *gen, int map_idx, void *pvalue,
1043 pr_debug("gen: map_update_elem: idx %d\n", map_idx);
1048 /* if (map_desc[map_idx].initial_value) {
1057 sizeof(struct bpf_map_desc) * map_idx +
1072 blob_fd_array_off(gen, map_idx));
1077 debug_ret(gen, "update_elem idx %d value_size %d", map_idx, value_size);
1108 void bpf_gen__map_freeze(struct bpf_gen *gen, int map_idx)
1115 pr_debug("gen: map_freeze: idx %d\n", map_idx);
1118 blob_fd_array_off(gen, map_idx));