Lines Matching refs:def
1002 const struct bpf_map_def *def = bpf_map__def(map);
1004 if (IS_ERR(def)) {
1010 if (def->type != BPF_MAP_TYPE_ARRAY) {
1015 if (def->key_size < sizeof(unsigned int)) {
1019 switch (def->value_size) {
1062 const struct bpf_map_def *def;
1073 def = bpf_map__def(map);
1074 if (IS_ERR(def)) {
1077 return PTR_ERR(def);
1084 if (def->type != BPF_MAP_TYPE_PERF_EVENT_ARRAY) {
1133 const struct bpf_map_def *def;
1144 def = bpf_map__def(map);
1145 if (IS_ERR(def)) {
1156 if (idx >= def->max_entries) {
1308 const struct bpf_map_def *def;
1321 def = bpf_map__def(map);
1322 if (IS_ERR(def)) {
1333 switch (def->type) {
1339 map_fd, def, op);
1343 map_fd, def,