Lines Matching refs:rpi_hdr
8862 struct lpfc_rpi_hdr *rpi_hdr; in lpfc_sli4_init_rpi_hdrs() local
8870 rpi_hdr = lpfc_sli4_create_rpi_hdr(phba); in lpfc_sli4_init_rpi_hdrs()
8871 if (!rpi_hdr) { in lpfc_sli4_init_rpi_hdrs()
8899 struct lpfc_rpi_hdr *rpi_hdr; in lpfc_sli4_create_rpi_hdr() local
8939 rpi_hdr = NULL; in lpfc_sli4_create_rpi_hdr()
8944 rpi_hdr = NULL; in lpfc_sli4_create_rpi_hdr()
8949 rpi_hdr = kzalloc(sizeof(struct lpfc_rpi_hdr), GFP_KERNEL); in lpfc_sli4_create_rpi_hdr()
8950 if (!rpi_hdr) in lpfc_sli4_create_rpi_hdr()
8953 rpi_hdr->dmabuf = dmabuf; in lpfc_sli4_create_rpi_hdr()
8954 rpi_hdr->len = LPFC_HDR_TEMPLATE_SIZE; in lpfc_sli4_create_rpi_hdr()
8955 rpi_hdr->page_count = 1; in lpfc_sli4_create_rpi_hdr()
8959 rpi_hdr->start_rpi = curr_rpi_range; in lpfc_sli4_create_rpi_hdr()
8960 rpi_hdr->next_rpi = phba->sli4_hba.next_rpi + LPFC_RPI_HDR_COUNT; in lpfc_sli4_create_rpi_hdr()
8961 list_add_tail(&rpi_hdr->list, &phba->sli4_hba.lpfc_rpi_hdr_list); in lpfc_sli4_create_rpi_hdr()
8964 return rpi_hdr; in lpfc_sli4_create_rpi_hdr()
8986 struct lpfc_rpi_hdr *rpi_hdr, *next_rpi_hdr; in lpfc_sli4_remove_rpi_hdrs() local
8991 list_for_each_entry_safe(rpi_hdr, next_rpi_hdr, in lpfc_sli4_remove_rpi_hdrs()
8993 list_del(&rpi_hdr->list); in lpfc_sli4_remove_rpi_hdrs()
8994 dma_free_coherent(&phba->pcidev->dev, rpi_hdr->len, in lpfc_sli4_remove_rpi_hdrs()
8995 rpi_hdr->dmabuf->virt, rpi_hdr->dmabuf->phys); in lpfc_sli4_remove_rpi_hdrs()
8996 kfree(rpi_hdr->dmabuf); in lpfc_sli4_remove_rpi_hdrs()
8997 kfree(rpi_hdr); in lpfc_sli4_remove_rpi_hdrs()