Lines Matching refs:a
32 static inline bool __skb_array_full(struct skb_array *a) in __skb_array_full() argument
34 return __ptr_ring_full(&a->ring); in __skb_array_full()
37 static inline bool skb_array_full(struct skb_array *a) in skb_array_full() argument
39 return ptr_ring_full(&a->ring); in skb_array_full()
42 static inline int skb_array_produce(struct skb_array *a, struct sk_buff *skb) in skb_array_produce() argument
44 return ptr_ring_produce(&a->ring, skb); in skb_array_produce()
47 static inline int skb_array_produce_irq(struct skb_array *a, struct sk_buff *skb) in skb_array_produce_irq() argument
49 return ptr_ring_produce_irq(&a->ring, skb); in skb_array_produce_irq()
52 static inline int skb_array_produce_bh(struct skb_array *a, struct sk_buff *skb) in skb_array_produce_bh() argument
54 return ptr_ring_produce_bh(&a->ring, skb); in skb_array_produce_bh()
57 static inline int skb_array_produce_any(struct skb_array *a, struct sk_buff *skb) in skb_array_produce_any() argument
59 return ptr_ring_produce_any(&a->ring, skb); in skb_array_produce_any()
66 static inline bool __skb_array_empty(struct skb_array *a) in __skb_array_empty() argument
68 return __ptr_ring_empty(&a->ring); in __skb_array_empty()
71 static inline struct sk_buff *__skb_array_peek(struct skb_array *a) in __skb_array_peek() argument
73 return __ptr_ring_peek(&a->ring); in __skb_array_peek()
76 static inline bool skb_array_empty(struct skb_array *a) in skb_array_empty() argument
78 return ptr_ring_empty(&a->ring); in skb_array_empty()
81 static inline bool skb_array_empty_bh(struct skb_array *a) in skb_array_empty_bh() argument
83 return ptr_ring_empty_bh(&a->ring); in skb_array_empty_bh()
86 static inline bool skb_array_empty_irq(struct skb_array *a) in skb_array_empty_irq() argument
88 return ptr_ring_empty_irq(&a->ring); in skb_array_empty_irq()
91 static inline bool skb_array_empty_any(struct skb_array *a) in skb_array_empty_any() argument
93 return ptr_ring_empty_any(&a->ring); in skb_array_empty_any()
96 static inline struct sk_buff *__skb_array_consume(struct skb_array *a) in __skb_array_consume() argument
98 return __ptr_ring_consume(&a->ring); in __skb_array_consume()
101 static inline struct sk_buff *skb_array_consume(struct skb_array *a) in skb_array_consume() argument
103 return ptr_ring_consume(&a->ring); in skb_array_consume()
106 static inline int skb_array_consume_batched(struct skb_array *a, in skb_array_consume_batched() argument
109 return ptr_ring_consume_batched(&a->ring, (void **)array, n); in skb_array_consume_batched()
112 static inline struct sk_buff *skb_array_consume_irq(struct skb_array *a) in skb_array_consume_irq() argument
114 return ptr_ring_consume_irq(&a->ring); in skb_array_consume_irq()
117 static inline int skb_array_consume_batched_irq(struct skb_array *a, in skb_array_consume_batched_irq() argument
120 return ptr_ring_consume_batched_irq(&a->ring, (void **)array, n); in skb_array_consume_batched_irq()
123 static inline struct sk_buff *skb_array_consume_any(struct skb_array *a) in skb_array_consume_any() argument
125 return ptr_ring_consume_any(&a->ring); in skb_array_consume_any()
128 static inline int skb_array_consume_batched_any(struct skb_array *a, in skb_array_consume_batched_any() argument
131 return ptr_ring_consume_batched_any(&a->ring, (void **)array, n); in skb_array_consume_batched_any()
135 static inline struct sk_buff *skb_array_consume_bh(struct skb_array *a) in skb_array_consume_bh() argument
137 return ptr_ring_consume_bh(&a->ring); in skb_array_consume_bh()
140 static inline int skb_array_consume_batched_bh(struct skb_array *a, in skb_array_consume_batched_bh() argument
143 return ptr_ring_consume_batched_bh(&a->ring, (void **)array, n); in skb_array_consume_batched_bh()
160 static inline int skb_array_peek_len(struct skb_array *a) in skb_array_peek_len() argument
162 return PTR_RING_PEEK_CALL(&a->ring, __skb_array_len_with_tag); in skb_array_peek_len()
165 static inline int skb_array_peek_len_irq(struct skb_array *a) in skb_array_peek_len_irq() argument
167 return PTR_RING_PEEK_CALL_IRQ(&a->ring, __skb_array_len_with_tag); in skb_array_peek_len_irq()
170 static inline int skb_array_peek_len_bh(struct skb_array *a) in skb_array_peek_len_bh() argument
172 return PTR_RING_PEEK_CALL_BH(&a->ring, __skb_array_len_with_tag); in skb_array_peek_len_bh()
175 static inline int skb_array_peek_len_any(struct skb_array *a) in skb_array_peek_len_any() argument
177 return PTR_RING_PEEK_CALL_ANY(&a->ring, __skb_array_len_with_tag); in skb_array_peek_len_any()
180 static inline int skb_array_init(struct skb_array *a, int size, gfp_t gfp) in skb_array_init() argument
182 return ptr_ring_init(&a->ring, size, gfp); in skb_array_init()
190 static inline void skb_array_unconsume(struct skb_array *a, in skb_array_unconsume() argument
193 ptr_ring_unconsume(&a->ring, (void **)skbs, n, __skb_array_destroy_skb); in skb_array_unconsume()
196 static inline int skb_array_resize(struct skb_array *a, int size, gfp_t gfp) in skb_array_resize() argument
198 return ptr_ring_resize(&a->ring, size, gfp, __skb_array_destroy_skb); in skb_array_resize()
211 static inline void skb_array_cleanup(struct skb_array *a) in skb_array_cleanup() argument
213 ptr_ring_cleanup(&a->ring, __skb_array_destroy_skb); in skb_array_cleanup()