| /linux/drivers/base/ |
| H A D | class.c | 129 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() 186 if (cls->ns_type && !cls->namespace) { in class_register() 188 __func__, cls->name); in class_register() 191 if (!cls->ns_type && cls->namespace) { in class_register() 193 __func__, cls->name); in class_register() [all …]
|
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | cxgb4_tc_u32.c | 46 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 …]
|
| H A D | cxgb4_tc_matchall.c | 52 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 …]
|
| 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_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_flower.c | 934 struct flow_cls_offload *cls) in cxgb4_tc_flower_replace() argument 936 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in cxgb4_tc_flower_replace() 937 struct netlink_ext_ack *extack = cls->common.extack; in cxgb4_tc_flower_replace() 951 fs->tc_cookie = cls->cookie; in cxgb4_tc_flower_replace() 953 ret = cxgb4_flow_rule_replace(dev, rule, cls->common.prio, extack, fs, in cxgb4_tc_flower_replace() 958 ch_flower->tc_flower_cookie = cls->cookie; in cxgb4_tc_flower_replace() 968 cxgb4_tc_flower_hash_prio_del(adap, cls->common.prio); in cxgb4_tc_flower_replace() 997 struct flow_cls_offload *cls) in cxgb4_tc_flower_destroy() argument 1003 ch_flower = ch_flower_lookup(adap, cls->cookie); in cxgb4_tc_flower_destroy() 1068 struct flow_cls_offload *cls) in cxgb4_tc_flower_stats() argument [all …]
|
| /linux/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | stmmac_tc.c | 29 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 …]
|
| H A D | stmmac_selftests.c | 1438 struct flow_cls_offload *cls; in __stmmac_test_l3filt() local 1462 cls = kzalloc_obj(*cls); in __stmmac_test_l3filt() 1463 if (!cls) { in __stmmac_test_l3filt() 1468 cls->common.chain_index = 0; in __stmmac_test_l3filt() 1469 cls->command = FLOW_CLS_REPLACE; in __stmmac_test_l3filt() 1470 cls->cookie = dummy_cookie; in __stmmac_test_l3filt() 1487 cls->rule = rule; in __stmmac_test_l3filt() 1502 ret = stmmac_tc_setup_cls(priv, priv, cls); in __stmmac_test_l3filt() 1510 cls in __stmmac_test_l3filt() 1564 struct flow_cls_offload *cls; __stmmac_test_l4filt() local [all...] |
| /linux/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, 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() 494 struct flow_cls_offload *cls) in dpaa2_switch_cls_flower_replace_acl() argument 496 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in dpaa2_switch_cls_flower_replace_acl() 497 struct netlink_ext_ack *extack = cls->common.extack; in dpaa2_switch_cls_flower_replace_acl() 512 err = dpaa2_switch_flower_parse_key(cls, &acl_entry->key); in dpaa2_switch_cls_flower_replace_acl() 522 acl_entry->prio = cls->common.prio; in dpaa2_switch_cls_flower_replace_acl() 523 acl_entry->cookie = cls->cookie; in dpaa2_switch_cls_flower_replace_acl() 537 static int dpaa2_switch_flower_parse_mirror_key(struct flow_cls_offload *cls, in dpaa2_switch_flower_parse_mirror_key() argument [all …]
|
| H A D | dpaa2-switch.h | 284 struct flow_cls_offload *cls); 287 struct flow_cls_offload *cls); 290 struct tc_cls_matchall_offload *cls); 293 struct tc_cls_matchall_offload *cls);
|
| /linux/drivers/net/dsa/mv88e6xxx/ |
| H A D | tcflower.c | 19 struct flow_cls_offload *cls, in mv88e6xxx_flower_parse_key() argument 22 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in mv88e6xxx_flower_parse_key() 42 cls->common.extack)) in mv88e6xxx_flower_parse_key() 60 flow_rule_match_ipv4_addrs(cls->rule, &match); in mv88e6xxx_flower_parse_key() 73 struct flow_cls_offload *cls, bool ingress) in mv88e6xxx_cls_flower_add() argument 75 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in mv88e6xxx_cls_flower_add() 76 struct netlink_ext_ack *extack = cls->common.extack; in mv88e6xxx_cls_flower_add() 80 unsigned long cookie = cls->cookie; in mv88e6xxx_cls_flower_add() 89 err = mv88e6xxx_flower_parse_key(chip, extack, cls, &key); in mv88e6xxx_cls_flower_add() 107 entry->prio = cls->common.prio; in mv88e6xxx_cls_flower_add() [all …]
|
| /linux/include/linux/ |
| H A D | dynamic_debug.h | 170 #define DEFINE_DYNAMIC_DEBUG_METADATA_CLS(name, cls, fmt) \ argument 179 .class_id = cls, \ 182 BUILD_BUG_ON_MSG(cls > _DPRINTK_CLASS_DFLT, \ 228 #define __dynamic_func_call_cls(id, cls, fmt, func, ...) do { \ argument 229 DEFINE_DYNAMIC_DEBUG_METADATA_CLS(id, cls, fmt); \ 239 #define __dynamic_func_call_cls_no_desc(id, cls, fmt, func, ...) do { \ argument 240 DEFINE_DYNAMIC_DEBUG_METADATA_CLS(id, cls, fmt); \ 258 #define _dynamic_func_call_cls(cls, fmt, func, ...) \ argument 259 __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__) 268 #define _dynamic_func_call_cls_no_desc(cls, fmt, func, ...) \ argument [all …]
|
| /linux/scripts/gdb/linux/ |
| H A D | device.py | 78 def class_for_each_device(cls): argument 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): argument 172 cls = get_class_by_name(cls.string()) 173 for dev in class_for_each_device(cls):
|
| /linux/scripts/ |
| H A D | container | 31 def is_present(cls): argument 33 return shutil.which(cls.name) is not None 111 def get_names(cls): argument 113 return list(runtime.name for runtime in cls.runtimes) 116 def get(cls, name): argument 118 for runtime in cls.runtimes: 126 def find(cls): argument 128 for runtime in cls.runtimes: 150 cls = Runtimes.get(args.runtime) if args.runtime else Runtimes.find() 154 logger.debug("runtime: %s", cls.name) [all …]
|
| /linux/drivers/net/dsa/microchip/ |
| H A D | ksz9477_tc_flower.c | 159 struct flow_cls_offload *cls, in ksz9477_flower_parse_action() argument 162 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in ksz9477_flower_parse_action() 170 if (TC_H_MIN(cls->classid)) { in ksz9477_flower_parse_action() 216 struct flow_cls_offload *cls, bool ingress) in ksz9477_cls_flower_add() argument 218 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in ksz9477_cls_flower_add() 219 struct netlink_ext_ack *extack = cls->common.extack; in ksz9477_cls_flower_add() 237 ret = ksz9477_flower_parse_key(dev, port, extack, rule, cls->cookie, in ksz9477_cls_flower_add() 238 cls->common.prio); in ksz9477_cls_flower_add() 242 ret = ksz9477_flower_parse_action(dev, port, extack, cls, in ksz9477_cls_flower_add() 270 struct flow_cls_offload *cls, bool ingress) in ksz9477_cls_flower_del() argument [all …]
|
| H A D | ksz9477.h | 52 struct flow_cls_offload *cls, bool ingress); 54 struct flow_cls_offload *cls, bool ingress);
|
| /linux/tools/perf/scripts/python/ |
| H A D | compaction-times.py | 114 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/tools/testing/selftests/hid/tests/ |
| H A D | base_device.py | 144 def _init_pyudev(cls: Type["UdevHIDIsReady"]) -> None: 145 if cls._pyudev_context is None: 146 cls._pyudev_context = pyudev.Context() 147 cls._pyudev_monitor = pyudev.Monitor.from_netlink(cls._pyudev_context) 148 cls._pyudev_monitor.filter_by("hid") 149 cls._pyudev_monitor.start() 152 cls._pyudev_monitor.fileno(), cls._cls_udev_event_callback 156 def _cls_udev_event_callback(cls: Type["UdevHIDIsReady"]) -> None: 157 if cls._pyudev_monitor is None: 160 for event in iter(functools.partial(cls._pyudev_monitor.poll, 0.02), None): [all …]
|
| H A D | base.py | 198 def debug_reports(cls, reports, uhdev=None, events=None): argument 429 def instance(cls): argument 430 if not cls._instance: 431 cls._instance = HIDTestUdevRule() 432 return cls._instance
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_spin_lock.c | 56 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()
|
| /linux/include/linux/device-id/ |
| H A D | acpi.h | 15 __u32 cls; member 30 #define ACPI_DEVICE_CLASS(_cls, _msk) .cls = (_cls), .cls_msk = (_msk),
|
| /linux/drivers/hid/ |
| H A D | hid-multitouch.c | 709 struct mt_class *cls = &td->mtclass; in mt_allocate_report_data() local 737 (cls->quirks & MT_QUIRK_APPLE_TOUCHBAR && in mt_allocate_report_data() 820 struct mt_class *cls = &td->mtclass; in mt_touch_input_mapping() local 853 set_abs(hi->input, code, field, cls->sn_move); in mt_touch_input_mapping() 878 set_abs(hi->input, code, field, cls->sn_move); in mt_touch_input_mapping() 894 if ((cls->name == MT_CLS_WIN_8 || in mt_touch_input_mapping() 895 cls->name == MT_CLS_WIN_8_FORCE_MULTI_INPUT || in mt_touch_input_mapping() 896 cls->name == MT_CLS_WIN_8_FORCE_MULTI_INPUT_NSMU || in mt_touch_input_mapping() 897 cls->name == MT_CLS_WIN_8_DISABLE_WAKEUP || in mt_touch_input_mapping() 898 cls in mt_touch_input_mapping() 1417 struct mt_class *cls = &td->mtclass; mt_touch_input_configured() local 1827 struct mt_class *cls = &td->mtclass; mt_need_to_apply_feature() local [all...] |
| /linux/net/dsa/ |
| H A D | user.c | 1369 struct tc_cls_matchall_offload *cls, in dsa_user_add_cls_matchall_mirred() argument 1372 struct netlink_ext_ack *extack = cls->common.extack; in dsa_user_add_cls_matchall_mirred() 1382 if (cls->common.protocol != htons(ETH_P_ALL)) { in dsa_user_add_cls_matchall_mirred() 1394 if (!flow_action_basic_hw_stats_check(&cls->rule->action, extack)) in dsa_user_add_cls_matchall_mirred() 1397 act = &cls->rule->action.entries[0]; in dsa_user_add_cls_matchall_mirred() 1405 if (cls->common.skip_sw) { in dsa_user_add_cls_matchall_mirred() 1419 if (cls->common.skip_sw) { in dsa_user_add_cls_matchall_mirred() 1437 mall_tc_entry->cookie = cls->cookie; in dsa_user_add_cls_matchall_mirred() 1456 struct tc_cls_matchall_offload *cls, in dsa_user_add_cls_matchall_police() argument 1459 struct netlink_ext_ack *extack = cls->common.extack; in dsa_user_add_cls_matchall_police() [all …]
|
| /linux/drivers/net/ethernet/mediatek/ |
| H A D | mtk_ppe_offload.c | 576 int mtk_flow_offload_cmd(struct mtk_eth *eth, struct flow_cls_offload *cls, in mtk_flow_offload_cmd() argument 582 switch (cls->command) { in mtk_flow_offload_cmd() 584 err = mtk_flow_offload_replace(eth, cls, ppe_index); in mtk_flow_offload_cmd() 587 err = mtk_flow_offload_destroy(eth, cls); in mtk_flow_offload_cmd() 590 err = mtk_flow_offload_stats(eth, cls); in mtk_flow_offload_cmd() 604 struct flow_cls_offload *cls = type_data; in mtk_eth_setup_tc_block_cb() local 618 return mtk_flow_offload_cmd(eth, cls, 0); in mtk_eth_setup_tc_block_cb()
|
| /linux/drivers/net/ethernet/ti/ |
| H A D | am65-cpsw-qos.c | 1025 struct flow_cls_offload *cls, in am65_cpsw_qos_clsflower_add_policer() argument 1028 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in am65_cpsw_qos_clsflower_add_policer() 1066 qos->ale_bc_ratelimit.cookie = cls->cookie; in am65_cpsw_qos_clsflower_add_policer() 1074 qos->ale_mc_ratelimit.cookie = cls->cookie; in am65_cpsw_qos_clsflower_add_policer() 1119 struct flow_cls_offload *cls) in am65_cpsw_qos_configure_clsflower() argument 1121 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in am65_cpsw_qos_configure_clsflower() 1122 struct netlink_ext_ack *extack = cls->common.extack; in am65_cpsw_qos_configure_clsflower() 1133 return am65_cpsw_qos_clsflower_add_policer(port, extack, cls, in am65_cpsw_qos_configure_clsflower() 1144 static int am65_cpsw_qos_delete_clsflower(struct am65_cpsw_port *port, struct flow_cls_offload *cls) in am65_cpsw_qos_delete_clsflower() argument 1148 if (cls->cookie == qos->ale_bc_ratelimit.cookie) { in am65_cpsw_qos_delete_clsflower() [all …]
|