Searched refs:max_elems (Results 1 – 5 of 5) sorted by relevance
63 static inline int pvrdma_idx_valid(__u32 idx, __u32 max_elems) in pvrdma_idx_valid() argument66 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() argument73 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() argument82 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() argument92 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 …]
48 __le32 max_elems; member
277 bpf->maps.max_elems = readl(&cap->max_elems); in nfp_bpf_parse_cap_maps()
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()
160 u32 max_elems; member