Home
last modified time | relevance | path

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

/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 …]
/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