Lines Matching refs:buf_stack
80 struct idpf_buf_lifo *buf_stack; in idpf_tx_buf_rel_all() local
103 buf_stack = &txq->stash->buf_stack; in idpf_tx_buf_rel_all()
104 if (!buf_stack->bufs) in idpf_tx_buf_rel_all()
118 idpf_buf_lifo_push(buf_stack, stash); in idpf_tx_buf_rel_all()
121 for (i = 0; i < buf_stack->size; i++) in idpf_tx_buf_rel_all()
122 kfree(buf_stack->bufs[i]); in idpf_tx_buf_rel_all()
124 kfree(buf_stack->bufs); in idpf_tx_buf_rel_all()
125 buf_stack->bufs = NULL; in idpf_tx_buf_rel_all()
198 struct idpf_buf_lifo *buf_stack; in idpf_tx_buf_alloc_all() local
213 buf_stack = &tx_q->stash->buf_stack; in idpf_tx_buf_alloc_all()
218 buf_stack->bufs = kcalloc(tx_q->desc_count, sizeof(*buf_stack->bufs), in idpf_tx_buf_alloc_all()
220 if (!buf_stack->bufs) in idpf_tx_buf_alloc_all()
223 buf_stack->size = tx_q->desc_count; in idpf_tx_buf_alloc_all()
224 buf_stack->top = tx_q->desc_count; in idpf_tx_buf_alloc_all()
227 buf_stack->bufs[i] = kzalloc(sizeof(*buf_stack->bufs[i]), in idpf_tx_buf_alloc_all()
229 if (!buf_stack->bufs[i]) in idpf_tx_buf_alloc_all()
1736 idpf_buf_lifo_push(&txq->stash->buf_stack, stash); in idpf_tx_clean_stashed_bufs()
1754 stash = idpf_buf_lifo_pop(&txq->stash->buf_stack); in idpf_stash_flow_sch_buffers()