Lines Matching refs:rpi_hdr
5893 struct lpfc_rpi_hdr *rpi_hdr; in lpfc_sli4_init_rpi_hdrs() local
5901 rpi_hdr = lpfc_sli4_create_rpi_hdr(phba); in lpfc_sli4_init_rpi_hdrs()
5902 if (!rpi_hdr) { in lpfc_sli4_init_rpi_hdrs()
5930 struct lpfc_rpi_hdr *rpi_hdr; in lpfc_sli4_create_rpi_hdr() local
5980 rpi_hdr = NULL; in lpfc_sli4_create_rpi_hdr()
5985 rpi_hdr = NULL; in lpfc_sli4_create_rpi_hdr()
5990 rpi_hdr = kzalloc(sizeof(struct lpfc_rpi_hdr), GFP_KERNEL); in lpfc_sli4_create_rpi_hdr()
5991 if (!rpi_hdr) in lpfc_sli4_create_rpi_hdr()
5994 rpi_hdr->dmabuf = dmabuf; in lpfc_sli4_create_rpi_hdr()
5995 rpi_hdr->len = LPFC_HDR_TEMPLATE_SIZE; in lpfc_sli4_create_rpi_hdr()
5996 rpi_hdr->page_count = 1; in lpfc_sli4_create_rpi_hdr()
6000 rpi_hdr->start_rpi = curr_rpi_range; in lpfc_sli4_create_rpi_hdr()
6001 list_add_tail(&rpi_hdr->list, &phba->sli4_hba.lpfc_rpi_hdr_list); in lpfc_sli4_create_rpi_hdr()
6009 return rpi_hdr; in lpfc_sli4_create_rpi_hdr()
6031 struct lpfc_rpi_hdr *rpi_hdr, *next_rpi_hdr; in lpfc_sli4_remove_rpi_hdrs() local
6036 list_for_each_entry_safe(rpi_hdr, next_rpi_hdr, in lpfc_sli4_remove_rpi_hdrs()
6038 list_del(&rpi_hdr->list); in lpfc_sli4_remove_rpi_hdrs()
6039 dma_free_coherent(&phba->pcidev->dev, rpi_hdr->len, in lpfc_sli4_remove_rpi_hdrs()
6040 rpi_hdr->dmabuf->virt, rpi_hdr->dmabuf->phys); in lpfc_sli4_remove_rpi_hdrs()
6041 kfree(rpi_hdr->dmabuf); in lpfc_sli4_remove_rpi_hdrs()
6042 kfree(rpi_hdr); in lpfc_sli4_remove_rpi_hdrs()