Lines Matching refs:hbq_buffer
2546 struct hbq_dmabuf *hbq_buffer; in lpfc_sli_hbqbuf_fill_hbqs() local
2559 hbq_buffer = (phba->hbqs[hbqno].hbq_alloc_buffer)(phba); in lpfc_sli_hbqbuf_fill_hbqs()
2560 if (!hbq_buffer) in lpfc_sli_hbqbuf_fill_hbqs()
2562 list_add_tail(&hbq_buffer->dbuf.list, &hbq_buf_list); in lpfc_sli_hbqbuf_fill_hbqs()
2569 list_remove_head(&hbq_buf_list, hbq_buffer, struct hbq_dmabuf, in lpfc_sli_hbqbuf_fill_hbqs()
2571 hbq_buffer->tag = (phba->hbqs[hbqno].buffer_count | in lpfc_sli_hbqbuf_fill_hbqs()
2573 if (!lpfc_sli_hbq_to_firmware(phba, hbqno, hbq_buffer)) { in lpfc_sli_hbqbuf_fill_hbqs()
2577 (phba->hbqs[hbqno].hbq_free_buffer)(phba, hbq_buffer); in lpfc_sli_hbqbuf_fill_hbqs()
2584 list_remove_head(&hbq_buf_list, hbq_buffer, struct hbq_dmabuf, in lpfc_sli_hbqbuf_fill_hbqs()
2586 (phba->hbqs[hbqno].hbq_free_buffer)(phba, hbq_buffer); in lpfc_sli_hbqbuf_fill_hbqs()
2715 lpfc_sli_free_hbq(struct lpfc_hba *phba, struct hbq_dmabuf *hbq_buffer) in lpfc_sli_free_hbq() argument
2719 if (hbq_buffer) { in lpfc_sli_free_hbq()
2720 hbqno = hbq_buffer->tag >> 16; in lpfc_sli_free_hbq()
2721 if (lpfc_sli_hbq_to_firmware(phba, hbqno, hbq_buffer)) in lpfc_sli_free_hbq()
2722 (phba->hbqs[hbqno].hbq_free_buffer)(phba, hbq_buffer); in lpfc_sli_free_hbq()