Whamcloud - gitweb
LU-6142 lnet: use BIT() macro where appropriate
[fs/lustre-release.git] / lnet / klnds / gnilnd / gni_pub.h
index e90d4f2..84b977b 100644 (file)
@@ -691,14 +691,14 @@ typedef enum {
 
 /* Error Event Categories */
 /* WARNING: DO NOT CHANGE THESE UNLESS YOU CHANGE ghal_err_cat.h */
-#define GNI_ERRMASK_CORRECTABLE_MEMORY   (1 << 0)
-#define GNI_ERRMASK_CRITICAL             (1 << 1)
-#define GNI_ERRMASK_TRANSACTION          (1 << 2)
-#define GNI_ERRMASK_ADDRESS_TRANSLATION  (1 << 3)
-#define GNI_ERRMASK_TRANSIENT            (1 << 4)
-#define GNI_ERRMASK_INFORMATIONAL        (1 << 5)
-#define GNI_ERRMASK_DIAG_ONLY            (1 << 6)
-#define GNI_ERRMASK_UNKNOWN_TRANSACTION  (1 << 7)
+#define GNI_ERRMASK_CORRECTABLE_MEMORY   BIT(0)
+#define GNI_ERRMASK_CRITICAL             BIT(1)
+#define GNI_ERRMASK_TRANSACTION          BIT(2)
+#define GNI_ERRMASK_ADDRESS_TRANSLATION  BIT(3)
+#define GNI_ERRMASK_TRANSIENT            BIT(4)
+#define GNI_ERRMASK_INFORMATIONAL        BIT(5)
+#define GNI_ERRMASK_DIAG_ONLY            BIT(6)
+#define GNI_ERRMASK_UNKNOWN_TRANSACTION  BIT(7)
 
 /* RDMA mode */
 /* local_addr is a physical address (kernel only) */
@@ -712,19 +712,19 @@ typedef enum {
 /* Post CE modes, used during GNI_PostFma(...) */
 /* Use two operands (only meaningful for single operand collective operations).
  * Single operand CE operations are all variations of AND, OR, XOR and ADD.  */
-#define GNI_CEMODE_TWO_OP               (1 << 0)
+#define GNI_CEMODE_TWO_OP               BIT(0)
 /* The provided operands are an intermediate result that has experienced an
  * invalid operation floating point exception. */
-#define GNI_CEMODE_FPE_OP_INVAL         (1 << 1)
+#define GNI_CEMODE_FPE_OP_INVAL         BIT(1)
 /* The provided operands are an intermediate result that has experienced an
  * overflow floating point exception */
-#define GNI_CEMODE_FPE_OFLOW            (1 << 2)
+#define GNI_CEMODE_FPE_OFLOW            BIT(2)
 /* The provided operands are an intermediate result that has experienced an
  * underflow floating point exception. */
-#define GNI_CEMODE_FPE_UFLOW            (1 << 3)
+#define GNI_CEMODE_FPE_UFLOW            BIT(3)
 /* The provided operands are an intermediate result that has experienced an
  * inexact result floating point exception. */
-#define GNI_CEMODE_FPE_PRECISION        (1 << 4)
+#define GNI_CEMODE_FPE_PRECISION        BIT(4)
 
 /* Maximum length in bytes of a datagram transaction */
 #define GNI_DATAGRAM_MAXSIZE    128
@@ -1062,7 +1062,7 @@ gni_return_t
  * cdm_hndl   Communication Domain Handle
  *
  * Returns:
- * GNI_RC_SUCCESS - The operation completioned succesffully
+ * GNI_RC_SUCCESS - The operation completed successfully
  * GNI_RC_INVALID_PARAM - Caller specified an invalid Communication Domain Handle
  *
  * Description:
@@ -1152,7 +1152,7 @@ gni_return_t
  * cdm_handle   Communication Domain Handle
  *
  * Returns:
- * GNI_RC_SUCCESS - The operation completioned succesffully
+ * GNI_RC_SUCCESS - The operation completed successfully
  * GNI_RC_INVALID_PARAM - Caller specified an invalid Communication Domain Handle
  *
  * Description:
@@ -1174,7 +1174,7 @@ gni_return_t
  * cdm_handle   Communication Domain Handle
  *
  * Returns:
- * GNI_RC_SUCCESS - The operation completioned succesffully
+ * GNI_RC_SUCCESS - The operation completed successfully
  * GNI_RC_INVALID_PARAM - Caller specified an invalid Communication Domain Handle
  *
  * Description:
@@ -2763,8 +2763,8 @@ gni_return_t
 
 /**
  * GNI_SmsgBufferSizeNeeded - Return amount of memory required for short message
- *                            resources given parameters in a inut short message
- *                            attributes structure
+ *                            resources given parameters in an input short
+ *                            message attributes structure
  * IN
  * smsg_attr            pointer to short message attributes structure
  *
@@ -3138,7 +3138,7 @@ gni_return_t
  * Description:
  *
  * The remote PE address provided is assigned to an SMSG control structure and
- * mailbox for use in a inter-node connection.  An attribute structure
+ * mailbox for use in an inter-node connection.  An attribute structure
  * describing the assigned resources is then returned.  The attributes must be
  * traded with the remote end-point to establish the connection.
  **/
@@ -3326,8 +3326,8 @@ gni_return_t
  * Description:
  * This functions sets the maximum retransmit counts for SMSG transactions.
  * EPs associated with the NIC handle provided will give up retransmitting SMSG
- * transactions and return GNI_RC_TRANSACION_ERROR when the retransmit count has
- * been reached.
+ * transactions and return GNI_RC_TRANSACTION_ERROR when the retransmit count
+ * has been reached.
  **/
 gni_return_t
        GNI_SmsgSetMaxRetrans(
@@ -5136,9 +5136,9 @@ gni_return_t
                );
 
 /**
- * gni_smsg_buff_size_needed - Return amount of memory required for short message
- *                            resources given parameters in a inut short message
- *                            attributes structure
+ * gni_smsg_buff_size_needed - Return amount of memory required for short
+ *                             message resources given parameters in an input
+ *                             short message attributes structure
  * IN
  * local_smsg_attr      parameters for short messaging
  *
@@ -5315,8 +5315,8 @@ gni_return_t
  * Description:
  * This functions sets the maximum retransmit counts for SMSG transactions.
  * EPs associated with the NIC handle provided will give up retransmitting SMSG
- * transactions and return GNI_RC_TRANSACION_ERROR when the retransmit count has
- * been reached.
+ * transactions and return GNI_RC_TRANSACTION_ERROR when the retransmit count
+ * has been reached.
  **/
 gni_return_t
        gni_smsg_set_max_retrans(