Lines Matching refs:val

550 	struct test_val *val;  in an_array_with_a_constant_no_nullness()  local
552 val = bpf_map_lookup_elem(&map_array, &key); in an_array_with_a_constant_no_nullness()
553 val->index = offsetof(struct test_val, foo); in an_array_with_a_constant_no_nullness()
555 return val->index; in an_array_with_a_constant_no_nullness()
567 struct test_val *val, *val2; in multiple_array_with_a_constant_no_nullness() local
569 val = bpf_map_lookup_elem(&map_array, &key); in multiple_array_with_a_constant_no_nullness()
570 val->index = offsetof(struct test_val, foo); in multiple_array_with_a_constant_no_nullness()
575 return val->index + val2->index; in multiple_array_with_a_constant_no_nullness()
587 struct test_val *val; in an_array_with_a_32bit_constant_0_no_nullness() local
590 val = bpf_map_lookup_elem(&map_array, &key); in an_array_with_a_32bit_constant_0_no_nullness()
591 val->index = offsetof(struct test_val, foo); in an_array_with_a_32bit_constant_0_no_nullness()
593 return val->index; in an_array_with_a_32bit_constant_0_no_nullness()
603 struct test_val *val; in a_pcpu_array_with_a_constant_no_nullness() local
605 val = bpf_map_lookup_elem(&map_array_pcpu, &key); in a_pcpu_array_with_a_constant_no_nullness()
606 val->index = offsetof(struct test_val, foo); in a_pcpu_array_with_a_constant_no_nullness()
608 return val->index; in a_pcpu_array_with_a_constant_no_nullness()
618 struct test_val *val; in an_array_with_a_constant_no_nullness_out_of_bounds() local
620 val = bpf_map_lookup_elem(&map_array, &key); in an_array_with_a_constant_no_nullness_out_of_bounds()
621 val->index = offsetof(struct test_val, foo); in an_array_with_a_constant_no_nullness_out_of_bounds()
623 return val->index; in an_array_with_a_constant_no_nullness_out_of_bounds()
632 struct test_val *val; in an_array_with_a_constant_too_small() local
641 val = bpf_map_lookup_elem(&map_array, &key); in an_array_with_a_constant_too_small()
644 val->index = offsetof(struct test_val, foo); in an_array_with_a_constant_too_small()
646 return val->index; in an_array_with_a_constant_too_small()
654 struct test_val *val; in an_array_with_a_constant_too_big() local
661 val = bpf_map_lookup_elem(&map_array, &key); in an_array_with_a_constant_too_big()
662 val->index = offsetof(struct test_val, foo); in an_array_with_a_constant_too_big()
664 return val->index; in an_array_with_a_constant_too_big()
673 struct test_val *val; in mixed_const_and_non_const_key_lookup() local
678 val = bpf_map_lookup_elem(&map_array, &key); in mixed_const_and_non_const_key_lookup()
680 return val->index; in mixed_const_and_non_const_key_lookup()
707 struct test_val *val; in non_stack_key_lookup() local
710 val = bpf_map_lookup_elem(&map_array, (void *)&global_key); in non_stack_key_lookup()
711 val->index = offsetof(struct test_val, foo); in non_stack_key_lookup()
713 return val->index; in non_stack_key_lookup()
722 struct test_val *val; in doesnt_reject_irrelevant_maps() local
724 val = bpf_map_lookup_elem(&map_hash_48b, &key); in doesnt_reject_irrelevant_maps()
725 if (val) in doesnt_reject_irrelevant_maps()
726 return val->index; in doesnt_reject_irrelevant_maps()