Lines Matching refs:rpi_hdr

7481 	struct lpfc_rpi_hdr *rpi_hdr;  in lpfc_sli4_init_rpi_hdrs()  local
7489 rpi_hdr = lpfc_sli4_create_rpi_hdr(phba); in lpfc_sli4_init_rpi_hdrs()
7490 if (!rpi_hdr) { in lpfc_sli4_init_rpi_hdrs()
7518 struct lpfc_rpi_hdr *rpi_hdr; in lpfc_sli4_create_rpi_hdr() local
7558 rpi_hdr = NULL; in lpfc_sli4_create_rpi_hdr()
7563 rpi_hdr = NULL; in lpfc_sli4_create_rpi_hdr()
7568 rpi_hdr = kzalloc(sizeof(struct lpfc_rpi_hdr), GFP_KERNEL); in lpfc_sli4_create_rpi_hdr()
7569 if (!rpi_hdr) in lpfc_sli4_create_rpi_hdr()
7572 rpi_hdr->dmabuf = dmabuf; in lpfc_sli4_create_rpi_hdr()
7573 rpi_hdr->len = LPFC_HDR_TEMPLATE_SIZE; in lpfc_sli4_create_rpi_hdr()
7574 rpi_hdr->page_count = 1; in lpfc_sli4_create_rpi_hdr()
7578 rpi_hdr->start_rpi = curr_rpi_range; in lpfc_sli4_create_rpi_hdr()
7579 rpi_hdr->next_rpi = phba->sli4_hba.next_rpi + LPFC_RPI_HDR_COUNT; in lpfc_sli4_create_rpi_hdr()
7580 list_add_tail(&rpi_hdr->list, &phba->sli4_hba.lpfc_rpi_hdr_list); in lpfc_sli4_create_rpi_hdr()
7583 return rpi_hdr; in lpfc_sli4_create_rpi_hdr()
7605 struct lpfc_rpi_hdr *rpi_hdr, *next_rpi_hdr; in lpfc_sli4_remove_rpi_hdrs() local
7610 list_for_each_entry_safe(rpi_hdr, next_rpi_hdr, in lpfc_sli4_remove_rpi_hdrs()
7612 list_del(&rpi_hdr->list); in lpfc_sli4_remove_rpi_hdrs()
7613 dma_free_coherent(&phba->pcidev->dev, rpi_hdr->len, in lpfc_sli4_remove_rpi_hdrs()
7614 rpi_hdr->dmabuf->virt, rpi_hdr->dmabuf->phys); in lpfc_sli4_remove_rpi_hdrs()
7615 kfree(rpi_hdr->dmabuf); in lpfc_sli4_remove_rpi_hdrs()
7616 kfree(rpi_hdr); in lpfc_sli4_remove_rpi_hdrs()