Lines Matching refs:rpi_hdr
8863 struct lpfc_rpi_hdr *rpi_hdr;
8871 rpi_hdr = lpfc_sli4_create_rpi_hdr(phba);
8872 if (!rpi_hdr) {
8900 struct lpfc_rpi_hdr *rpi_hdr;
8940 rpi_hdr = NULL;
8945 rpi_hdr = NULL;
8950 rpi_hdr = kzalloc(sizeof(struct lpfc_rpi_hdr), GFP_KERNEL);
8951 if (!rpi_hdr)
8954 rpi_hdr->dmabuf = dmabuf;
8955 rpi_hdr->len = LPFC_HDR_TEMPLATE_SIZE;
8956 rpi_hdr->page_count = 1;
8959 /* The rpi_hdr stores the logical index only. */
8960 rpi_hdr->start_rpi = curr_rpi_range;
8961 rpi_hdr->next_rpi = phba->sli4_hba.next_rpi + LPFC_RPI_HDR_COUNT;
8962 list_add_tail(&rpi_hdr->list, &phba->sli4_hba.lpfc_rpi_hdr_list);
8965 return rpi_hdr;
8987 struct lpfc_rpi_hdr *rpi_hdr, *next_rpi_hdr;
8992 list_for_each_entry_safe(rpi_hdr, next_rpi_hdr,
8994 list_del(&rpi_hdr->list);
8995 dma_free_coherent(&phba->pcidev->dev, rpi_hdr->len,
8996 rpi_hdr->dmabuf->virt, rpi_hdr->dmabuf->phys);
8997 kfree(rpi_hdr->dmabuf);
8998 kfree(rpi_hdr);