Home
last modified time | relevance | path

Searched refs:max_elems (Results 1 – 9 of 9) sorted by relevance

/linux-5.19.10/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_ring.h63 static inline int pvrdma_idx_valid(__u32 idx, __u32 max_elems) in pvrdma_idx_valid() argument
66 return (idx & ~((max_elems << 1) - 1)) == 0; in pvrdma_idx_valid()
69 static inline __s32 pvrdma_idx(atomic_t *var, __u32 max_elems) in pvrdma_idx() argument
73 if (pvrdma_idx_valid(idx, max_elems)) in pvrdma_idx()
74 return idx & (max_elems - 1); in pvrdma_idx()
78 static inline void pvrdma_idx_ring_inc(atomic_t *var, __u32 max_elems) in pvrdma_idx_ring_inc() argument
82 idx &= (max_elems << 1) - 1; /* Modulo size, flip gen. */ in pvrdma_idx_ring_inc()
87 __u32 max_elems, __u32 *out_tail) in pvrdma_idx_ring_has_space() argument
92 if (pvrdma_idx_valid(tail, max_elems) && in pvrdma_idx_ring_has_space()
93 pvrdma_idx_valid(head, max_elems)) { in pvrdma_idx_ring_has_space()
[all …]
/linux-5.19.10/include/linux/
Drhashtable-types.h84 unsigned int max_elems; member
Drhashtable.h223 return atomic_read(&ht->nelems) >= ht->max_elems; in rht_grow_above_max()
/linux-5.19.10/drivers/net/ethernet/netronome/nfp/bpf/
Dfw.h48 __le32 max_elems; member
Dmain.c277 bpf->maps.max_elems = readl(&cap->max_elems); in nfp_bpf_parse_cap_maps()
Doffload.c355 if (bpf->maps.max_elems - bpf->map_elems_in_use < in nfp_bpf_map_alloc()
359 bpf->maps.max_elems - bpf->map_elems_in_use); in nfp_bpf_map_alloc()
Dmain.h160 u32 max_elems; member
/linux-5.19.10/lib/
Dtest_rhashtable.c459 for (i = 0; i < ht.max_elems; i++) { in test_rhashtable_max()
470 err = insert_retry(&ht, &array[ht.max_elems], test_rht_params); in test_rhashtable_max()
475 ht.max_elems, -E2BIG, err); in test_rhashtable_max()
Drhashtable.c1034 ht->max_elems = 1u << 31; in rhashtable_init()
1038 if (ht->p.max_size < ht->max_elems / 2) in rhashtable_init()
1039 ht->max_elems = ht->p.max_size * 2; in rhashtable_init()