Lines Matching refs:rpi_hdr
5912 struct lpfc_rpi_hdr *rpi_hdr; in lpfc_sli4_init_rpi_hdrs() local
5920 rpi_hdr = lpfc_sli4_create_rpi_hdr(phba); in lpfc_sli4_init_rpi_hdrs()
5921 if (!rpi_hdr) { in lpfc_sli4_init_rpi_hdrs()
5949 struct lpfc_rpi_hdr *rpi_hdr; in lpfc_sli4_create_rpi_hdr() local
5999 rpi_hdr = NULL; in lpfc_sli4_create_rpi_hdr()
6004 rpi_hdr = NULL; in lpfc_sli4_create_rpi_hdr()
6009 rpi_hdr = kzalloc(sizeof(struct lpfc_rpi_hdr), GFP_KERNEL); in lpfc_sli4_create_rpi_hdr()
6010 if (!rpi_hdr) in lpfc_sli4_create_rpi_hdr()
6013 rpi_hdr->dmabuf = dmabuf; in lpfc_sli4_create_rpi_hdr()
6014 rpi_hdr->len = LPFC_HDR_TEMPLATE_SIZE; in lpfc_sli4_create_rpi_hdr()
6015 rpi_hdr->page_count = 1; in lpfc_sli4_create_rpi_hdr()
6019 rpi_hdr->start_rpi = curr_rpi_range; in lpfc_sli4_create_rpi_hdr()
6020 list_add_tail(&rpi_hdr->list, &phba->sli4_hba.lpfc_rpi_hdr_list); in lpfc_sli4_create_rpi_hdr()
6028 return rpi_hdr; in lpfc_sli4_create_rpi_hdr()
6050 struct lpfc_rpi_hdr *rpi_hdr, *next_rpi_hdr; in lpfc_sli4_remove_rpi_hdrs() local
6055 list_for_each_entry_safe(rpi_hdr, next_rpi_hdr, in lpfc_sli4_remove_rpi_hdrs()
6057 list_del(&rpi_hdr->list); in lpfc_sli4_remove_rpi_hdrs()
6058 dma_free_coherent(&phba->pcidev->dev, rpi_hdr->len, in lpfc_sli4_remove_rpi_hdrs()
6059 rpi_hdr->dmabuf->virt, rpi_hdr->dmabuf->phys); in lpfc_sli4_remove_rpi_hdrs()
6060 kfree(rpi_hdr->dmabuf); in lpfc_sli4_remove_rpi_hdrs()
6061 kfree(rpi_hdr); in lpfc_sli4_remove_rpi_hdrs()