Lines Matching refs:classid

419 	node->classid = OTX2_QOS_ROOT_CLASSID;  in otx2_qos_alloc_root()
421 hash_add_rcu(pfvf->qos.qos_hlist, &node->hlist, node->classid); in otx2_qos_alloc_root()
468 txschq_node->classid = OTX2_QOS_CLASS_NONE; in otx2_qos_alloc_txschq_node()
501 u16 classid, u32 prio, u64 rate, u64 ceil, in otx2_qos_sw_create_leaf_node() argument
513 node->classid = classid; in otx2_qos_sw_create_leaf_node()
526 hash_add_rcu(pfvf->qos.qos_hlist, &node->hlist, classid); in otx2_qos_sw_create_leaf_node()
549 otx2_sw_node_find(struct otx2_nic *pfvf, u32 classid) in otx2_sw_node_find() argument
553 hash_for_each_possible(pfvf->qos.qos_hlist, node, hlist, classid) { in otx2_sw_node_find()
554 if (node->classid == classid) in otx2_sw_node_find()
562 otx2_sw_node_find_rcu(struct otx2_nic *pfvf, u32 classid) in otx2_sw_node_find_rcu() argument
566 hash_for_each_possible_rcu(pfvf->qos.qos_hlist, node, hlist, classid) { in otx2_sw_node_find_rcu()
567 if (node->classid == classid) in otx2_sw_node_find_rcu()
574 int otx2_get_txq_by_classid(struct otx2_nic *pfvf, u16 classid) in otx2_get_txq_by_classid() argument
580 node = otx2_sw_node_find_rcu(pfvf, classid); in otx2_get_txq_by_classid()
1186 node->classid, node->quantum, in is_qos_node_dwrr()
1203 static int otx2_qos_leaf_alloc_queue(struct otx2_nic *pfvf, u16 classid, in otx2_qos_leaf_alloc_queue() argument
1215 classid, parent_classid, rate, ceil, prio, quantum); in otx2_qos_leaf_alloc_queue()
1283 node = otx2_qos_sw_create_leaf_node(pfvf, parent, classid, prio, rate, in otx2_qos_leaf_alloc_queue()
1342 static int otx2_qos_leaf_to_inner(struct otx2_nic *pfvf, u16 classid, in otx2_qos_leaf_to_inner() argument
1354 classid, child_classid, rate, ceil); in otx2_qos_leaf_to_inner()
1369 node = otx2_sw_node_find(pfvf, classid); in otx2_qos_leaf_to_inner()
1481 static int otx2_qos_leaf_del(struct otx2_nic *pfvf, u16 *classid, in otx2_qos_leaf_del() argument
1489 netdev_dbg(pfvf->netdev, "TC_HTB_LEAF_DEL classid %04x\n", *classid); in otx2_qos_leaf_del()
1492 node = otx2_sw_node_find(pfvf, *classid); in otx2_qos_leaf_del()
1526 static int otx2_qos_leaf_del_last(struct otx2_nic *pfvf, u16 classid, bool force, in otx2_qos_leaf_del_last() argument
1537 "TC_HTB_LEAF_DEL_LAST classid %04x\n", classid); in otx2_qos_leaf_del_last()
1540 node = otx2_sw_node_find(pfvf, classid); in otx2_qos_leaf_del_last()
1550 parent = otx2_sw_node_find(pfvf, node->parent->classid); in otx2_qos_leaf_del_last()
1660 htb->classid, htb->extack); in otx2_setup_tc_htb()
1664 res = otx2_qos_leaf_alloc_queue(pfvf, htb->classid, in otx2_setup_tc_htb()
1675 htb->classid, htb->rate, in otx2_setup_tc_htb()
1679 return otx2_qos_leaf_del(pfvf, &htb->classid, htb->extack); in otx2_setup_tc_htb()
1682 return otx2_qos_leaf_del_last(pfvf, htb->classid, in otx2_setup_tc_htb()
1686 res = otx2_get_txq_by_classid(pfvf, htb->classid); in otx2_setup_tc_htb()