[WSD] Rename some structures to make the code more readable.
[mirror/winof/.git] / ulp / wsd / user / ibsp_mem.c
index 375bbe9..30782b1 100644 (file)
@@ -78,8 +78,8 @@ lookup_partial_mr(
                p_item = cl_qlist_next( p_item ) )\r
        {\r
                p_node = PARENT_STRUCT( p_item, struct memory_node, socket_item );\r
-               if(p_node->p_reg &&\r
-                       __check_mr( p_node->p_reg, acl_mask, start, len ) )\r
+               if(p_node->p_reg1 &&\r
+                       __check_mr( p_node->p_reg1, acl_mask, start, len ) )\r
                {\r
                        cl_spinlock_release( &s->port->hca->rdma_mem_list.mutex );\r
                        IBSP_EXIT( IBSP_DBG_MEM );\r
@@ -140,7 +140,7 @@ ibsp_reg_mem(
 \r
                if( __check_mr( p_reg, access_ctrl, start, len ) )\r
                {\r
-                       p_node->p_reg = p_reg;\r
+                       p_node->p_reg1 = p_reg;\r
                        p_node->s = s;\r
                        cl_qlist_insert_tail( &p_reg->node_list, &p_node->mr_item );\r
                        cl_qlist_insert_head(\r
@@ -189,7 +189,7 @@ ibsp_reg_mem(
 \r
        STAT_INC( mr_num );\r
 \r
-       p_node->p_reg = p_reg;\r
+       p_node->p_reg1 = p_reg;\r
        p_node->s = s;\r
 \r
        /* Link to the list of nodes. */\r
@@ -211,8 +211,8 @@ static inline int __ibsp_dereg_mem_mr(
        IBSP_ENTER( IBSP_DBG_MEM );\r
 \r
        // Underlying registration could be freed before the node.\r
-       if( node->p_reg )\r
-               cl_qlist_remove_item( &node->p_reg->node_list, &node->mr_item );\r
+       if( node->p_reg1 )\r
+               cl_qlist_remove_item( &node->p_reg1->node_list, &node->mr_item );\r
 \r
        cl_qlist_remove_item( &node->s->mr_list, &node->socket_item );\r
 \r
@@ -278,7 +278,7 @@ ibsp_dereg_hca(
                {\r
                        struct memory_node *p_node =\r
                                PARENT_STRUCT( item1, struct memory_node, mr_item );\r
-                       p_node->p_reg = NULL;\r
+                       p_node->p_reg1 = NULL;\r
                }\r
 \r
                IBSP_PRINT(TRACE_LEVEL_INFORMATION, IBSP_DBG_MEM, ("unpinning ,memory reg %p\n", p_reg) );\r
@@ -379,7 +379,7 @@ ibsp_hca_flush_mr_cache(
                        struct memory_node *p_node =\r
                                PARENT_STRUCT( p_item1, struct memory_node, mr_item );\r
 \r
-                       p_node->p_reg = NULL;\r
+                       p_node->p_reg1 = NULL;\r
                }\r
 \r
                cl_qlist_remove_item( &p_hca->rdma_mem_list.list, &p_reg->item );\r