diff options
author | Naresh Gottumukkala <bgottumukkala@emulex.com> | 2013-06-10 00:42:41 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-06-20 07:52:14 -0400 |
commit | df176ea0743fd0fb0514c862797f6bd8c08ab42e (patch) | |
tree | 5fdd2bb247511dfeb15c36e9f36979b64cb3e6a5 /drivers/infiniband/hw/ocrdma/ocrdma_sli.h | |
parent | f6ddcf71070d01a7bb34818dd3aaf4bdac5386fa (diff) |
RDMA/ocrdma: Change macros to inline funtions
Signed-off-by: Naresh Gottumukkala <bgottumukkala@emulex.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/ocrdma/ocrdma_sli.h')
-rw-r--r-- | drivers/infiniband/hw/ocrdma/ocrdma_sli.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_sli.h b/drivers/infiniband/hw/ocrdma/ocrdma_sli.h index cd0512f1fb5b..36b062da2aea 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_sli.h +++ b/drivers/infiniband/hw/ocrdma/ocrdma_sli.h | |||
@@ -1534,21 +1534,6 @@ struct ocrdma_cqe { | |||
1534 | u32 flags_status_srcqpn; /* w3 */ | 1534 | u32 flags_status_srcqpn; /* w3 */ |
1535 | } __packed; | 1535 | } __packed; |
1536 | 1536 | ||
1537 | #define is_cqe_valid(cq, cqe) \ | ||
1538 | (((le32_to_cpu(cqe->flags_status_srcqpn) & OCRDMA_CQE_VALID)\ | ||
1539 | == cq->phase) ? 1 : 0) | ||
1540 | #define is_cqe_for_sq(cqe) \ | ||
1541 | ((le32_to_cpu(cqe->flags_status_srcqpn) & OCRDMA_CQE_QTYPE) ? 0 : 1) | ||
1542 | #define is_cqe_for_rq(cqe) \ | ||
1543 | ((le32_to_cpu(cqe->flags_status_srcqpn) & OCRDMA_CQE_QTYPE) ? 1 : 0) | ||
1544 | #define is_cqe_invalidated(cqe) \ | ||
1545 | ((le32_to_cpu(cqe->flags_status_srcqpn) & OCRDMA_CQE_INVALIDATE) ? \ | ||
1546 | 1 : 0) | ||
1547 | #define is_cqe_imm(cqe) \ | ||
1548 | ((le32_to_cpu(cqe->flags_status_srcqpn) & OCRDMA_CQE_IMM) ? 1 : 0) | ||
1549 | #define is_cqe_wr_imm(cqe) \ | ||
1550 | ((le32_to_cpu(cqe->flags_status_srcqpn) & OCRDMA_CQE_WRITE_IMM) ? 1 : 0) | ||
1551 | |||
1552 | struct ocrdma_sge { | 1537 | struct ocrdma_sge { |
1553 | u32 addr_hi; | 1538 | u32 addr_hi; |
1554 | u32 addr_lo; | 1539 | u32 addr_lo; |