Lines Matching refs:__reqq
35 #define bfa_reqq_pi(__bfa, __reqq) ((__bfa)->iocfc.req_cq_pi[__reqq]) argument
36 #define bfa_reqq_ci(__bfa, __reqq) \ argument
37 (*(u32 *)((__bfa)->iocfc.req_cq_shadow_ci[__reqq].kva))
39 #define bfa_reqq_full(__bfa, __reqq) \ argument
40 (((bfa_reqq_pi(__bfa, __reqq) + 1) & \
42 bfa_reqq_ci(__bfa, __reqq))
44 #define bfa_reqq_next(__bfa, __reqq) \ argument
45 (bfa_reqq_full(__bfa, __reqq) ? NULL : \
46 ((void *)((struct bfi_msg_s *)((__bfa)->iocfc.req_cq_ba[__reqq].kva) \
47 + bfa_reqq_pi((__bfa), (__reqq)))))
49 #define bfa_reqq_produce(__bfa, __reqq, __mh) do { \ argument
50 (__mh).mtag.h2i.qid = (__bfa)->iocfc.hw_qid[__reqq];\
51 (__bfa)->iocfc.req_cq_pi[__reqq]++; \
52 (__bfa)->iocfc.req_cq_pi[__reqq] &= \
54 writel((__bfa)->iocfc.req_cq_pi[__reqq], \
55 (__bfa)->iocfc.bfa_regs.cpe_q_pi[__reqq]); \
95 #define bfa_reqq(__bfa, __reqq) (&(__bfa)->reqq_waitq[__reqq]) argument
101 #define bfa_reqq_wait(__bfa, __reqq, __wqe) do { \ argument
103 struct list_head *waitq = bfa_reqq(__bfa, __reqq); \
105 WARN_ON(((__reqq) >= BFI_IOC_MAX_CQS)); \