Home
last modified time | relevance | path

Searched refs:sparsebit (Results 1 – 5 of 5) sorted by relevance

/linux/tools/testing/selftests/kvm/include/
H A Dsparsebit.h27 struct sparsebit;
31 struct sparsebit *sparsebit_alloc(void);
32 void sparsebit_free(struct sparsebit **sbitp);
33 void sparsebit_copy(struct sparsebit *dstp, const struct sparsebit *src);
35 bool sparsebit_is_set(const struct sparsebit *sbit, sparsebit_idx_t idx);
36 bool sparsebit_is_set_num(const struct sparsebit *sbit,
38 bool sparsebit_is_clear(const struct sparsebit *sbit, sparsebit_idx_t idx);
39 bool sparsebit_is_clear_num(const struct sparsebit *sbit,
41 sparsebit_num_t sparsebit_num_set(const struct sparsebit *sbit);
42 bool sparsebit_any_set(const struct sparsebit *sbit);
[all …]
H A Dkvm_util.h34 struct sparsebit *unused_phy_pages;
35 struct sparsebit *protected_phy_pages;
90 struct sparsebit *vpages_valid;
91 struct sparsebit *vpages_mapped;
/linux/tools/testing/selftests/kvm/lib/
H A Dsparsebit.c177 struct sparsebit { struct
205 static struct node *node_first(const struct sparsebit *s) in node_first() argument
219 static struct node *node_next(const struct sparsebit *s, struct node *np) in node_next()
247 static struct node *node_prev(const struct sparsebit *s, struct node *np) in node_prev()
310 static struct node *node_find(const struct sparsebit *s, sparsebit_idx_t idx) in node_find()
333 static struct node *node_add(struct sparsebit *s, sparsebit_idx_t idx) in node_add()
396 bool sparsebit_all_set(const struct sparsebit *s) in sparsebit_all_set()
409 static void node_rm(struct sparsebit *s, struct node *nodep) in node_rm()
498 static struct node *node_split(struct sparsebit *s, sparsebit_idx_t idx) in node_split()
599 static void node_reduce(struct sparsebit *s, struct node *nodep) in node_reduce()
[all …]
/linux/tools/testing/selftests/kvm/lib/x86_64/
H A Dsev.c19 const struct sparsebit *protected_phy_pages = region->protected_phy_pages; in encrypt_region()
/linux/tools/testing/selftests/kvm/
H A DMakefile28 LIBKVM += lib/sparsebit.c