Searched refs:map_val (Results 1 – 8 of 8) sorted by relevance
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | iters.c | 538 int *map_val = NULL; in iter_err_too_permissive1() local 543 map_val = bpf_map_lookup_elem(&arr_map, &key); in iter_err_too_permissive1() 544 if (!map_val) in iter_err_too_permissive1() 548 map_val = NULL; in iter_err_too_permissive1() 551 *map_val = 123; in iter_err_too_permissive1() 560 int *map_val = NULL; in iter_err_too_permissive2() local 565 map_val = bpf_map_lookup_elem(&arr_map, &key); in iter_err_too_permissive2() 566 if (!map_val) in iter_err_too_permissive2() 570 map_val = bpf_map_lookup_elem(&arr_map, &key); in iter_err_too_permissive2() 573 *map_val = 123; in iter_err_too_permissive2() [all …]
|
D | dynptr_success.c | 69 __u32 key = 0, val = 235, *map_val; in test_dynptr_data() local 74 map_val_size = sizeof(*map_val); in test_dynptr_data() 81 map_val = bpf_map_lookup_elem(&array_map, &key); in test_dynptr_data() 82 if (!map_val) { in test_dynptr_data() 87 bpf_dynptr_from_mem(map_val, map_val_size, 0, &ptr); in test_dynptr_data()
|
D | dynptr_fail.c | 63 __u32 key = 0, *map_val; in get_map_val_dynptr() local 67 map_val = bpf_map_lookup_elem(&array_map3, &key); in get_map_val_dynptr() 68 if (!map_val) in get_map_val_dynptr() 71 bpf_dynptr_from_mem(map_val, sizeof(*map_val), 0, ptr); in get_map_val_dynptr() 275 __u32 map_val; in data_slice_out_of_bounds_map_value() local 281 data = bpf_dynptr_data(&ptr, 0, sizeof(map_val)); in data_slice_out_of_bounds_map_value() 286 val = *((char *)data + (sizeof(map_val) + 1)); in data_slice_out_of_bounds_map_value()
|
/linux-6.6.21/arch/sparc/kernel/ |
D | chmc.c | 239 int map_val; in get_pin_and_dimm_str() local 248 map_val = p->map.dimm_map[dimm_map_index]; in get_pin_and_dimm_str() 249 map_val = ((map_val >> ((7 - (offset_inverse & 7)))) & 1); in get_pin_and_dimm_str() 250 *dimm_str_p = p->dimm_labels[base_dimm_offset + map_val]; in get_pin_and_dimm_str() 267 map_val = mp->dimm_map[dimm_map_index]; in get_pin_and_dimm_str() 268 map_val = ((map_val >> ((3 - (offset_inverse & 3)) << 1)) & 0x3); in get_pin_and_dimm_str() 269 *dimm_str_p = p->dimm_labels[base_dimm_offset + map_val]; in get_pin_and_dimm_str()
|
/linux-6.6.21/drivers/iio/adc/ |
D | ti_am335x_adc.c | 435 int i, map_val; in tiadc_read_raw() local 492 map_val = adc_dev->channel_step[chan->scan_index]; in tiadc_read_raw() 506 if (stepid == map_val) { in tiadc_read_raw()
|
/linux-6.6.21/Documentation/bpf/ |
D | linux-notes.rst | 26 Linux only supports the 'map_val(map)' operation on array maps with a single element.
|
/linux-6.6.21/Documentation/bpf/standardization/ |
D | instruction-set.rst | 561 BPF_IMM | BPF_DW | BPF_LD 0x18 0x2 dst = map_val(map_by_fd(imm)) + next_imm map fd dat… 565 BPF_IMM | BPF_DW | BPF_LD 0x18 0x6 dst = map_val(map_by_idx(imm)) + next_imm map index dat… 572 * map_val(map) gets the address of the first value in a given map 583 may not have a single contiguous memory region, but the 'map_val(map)' is
|
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/ |
D | qed_init_fw_funcs.c | 667 u32 map_val = in qed_tx_pq_map_rt_init() local 678 map_val); in qed_tx_pq_map_rt_init()
|