Lines Matching refs:rpi_hdr
7462 struct lpfc_rpi_hdr *rpi_hdr; in lpfc_sli4_init_rpi_hdrs() local
7470 rpi_hdr = lpfc_sli4_create_rpi_hdr(phba); in lpfc_sli4_init_rpi_hdrs()
7471 if (!rpi_hdr) { in lpfc_sli4_init_rpi_hdrs()
7499 struct lpfc_rpi_hdr *rpi_hdr; in lpfc_sli4_create_rpi_hdr() local
7539 rpi_hdr = NULL; in lpfc_sli4_create_rpi_hdr()
7544 rpi_hdr = NULL; in lpfc_sli4_create_rpi_hdr()
7549 rpi_hdr = kzalloc(sizeof(struct lpfc_rpi_hdr), GFP_KERNEL); in lpfc_sli4_create_rpi_hdr()
7550 if (!rpi_hdr) in lpfc_sli4_create_rpi_hdr()
7553 rpi_hdr->dmabuf = dmabuf; in lpfc_sli4_create_rpi_hdr()
7554 rpi_hdr->len = LPFC_HDR_TEMPLATE_SIZE; in lpfc_sli4_create_rpi_hdr()
7555 rpi_hdr->page_count = 1; in lpfc_sli4_create_rpi_hdr()
7559 rpi_hdr->start_rpi = curr_rpi_range; in lpfc_sli4_create_rpi_hdr()
7560 rpi_hdr->next_rpi = phba->sli4_hba.next_rpi + LPFC_RPI_HDR_COUNT; in lpfc_sli4_create_rpi_hdr()
7561 list_add_tail(&rpi_hdr->list, &phba->sli4_hba.lpfc_rpi_hdr_list); in lpfc_sli4_create_rpi_hdr()
7564 return rpi_hdr; in lpfc_sli4_create_rpi_hdr()
7586 struct lpfc_rpi_hdr *rpi_hdr, *next_rpi_hdr; in lpfc_sli4_remove_rpi_hdrs() local
7591 list_for_each_entry_safe(rpi_hdr, next_rpi_hdr, in lpfc_sli4_remove_rpi_hdrs()
7593 list_del(&rpi_hdr->list); in lpfc_sli4_remove_rpi_hdrs()
7594 dma_free_coherent(&phba->pcidev->dev, rpi_hdr->len, in lpfc_sli4_remove_rpi_hdrs()
7595 rpi_hdr->dmabuf->virt, rpi_hdr->dmabuf->phys); in lpfc_sli4_remove_rpi_hdrs()
7596 kfree(rpi_hdr->dmabuf); in lpfc_sli4_remove_rpi_hdrs()
7597 kfree(rpi_hdr); in lpfc_sli4_remove_rpi_hdrs()