Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A 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/drivers/md/persistent-data/
H A Ddm-array.c102 entry += index * info->value_type.size; in element_at()
116 fn(info->value_type.context, element_at(info, ab, 0), nr_entries); in on_entries()
124 struct dm_btree_value_type *vt = &info->value_type; in inc_ablock_entries()
135 struct dm_btree_value_type *vt = &info->value_type; in dec_ablock_entries()
165 (*ab)->value_size = cpu_to_le32(info->value_type.size); in alloc_ablock()
179 struct dm_btree_value_type *vt = &info->value_type; in fill_ablock()
202 struct dm_btree_value_type *vt = &info->value_type; in trim_ablock()
643 struct dm_btree_value_type *bvt = &info->btree_info.value_type; in dm_array_info_init()
645 memcpy(&info->value_type, vt, sizeof(info->value_type)); in dm_array_info_init()
678 resize.max_entries = calc_max_entries(info->value_type.size, in array_resize()
[all …]
H A Ddm-btree.c142 max_entries = calc_max_entries(info->value_type.size, block_size); in dm_btree_empty()
149 n->header.value_size = cpu_to_le32(info->value_type.size); in dm_btree_empty()
324 if (info->value_type.dec) in dm_btree_del()
325 info->value_type.dec(info->value_type.context, in dm_btree_del()
390 size = info->value_type.size; in dm_btree_lookup()
463 memcpy(value_le, value_ptr(n, i), info->value_type.size); in dm_btree_lookup_next_single()
851 sizeof(__le64) : s->info->value_type.size; in btree_split_beneath()
1164 r = shadow_step(s, root, &s->info->value_type); in __btree_get_overwrite_leaf()
1277 r = btree_insert_raw(&spine, block, &info->value_type, in insert()
1288 r = insert_at(info->value_type.size, n, index, in insert()
[all …]
H A Ddm-btree-remove.c608 &info->value_type : &le64_vt), in dm_btree_remove()
621 if (info->value_type.dec) in dm_btree_remove()
622 info->value_type.dec(info->value_type.context, in dm_btree_remove()
715 r = remove_nearest(&spine, info, &info->value_type, in remove_one()
732 if (info->value_type.dec) in remove_one()
733 info->value_type.dec(info->value_type.context, in remove_one()
H A Ddm-array.h71 struct dm_btree_value_type value_type; member
H A Ddm-btree.h89 struct dm_btree_value_type value_type; member
/linux/drivers/md/
H A Ddm-thin-metadata.c487 pmd->info.value_type.context = pmd->data_sm; in __setup_btree_details()
488 pmd->info.value_type.size = sizeof(__le64); in __setup_btree_details()
489 pmd->info.value_type.inc = data_block_inc; in __setup_btree_details()
490 pmd->info.value_type.dec = data_block_dec; in __setup_btree_details()
491 pmd->info.value_type.equal = data_block_equal; in __setup_btree_details()
498 pmd->tl_info.value_type.context = &pmd->bl_info; in __setup_btree_details()
499 pmd->tl_info.value_type.size = sizeof(__le64); in __setup_btree_details()
500 pmd->tl_info.value_type.inc = subtree_inc; in __setup_btree_details()
501 pmd->tl_info.value_type.dec = subtree_dec; in __setup_btree_details()
502 pmd->tl_info.value_type.equal = subtree_equal; in __setup_btree_details()
[all …]
H A Ddm-era-target.c413 struct dm_btree_value_type *vt = &md->writeset_tree_info.value_type; in setup_writeset_tree_info()
/linux/tools/testing/selftests/powerpc/papr_attributes/
H A Dattr_test.c36 static int value_type(int id) in value_type() function
85 attr_type = value_type(id); in verify_energy_info()
/linux/security/tomoyo/
H A Dcommon.h530 u8 value_type[2]; member
1248 a->group == b->group && a->value_type[0] == b->value_type[0] && in tomoyo_same_number_union()
1249 a->value_type[1] == b->value_type[1]; in tomoyo_same_number_union()
H A 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()
H A Dcommon.c429 u8 min_type = ptr->value_type[0]; in tomoyo_print_number_union_nospace()
430 const u8 max_type = ptr->value_type[1]; in tomoyo_print_number_union_nospace()
/linux/include/uapi/linux/
H A Dhyperv.h357 __u32 value_type; member
/linux/kernel/bpf/
H A Dbpf_struct_ops.c372 st_ops_desc->value_type = btf_type_by_id(btf, value_id); in bpf_struct_ops_desc_init()
658 err = check_zero_holes(st_map->btf, st_ops_desc->value_type, value); in bpf_struct_ops_map_update_elem()
1026 vt = st_ops_desc->value_type; in bpf_struct_ops_map_alloc()
1081 const struct btf_type *vt = st_ops_desc->value_type; in bpf_struct_ops_map_mem_usage()
H A Dbloom_filter.c186 const struct btf_type *value_type) in bloom_map_check_btf() argument
H A Dlocal_storage.c359 const struct btf_type *value_type) in cgroup_storage_check_btf() argument
H A Dlpm_trie.c766 const struct btf_type *value_type)
729 trie_check_btf(const struct bpf_map * map,const struct btf * btf,const struct btf_type * key_type,const struct btf_type * value_type) trie_check_btf() argument
H A Darraymap.c531 const struct btf_type *value_type) in array_map_check_btf() argument
541 if (BTF_INFO_KIND(value_type->info) != BTF_KIND_DATASEC) in array_map_check_btf()
H A Dbtf.c3433 const char *value_type; in btf_find_graph_root() local
3440 value_type = btf_find_decl_tag_value(btf, pt, comp_idx, "contains:"); in btf_find_graph_root()
3441 if (IS_ERR(value_type)) in btf_find_graph_root()
3443 node_field_name = strstr(value_type, ":"); in btf_find_graph_root()
3446 value_type = kstrndup(value_type, node_field_name - value_type, GFP_KERNEL | __GFP_NOWARN); in btf_find_graph_root()
3447 if (!value_type) in btf_find_graph_root()
3449 id = btf_find_by_name_kind(btf, value_type, BTF_KIND_STRUCT); in btf_find_graph_root()
3450 kfree(value_type); in btf_find_graph_root()
H A Dsyscall.c1174 const struct btf_type *value_type) in map_check_no_btf() argument
1182 const struct btf_type *key_type, *value_type; in map_check_btf() local
1197 value_type = btf_type_id_size(btf, &btf_value_id, &value_size); in map_check_btf()
1198 if (!value_type || value_size != map->value_size) in map_check_btf()
1201 map->record = btf_parse_fields(btf, value_type, in map_check_btf()
1287 ret = map->ops->map_check_btf(map, btf, key_type, value_type); in map_check_btf()
/linux/drivers/hv/
H A 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/drivers/crypto/intel/qat/qat_common/
H A Dicp_qat_uclo.h296 char value_type; member
/linux/include/linux/
H A Dbpf.h127 const struct btf_type *value_type);
612 const struct btf_type *value_type);
1830 const struct btf_type *value_type; member