Lines Matching refs:nbuf

32 bool dp_rx_buffer_pool_refill(struct dp_soc *soc, qdf_nbuf_t nbuf, u8 mac_id)  in dp_rx_buffer_pool_refill()  argument
47 first_nbuf = nbuf; in dp_rx_buffer_pool_refill()
49 while (nbuf) { in dp_rx_buffer_pool_refill()
50 next_nbuf = qdf_nbuf_next(nbuf); in dp_rx_buffer_pool_refill()
76 nbuf = next_nbuf; in dp_rx_buffer_pool_refill()
79 nbuf = first_nbuf; in dp_rx_buffer_pool_refill()
82 while (nbuf) { in dp_rx_buffer_pool_refill()
83 next_nbuf = qdf_nbuf_next(nbuf); in dp_rx_buffer_pool_refill()
84 dp_rx_buffer_pool_nbuf_free(soc, nbuf, mac_id); in dp_rx_buffer_pool_refill()
85 nbuf = next_nbuf; in dp_rx_buffer_pool_refill()
92 void dp_rx_buffer_pool_nbuf_free(struct dp_soc *soc, qdf_nbuf_t nbuf, u8 mac_id) in dp_rx_buffer_pool_nbuf_free() argument
107 return qdf_nbuf_free(nbuf); in dp_rx_buffer_pool_nbuf_free()
109 qdf_nbuf_reset(nbuf, RX_BUFFER_RESERVATION, in dp_rx_buffer_pool_nbuf_free()
111 qdf_nbuf_queue_head_enqueue_tail(&buff_pool->emerg_nbuf_q, nbuf); in dp_rx_buffer_pool_nbuf_free()
119 qdf_nbuf_t nbuf; in dp_rx_refill_buff_pool_enqueue() local
152 nbuf = qdf_nbuf_alloc(dev, rx_desc_pool->buf_size, in dp_rx_refill_buff_pool_enqueue()
156 if (qdf_unlikely(!nbuf)) in dp_rx_refill_buff_pool_enqueue()
159 ret = qdf_nbuf_map_nbytes_single(dev, nbuf, in dp_rx_refill_buff_pool_enqueue()
163 qdf_nbuf_free(nbuf); in dp_rx_refill_buff_pool_enqueue()
169 QDF_NBUF_CB_PADDR(nbuf)), in dp_rx_refill_buff_pool_enqueue()
170 QDF_NBUF_CB_PADDR(nbuf), in dp_rx_refill_buff_pool_enqueue()
173 buff_pool->buf_elem[head++] = nbuf; in dp_rx_refill_buff_pool_enqueue()
193 qdf_nbuf_t nbuf = NULL; in dp_rx_refill_buff_pool_dequeue_nbuf() local
202 nbuf = buff_pool->buf_elem[tail++]; in dp_rx_refill_buff_pool_dequeue_nbuf()
206 return nbuf; in dp_rx_refill_buff_pool_dequeue_nbuf()
217 qdf_nbuf_t nbuf; in dp_rx_buffer_pool_nbuf_alloc() local
219 nbuf = dp_rx_refill_buff_pool_dequeue_nbuf(soc); in dp_rx_buffer_pool_nbuf_alloc()
220 if (qdf_likely(nbuf)) { in dp_rx_buffer_pool_nbuf_alloc()
223 return nbuf; in dp_rx_buffer_pool_nbuf_alloc()
232 nbuf = qdf_nbuf_alloc(soc->osdev, rx_desc_pool->buf_size, in dp_rx_buffer_pool_nbuf_alloc()
238 return nbuf; in dp_rx_buffer_pool_nbuf_alloc()
240 if (qdf_likely(nbuf)) { in dp_rx_buffer_pool_nbuf_alloc()
242 return nbuf; in dp_rx_buffer_pool_nbuf_alloc()
250 nbuf = qdf_nbuf_queue_head_dequeue(&buff_pool->emerg_nbuf_q); in dp_rx_buffer_pool_nbuf_alloc()
251 if (nbuf) in dp_rx_buffer_pool_nbuf_alloc()
256 return nbuf; in dp_rx_buffer_pool_nbuf_alloc()
266 if (!QDF_NBUF_CB_PADDR((nbuf_frag_info_t->virt_addr).nbuf)) { in dp_rx_buffer_pool_nbuf_map()
268 (nbuf_frag_info_t->virt_addr).nbuf, in dp_rx_buffer_pool_nbuf_map()
274 QDF_NBUF_CB_PADDR((nbuf_frag_info_t->virt_addr).nbuf)), in dp_rx_buffer_pool_nbuf_map()
275 QDF_NBUF_CB_PADDR((nbuf_frag_info_t->virt_addr).nbuf), in dp_rx_buffer_pool_nbuf_map()
286 qdf_nbuf_t nbuf; in dp_rx_refill_buff_pool_init() local
313 nbuf = qdf_nbuf_alloc(soc->osdev, rx_desc_pool->buf_size, in dp_rx_refill_buff_pool_init()
316 if (!nbuf) in dp_rx_refill_buff_pool_init()
319 ret = qdf_nbuf_map_nbytes_single(soc->osdev, nbuf, in dp_rx_refill_buff_pool_init()
323 qdf_nbuf_free(nbuf); in dp_rx_refill_buff_pool_init()
329 QDF_NBUF_CB_PADDR(nbuf)), in dp_rx_refill_buff_pool_init()
330 QDF_NBUF_CB_PADDR(nbuf), in dp_rx_refill_buff_pool_init()
333 buff_pool->buf_elem[head] = nbuf; in dp_rx_refill_buff_pool_init()
350 qdf_nbuf_t nbuf; in dp_rx_buffer_pool_init() local
367 nbuf = qdf_nbuf_alloc(soc->osdev, rx_desc_pool->buf_size, in dp_rx_buffer_pool_init()
370 if (!nbuf) in dp_rx_buffer_pool_init()
373 nbuf); in dp_rx_buffer_pool_init()
387 qdf_nbuf_t nbuf; in dp_rx_refill_buff_pool_deinit() local
393 while ((nbuf = dp_rx_refill_buff_pool_dequeue_nbuf(soc))) { in dp_rx_refill_buff_pool_deinit()
395 QDF_NBUF_CB_PADDR(nbuf), in dp_rx_refill_buff_pool_deinit()
397 qdf_nbuf_unmap_nbytes_single(soc->osdev, nbuf, in dp_rx_refill_buff_pool_deinit()
400 qdf_nbuf_free(nbuf); in dp_rx_refill_buff_pool_deinit()
414 qdf_nbuf_t nbuf; in dp_rx_buffer_pool_deinit() local
424 while ((nbuf = qdf_nbuf_queue_head_dequeue(&buff_pool->emerg_nbuf_q))) in dp_rx_buffer_pool_deinit()
425 qdf_nbuf_free(nbuf); in dp_rx_buffer_pool_deinit()