Lines Matching refs:new_cfg
1028 struct otx2_qos_cfg *new_cfg; in otx2_qos_root_add() local
1043 new_cfg = kzalloc(sizeof(*new_cfg), GFP_KERNEL); in otx2_qos_root_add()
1044 if (!new_cfg) { in otx2_qos_root_add()
1050 new_cfg->schq[root->level] = 1; in otx2_qos_root_add()
1051 err = otx2_qos_txschq_alloc(pfvf, new_cfg); in otx2_qos_root_add()
1066 root->schq = new_cfg->schq_list[root->level][0]; in otx2_qos_root_add()
1071 err = otx2_qos_txschq_update_root_cfg(pfvf, root, new_cfg); in otx2_qos_root_add()
1082 kfree(new_cfg); in otx2_qos_root_add()
1086 otx2_qos_free_cfg(pfvf, new_cfg); in otx2_qos_root_add()
1088 kfree(new_cfg); in otx2_qos_root_add()
1222 struct otx2_qos_cfg *old_cfg, *new_cfg; in otx2_qos_leaf_alloc_queue() local
1306 new_cfg = kzalloc(sizeof(*new_cfg), GFP_KERNEL); in otx2_qos_leaf_alloc_queue()
1307 if (!new_cfg) { in otx2_qos_leaf_alloc_queue()
1312 ret = otx2_qos_update_tree(pfvf, node, new_cfg); in otx2_qos_leaf_alloc_queue()
1315 kfree(new_cfg); in otx2_qos_leaf_alloc_queue()
1333 kfree(new_cfg); in otx2_qos_leaf_alloc_queue()
1360 struct otx2_qos_cfg *old_cfg, *new_cfg; in otx2_qos_leaf_to_inner() local
1443 new_cfg = kzalloc(sizeof(*new_cfg), GFP_KERNEL); in otx2_qos_leaf_to_inner()
1444 if (!new_cfg) { in otx2_qos_leaf_to_inner()
1449 ret = otx2_qos_update_tree(pfvf, child, new_cfg); in otx2_qos_leaf_to_inner()
1452 kfree(new_cfg); in otx2_qos_leaf_to_inner()
1473 kfree(new_cfg); in otx2_qos_leaf_to_inner()
1607 struct otx2_qos_cfg *new_cfg; in otx2_qos_leaf_del_last() local
1665 new_cfg = kzalloc(sizeof(*new_cfg), GFP_KERNEL); in otx2_qos_leaf_del_last()
1666 if (!new_cfg) { in otx2_qos_leaf_del_last()
1671 otx2_qos_fill_cfg_schq(parent, new_cfg); in otx2_qos_leaf_del_last()
1672 err = otx2_qos_push_txschq_cfg(pfvf, parent, new_cfg); in otx2_qos_leaf_del_last()
1675 kfree(new_cfg); in otx2_qos_leaf_del_last()
1678 kfree(new_cfg); in otx2_qos_leaf_del_last()