Home
last modified time | relevance | path

Searched refs:map_val (Results 1 – 9 of 9) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Diters.c537 int *map_val = NULL; in iter_err_too_permissive1() local
542 map_val = bpf_map_lookup_elem(&hash_map, &key); in iter_err_too_permissive1()
543 if (!map_val) in iter_err_too_permissive1()
547 map_val = NULL; in iter_err_too_permissive1()
550 *map_val = 123; in iter_err_too_permissive1()
559 int *map_val = NULL; in iter_err_too_permissive2() local
564 map_val = bpf_map_lookup_elem(&hash_map, &key); in iter_err_too_permissive2()
565 if (!map_val) in iter_err_too_permissive2()
569 map_val = bpf_map_lookup_elem(&hash_map, &key); in iter_err_too_permissive2()
572 *map_val = 123; in iter_err_too_permissive2()
[all …]
H A Ddynptr_fail.c64 __u32 key = 0, *map_val; in get_map_val_dynptr() local
68 map_val = bpf_map_lookup_elem(&array_map3, &key); in get_map_val_dynptr()
69 if (!map_val) in get_map_val_dynptr()
72 bpf_dynptr_from_mem(map_val, sizeof(*map_val), 0, ptr); in get_map_val_dynptr()
296 __u32 map_val; in data_slice_use_after_release1()
302 data = bpf_dynptr_data(&ptr, 0, sizeof(map_val)); in data_slice_use_after_release1()
307 val = *((char *)data + (sizeof(map_val) + 1)); in data_slice_use_after_release1()
276 __u32 map_val; data_slice_out_of_bounds_map_value() local
H A Ddynptr_success.c71 __u32 key = 0, val = 235, *map_val; in test_dynptr_data() local
76 map_val_size = sizeof(*map_val); in test_dynptr_data()
83 map_val = bpf_map_lookup_elem(&array_map, &key); in test_dynptr_data()
84 if (!map_val) { in test_dynptr_data()
89 bpf_dynptr_from_mem(map_val, map_val_size, 0, &ptr); in test_dynptr_data()
/linux/arch/sparc/kernel/
H A Dchmc.c239 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/drivers/iio/adc/
H A Dti_am335x_adc.c435 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/Documentation/bpf/
H A Dlinux-notes.rst26 Linux only supports the 'map_val(map)' operation on array maps with a single element.
/linux/Documentation/bpf/standardization/
H A Dinstruction-set.rst742 0x2 dst = map_val(map_by_fd(imm)) + next_imm map fd data address
746 0x6 dst = map_val(map_by_idx(imm)) + next_imm map index data address
753 * map_val(map) gets the address of the first value in a given map
764 may not have a single contiguous memory region, but the 'map_val(map)' is
/linux/drivers/pinctrl/mediatek/
H A Dpinctrl-airoha.c1506 #define AIROHA_PINCTRL_PHY_LED0(gpio, mux_val, map_mask, map_val) \ argument
1519 (map_val), \
1524 #define AIROHA_PINCTRL_PHY_LED1(gpio, mux_val, map_mask, map_val) \ argument
1537 (map_val), \
/linux/kernel/bpf/
H A Dhelpers.c4044 void *map_val; member
4118 key = (void *)map_key_from_value(ctx->map, ctx->map_val, &idx); in bpf_task_work_callback()
4121 ctx->callback_fn(ctx->map, key, ctx->map_val); in bpf_task_work_callback()
4263 ctx->map_val = (void *)tw - map->record->task_work_off; in bpf_task_work_schedule()