/linux-master/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_tc_u32.h | 47 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);
|
H A D | cxgb4_tc_u32.c | 46 struct tc_cls_u32_offload *cls, 55 for (i = 0; i < cls->knode.sel->nkeys; i++) { 56 off = cls->knode.sel->keys[i].off; 57 val = cls->knode.sel->keys[i].val; 58 mask = cls->knode.sel->keys[i].mask; 62 if (!cls->knode.sel->keys[i].offmask) 66 if (cls->knode.sel->keys[i].offmask) 92 struct tc_cls_u32_offload *cls) 99 exts = cls->knode.exts; 149 int cxgb4_config_knode(struct net_device *dev, struct tc_cls_u32_offload *cls) 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) argument 90 fill_action_fields(struct adapter *adap, struct ch_filter_specification *fs, struct tc_cls_u32_offload *cls) argument 352 cxgb4_delete_knode(struct net_device *dev, struct tc_cls_u32_offload *cls) argument [all...] |
H A D | cxgb4_tc_matchall.c | 52 struct tc_cls_matchall_offload *cls) 54 struct netlink_ext_ack *extack = cls->common.extack; 55 struct flow_action *actions = &cls->rule->action; 165 struct tc_cls_matchall_offload *cls) 178 struct netlink_ext_ack *extack = cls->common.extack; 189 flow_action_for_each(i, entry, &cls->rule->action) 193 ret = cxgb4_policer_validate(&cls->rule->action, entry, extack); 215 tc_port_matchall->egress.cookie = cls->cookie; 240 struct tc_cls_matchall_offload *cls) 242 struct netlink_ext_ack *extack = cls 51 cxgb4_matchall_egress_validate(struct net_device *dev, struct tc_cls_matchall_offload *cls) argument 164 cxgb4_matchall_alloc_tc(struct net_device *dev, struct tc_cls_matchall_offload *cls) argument 239 cxgb4_matchall_mirror_alloc(struct net_device *dev, struct tc_cls_matchall_offload *cls) argument 299 cxgb4_matchall_add_filter(struct net_device *dev, struct tc_cls_matchall_offload *cls, u8 filter_type) argument 347 cxgb4_matchall_alloc_filter(struct net_device *dev, struct tc_cls_matchall_offload *cls) argument [all...] |
H A D | cxgb4_tc_flower.h | 135 struct flow_cls_offload *cls); 137 struct flow_cls_offload *cls); 139 struct flow_cls_offload *cls);
|
H A D | cxgb4_tc_flower.c | 927 struct flow_cls_offload *cls) 929 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); 930 struct netlink_ext_ack *extack = cls->common.extack; 944 fs->tc_cookie = cls->cookie; 946 ret = cxgb4_flow_rule_replace(dev, rule, cls->common.prio, extack, fs, 951 ch_flower->tc_flower_cookie = cls->cookie; 961 cxgb4_tc_flower_hash_prio_del(adap, cls->common.prio); 990 struct flow_cls_offload *cls) 996 ch_flower = ch_flower_lookup(adap, cls->cookie); 1061 struct flow_cls_offload *cls) 926 cxgb4_tc_flower_replace(struct net_device *dev, struct flow_cls_offload *cls) argument 989 cxgb4_tc_flower_destroy(struct net_device *dev, struct flow_cls_offload *cls) argument 1060 cxgb4_tc_flower_stats(struct net_device *dev, struct flow_cls_offload *cls) argument [all...] |
/linux-master/drivers/base/ |
H A D | class.c | 129 int class_create_file_ns(const struct class *cls, const struct class_attribute *attr, argument 132 struct subsys_private *sp = class_to_subsys(cls); 145 void class_remove_file_ns(const struct class *cls, const struct class_attribute *attr, argument 148 struct subsys_private *sp = class_to_subsys(cls); 178 int class_register(const struct class *cls) argument 184 pr_debug("device class '%s': registering\n", cls->name); 195 error = kobject_set_name(&cp->subsys.kobj, "%s", cls->name); 201 cp->class = cls; 207 error = sysfs_create_groups(&cp->subsys.kobj, cls->class_groups); 222 void class_unregister(const struct class *cls) argument 237 class_create_release(const struct class *cls) argument 257 struct class *cls; local 288 class_destroy(const struct class *cls) argument 557 struct class_compat *cls; local 575 class_compat_unregister(struct class_compat *cls) argument 589 class_compat_create_link(struct class_compat *cls, struct device *dev, struct device *device_link) argument 622 class_compat_remove_link(struct class_compat *cls, struct device *dev, struct device *device_link) argument [all...] |
/linux-master/scripts/ |
H A D | rust_is_available_test.py | 27 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...] |
/linux-master/drivers/net/dsa/microchip/ |
H A D | ksz9477_tc_flower.c | 144 * @cls: The flow_cls_offload instance containing the flow rule. 156 struct flow_cls_offload *cls, 159 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); 167 if (TC_H_MIN(cls->classid)) { 202 * @cls: The flow_cls_offload instance containing the flow rule. 213 struct flow_cls_offload *cls, bool ingress) 215 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); 216 struct netlink_ext_ack *extack = cls->common.extack; 234 ret = ksz9477_flower_parse_key(dev, port, extack, rule, cls->cookie, 235 cls 154 ksz9477_flower_parse_action(struct ksz_device *dev, int port, struct netlink_ext_ack *extack, struct flow_cls_offload *cls, int entry_idx) argument 212 ksz9477_cls_flower_add(struct dsa_switch *ds, int port, struct flow_cls_offload *cls, bool ingress) argument 266 ksz9477_cls_flower_del(struct dsa_switch *ds, int port, struct flow_cls_offload *cls, bool ingress) argument [all...] |
H A D | ksz9477.h | 70 struct flow_cls_offload *cls, bool ingress); 72 struct flow_cls_offload *cls, bool ingress);
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_bpf.c | 11 int cls(struct __sk_buff *skb) function
|
H A D | test_spin_lock.c | 56 struct cls_elem *cls; local 96 cls = bpf_get_local_storage(&cls_map, 0); 97 bpf_spin_lock(&cls->lock); 98 cls->cnt++; 99 bpf_spin_unlock(&cls->lock);
|
/linux-master/include/linux/ |
H A D | dynamic_debug.h | 163 #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 D | transport_class.h | 27 #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 = { \
|
/linux-master/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_tc.c | 29 struct tc_cls_u32_offload *cls, 33 u32 loc = cls->knode.handle; 59 struct tc_cls_u32_offload *cls) 66 exts = cls->knode.exts; 92 struct tc_cls_u32_offload *cls) 95 struct tc_u32_sel *sel = cls->knode.sel; 97 u32 prio = cls->common.prio << 16; 108 switch (ntohs(cls->common.protocol)) { 124 entry = tc_find_entry(priv, cls, true); 129 frag = tc_find_entry(priv, cls, tru 28 tc_find_entry(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls, bool free) argument 57 tc_fill_actions(struct stmmac_tc_entry *entry, struct stmmac_tc_entry *frag, struct tc_cls_u32_offload *cls) argument 91 tc_fill_entry(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls) argument 171 tc_unfill_entry(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls) argument 188 tc_config_knode(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls) argument 209 tc_delete_knode(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls) argument 219 tc_setup_cls_u32(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls) argument 458 tc_add_basic_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls, struct stmmac_flow_entry *entry) argument 476 tc_add_ip4_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls, struct stmmac_flow_entry *entry) argument 511 tc_add_ports_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls, struct stmmac_flow_entry *entry) argument 560 tc_find_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls, bool get_free) argument 587 tc_add_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls) argument 618 tc_del_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls) argument 641 tc_find_rfs(struct stmmac_priv *priv, struct flow_cls_offload *cls, bool get_free) argument 661 tc_add_vlan_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls) argument 712 tc_del_vlan_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls) argument 732 tc_add_ethtype_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls) argument 804 tc_del_ethtype_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls) argument 840 tc_add_flow_cls(struct stmmac_priv *priv, struct flow_cls_offload *cls) argument 856 tc_del_flow_cls(struct stmmac_priv *priv, struct flow_cls_offload *cls) argument 872 tc_setup_cls(struct stmmac_priv *priv, struct flow_cls_offload *cls) argument [all...] |
/linux-master/scripts/gdb/linux/ |
H A D | device.py | 78 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...] |
/linux-master/arch/arm64/mm/ |
H A D | dma-mapping.c | 52 int cls = cache_line_size_of_cpu(); local 54 WARN_TAINT(!coherent && cls > ARCH_DMA_MINALIGN, 58 ARCH_DMA_MINALIGN, cls);
|
/linux-master/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-switch-flower.c | 11 static int dpaa2_switch_flower_parse_key(struct flow_cls_offload *cls, argument 14 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); 16 struct netlink_ext_ack *extack = cls->common.extack; 491 struct flow_cls_offload *cls) 493 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); 494 struct netlink_ext_ack *extack = cls->common.extack; 509 err = dpaa2_switch_flower_parse_key(cls, &acl_entry->key); 519 acl_entry->prio = cls->common.prio; 520 acl_entry->cookie = cls->cookie; 534 static int dpaa2_switch_flower_parse_mirror_key(struct flow_cls_offload *cls, argument 490 dpaa2_switch_cls_flower_replace_acl(struct dpaa2_switch_filter_block *block, struct flow_cls_offload *cls) argument 577 dpaa2_switch_cls_flower_replace_mirror(struct dpaa2_switch_filter_block *block, struct flow_cls_offload *cls) argument 642 dpaa2_switch_cls_flower_replace(struct dpaa2_switch_filter_block *block, struct flow_cls_offload *cls) argument 668 dpaa2_switch_cls_flower_destroy(struct dpaa2_switch_filter_block *block, struct flow_cls_offload *cls) argument 691 dpaa2_switch_cls_matchall_replace_acl(struct dpaa2_switch_filter_block *block, struct tc_cls_matchall_offload *cls) argument 731 dpaa2_switch_cls_matchall_replace_mirror(struct dpaa2_switch_filter_block *block, struct tc_cls_matchall_offload *cls) argument 788 dpaa2_switch_cls_matchall_replace(struct dpaa2_switch_filter_block *block, struct tc_cls_matchall_offload *cls) argument 864 dpaa2_switch_cls_matchall_destroy(struct dpaa2_switch_filter_block *block, struct tc_cls_matchall_offload *cls) argument [all...] |
H A D | dpaa2-switch.h | 258 struct flow_cls_offload *cls); 261 struct flow_cls_offload *cls); 264 struct tc_cls_matchall_offload *cls); 267 struct tc_cls_matchall_offload *cls);
|
/linux-master/tools/perf/scripts/python/ |
H A D | compaction-times.py | 114 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...] |
/linux-master/drivers/acpi/acpica/ |
H A D | utids.c | 341 struct acpi_pnp_device_id *cls; local 377 cls = 380 if (!cls) { 387 cls->string = 388 ACPI_ADD_PTR(char, cls, sizeof(struct acpi_pnp_device_id)); 392 acpi_ex_pci_cls_to_string(cls->string, class_code); 393 cls->length = length; 394 *return_id = cls;
|
H A D | nsxfname.c | 234 struct acpi_pnp_device_id *cls = NULL; local 317 status = acpi_ut_execute_CLS(node, &cls); 319 info_size += cls->length; 427 if (cls) { 429 cls, next_id_string); 453 if (cls) { 454 ACPI_FREE(cls);
|
/linux-master/include/linux/device/ |
H A D | class.h | 84 void class_compat_unregister(struct class_compat *cls); 85 int class_compat_create_link(struct class_compat *cls, struct device *dev, 87 void class_compat_remove_link(struct class_compat *cls, struct device *dev, 229 void class_destroy(const struct class *cls);
|
/linux-master/drivers/net/dsa/sja1105/ |
H A D | sja1105_flower.c | 197 struct flow_cls_offload *cls, 200 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); 344 struct flow_cls_offload *cls, bool ingress) 346 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); 347 struct netlink_ext_ack *extack = cls->common.extack; 350 unsigned long cookie = cls->cookie; 357 rc = sja1105_flower_parse_key(priv, extack, cls, &key); 460 struct flow_cls_offload *cls, bool ingress) 463 struct sja1105_rule *rule = sja1105_rule_find(priv, cls->cookie); 471 return sja1105_vl_delete(priv, port, rule, cls 195 sja1105_flower_parse_key(struct sja1105_private *priv, struct netlink_ext_ack *extack, struct flow_cls_offload *cls, struct sja1105_key *key) argument 343 sja1105_cls_flower_add(struct dsa_switch *ds, int port, struct flow_cls_offload *cls, bool ingress) argument 459 sja1105_cls_flower_del(struct dsa_switch *ds, int port, struct flow_cls_offload *cls, bool ingress) argument 499 sja1105_cls_flower_stats(struct dsa_switch *ds, int port, struct flow_cls_offload *cls, bool ingress) argument [all...] |
/linux-master/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_cbdr.c | 140 cbd.cls = 1; 158 cbd.cls = 1; 186 cbd.cls = 4; 231 cbd.cls = 3;
|
/linux-master/tools/testing/selftests/hid/tests/ |
H A D | base.py | 172 def debug_reports(cls, reports, uhdev=None, events=None): 341 def instance(cls): 342 if not cls._instance: 343 cls._instance = HIDTestUdevRule() 344 return cls._instance
|