/linux/drivers/base/ |
A D | class.c | 93 if (cls) in class_create_file_ns() 104 if (cls) in class_remove_file_ns() 110 if (cls) in class_get() 112 return cls; in class_get() 117 if (cls) in class_put() 202 class_remove_groups(cls, cls->class_groups); in class_unregister() 209 kfree(cls); in class_create_release() 232 cls = kzalloc(sizeof(*cls), GFP_KERNEL); in __class_create() 233 if (!cls) { in __class_create() 263 if ((cls == NULL) || (IS_ERR(cls))) in class_destroy() [all …]
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
A D | stmmac_tc.c | 33 u32 loc = cls->knode.handle; in tc_find_entry() 66 exts = cls->knode.exts; in tc_fill_actions() 193 ret = tc_fill_entry(priv, cls); in tc_config_knode() 205 tc_unfill_entry(priv, cls); in tc_config_knode() 213 tc_unfill_entry(priv, cls); in tc_delete_knode() 222 switch (cls->command) { in tc_setup_cls_u32() 224 tc_unfill_entry(priv, cls); in tc_setup_cls_u32() 596 cls->common.extack); in tc_add_flow() 609 entry->cookie = cls->cookie; in tc_add_flow() 698 entry->cookie = cls->cookie; in tc_add_vlan_flow() [all …]
|
A D | stmmac_selftests.c | 1362 cls = kzalloc(sizeof(*cls), GFP_KERNEL); in __stmmac_test_l3filt() 1363 if (!cls) { in __stmmac_test_l3filt() 1368 cls->common.chain_index = 0; in __stmmac_test_l3filt() 1370 cls->cookie = dummy_cookie; in __stmmac_test_l3filt() 1387 cls->rule = rule; in __stmmac_test_l3filt() 1415 kfree(cls); in __stmmac_test_l3filt() 1490 cls = kzalloc(sizeof(*cls), GFP_KERNEL); in __stmmac_test_l4filt() 1491 if (!cls) { in __stmmac_test_l4filt() 1498 cls->cookie = dummy_cookie; in __stmmac_test_l4filt() 1516 cls->rule = rule; in __stmmac_test_l4filt() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
A D | cxgb4_tc_u32.c | 46 struct tc_cls_u32_offload *cls, in fill_match_fields() argument 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() 202 fs.tc_prio = cls->common.prio; in cxgb4_config_knode() 203 fs.tc_cookie = cls->knode.handle; in cxgb4_config_knode() [all …]
|
A D | cxgb4_tc_matchall.c | 12 struct tc_cls_matchall_offload *cls) in cxgb4_matchall_egress_validate() argument 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() 126 struct tc_cls_matchall_offload *cls) in cxgb4_matchall_alloc_tc() argument 176 tc_port_matchall->egress.cookie = cls->cookie; in cxgb4_matchall_alloc_tc() 201 struct tc_cls_matchall_offload *cls) in cxgb4_matchall_mirror_alloc() argument 261 struct tc_cls_matchall_offload *cls, in cxgb4_matchall_add_filter() argument 276 false, cls->common.prio); in cxgb4_matchall_add_filter() 289 fs->tc_prio = cls->common.prio; in cxgb4_matchall_add_filter() 290 fs->tc_cookie = cls->cookie; in cxgb4_matchall_add_filter() [all …]
|
A D | cxgb4_tc_flower.h | 135 struct flow_cls_offload *cls); 137 struct flow_cls_offload *cls); 139 struct flow_cls_offload *cls);
|
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);
|
A D | cxgb4_tc_flower.c | 927 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() 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 1070 ch_flower = ch_flower_lookup(adap, cls->cookie); in cxgb4_tc_flower_stats() [all …]
|
/linux/drivers/net/ethernet/freescale/dpaa2/ |
A D | dpaa2-switch-flower.c | 486 struct flow_cls_offload *cls) in dpaa2_switch_cls_flower_replace_acl() argument 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() 629 mirror_entry->cookie = cls->cookie; in dpaa2_switch_cls_flower_replace_mirror() 669 cls->cookie); in dpaa2_switch_cls_flower_destroy() 675 cls->cookie); in dpaa2_switch_cls_flower_destroy() 708 acl_entry->prio = cls->common.prio; in dpaa2_switch_cls_matchall_replace_acl() 709 acl_entry->cookie = cls->cookie; in dpaa2_switch_cls_matchall_replace_acl() 775 mirror_entry->cookie = cls->cookie; in dpaa2_switch_cls_matchall_replace_mirror() 865 cls->cookie); in dpaa2_switch_cls_matchall_destroy() [all …]
|
A D | dpaa2-switch.h | 261 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/scripts/gdb/linux/ |
A D | device.py | 78 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/tools/perf/scripts/python/ |
A D | compaction-times.py | 114 def add_filter(cls, filter): argument 115 cls.fobj = filter 121 head = cls.heads[pid] 124 if cls.fobj != None: 133 head = cls.heads[pid] 142 head = cls.heads[pid] 150 def gen(cls): argument 152 for i in cls.heads: 153 yield cls.heads[i] 156 def str(cls): argument [all …]
|
/linux/drivers/net/dsa/sja1105/ |
A D | sja1105_flower.c | 197 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() 304 struct flow_cls_offload *cls, bool ingress) in sja1105_cls_flower_add() argument 306 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in sja1105_cls_flower_add() 307 struct netlink_ext_ack *extack = cls->common.extack; in sja1105_cls_flower_add() 310 unsigned long cookie = cls->cookie; in sja1105_cls_flower_add() 317 rc = sja1105_flower_parse_key(priv, extack, cls, &key); in sja1105_cls_flower_add() 423 struct flow_cls_offload *cls, bool ingress) in sja1105_cls_flower_del() argument 463 struct flow_cls_offload *cls, bool ingress) in sja1105_cls_flower_stats() argument 475 rc = sja1105_vl_stats(priv, port, rule, &cls->stats, in sja1105_cls_flower_stats() [all …]
|
/linux/drivers/acpi/acpica/ |
A D | utids.c | 341 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()
|
A D | nsxfname.c | 234 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/tools/testing/selftests/bpf/progs/ |
A D | test_spin_lock.c | 55 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/include/linux/ |
A D | transport_class.h | 27 #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/net/dsa/ |
A D | slave.c | 1025 cls->common.extack)) in dsa_slave_add_cls_matchall_mirred() 1028 act = &cls->rule->action.entries[0]; in dsa_slave_add_cls_matchall_mirred() 1040 mall_tc_entry->cookie = cls->cookie; in dsa_slave_add_cls_matchall_mirred() 1087 cls->common.extack)) in dsa_slave_add_cls_matchall_police() 1098 act = &cls->rule->action.entries[0]; in dsa_slave_add_cls_matchall_police() 1104 mall_tc_entry->cookie = cls->cookie; in dsa_slave_add_cls_matchall_police() 1172 if (cls->common.chain_index) in dsa_slave_setup_tc_cls_matchall() 1175 switch (cls->command) { in dsa_slave_setup_tc_cls_matchall() 1187 struct flow_cls_offload *cls, in dsa_slave_add_cls_flower() argument 1229 struct flow_cls_offload *cls, in dsa_slave_setup_tc_cls_flower() argument [all …]
|
/linux/arch/arm64/mm/ |
A D | dma-mapping.c | 43 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/include/linux/device/ |
A D | class.h | 101 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/drivers/net/ethernet/marvell/octeontx2/nic/ |
A D | otx2_tc.c | 194 struct tc_cls_matchall_offload *cls) in otx2_tc_egress_matchall_install() argument 196 struct netlink_ext_ack *extack = cls->common.extack; in otx2_tc_egress_matchall_install() 197 struct flow_action *actions = &cls->rule->action; in otx2_tc_egress_matchall_install() 212 entry = &cls->rule->action.entries[0]; in otx2_tc_egress_matchall_install() 237 struct tc_cls_matchall_offload *cls) in otx2_tc_egress_matchall_delete() argument 239 struct netlink_ext_ack *extack = cls->common.extack; in otx2_tc_egress_matchall_delete() 856 struct tc_cls_matchall_offload *cls) in otx2_tc_ingress_matchall_install() argument 858 struct netlink_ext_ack *extack = cls->common.extack; in otx2_tc_ingress_matchall_install() 859 struct flow_action *actions = &cls->rule->action; in otx2_tc_ingress_matchall_install() 874 entry = &cls->rule->action.entries[0]; in otx2_tc_ingress_matchall_install() [all …]
|
/linux/drivers/ata/ |
A D | sata_sil.c | 655 u8 cls; in sil_init_controller() local 660 cls = sil_get_device_cache_line(pdev); in sil_init_controller() 661 if (cls) { in sil_init_controller() 662 cls >>= 3; in sil_init_controller() 663 cls++; /* cls = (line_size/8)+1 */ in sil_init_controller() 665 writew(cls << 8 | cls, in sil_init_controller()
|
/linux/drivers/net/ethernet/freescale/enetc/ |
A D | enetc_cbdr.c | 137 cbd.cls = 1; in enetc_clear_mac_flt_entry() 154 cbd.cls = 1; in enetc_set_mac_flt_entry() 182 cbd.cls = 4; in enetc_set_fs_entry() 240 cbd.cls = 3; in enetc_cmd_rss_table()
|
/linux/drivers/hid/ |
A D | hid-multitouch.c | 710 struct mt_class *cls = &td->mtclass; in mt_touch_input_mapping() local 784 if ((cls->name == MT_CLS_WIN_8 || in mt_touch_input_mapping() 812 cls->sn_width); in mt_touch_input_mapping() 818 cls->sn_height); in mt_touch_input_mapping() 833 cls->sn_pressure); in mt_touch_input_mapping() 854 cls->sn_move ? in mt_touch_input_mapping() 1267 struct mt_class *cls = &td->mtclass; in mt_touch_input_configured() local 1278 if (cls->is_indirect) in mt_touch_input_configured() 1438 struct mt_class *cls = &td->mtclass; in mt_need_to_apply_feature() local 1474 if (cls->maxcontacts) { in mt_need_to_apply_feature() [all …]
|
/linux/drivers/net/ethernet/mediatek/ |
A D | mtk_ppe_offload.c | 404 struct flow_cls_offload *cls = type_data; in mtk_eth_setup_tc_block_cb() local 417 switch (cls->command) { in mtk_eth_setup_tc_block_cb() 419 err = mtk_flow_offload_replace(eth, cls); in mtk_eth_setup_tc_block_cb() 422 err = mtk_flow_offload_destroy(eth, cls); in mtk_eth_setup_tc_block_cb() 425 err = mtk_flow_offload_stats(eth, cls); in mtk_eth_setup_tc_block_cb()
|