Home
last modified time | relevance | path

Searched refs:cls (Results 1 – 25 of 67) sorted by relevance

123

/linux-5.19.10/drivers/base/
Dclass.c88 int class_create_file_ns(struct class *cls, const struct class_attribute *attr, in class_create_file_ns() argument
93 if (cls) in class_create_file_ns()
94 error = sysfs_create_file_ns(&cls->p->subsys.kobj, in class_create_file_ns()
101 void class_remove_file_ns(struct class *cls, const struct class_attribute *attr, in class_remove_file_ns() argument
104 if (cls) in class_remove_file_ns()
105 sysfs_remove_file_ns(&cls->p->subsys.kobj, &attr->attr, ns); in class_remove_file_ns()
108 static struct class *class_get(struct class *cls) in class_get() argument
110 if (cls) in class_get()
111 kset_get(&cls->p->subsys); in class_get()
112 return cls; in class_get()
[all …]
/linux-5.19.10/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_tc.c29 struct tc_cls_u32_offload *cls, in tc_find_entry() argument
33 u32 loc = cls->knode.handle; in tc_find_entry()
59 struct tc_cls_u32_offload *cls) in tc_fill_actions() argument
66 exts = cls->knode.exts; in tc_fill_actions()
92 struct tc_cls_u32_offload *cls) in tc_fill_entry() argument
95 struct tc_u32_sel *sel = cls->knode.sel; in tc_fill_entry()
97 u32 prio = cls->common.prio << 16; in tc_fill_entry()
108 switch (ntohs(cls->common.protocol)) { in tc_fill_entry()
124 entry = tc_find_entry(priv, cls, true); in tc_fill_entry()
129 frag = tc_find_entry(priv, cls, true); in tc_fill_entry()
[all …]
Dstmmac_selftests.c1337 struct flow_cls_offload *cls; in __stmmac_test_l3filt() local
1361 cls = kzalloc(sizeof(*cls), GFP_KERNEL); in __stmmac_test_l3filt()
1362 if (!cls) { in __stmmac_test_l3filt()
1367 cls->common.chain_index = 0; in __stmmac_test_l3filt()
1368 cls->command = FLOW_CLS_REPLACE; in __stmmac_test_l3filt()
1369 cls->cookie = dummy_cookie; in __stmmac_test_l3filt()
1386 cls->rule = rule; in __stmmac_test_l3filt()
1401 ret = stmmac_tc_setup_cls(priv, priv, cls); in __stmmac_test_l3filt()
1409 cls->command = FLOW_CLS_DESTROY; in __stmmac_test_l3filt()
1410 stmmac_tc_setup_cls(priv, priv, cls); in __stmmac_test_l3filt()
[all …]
/linux-5.19.10/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_u32.c46 struct tc_cls_u32_offload *cls, in fill_match_fields() argument
55 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()
92 struct tc_cls_u32_offload *cls) in fill_action_fields() argument
99 exts = cls->knode.exts; in fill_action_fields()
149 int cxgb4_config_knode(struct net_device *dev, struct tc_cls_u32_offload *cls) in cxgb4_config_knode() argument
[all …]
Dcxgb4_tc_matchall.c52 struct tc_cls_matchall_offload *cls) in cxgb4_matchall_egress_validate() argument
54 struct netlink_ext_ack *extack = cls->common.extack; in cxgb4_matchall_egress_validate()
55 struct flow_action *actions = &cls->rule->action; in cxgb4_matchall_egress_validate()
165 struct tc_cls_matchall_offload *cls) in cxgb4_matchall_alloc_tc() argument
178 struct netlink_ext_ack *extack = cls->common.extack; in cxgb4_matchall_alloc_tc()
189 flow_action_for_each(i, entry, &cls->rule->action) in cxgb4_matchall_alloc_tc()
193 ret = cxgb4_policer_validate(&cls->rule->action, entry, extack); in cxgb4_matchall_alloc_tc()
215 tc_port_matchall->egress.cookie = cls->cookie; in cxgb4_matchall_alloc_tc()
240 struct tc_cls_matchall_offload *cls) in cxgb4_matchall_mirror_alloc() argument
242 struct netlink_ext_ack *extack = cls->common.extack; in cxgb4_matchall_mirror_alloc()
[all …]
Dcxgb4_tc_flower.h135 struct flow_cls_offload *cls);
137 struct flow_cls_offload *cls);
139 struct flow_cls_offload *cls);
Dcxgb4_tc_u32.h47 int cxgb4_config_knode(struct net_device *dev, struct tc_cls_u32_offload *cls);
48 int cxgb4_delete_knode(struct net_device *dev, struct tc_cls_u32_offload *cls);
Dcxgb4_tc_flower.c927 struct flow_cls_offload *cls) in cxgb4_tc_flower_replace() argument
929 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in cxgb4_tc_flower_replace()
930 struct netlink_ext_ack *extack = cls->common.extack; in cxgb4_tc_flower_replace()
944 fs->tc_cookie = cls->cookie; in cxgb4_tc_flower_replace()
946 ret = cxgb4_flow_rule_replace(dev, rule, cls->common.prio, extack, fs, in cxgb4_tc_flower_replace()
951 ch_flower->tc_flower_cookie = cls->cookie; in cxgb4_tc_flower_replace()
961 cxgb4_tc_flower_hash_prio_del(adap, cls->common.prio); in cxgb4_tc_flower_replace()
990 struct flow_cls_offload *cls) in cxgb4_tc_flower_destroy() argument
996 ch_flower = ch_flower_lookup(adap, cls->cookie); in cxgb4_tc_flower_destroy()
1061 struct flow_cls_offload *cls) in cxgb4_tc_flower_stats() argument
[all …]
/linux-5.19.10/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-switch-flower.c11 static int dpaa2_switch_flower_parse_key(struct flow_cls_offload *cls, in dpaa2_switch_flower_parse_key() argument
14 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in dpaa2_switch_flower_parse_key()
16 struct netlink_ext_ack *extack = cls->common.extack; in dpaa2_switch_flower_parse_key()
486 struct flow_cls_offload *cls) in dpaa2_switch_cls_flower_replace_acl() argument
488 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in dpaa2_switch_cls_flower_replace_acl()
489 struct netlink_ext_ack *extack = cls->common.extack; in dpaa2_switch_cls_flower_replace_acl()
504 err = dpaa2_switch_flower_parse_key(cls, &acl_entry->key); in dpaa2_switch_cls_flower_replace_acl()
514 acl_entry->prio = cls->common.prio; in dpaa2_switch_cls_flower_replace_acl()
515 acl_entry->cookie = cls->cookie; in dpaa2_switch_cls_flower_replace_acl()
529 static int dpaa2_switch_flower_parse_mirror_key(struct flow_cls_offload *cls, in dpaa2_switch_flower_parse_mirror_key() argument
[all …]
Ddpaa2-switch.h261 struct flow_cls_offload *cls);
264 struct flow_cls_offload *cls);
267 struct tc_cls_matchall_offload *cls);
270 struct tc_cls_matchall_offload *cls);
/linux-5.19.10/scripts/gdb/linux/
Ddevice.py78 def class_for_each_device(cls): argument
79 for kn in klist_for_each(cls['p']['klist_devices']):
125 for cls in for_each_class():
126 gdb.write("class {}:\t{}\n".format(cls['name'].string(), cls))
127 for dev in class_for_each_device(cls):
130 cls = get_class_by_name(arg)
131 for dev in class_for_each_device(cls):
170 def invoke(self, cls, name): argument
172 cls = get_class_by_name(cls.string())
173 for dev in class_for_each_device(cls):
/linux-5.19.10/tools/perf/scripts/python/
Dcompaction-times.py114 def add_filter(cls, filter): argument
115 cls.fobj = filter
118 def create_pending(cls, pid, comm, start_secs, start_nsecs): argument
121 head = cls.heads[pid]
124 if cls.fobj != None:
125 filtered = cls.fobj.filter(pid, comm)
126 head = cls.heads[pid] = chead(comm, pid, filtered)
132 def increment_pending(cls, pid, migrated, fscan, mscan): argument
133 head = cls.heads[pid]
141 def complete_pending(cls, pid, secs, nsecs): argument
[all …]
/linux-5.19.10/tools/testing/selftests/bpf/progs/
Dtest_spin_lock.c55 struct cls_elem *cls; in bpf_sping_lock_test() local
93 cls = bpf_get_local_storage(&cls_map, 0); in bpf_sping_lock_test()
94 bpf_spin_lock(&cls->lock); in bpf_sping_lock_test()
95 cls->cnt++; in bpf_sping_lock_test()
96 bpf_spin_unlock(&cls->lock); in bpf_sping_lock_test()
/linux-5.19.10/drivers/acpi/acpica/
Dutids.c341 struct acpi_pnp_device_id *cls; in acpi_ut_execute_CLS() local
377 cls = in acpi_ut_execute_CLS()
380 if (!cls) { in acpi_ut_execute_CLS()
387 cls->string = in acpi_ut_execute_CLS()
388 ACPI_ADD_PTR(char, cls, sizeof(struct acpi_pnp_device_id)); in acpi_ut_execute_CLS()
392 acpi_ex_pci_cls_to_string(cls->string, class_code); in acpi_ut_execute_CLS()
393 cls->length = length; in acpi_ut_execute_CLS()
394 *return_id = cls; in acpi_ut_execute_CLS()
Dnsxfname.c234 struct acpi_pnp_device_id *cls = NULL; in acpi_get_object_info() local
317 status = acpi_ut_execute_CLS(node, &cls); in acpi_get_object_info()
319 info_size += cls->length; in acpi_get_object_info()
427 if (cls) { in acpi_get_object_info()
429 cls, next_id_string); in acpi_get_object_info()
453 if (cls) { in acpi_get_object_info()
454 ACPI_FREE(cls); in acpi_get_object_info()
/linux-5.19.10/drivers/net/dsa/sja1105/
Dsja1105_flower.c197 struct flow_cls_offload *cls, in sja1105_flower_parse_key() argument
200 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in sja1105_flower_parse_key()
344 struct flow_cls_offload *cls, bool ingress) in sja1105_cls_flower_add() argument
346 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in sja1105_cls_flower_add()
347 struct netlink_ext_ack *extack = cls->common.extack; in sja1105_cls_flower_add()
350 unsigned long cookie = cls->cookie; in sja1105_cls_flower_add()
357 rc = sja1105_flower_parse_key(priv, extack, cls, &key); in sja1105_cls_flower_add()
460 struct flow_cls_offload *cls, bool ingress) in sja1105_cls_flower_del() argument
463 struct sja1105_rule *rule = sja1105_rule_find(priv, cls->cookie); in sja1105_cls_flower_del()
471 return sja1105_vl_delete(priv, port, rule, cls->common.extack); in sja1105_cls_flower_del()
[all …]
/linux-5.19.10/include/linux/
Dtransport_class.h27 #define DECLARE_TRANSPORT_CLASS(cls, nm, su, rm, cfg) \ argument
28 struct transport_class cls = { \
43 #define DECLARE_ANON_TRANSPORT_CLASS(cls, mtch, cfg) \ argument
44 struct anon_transport_class cls = { \
/linux-5.19.10/arch/arm64/mm/
Ddma-mapping.c43 int cls = cache_line_size_of_cpu(); in arch_setup_dma_ops() local
45 WARN_TAINT(!coherent && cls > ARCH_DMA_MINALIGN, in arch_setup_dma_ops()
49 ARCH_DMA_MINALIGN, cls); in arch_setup_dma_ops()
/linux-5.19.10/drivers/net/ethernet/ti/
Dam65-cpsw-qos.c590 struct flow_cls_offload *cls, in am65_cpsw_qos_clsflower_add_policer() argument
593 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in am65_cpsw_qos_clsflower_add_policer()
628 qos->ale_bc_ratelimit.cookie = cls->cookie; in am65_cpsw_qos_clsflower_add_policer()
636 qos->ale_mc_ratelimit.cookie = cls->cookie; in am65_cpsw_qos_clsflower_add_policer()
681 struct flow_cls_offload *cls) in am65_cpsw_qos_configure_clsflower() argument
683 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in am65_cpsw_qos_configure_clsflower()
684 struct netlink_ext_ack *extack = cls->common.extack; in am65_cpsw_qos_configure_clsflower()
695 return am65_cpsw_qos_clsflower_add_policer(port, extack, cls, in am65_cpsw_qos_configure_clsflower()
706 static int am65_cpsw_qos_delete_clsflower(struct am65_cpsw_port *port, struct flow_cls_offload *cls) in am65_cpsw_qos_delete_clsflower() argument
710 if (cls->cookie == qos->ale_bc_ratelimit.cookie) { in am65_cpsw_qos_delete_clsflower()
[all …]
/linux-5.19.10/net/dsa/
Dslave.c1173 struct tc_cls_matchall_offload *cls, in dsa_slave_add_cls_matchall_mirred() argument
1176 struct netlink_ext_ack *extack = cls->common.extack; in dsa_slave_add_cls_matchall_mirred()
1189 if (!flow_action_basic_hw_stats_check(&cls->rule->action, in dsa_slave_add_cls_matchall_mirred()
1190 cls->common.extack)) in dsa_slave_add_cls_matchall_mirred()
1193 act = &cls->rule->action.entries[0]; in dsa_slave_add_cls_matchall_mirred()
1205 mall_tc_entry->cookie = cls->cookie; in dsa_slave_add_cls_matchall_mirred()
1227 struct tc_cls_matchall_offload *cls, in dsa_slave_add_cls_matchall_police() argument
1230 struct netlink_ext_ack *extack = cls->common.extack; in dsa_slave_add_cls_matchall_police()
1251 if (!flow_action_basic_hw_stats_check(&cls->rule->action, in dsa_slave_add_cls_matchall_police()
1252 cls->common.extack)) in dsa_slave_add_cls_matchall_police()
[all …]
/linux-5.19.10/include/linux/device/
Dclass.h101 void class_compat_unregister(struct class_compat *cls);
102 int class_compat_create_link(struct class_compat *cls, struct device *dev,
104 void class_compat_remove_link(struct class_compat *cls, struct device *dev,
255 extern void class_destroy(struct class *cls);
/linux-5.19.10/drivers/net/ethernet/freescale/enetc/
Denetc_cbdr.c137 cbd.cls = 1; in enetc_clear_mac_flt_entry()
154 cbd.cls = 1; in enetc_set_mac_flt_entry()
181 cbd.cls = 4; in enetc_set_fs_entry()
225 cbd.cls = 3; in enetc_cmd_rss_table()
/linux-5.19.10/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_tc.c262 struct tc_cls_matchall_offload *cls) in otx2_tc_egress_matchall_install() argument
264 struct netlink_ext_ack *extack = cls->common.extack; in otx2_tc_egress_matchall_install()
265 struct flow_action *actions = &cls->rule->action; in otx2_tc_egress_matchall_install()
280 entry = &cls->rule->action.entries[0]; in otx2_tc_egress_matchall_install()
283 err = otx2_policer_validate(&cls->rule->action, entry, extack); in otx2_tc_egress_matchall_install()
309 struct tc_cls_matchall_offload *cls) in otx2_tc_egress_matchall_delete() argument
311 struct netlink_ext_ack *extack = cls->common.extack; in otx2_tc_egress_matchall_delete()
939 struct tc_cls_matchall_offload *cls) in otx2_tc_ingress_matchall_install() argument
941 struct netlink_ext_ack *extack = cls->common.extack; in otx2_tc_ingress_matchall_install()
942 struct flow_action *actions = &cls->rule->action; in otx2_tc_ingress_matchall_install()
[all …]
/linux-5.19.10/drivers/ata/
Dsata_sil.c654 u8 cls; in sil_init_controller() local
659 cls = sil_get_device_cache_line(pdev); in sil_init_controller()
660 if (cls) { in sil_init_controller()
661 cls >>= 3; in sil_init_controller()
662 cls++; /* cls = (line_size/8)+1 */ in sil_init_controller()
664 writew(cls << 8 | cls, in sil_init_controller()
/linux-5.19.10/drivers/hid/
Dhid-multitouch.c720 struct mt_class *cls = &td->mtclass; in mt_touch_input_mapping() local
753 set_abs(hi->input, code, field, cls->sn_move); in mt_touch_input_mapping()
778 set_abs(hi->input, code, field, cls->sn_move); in mt_touch_input_mapping()
794 if ((cls->name == MT_CLS_WIN_8 || in mt_touch_input_mapping()
795 cls->name == MT_CLS_WIN_8_FORCE_MULTI_INPUT || in mt_touch_input_mapping()
796 cls->name == MT_CLS_WIN_8_FORCE_MULTI_INPUT_NSMU || in mt_touch_input_mapping()
797 cls->name == MT_CLS_WIN_8_DISABLE_WAKEUP) && in mt_touch_input_mapping()
823 cls->sn_width); in mt_touch_input_mapping()
829 cls->sn_height); in mt_touch_input_mapping()
844 cls->sn_pressure); in mt_touch_input_mapping()
[all …]

123