Home
last modified time | relevance | path

Searched refs:knode (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/abm/
Dcls.c21 nfp_abm_u32_check_knode(struct nfp_abm *abm, struct tc_cls_u32_knode *knode, in nfp_abm_u32_check_knode() argument
27 if (knode->exts && tcf_exts_has_actions(knode->exts)) { in nfp_abm_u32_check_knode()
31 if (knode->link_handle) { in nfp_abm_u32_check_knode()
35 if (knode->sel->flags != TC_U32_TERMINAL) { in nfp_abm_u32_check_knode()
40 if (knode->sel->off || knode->sel->offshift || knode->sel->offmask || in nfp_abm_u32_check_knode()
41 knode->sel->offoff || knode->fshift) { in nfp_abm_u32_check_knode()
45 if (knode->sel->hoff || knode->sel->hmask) { in nfp_abm_u32_check_knode()
49 if (knode->val || knode->mask) { in nfp_abm_u32_check_knode()
53 if (knode->res && knode->res->class) { in nfp_abm_u32_check_knode()
57 if (knode->res && knode->res->classid >= abm->num_bands) { in nfp_abm_u32_check_knode()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_u32.c55 for (i = 0; i < cls->knode.sel->nkeys; i++) { in fill_match_fields()
56 off = cls->knode.sel->keys[i].off; in fill_match_fields()
57 val = cls->knode.sel->keys[i].val; in fill_match_fields()
58 mask = cls->knode.sel->keys[i].mask; in fill_match_fields()
62 if (!cls->knode.sel->keys[i].offmask) in fill_match_fields()
66 if (cls->knode.sel->keys[i].offmask) in fill_match_fields()
99 exts = cls->knode.exts; in fill_action_fields()
177 TC_U32_NODE(cls->knode.handle)); in cxgb4_config_knode()
185 uhtid = TC_U32_USERHTID(cls->knode.handle); in cxgb4_config_knode()
186 link_uhtid = TC_U32_USERHTID(cls->knode.link_handle); in cxgb4_config_knode()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dbootconfig.h186 #define xbc_node_for_each_key_value(node, knode, value) \ argument
187 for (knode = NULL, value = xbc_node_find_next_key_value(node, &knode);\
188 knode != NULL; value = xbc_node_find_next_key_value(node, &knode))
198 #define xbc_for_each_key_value(knode, value) \ argument
199 xbc_node_for_each_key_value(NULL, knode, value)
/kernel/linux/linux-5.10/lib/
Dklist.c47 static struct klist *knode_klist(struct klist_node *knode) in knode_klist() argument
50 ((unsigned long)knode->n_klist & KNODE_KLIST_MASK); in knode_klist()
53 static bool knode_dead(struct klist_node *knode) in knode_dead() argument
55 return (unsigned long)knode->n_klist & KNODE_DEAD; in knode_dead()
58 static void knode_set_klist(struct klist_node *knode, struct klist *klist) in knode_set_klist() argument
60 knode->n_klist = klist; in knode_set_klist()
62 WARN_ON(knode_dead(knode)); in knode_set_klist()
65 static void knode_kill(struct klist_node *knode) in knode_kill() argument
68 WARN_ON(knode_dead(knode)); in knode_kill()
69 *(unsigned long *)&knode->n_klist |= KNODE_DEAD; in knode_kill()
/kernel/linux/linux-5.10/net/sched/
Dcls_u32.c107 struct tc_u_knode *knode; in u32_classify() member
196 stack[sdepth].knode = n; in u32_classify()
241 n = stack[sdepth].knode; in u32_classify()
527 cls_u32.knode.handle = n->handle; in u32_remove_hw_knode()
544 cls_u32.knode.handle = n->handle; in u32_replace_hw_knode()
545 cls_u32.knode.fshift = n->fshift; in u32_replace_hw_knode()
547 cls_u32.knode.val = n->val; in u32_replace_hw_knode()
548 cls_u32.knode.mask = n->mask; in u32_replace_hw_knode()
550 cls_u32.knode.val = 0; in u32_replace_hw_knode()
551 cls_u32.knode.mask = 0; in u32_replace_hw_knode()
[all …]
/kernel/linux/linux-5.10/drivers/base/
Dclass.c312 struct klist_node *knode; in class_dev_iter_next() local
316 knode = klist_next(&iter->ki); in class_dev_iter_next()
317 if (!knode) in class_dev_iter_next()
319 dev = klist_class_to_dev(knode); in class_dev_iter_next()
Dbus.c1015 struct klist_node *knode; in subsys_dev_iter_next() local
1019 knode = klist_next(&iter->ki); in subsys_dev_iter_next()
1020 if (!knode) in subsys_dev_iter_next()
1022 dev = to_device_private_bus(knode)->device; in subsys_dev_iter_next()
/kernel/linux/linux-5.10/init/
Dmain.c329 struct xbc_node *knode, *vnode; in xbc_snprint_cmdline() local
334 xbc_node_for_each_key_value(root, knode, val) { in xbc_snprint_cmdline()
335 ret = xbc_node_compose_key_after(root, knode, in xbc_snprint_cmdline()
340 vnode = xbc_node_get_child(knode); in xbc_snprint_cmdline()
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_tc.c33 u32 loc = cls->knode.handle; in tc_find_entry()
66 exts = cls->knode.exts; in tc_fill_actions()
95 struct tc_u32_sel *sel = cls->knode.sel; in tc_fill_entry()
Dstmmac_selftests.c1123 cls_u32.knode.exts = exts; in stmmac_test_rxp()
1124 cls_u32.knode.sel = sel; in stmmac_test_rxp()
1125 cls_u32.knode.handle = 0x123; in stmmac_test_rxp()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c9203 u32 hdl = cls->knode.handle; in ixgbe_delete_clsu32()
9204 u32 uhtid = TC_U32_USERHTID(cls->knode.handle); in ixgbe_delete_clsu32()
9205 u32 loc = cls->knode.handle & 0xfffff; in ixgbe_delete_clsu32()
9404 for (i = 0; i < cls->knode.sel->nkeys; i++) { in ixgbe_clsu32_build_input()
9405 off = cls->knode.sel->keys[i].off; in ixgbe_clsu32_build_input()
9406 val = cls->knode.sel->keys[i].val; in ixgbe_clsu32_build_input()
9407 m = cls->knode.sel->keys[i].mask; in ixgbe_clsu32_build_input()
9420 if (nexthdr->off == cls->knode.sel->keys[i].off && in ixgbe_clsu32_build_input()
9422 (__force u32)cls->knode.sel->keys[i].val && in ixgbe_clsu32_build_input()
9424 (__force u32)cls->knode.sel->keys[i].mask) in ixgbe_clsu32_build_input()
[all …]
/kernel/linux/linux-5.10/include/net/
Dpkt_cls.h636 struct tc_cls_u32_knode knode; member