Lines Matching refs:__reqq
36 #define bfa_reqq_pi(__bfa, __reqq) ((__bfa)->iocfc.req_cq_pi[__reqq]) argument
37 #define bfa_reqq_ci(__bfa, __reqq) \ argument
38 (*(u32 *)((__bfa)->iocfc.req_cq_shadow_ci[__reqq].kva))
40 #define bfa_reqq_full(__bfa, __reqq) \ argument
41 (((bfa_reqq_pi(__bfa, __reqq) + 1) & \
43 bfa_reqq_ci(__bfa, __reqq))
45 #define bfa_reqq_next(__bfa, __reqq) \ argument
46 (bfa_reqq_full(__bfa, __reqq) ? NULL : \
47 ((void *)((struct bfi_msg_s *)((__bfa)->iocfc.req_cq_ba[__reqq].kva) \
48 + bfa_reqq_pi((__bfa), (__reqq)))))
50 #define bfa_reqq_produce(__bfa, __reqq, __mh) do { \ argument
51 (__mh).mtag.h2i.qid = (__bfa)->iocfc.hw_qid[__reqq];\
52 (__bfa)->iocfc.req_cq_pi[__reqq]++; \
53 (__bfa)->iocfc.req_cq_pi[__reqq] &= \
55 writel((__bfa)->iocfc.req_cq_pi[__reqq], \
56 (__bfa)->iocfc.bfa_regs.cpe_q_pi[__reqq]); \
96 #define bfa_reqq(__bfa, __reqq) (&(__bfa)->reqq_waitq[__reqq]) argument
102 #define bfa_reqq_wait(__bfa, __reqq, __wqe) do { \ argument
104 struct list_head *waitq = bfa_reqq(__bfa, __reqq); \
106 WARN_ON(((__reqq) >= BFI_IOC_MAX_CQS)); \