Home
last modified time | relevance | path

Searched refs:value_type (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v6.1/tools/testing/selftests/bpf/progs/
Dlinked_maps2.c10 typedef struct my_value { long x; } value_type; typedef
15 __type(value, value_type);
44 value_type val_struct = { .x = 2000 }; in BPF_PROG()
59 value_type *value_struct; in BPF_PROG()
/Linux-v6.1/drivers/md/persistent-data/
Ddm-array.c101 entry += index * info->value_type.size; in element_at()
114 fn(info->value_type.context, element_at(info, ab, 0), nr_entries); in on_entries()
122 struct dm_btree_value_type *vt = &info->value_type; in inc_ablock_entries()
133 struct dm_btree_value_type *vt = &info->value_type; in dec_ablock_entries()
163 (*ab)->value_size = cpu_to_le32(info->value_type.size); in alloc_ablock()
177 struct dm_btree_value_type *vt = &info->value_type; in fill_ablock()
200 struct dm_btree_value_type *vt = &info->value_type; in trim_ablock()
639 struct dm_btree_value_type *bvt = &info->btree_info.value_type; in dm_array_info_init()
641 memcpy(&info->value_type, vt, sizeof(info->value_type)); in dm_array_info_init()
674 resize.max_entries = calc_max_entries(info->value_type.size, in array_resize()
[all …]
Ddm-btree.c139 max_entries = calc_max_entries(info->value_type.size, block_size); in dm_btree_empty()
146 n->header.value_size = cpu_to_le32(info->value_type.size); in dm_btree_empty()
321 if (info->value_type.dec) in dm_btree_del()
322 info->value_type.dec(info->value_type.context, in dm_btree_del()
387 size = info->value_type.size; in dm_btree_lookup()
460 memcpy(value_le, value_ptr(n, i), info->value_type.size); in dm_btree_lookup_next_single()
842 sizeof(__le64) : s->info->value_type.size; in btree_split_beneath()
1153 r = shadow_step(s, root, &s->info->value_type); in __btree_get_overwrite_leaf()
1266 r = btree_insert_raw(&spine, block, &info->value_type, in insert()
1277 r = insert_at(info->value_type.size, n, index, in insert()
[all …]
Ddm-btree-remove.c603 &info->value_type : &le64_vt), in dm_btree_remove()
616 if (info->value_type.dec) in dm_btree_remove()
617 info->value_type.dec(info->value_type.context, in dm_btree_remove()
709 r = remove_nearest(&spine, info, &info->value_type, in remove_one()
726 if (info->value_type.dec) in remove_one()
727 info->value_type.dec(info->value_type.context, in remove_one()
Ddm-space-map-common.c207 ll->bitmap_info.value_type.size = sizeof(struct disk_index_entry); in sm_ll_init()
208 ll->bitmap_info.value_type.inc = NULL; in sm_ll_init()
209 ll->bitmap_info.value_type.dec = NULL; in sm_ll_init()
210 ll->bitmap_info.value_type.equal = NULL; in sm_ll_init()
214 ll->ref_count_info.value_type.size = sizeof(uint32_t); in sm_ll_init()
215 ll->ref_count_info.value_type.inc = NULL; in sm_ll_init()
216 ll->ref_count_info.value_type.dec = NULL; in sm_ll_init()
217 ll->ref_count_info.value_type.equal = NULL; in sm_ll_init()
Ddm-array.h70 struct dm_btree_value_type value_type; member
Ddm-btree.h88 struct dm_btree_value_type value_type; member
/Linux-v6.1/drivers/md/
Ddm-thin-metadata.c481 pmd->info.value_type.context = pmd->data_sm; in __setup_btree_details()
482 pmd->info.value_type.size = sizeof(__le64); in __setup_btree_details()
483 pmd->info.value_type.inc = data_block_inc; in __setup_btree_details()
484 pmd->info.value_type.dec = data_block_dec; in __setup_btree_details()
485 pmd->info.value_type.equal = data_block_equal; in __setup_btree_details()
492 pmd->tl_info.value_type.context = &pmd->bl_info; in __setup_btree_details()
493 pmd->tl_info.value_type.size = sizeof(__le64); in __setup_btree_details()
494 pmd->tl_info.value_type.inc = subtree_inc; in __setup_btree_details()
495 pmd->tl_info.value_type.dec = subtree_dec; in __setup_btree_details()
496 pmd->tl_info.value_type.equal = subtree_equal; in __setup_btree_details()
[all …]
/Linux-v6.1/tools/perf/include/bpf/
Dbpf.h43 #define pid_map(name, value_type) bpf_map(name, HASH, pid_t, value_type, 64) argument
/Linux-v6.1/tools/testing/selftests/powerpc/papr_attributes/
Dattr_test.c36 static int value_type(int id) in value_type() function
85 attr_type = value_type(id); in verify_energy_info()
/Linux-v6.1/security/tomoyo/
Dcommon.h530 u8 value_type[2]; member
1250 a->group == b->group && a->value_type[0] == b->value_type[0] && in tomoyo_same_number_union()
1251 a->value_type[1] == b->value_type[1]; in tomoyo_same_number_union()
Dutil.c290 ptr->value_type[0] = type; in tomoyo_parse_number_union()
293 ptr->value_type[1] = type; in tomoyo_parse_number_union()
302 ptr->value_type[1] = type; in tomoyo_parse_number_union()
/Linux-v6.1/include/linux/
Dbpf_local_storage.h139 const struct btf_type *value_type);
Dbpf.h113 const struct btf_type *value_type);
397 const struct btf_type *value_type);
1317 const struct btf_type *value_type; member
/Linux-v6.1/kernel/bpf/
Dbpf_struct_ops.c196 st_ops->value_type = btf_type_by_id(btf, in bpf_struct_ops_init()
372 err = check_zero_holes(st_ops->value_type, value); in bpf_struct_ops_map_update_elem()
609 vt = st_ops->value_type; in bpf_struct_ops_map_alloc()
Dbloom_filter.c190 const struct btf_type *value_type) in bloom_map_check_btf() argument
Dsyscall.c904 const struct btf_type *value_type) in map_check_no_btf() argument
990 const struct btf_type *key_type, *value_type; in map_check_btf() local
1005 value_type = btf_type_id_size(btf, &btf_value_id, &value_size); in map_check_btf()
1006 if (!value_type || value_size != map->value_size) in map_check_btf()
1009 map->spin_lock_off = btf_find_spin_lock(btf, value_type); in map_check_btf()
1030 map->timer_off = btf_find_timer(btf, value_type); in map_check_btf()
1040 map->kptr_off_tab = btf_parse_kptrs(btf, value_type); in map_check_btf()
1060 ret = map->ops->map_check_btf(map, btf, key_type, value_type); in map_check_btf()
Dbpf_local_storage.c644 const struct btf_type *value_type) in bpf_local_storage_map_check_btf() argument
Dlocal_storage.c359 const struct btf_type *value_type) in cgroup_storage_check_btf() argument
Dlpm_trie.c716 const struct btf_type *value_type) in trie_check_btf() argument
Darraymap.c500 const struct btf_type *value_type) in array_map_check_btf() argument
510 if (BTF_INFO_KIND(value_type->info) != BTF_KIND_DATASEC) in array_map_check_btf()
/Linux-v6.1/include/uapi/linux/
Dhyperv.h357 __u32 value_type; member
/Linux-v6.1/drivers/hv/
Dhv_kvp.c419 switch (in_msg->body.kvp_set.data.value_type) { in kvp_send_key()
616 kvp_data->value_type = REG_SZ; /* all our values are strings */ in kvp_respond_to_host()
/Linux-v6.1/drivers/crypto/qat/qat_common/
Dicp_qat_uclo.h296 char value_type; member
/Linux-v6.1/drivers/net/wireless/
Drndis_wlan.c861 int value_type, void *value) in rndis_set_config_parameter() argument
868 if (value_type == 0) in rndis_set_config_parameter()
870 else if (value_type == 2) in rndis_set_config_parameter()
891 if (value_type == 2) in rndis_set_config_parameter()
900 infobuf->type = cpu_to_le32(value_type); in rndis_set_config_parameter()
909 if (value_type == 2) { in rndis_set_config_parameter()

12