Lines Matching refs:ws_tree_root
188 struct irdma_ws_node *ws_tree_root, *vsi_node, *tc_node; in irdma_remove_leaf() local
197 ws_tree_root = vsi->dev->ws_tree_root; in irdma_remove_leaf()
198 if (!ws_tree_root) in irdma_remove_leaf()
201 vsi_node = ws_find_node(ws_tree_root, vsi->vsi_idx, in irdma_remove_leaf()
222 if (list_empty(&ws_tree_root->child_list_head)) { in irdma_remove_leaf()
223 irdma_ws_cqp_cmd(vsi, ws_tree_root, in irdma_remove_leaf()
225 irdma_free_node(vsi, ws_tree_root); in irdma_remove_leaf()
226 vsi->dev->ws_tree_root = NULL; in irdma_remove_leaf()
238 struct irdma_ws_node *ws_tree_root; in irdma_ws_add() local
254 ws_tree_root = vsi->dev->ws_tree_root; in irdma_ws_add()
255 if (!ws_tree_root) { in irdma_ws_add()
257 ws_tree_root = irdma_alloc_node(vsi, user_pri, in irdma_ws_add()
259 if (!ws_tree_root) { in irdma_ws_add()
264 ret = irdma_ws_cqp_cmd(vsi, ws_tree_root, IRDMA_OP_WS_ADD_NODE); in irdma_ws_add()
266 irdma_free_node(vsi, ws_tree_root); in irdma_ws_add()
270 vsi->dev->ws_tree_root = ws_tree_root; in irdma_ws_add()
274 vsi_node = ws_find_node(ws_tree_root, vsi->vsi_idx, in irdma_ws_add()
283 ws_tree_root); in irdma_ws_add()
295 list_add(&vsi_node->siblings, &ws_tree_root->child_list_head); in irdma_ws_add()
368 if (list_empty(&ws_tree_root->child_list_head)) { in irdma_ws_add()
369 irdma_ws_cqp_cmd(vsi, ws_tree_root, IRDMA_OP_WS_DELETE_NODE); in irdma_ws_add()
370 vsi->dev->ws_tree_root = NULL; in irdma_ws_add()
371 irdma_free_node(vsi, ws_tree_root); in irdma_ws_add()