Lines Matching defs:wq

34 #define WQ_SIZE(wq)                     ((wq)->q_depth * (wq)->wqebb_size)  argument
44 #define WQ_BASE_VADDR(wqs, wq) \ argument
48 #define WQ_BASE_PADDR(wqs, wq) \ argument
52 #define WQ_BASE_ADDR(wqs, wq) \ argument
56 #define CMDQ_BASE_VADDR(cmdq_pages, wq) \ argument
60 #define CMDQ_BASE_PADDR(cmdq_pages, wq) \ argument
64 #define CMDQ_BASE_ADDR(cmdq_pages, wq) \ argument
68 #define WQ_PAGE_ADDR(wq, idx) \ argument
71 #define MASKED_WQE_IDX(wq, idx) ((idx) & (wq)->mask) argument
77 #define WQE_SHADOW_PAGE(wq, wqe) \ argument
81 static inline int WQE_PAGE_OFF(struct hinic_wq *wq, u16 idx) in WQE_PAGE_OFF()
87 static inline int WQE_PAGE_NUM(struct hinic_wq *wq, u16 idx) in WQE_PAGE_NUM()
378 static int alloc_wqes_shadow(struct hinic_wq *wq) in alloc_wqes_shadow()
405 static void free_wqes_shadow(struct hinic_wq *wq) in free_wqes_shadow()
420 static void free_wq_pages(struct hinic_wq *wq, struct hinic_hwif *hwif, in free_wq_pages()
447 static int alloc_wq_pages(struct hinic_wq *wq, struct hinic_hwif *hwif, in alloc_wq_pages()
506 int hinic_wq_allocate(struct hinic_wqs *wqs, struct hinic_wq *wq, in hinic_wq_allocate()
582 void hinic_wq_free(struct hinic_wqs *wqs, struct hinic_wq *wq) in hinic_wq_free()
603 struct hinic_wq *wq, struct hinic_hwif *hwif, in hinic_wqs_cmdq_alloc()
692 struct hinic_wq *wq, int cmdq_blocks) in hinic_wqs_cmdq_free()
702 static void copy_wqe_to_shadow(struct hinic_wq *wq, void *shadow_addr, in copy_wqe_to_shadow()
719 static void copy_wqe_from_shadow(struct hinic_wq *wq, void *shadow_addr, in copy_wqe_from_shadow()
743 struct hinic_hw_wqe *hinic_get_wqe(struct hinic_wq *wq, unsigned int wqe_size, in hinic_get_wqe()
792 void hinic_return_wqe(struct hinic_wq *wq, unsigned int wqe_size) in hinic_return_wqe()
806 void hinic_put_wqe(struct hinic_wq *wq, unsigned int wqe_size) in hinic_put_wqe()
824 struct hinic_hw_wqe *hinic_read_wqe(struct hinic_wq *wq, unsigned int wqe_size, in hinic_read_wqe()
862 struct hinic_hw_wqe *hinic_read_wqe_direct(struct hinic_wq *wq, u16 cons_idx) in hinic_read_wqe_direct()
874 static inline bool wqe_shadow(struct hinic_wq *wq, struct hinic_hw_wqe *wqe) in wqe_shadow()
888 void hinic_write_wqe(struct hinic_wq *wq, struct hinic_hw_wqe *wqe, in hinic_write_wqe()