Home
last modified time | relevance | path

Searched refs:cls (Results 1 - 25 of 133) sorted by relevance

123456

/kernel/linux/linux-5.10/drivers/base/
H A 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()
115 class_put(struct class *cls) class_put() argument
141 class_add_groups(struct class *cls, const struct attribute_group **groups) class_add_groups() argument
147 class_remove_groups(struct class *cls, const struct attribute_group **groups) class_remove_groups() argument
153 __class_register(struct class *cls, struct lock_class_key *key) __class_register() argument
204 class_unregister(struct class *cls) class_unregister() argument
211 class_create_release(struct class *cls) class_create_release() argument
234 struct class *cls; __class_create() local
266 class_destroy(struct class *cls) class_destroy() argument
504 struct class_compat *cls; class_compat_register() local
522 class_compat_unregister(struct class_compat *cls) class_compat_unregister() argument
536 class_compat_create_link(struct class_compat *cls, struct device *dev, struct device *device_link) class_compat_create_link() argument
569 class_compat_remove_link(struct class_compat *cls, struct device *dev, struct device *device_link) class_compat_remove_link() argument
[all...]
/kernel/linux/linux-6.6/drivers/base/
H A Dclass.c129 int class_create_file_ns(const struct class *cls, const struct class_attribute *attr, in class_create_file_ns() argument
132 struct subsys_private *sp = class_to_subsys(cls); in class_create_file_ns()
145 void class_remove_file_ns(const struct class *cls, const struct class_attribute *attr, in class_remove_file_ns() argument
148 struct subsys_private *sp = class_to_subsys(cls); in class_remove_file_ns()
178 int class_register(const struct class *cls) in class_register() argument
184 pr_debug("device class '%s': registering\n", cls->name); in class_register()
195 error = kobject_set_name(&cp->subsys.kobj, "%s", cls->name); in class_register()
203 cp->class = cls; in class_register()
209 error = sysfs_create_groups(&cp->subsys.kobj, cls->class_groups); in class_register()
224 void class_unregister(const struct class *cls) in class_unregister() argument
239 class_create_release(const struct class *cls) class_create_release() argument
259 struct class *cls; class_create() local
290 class_destroy(const struct class *cls) class_destroy() argument
559 struct class_compat *cls; class_compat_register() local
577 class_compat_unregister(struct class_compat *cls) class_compat_unregister() argument
591 class_compat_create_link(struct class_compat *cls, struct device *dev, struct device *device_link) class_compat_create_link() argument
624 class_compat_remove_link(struct class_compat *cls, struct device *dev, struct device *device_link) class_compat_remove_link() argument
[all...]
/kernel/linux/linux-6.6/scripts/
H A Drust_is_available_test.py27 def generate_executable(cls, content):
28 path = pathlib.Path(cls.tempdir.name)
37 def generate_clang(cls, stdout):
38 return cls.generate_executable(f"""#!/usr/bin/env python3
41 print({repr("Clang " + " ".join(cls.llvm_default_version.split(" ")))})
47 def generate_rustc(cls, stdout):
48 return cls.generate_executable(f"""#!/usr/bin/env python3
51 print({repr(cls.rust_default_sysroot)})
57 def generate_bindgen(cls, version_stdout, libclang_stderr):
58 return cls
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_u32.c46 struct tc_cls_u32_offload *cls, in fill_match_fields()
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()
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
44 fill_match_fields(struct adapter *adap, struct ch_filter_specification *fs, struct tc_cls_u32_offload *cls, const struct cxgb4_match_field *entry, bool next_header) fill_match_fields() argument
90 fill_action_fields(struct adapter *adap, struct ch_filter_specification *fs, struct tc_cls_u32_offload *cls) fill_action_fields() argument
352 cxgb4_delete_knode(struct net_device *dev, struct tc_cls_u32_offload *cls) cxgb4_delete_knode() argument
[all...]
H A Dcxgb4_tc_matchall.c12 struct tc_cls_matchall_offload *cls) in cxgb4_matchall_egress_validate()
14 struct netlink_ext_ack *extack = cls->common.extack; in cxgb4_matchall_egress_validate()
15 struct flow_action *actions = &cls->rule->action; in cxgb4_matchall_egress_validate()
121 struct tc_cls_matchall_offload *cls) in cxgb4_matchall_alloc_tc()
134 struct netlink_ext_ack *extack = cls->common.extack; in cxgb4_matchall_alloc_tc()
145 flow_action_for_each(i, entry, &cls->rule->action) in cxgb4_matchall_alloc_tc()
167 tc_port_matchall->egress.cookie = cls->cookie; in cxgb4_matchall_alloc_tc()
192 struct tc_cls_matchall_offload *cls) in cxgb4_matchall_mirror_alloc()
194 struct netlink_ext_ack *extack = cls->common.extack; in cxgb4_matchall_mirror_alloc()
203 flow_action_for_each(i, act, &cls in cxgb4_matchall_mirror_alloc()
11 cxgb4_matchall_egress_validate(struct net_device *dev, struct tc_cls_matchall_offload *cls) cxgb4_matchall_egress_validate() argument
120 cxgb4_matchall_alloc_tc(struct net_device *dev, struct tc_cls_matchall_offload *cls) cxgb4_matchall_alloc_tc() argument
191 cxgb4_matchall_mirror_alloc(struct net_device *dev, struct tc_cls_matchall_offload *cls) cxgb4_matchall_mirror_alloc() argument
251 cxgb4_matchall_add_filter(struct net_device *dev, struct tc_cls_matchall_offload *cls, u8 filter_type) cxgb4_matchall_add_filter() argument
299 cxgb4_matchall_alloc_filter(struct net_device *dev, struct tc_cls_matchall_offload *cls) cxgb4_matchall_alloc_filter() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_u32.c46 struct tc_cls_u32_offload *cls, in fill_match_fields()
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()
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
44 fill_match_fields(struct adapter *adap, struct ch_filter_specification *fs, struct tc_cls_u32_offload *cls, const struct cxgb4_match_field *entry, bool next_header) fill_match_fields() argument
90 fill_action_fields(struct adapter *adap, struct ch_filter_specification *fs, struct tc_cls_u32_offload *cls) fill_action_fields() argument
352 cxgb4_delete_knode(struct net_device *dev, struct tc_cls_u32_offload *cls) cxgb4_delete_knode() argument
[all...]
H A Dcxgb4_tc_matchall.c52 struct tc_cls_matchall_offload *cls) in cxgb4_matchall_egress_validate()
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()
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()
242 struct netlink_ext_ack *extack = cls in cxgb4_matchall_mirror_alloc()
51 cxgb4_matchall_egress_validate(struct net_device *dev, struct tc_cls_matchall_offload *cls) cxgb4_matchall_egress_validate() argument
164 cxgb4_matchall_alloc_tc(struct net_device *dev, struct tc_cls_matchall_offload *cls) cxgb4_matchall_alloc_tc() argument
239 cxgb4_matchall_mirror_alloc(struct net_device *dev, struct tc_cls_matchall_offload *cls) cxgb4_matchall_mirror_alloc() argument
299 cxgb4_matchall_add_filter(struct net_device *dev, struct tc_cls_matchall_offload *cls, u8 filter_type) cxgb4_matchall_add_filter() argument
347 cxgb4_matchall_alloc_filter(struct net_device *dev, struct tc_cls_matchall_offload *cls) cxgb4_matchall_alloc_filter() argument
[all...]
/kernel/linux/linux-5.10/fs/cifs/
H A Dasn1.c157 unsigned int *cls, unsigned int *con, unsigned int *tag) in asn1_id_decode()
164 *cls = (ch & 0xC0) >> 6; in asn1_id_decode()
214 unsigned int *cls, unsigned int *con, unsigned int *tag) in asn1_header_decode()
219 if (!asn1_id_decode(ctx, cls, con, tag)) in asn1_header_decode()
490 unsigned int cls, con, tag, oidlen, rc; in decode_negTokenInit() local
497 if (asn1_header_decode(&ctx, &end, &cls, &con, &tag) == 0) { in decode_negTokenInit()
500 } else if ((cls != ASN1_APL) || (con != ASN1_CON) in decode_negTokenInit()
502 cifs_dbg(FYI, "cls = %d con = %d tag = %d\n", cls, con, tag); in decode_negTokenInit()
507 rc = asn1_header_decode(&ctx, &end, &cls, in decode_negTokenInit()
156 asn1_id_decode(struct asn1_ctx *ctx, unsigned int *cls, unsigned int *con, unsigned int *tag) asn1_id_decode() argument
212 asn1_header_decode(struct asn1_ctx *ctx, unsigned char **eoc, unsigned int *cls, unsigned int *con, unsigned int *tag) asn1_header_decode() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_tc.c29 struct tc_cls_u32_offload *cls, in tc_find_entry()
33 u32 loc = cls->knode.handle; in tc_find_entry()
59 struct tc_cls_u32_offload *cls) in tc_fill_actions()
66 exts = cls->knode.exts; in tc_fill_actions()
92 struct tc_cls_u32_offload *cls) in tc_fill_entry()
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, tru in tc_fill_entry()
28 tc_find_entry(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls, bool free) tc_find_entry() argument
57 tc_fill_actions(struct stmmac_tc_entry *entry, struct stmmac_tc_entry *frag, struct tc_cls_u32_offload *cls) tc_fill_actions() argument
91 tc_fill_entry(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls) tc_fill_entry() argument
171 tc_unfill_entry(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls) tc_unfill_entry() argument
188 tc_config_knode(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls) tc_config_knode() argument
209 tc_delete_knode(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls) tc_delete_knode() argument
219 tc_setup_cls_u32(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls) tc_setup_cls_u32() argument
458 tc_add_basic_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls, struct stmmac_flow_entry *entry) tc_add_basic_flow() argument
476 tc_add_ip4_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls, struct stmmac_flow_entry *entry) tc_add_ip4_flow() argument
511 tc_add_ports_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls, struct stmmac_flow_entry *entry) tc_add_ports_flow() argument
560 tc_find_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls, bool get_free) tc_find_flow() argument
587 tc_add_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls) tc_add_flow() argument
618 tc_del_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls) tc_del_flow() argument
641 tc_find_rfs(struct stmmac_priv *priv, struct flow_cls_offload *cls, bool get_free) tc_find_rfs() argument
661 tc_add_vlan_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls) tc_add_vlan_flow() argument
712 tc_del_vlan_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls) tc_del_vlan_flow() argument
732 tc_add_ethtype_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls) tc_add_ethtype_flow() argument
804 tc_del_ethtype_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls) tc_del_ethtype_flow() argument
840 tc_add_flow_cls(struct stmmac_priv *priv, struct flow_cls_offload *cls) tc_add_flow_cls() argument
856 tc_del_flow_cls(struct stmmac_priv *priv, struct flow_cls_offload *cls) tc_del_flow_cls() argument
872 tc_setup_cls(struct stmmac_priv *priv, struct flow_cls_offload *cls) tc_setup_cls() argument
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Ddynamic_debug.h163 #define DEFINE_DYNAMIC_DEBUG_METADATA_CLS(name, cls, fmt) \
172 .class_id = cls, \
175 BUILD_BUG_ON_MSG(cls > _DPRINTK_CLASS_DFLT, \
221 #define __dynamic_func_call_cls(id, cls, fmt, func, ...) do { \
222 DEFINE_DYNAMIC_DEBUG_METADATA_CLS(id, cls, fmt); \
230 #define __dynamic_func_call_cls_no_desc(id, cls, fmt, func, ...) do { \
231 DEFINE_DYNAMIC_DEBUG_METADATA_CLS(id, cls, fmt); \
247 #define _dynamic_func_call_cls(cls, fmt, func, ...) \
248 __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__)
257 #define _dynamic_func_call_cls_no_desc(cls, fm
[all...]
H A Dtransport_class.h27 #define DECLARE_TRANSPORT_CLASS(cls, nm, su, rm, cfg) \
28 struct transport_class cls = { \
43 #define DECLARE_ANON_TRANSPORT_CLASS(cls, mtch, cfg) \
44 struct anon_transport_class cls = { \
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_tc.c29 struct tc_cls_u32_offload *cls, in tc_find_entry()
33 u32 loc = cls->knode.handle; in tc_find_entry()
59 struct tc_cls_u32_offload *cls) in tc_fill_actions()
66 exts = cls->knode.exts; in tc_fill_actions()
92 struct tc_cls_u32_offload *cls) in tc_fill_entry()
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, tru in tc_fill_entry()
28 tc_find_entry(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls, bool free) tc_find_entry() argument
57 tc_fill_actions(struct stmmac_tc_entry *entry, struct stmmac_tc_entry *frag, struct tc_cls_u32_offload *cls) tc_fill_actions() argument
91 tc_fill_entry(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls) tc_fill_entry() argument
171 tc_unfill_entry(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls) tc_unfill_entry() argument
188 tc_config_knode(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls) tc_config_knode() argument
209 tc_delete_knode(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls) tc_delete_knode() argument
225 tc_setup_cls_u32(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls) tc_setup_cls_u32() argument
423 tc_add_basic_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls, struct stmmac_flow_entry *entry) tc_add_basic_flow() argument
440 tc_add_ip4_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls, struct stmmac_flow_entry *entry) tc_add_ip4_flow() argument
475 tc_add_ports_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls, struct stmmac_flow_entry *entry) tc_add_ports_flow() argument
524 tc_find_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls, bool get_free) tc_find_flow() argument
551 tc_add_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls) tc_add_flow() argument
584 tc_del_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls) tc_del_flow() argument
607 tc_setup_cls(struct stmmac_priv *priv, struct flow_cls_offload *cls) tc_setup_cls() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa2/
H A 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()
491 struct flow_cls_offload *cls) in dpaa2_switch_cls_flower_replace_acl()
493 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in dpaa2_switch_cls_flower_replace_acl()
494 struct netlink_ext_ack *extack = cls->common.extack; in dpaa2_switch_cls_flower_replace_acl()
509 err = dpaa2_switch_flower_parse_key(cls, &acl_entry->key); in dpaa2_switch_cls_flower_replace_acl()
519 acl_entry->prio = cls->common.prio; in dpaa2_switch_cls_flower_replace_acl()
520 acl_entry->cookie = cls->cookie; in dpaa2_switch_cls_flower_replace_acl()
534 static int dpaa2_switch_flower_parse_mirror_key(struct flow_cls_offload *cls, in dpaa2_switch_flower_parse_mirror_key() argument
490 dpaa2_switch_cls_flower_replace_acl(struct dpaa2_switch_filter_block *block, struct flow_cls_offload *cls) dpaa2_switch_cls_flower_replace_acl() argument
577 dpaa2_switch_cls_flower_replace_mirror(struct dpaa2_switch_filter_block *block, struct flow_cls_offload *cls) dpaa2_switch_cls_flower_replace_mirror() argument
642 dpaa2_switch_cls_flower_replace(struct dpaa2_switch_filter_block *block, struct flow_cls_offload *cls) dpaa2_switch_cls_flower_replace() argument
668 dpaa2_switch_cls_flower_destroy(struct dpaa2_switch_filter_block *block, struct flow_cls_offload *cls) dpaa2_switch_cls_flower_destroy() argument
691 dpaa2_switch_cls_matchall_replace_acl(struct dpaa2_switch_filter_block *block, struct tc_cls_matchall_offload *cls) dpaa2_switch_cls_matchall_replace_acl() argument
731 dpaa2_switch_cls_matchall_replace_mirror(struct dpaa2_switch_filter_block *block, struct tc_cls_matchall_offload *cls) dpaa2_switch_cls_matchall_replace_mirror() argument
788 dpaa2_switch_cls_matchall_replace(struct dpaa2_switch_filter_block *block, struct tc_cls_matchall_offload *cls) dpaa2_switch_cls_matchall_replace() argument
864 dpaa2_switch_cls_matchall_destroy(struct dpaa2_switch_filter_block *block, struct tc_cls_matchall_offload *cls) dpaa2_switch_cls_matchall_destroy() argument
[all...]
/kernel/linux/linux-5.10/scripts/gdb/linux/
H A Ddevice.py78 def class_for_each_device(cls):
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):
172 cls
[all...]
/kernel/linux/linux-6.6/scripts/gdb/linux/
H A Ddevice.py78 def class_for_each_device(cls):
79 for kn in klist_for_each(cls['klist_devices']):
125 for cls in for_each_class():
126 gdb.write("class {}:\t{}\n".format(cls['class']['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):
172 cls
[all...]
/kernel/linux/linux-5.10/tools/perf/scripts/python/
H A Dcompaction-times.py114 def add_filter(cls, filter):
115 cls.fobj = filter
118 def create_pending(cls, pid, comm, start_secs, start_nsecs):
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):
133 head = cls.heads[pid]
141 def complete_pending(cls, pi
[all...]
/kernel/linux/linux-6.6/tools/perf/scripts/python/
H A Dcompaction-times.py114 def add_filter(cls, filter):
115 cls.fobj = filter
118 def create_pending(cls, pid, comm, start_secs, start_nsecs):
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):
133 head = cls.heads[pid]
141 def complete_pending(cls, pi
[all...]
/kernel/linux/linux-5.10/drivers/acpi/acpica/
H A 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()
/kernel/linux/linux-6.6/drivers/acpi/acpica/
H A 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()
/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/
H A Dsja1105_flower.c196 struct flow_cls_offload *cls, in sja1105_flower_parse_key()
199 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in sja1105_flower_parse_key()
303 struct flow_cls_offload *cls, bool ingress) in sja1105_cls_flower_add()
305 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in sja1105_cls_flower_add()
306 struct netlink_ext_ack *extack = cls->common.extack; in sja1105_cls_flower_add()
309 unsigned long cookie = cls->cookie; in sja1105_cls_flower_add()
316 rc = sja1105_flower_parse_key(priv, extack, cls, &key); in sja1105_cls_flower_add()
417 struct flow_cls_offload *cls, bool ingress) in sja1105_cls_flower_del()
420 struct sja1105_rule *rule = sja1105_rule_find(priv, cls->cookie); in sja1105_cls_flower_del()
428 return sja1105_vl_delete(priv, port, rule, cls in sja1105_cls_flower_del()
194 sja1105_flower_parse_key(struct sja1105_private *priv, struct netlink_ext_ack *extack, struct flow_cls_offload *cls, struct sja1105_key *key) sja1105_flower_parse_key() argument
302 sja1105_cls_flower_add(struct dsa_switch *ds, int port, struct flow_cls_offload *cls, bool ingress) sja1105_cls_flower_add() argument
416 sja1105_cls_flower_del(struct dsa_switch *ds, int port, struct flow_cls_offload *cls, bool ingress) sja1105_cls_flower_del() argument
456 sja1105_cls_flower_stats(struct dsa_switch *ds, int port, struct flow_cls_offload *cls, bool ingress) sja1105_cls_flower_stats() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/dsa/sja1105/
H A Dsja1105_flower.c197 struct flow_cls_offload *cls, in sja1105_flower_parse_key()
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()
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()
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 in sja1105_cls_flower_del()
195 sja1105_flower_parse_key(struct sja1105_private *priv, struct netlink_ext_ack *extack, struct flow_cls_offload *cls, struct sja1105_key *key) sja1105_flower_parse_key() argument
343 sja1105_cls_flower_add(struct dsa_switch *ds, int port, struct flow_cls_offload *cls, bool ingress) sja1105_cls_flower_add() argument
459 sja1105_cls_flower_del(struct dsa_switch *ds, int port, struct flow_cls_offload *cls, bool ingress) sja1105_cls_flower_del() argument
499 sja1105_cls_flower_stats(struct dsa_switch *ds, int port, struct flow_cls_offload *cls, bool ingress) sja1105_cls_flower_stats() argument
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A 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()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtest_spin_lock.c56 struct cls_elem *cls; in bpf_spin_lock_test() local
96 cls = bpf_get_local_storage(&cls_map, 0); in bpf_spin_lock_test()
97 bpf_spin_lock(&cls->lock); in bpf_spin_lock_test()
98 cls->cnt++; in bpf_spin_lock_test()
99 bpf_spin_unlock(&cls->lock); in bpf_spin_lock_test()
/kernel/linux/linux-5.10/include/linux/
H A Dtransport_class.h27 #define DECLARE_TRANSPORT_CLASS(cls, nm, su, rm, cfg) \
28 struct transport_class cls = { \
43 #define DECLARE_ANON_TRANSPORT_CLASS(cls, mtch, cfg) \
44 struct anon_transport_class cls = { \
/kernel/linux/linux-5.10/net/dsa/
H A Dslave.c935 struct tc_cls_matchall_offload *cls, in dsa_slave_add_cls_matchall_mirred()
950 if (!flow_action_basic_hw_stats_check(&cls->rule->action, in dsa_slave_add_cls_matchall_mirred()
951 cls->common.extack)) in dsa_slave_add_cls_matchall_mirred()
954 act = &cls->rule->action.entries[0]; in dsa_slave_add_cls_matchall_mirred()
966 mall_tc_entry->cookie = cls->cookie; in dsa_slave_add_cls_matchall_mirred()
988 struct tc_cls_matchall_offload *cls, in dsa_slave_add_cls_matchall_police()
991 struct netlink_ext_ack *extack = cls->common.extack; in dsa_slave_add_cls_matchall_police()
1012 if (!flow_action_basic_hw_stats_check(&cls->rule->action, in dsa_slave_add_cls_matchall_police()
1013 cls->common.extack)) in dsa_slave_add_cls_matchall_police()
1024 act = &cls in dsa_slave_add_cls_matchall_police()
934 dsa_slave_add_cls_matchall_mirred(struct net_device *dev, struct tc_cls_matchall_offload *cls, bool ingress) dsa_slave_add_cls_matchall_mirred() argument
987 dsa_slave_add_cls_matchall_police(struct net_device *dev, struct tc_cls_matchall_offload *cls, bool ingress) dsa_slave_add_cls_matchall_police() argument
1047 dsa_slave_add_cls_matchall(struct net_device *dev, struct tc_cls_matchall_offload *cls, bool ingress) dsa_slave_add_cls_matchall() argument
1064 dsa_slave_del_cls_matchall(struct net_device *dev, struct tc_cls_matchall_offload *cls) dsa_slave_del_cls_matchall() argument
1094 dsa_slave_setup_tc_cls_matchall(struct net_device *dev, struct tc_cls_matchall_offload *cls, bool ingress) dsa_slave_setup_tc_cls_matchall() argument
1112 dsa_slave_add_cls_flower(struct net_device *dev, struct flow_cls_offload *cls, bool ingress) dsa_slave_add_cls_flower() argument
1126 dsa_slave_del_cls_flower(struct net_device *dev, struct flow_cls_offload *cls, bool ingress) dsa_slave_del_cls_flower() argument
1140 dsa_slave_stats_cls_flower(struct net_device *dev, struct flow_cls_offload *cls, bool ingress) dsa_slave_stats_cls_flower() argument
1154 dsa_slave_setup_tc_cls_flower(struct net_device *dev, struct flow_cls_offload *cls, bool ingress) dsa_slave_setup_tc_cls_flower() argument
[all...]

Completed in 15 milliseconds

123456