Home
last modified time | relevance | path

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

/external/linux-kselftest/tools/testing/selftests/kvm/include/
Dsparsebit.h30 typedef uint64_t sparsebit_idx_t; typedef
37 bool sparsebit_is_set(struct sparsebit *sbit, sparsebit_idx_t idx);
39 sparsebit_idx_t idx, sparsebit_num_t num);
40 bool sparsebit_is_clear(struct sparsebit *sbit, sparsebit_idx_t idx);
42 sparsebit_idx_t idx, sparsebit_num_t num);
48 sparsebit_idx_t sparsebit_first_set(struct sparsebit *sbit);
49 sparsebit_idx_t sparsebit_first_clear(struct sparsebit *sbit);
50 sparsebit_idx_t sparsebit_next_set(struct sparsebit *sbit, sparsebit_idx_t prev);
51 sparsebit_idx_t sparsebit_next_clear(struct sparsebit *sbit, sparsebit_idx_t prev);
52 sparsebit_idx_t sparsebit_next_set_num(struct sparsebit *sbit,
[all …]
/external/linux-kselftest/tools/testing/selftests/kvm/lib/
Dsparsebit.c173 sparsebit_idx_t idx; /* index of least-significant bit in mask */
311 static struct node *node_find(struct sparsebit *s, sparsebit_idx_t idx) in node_find()
334 static struct node *node_add(struct sparsebit *s, sparsebit_idx_t idx) in node_add()
499 static struct node *node_split(struct sparsebit *s, sparsebit_idx_t idx) in node_split()
502 sparsebit_idx_t offset; in node_split()
673 sparsebit_idx_t prev_highest_bit; in node_reduce()
780 bool sparsebit_is_set(struct sparsebit *s, sparsebit_idx_t idx) in sparsebit_is_set()
806 static void bit_set(struct sparsebit *s, sparsebit_idx_t idx) in bit_set()
833 static void bit_clear(struct sparsebit *s, sparsebit_idx_t idx) in bit_clear()
902 static inline sparsebit_idx_t node_first_set(struct node *nodep, int start) in node_first_set()
[all …]
Dkvm_util.c1432 sparsebit_idx_t pg, base; in vm_phy_pages_alloc()