Lines Matching refs:hwif
103 static int queue_alloc_page(struct hinic_hwif *hwif, u64 **vaddr, u64 *paddr, in queue_alloc_page() argument
106 struct pci_dev *pdev = hwif->pdev; in queue_alloc_page()
139 return queue_alloc_page(wqs->hwif, &wqs->page_vaddr[page_idx], in wqs_allocate_page()
152 struct hinic_hwif *hwif = wqs->hwif; in wqs_free_page() local
153 struct pci_dev *pdev = hwif->pdev; in wqs_free_page()
169 return queue_alloc_page(cmdq_pages->hwif, &cmdq_pages->page_vaddr, in cmdq_allocate_page()
181 struct hinic_hwif *hwif = cmdq_pages->hwif; in cmdq_free_page() local
182 struct pci_dev *pdev = hwif->pdev; in cmdq_free_page()
192 struct hinic_hwif *hwif = wqs->hwif; in alloc_page_arrays() local
193 struct pci_dev *pdev = hwif->pdev; in alloc_page_arrays()
223 struct hinic_hwif *hwif = wqs->hwif; in free_page_arrays() local
224 struct pci_dev *pdev = hwif->pdev; in free_page_arrays()
305 struct hinic_hwif *hwif) in hinic_wqs_alloc() argument
307 struct pci_dev *pdev = hwif->pdev; in hinic_wqs_alloc()
316 wqs->hwif = hwif; in hinic_wqs_alloc()
358 struct hinic_hwif *hwif = wqs->hwif; in hinic_wqs_free() local
359 struct pci_dev *pdev = hwif->pdev; in hinic_wqs_free()
378 struct hinic_hwif *hwif = wq->hwif; in alloc_wqes_shadow() local
379 struct pci_dev *pdev = hwif->pdev; in alloc_wqes_shadow()
404 struct hinic_hwif *hwif = wq->hwif; in free_wqes_shadow() local
405 struct pci_dev *pdev = hwif->pdev; in free_wqes_shadow()
417 static void free_wq_pages(struct hinic_wq *wq, struct hinic_hwif *hwif, in free_wq_pages() argument
420 struct pci_dev *pdev = hwif->pdev; in free_wq_pages()
444 static int alloc_wq_pages(struct hinic_wq *wq, struct hinic_hwif *hwif, in alloc_wq_pages() argument
447 struct pci_dev *pdev = hwif->pdev; in alloc_wq_pages()
488 free_wq_pages(wq, hwif, i); in alloc_wq_pages()
507 struct hinic_hwif *hwif = wqs->hwif; in hinic_wq_allocate() local
508 struct pci_dev *pdev = hwif->pdev; in hinic_wq_allocate()
537 wq->hwif = hwif; in hinic_wq_allocate()
556 err = alloc_wq_pages(wq, wqs->hwif, WQ_MAX_PAGES); in hinic_wq_allocate()
581 free_wq_pages(wq, wqs->hwif, wq->num_q_pages); in hinic_wq_free()
600 struct hinic_wq *wq, struct hinic_hwif *hwif, in hinic_wqs_cmdq_alloc() argument
604 struct pci_dev *pdev = hwif->pdev; in hinic_wqs_cmdq_alloc()
634 cmdq_pages->hwif = hwif; in hinic_wqs_cmdq_alloc()
644 wq[i].hwif = hwif; in hinic_wqs_cmdq_alloc()
659 err = alloc_wq_pages(&wq[i], cmdq_pages->hwif, in hinic_wqs_cmdq_alloc()
676 free_wq_pages(&wq[j], cmdq_pages->hwif, wq[j].num_q_pages); in hinic_wqs_cmdq_alloc()
694 free_wq_pages(&wq[i], cmdq_pages->hwif, wq[i].num_q_pages); in hinic_wqs_cmdq_free()