Lines Matching defs:rpi_hdr
8853 struct lpfc_rpi_hdr *rpi_hdr;
8861 rpi_hdr = lpfc_sli4_create_rpi_hdr(phba);
8862 if (!rpi_hdr) {
8890 struct lpfc_rpi_hdr *rpi_hdr;
8930 rpi_hdr = NULL;
8935 rpi_hdr = NULL;
8940 rpi_hdr = kzalloc(sizeof(struct lpfc_rpi_hdr), GFP_KERNEL);
8941 if (!rpi_hdr)
8944 rpi_hdr->dmabuf = dmabuf;
8945 rpi_hdr->len = LPFC_HDR_TEMPLATE_SIZE;
8946 rpi_hdr->page_count = 1;
8949 /* The rpi_hdr stores the logical index only. */
8950 rpi_hdr->start_rpi = curr_rpi_range;
8951 rpi_hdr->next_rpi = phba->sli4_hba.next_rpi + LPFC_RPI_HDR_COUNT;
8952 list_add_tail(&rpi_hdr->list, &phba->sli4_hba.lpfc_rpi_hdr_list);
8955 return rpi_hdr;
8977 struct lpfc_rpi_hdr *rpi_hdr, *next_rpi_hdr;
8982 list_for_each_entry_safe(rpi_hdr, next_rpi_hdr,
8984 list_del(&rpi_hdr->list);
8985 dma_free_coherent(&phba->pcidev->dev, rpi_hdr->len,
8986 rpi_hdr->dmabuf->virt, rpi_hdr->dmabuf->phys);
8987 kfree(rpi_hdr->dmabuf);
8988 kfree(rpi_hdr);