Home
last modified time | relevance | path

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

/linux-6.12.1/tools/testing/selftests/kvm/include/
Dsparsebit.h28 typedef uint64_t sparsebit_idx_t; typedef
35 bool sparsebit_is_set(const struct sparsebit *sbit, sparsebit_idx_t idx);
37 sparsebit_idx_t idx, sparsebit_num_t num);
38 bool sparsebit_is_clear(const struct sparsebit *sbit, sparsebit_idx_t idx);
40 sparsebit_idx_t idx, sparsebit_num_t num);
46 sparsebit_idx_t sparsebit_first_set(const struct sparsebit *sbit);
47 sparsebit_idx_t sparsebit_first_clear(const struct sparsebit *sbit);
48 sparsebit_idx_t sparsebit_next_set(const struct sparsebit *sbit, sparsebit_idx_t prev);
49 sparsebit_idx_t sparsebit_next_clear(const struct sparsebit *sbit, sparsebit_idx_t prev);
50 sparsebit_idx_t sparsebit_next_set_num(const struct sparsebit *sbit,
[all …]
/linux-6.12.1/tools/testing/selftests/kvm/lib/
Dsparsebit.c172 sparsebit_idx_t idx; /* index of least-significant bit in mask */
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()
498 static struct node *node_split(struct sparsebit *s, sparsebit_idx_t idx) in node_split()
501 sparsebit_idx_t offset; in node_split()
671 sparsebit_idx_t prev_highest_bit; in node_reduce()
778 bool sparsebit_is_set(const struct sparsebit *s, sparsebit_idx_t idx) in sparsebit_is_set()
804 static void bit_set(struct sparsebit *s, sparsebit_idx_t idx) in bit_set()
831 static void bit_clear(struct sparsebit *s, sparsebit_idx_t idx) in bit_clear()
900 static inline sparsebit_idx_t node_first_set(struct node *nodep, int start) in node_first_set()
[all …]
Dkvm_util.c2015 sparsebit_idx_t pg, base; in __vm_phy_pages_alloc()
2261 sparsebit_idx_t pg = 0; in vm_is_gpa_protected()
/linux-6.12.1/tools/testing/selftests/kvm/lib/x86_64/
Dsev.c21 const sparsebit_idx_t lowest_page_in_region = gpa_base >> vm->page_shift; in encrypt_region()
22 sparsebit_idx_t i, j; in encrypt_region()
Dvmx.c502 sparsebit_idx_t i, last; in nested_map_memslot()