Searched refs:max_elems (Results 1 – 9 of 9) sorted by relevance
/linux-5.19.10/drivers/infiniband/hw/vmw_pvrdma/ |
D | pvrdma_ring.h | 63 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/ |
D | rhashtable-types.h | 84 unsigned int max_elems; member
|
D | rhashtable.h | 223 return atomic_read(&ht->nelems) >= ht->max_elems; in rht_grow_above_max()
|
/linux-5.19.10/drivers/net/ethernet/netronome/nfp/bpf/ |
D | fw.h | 48 __le32 max_elems; member
|
D | main.c | 277 bpf->maps.max_elems = readl(&cap->max_elems); in nfp_bpf_parse_cap_maps()
|
D | offload.c | 355 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()
|
D | main.h | 160 u32 max_elems; member
|
/linux-5.19.10/lib/ |
D | test_rhashtable.c | 459 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()
|
D | rhashtable.c | 1034 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()
|