Home
last modified time | relevance | path

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

12

/drivers/base/
A Dclass.c186 if (cls->ns_type && !cls->namespace) { in class_register()
191 if (!cls->ns_type && cls->namespace) { in class_register()
251 kfree(cls); in class_create_release()
271 cls = kzalloc(sizeof(*cls), GFP_KERNEL); in class_create()
272 if (!cls) { in class_create()
284 return cls; in class_create()
287 kfree(cls); in class_create()
577 if (!cls) in class_compat_register()
581 kfree(cls); in class_compat_register()
584 return cls; in class_compat_register()
[all …]
/drivers/net/ethernet/chelsio/cxgb4/
A Dcxgb4_tc_u32.c46 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 Dcxgb4_tc_matchall.c52 struct tc_cls_matchall_offload *cls) in cxgb4_matchall_egress_validate() argument
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
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
300 struct tc_cls_matchall_offload *cls, in cxgb4_matchall_add_filter() argument
315 false, cls->common.prio); in cxgb4_matchall_add_filter()
328 fs->tc_prio = cls->common.prio; in cxgb4_matchall_add_filter()
329 fs->tc_cookie = cls->cookie; in cxgb4_matchall_add_filter()
348 struct tc_cls_matchall_offload *cls) in cxgb4_matchall_alloc_filter() argument
[all …]
A Dcxgb4_tc_flower.h135 struct flow_cls_offload *cls);
137 struct flow_cls_offload *cls);
139 struct flow_cls_offload *cls);
A Dcxgb4_tc_flower.c926 struct flow_cls_offload *cls) in cxgb4_tc_flower_replace() argument
928 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in cxgb4_tc_flower_replace()
929 struct netlink_ext_ack *extack = cls->common.extack; in cxgb4_tc_flower_replace()
943 fs->tc_cookie = cls->cookie; in cxgb4_tc_flower_replace()
950 ch_flower->tc_flower_cookie = cls->cookie; in cxgb4_tc_flower_replace()
960 cxgb4_tc_flower_hash_prio_del(adap, cls->common.prio); in cxgb4_tc_flower_replace()
989 struct flow_cls_offload *cls) in cxgb4_tc_flower_destroy() argument
995 ch_flower = ch_flower_lookup(adap, cls->cookie); in cxgb4_tc_flower_destroy()
1060 struct flow_cls_offload *cls) in cxgb4_tc_flower_stats() argument
1069 ch_flower = ch_flower_lookup(adap, cls->cookie); in cxgb4_tc_flower_stats()
[all …]
A 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);
/drivers/net/ethernet/stmicro/stmmac/
A Dstmmac_tc.c33 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()
593 cls->common.extack); in tc_add_flow()
606 entry->cookie = cls->cookie; in tc_add_flow()
695 entry->cookie = cls->cookie; in tc_add_vlan_flow()
[all …]
A Dstmmac_selftests.c1361 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()
1369 cls->cookie = dummy_cookie; in __stmmac_test_l3filt()
1386 cls->rule = rule; in __stmmac_test_l3filt()
1414 kfree(cls); in __stmmac_test_l3filt()
1489 cls = kzalloc(sizeof(*cls), GFP_KERNEL); in __stmmac_test_l4filt()
1490 if (!cls) { in __stmmac_test_l4filt()
1497 cls->cookie = dummy_cookie; in __stmmac_test_l4filt()
1515 cls->rule = rule; in __stmmac_test_l4filt()
[all …]
/drivers/net/ethernet/freescale/dpaa2/
A Ddpaa2-switch-flower.c494 struct flow_cls_offload *cls) in dpaa2_switch_cls_flower_replace_acl() argument
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()
642 mirror_entry->cookie = cls->cookie; in dpaa2_switch_cls_flower_replace_mirror()
682 cls->cookie); in dpaa2_switch_cls_flower_destroy()
688 cls->cookie); in dpaa2_switch_cls_flower_destroy()
721 acl_entry->prio = cls->common.prio; in dpaa2_switch_cls_matchall_replace_acl()
722 acl_entry->cookie = cls->cookie; in dpaa2_switch_cls_matchall_replace_acl()
788 mirror_entry->cookie = cls->cookie; in dpaa2_switch_cls_matchall_replace_mirror()
878 cls->cookie); in dpaa2_switch_cls_matchall_destroy()
[all …]
A Ddpaa2-switch.h258 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);
/drivers/net/dsa/microchip/
A Dksz9477_tc_flower.c159 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 …]
A Dksz9477.h67 struct flow_cls_offload *cls, bool ingress);
69 struct flow_cls_offload *cls, bool ingress);
/drivers/gpu/drm/xe/
A Dxe_configfs.c99 const char *cls; member
108 { .cls = "rcs", .mask = XE_HW_ENGINE_RCS_MASK },
109 { .cls = "bcs", .mask = XE_HW_ENGINE_BCS_MASK },
110 { .cls = "vcs", .mask = XE_HW_ENGINE_VCS_MASK },
111 { .cls = "vecs", .mask = XE_HW_ENGINE_VECS_MASK },
112 { .cls = "ccs", .mask = XE_HW_ENGINE_CCS_MASK },
113 { .cls = "gsccs", .mask = XE_HW_ENGINE_GSCCS_MASK },
154 p += sprintf(p, "%s*\n", engine_info[i].cls); in engines_allowed_show()
161 p += sprintf(p, "%s%u\n", engine_info[i].cls, in engines_allowed_show()
175 if (!str_has_prefix(pattern, engine_info[i].cls)) in lookup_engine_mask()
[all …]
/drivers/net/dsa/sja1105/
A 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()
347 struct flow_cls_offload *cls, bool ingress) in sja1105_cls_flower_add() argument
349 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in sja1105_cls_flower_add()
350 struct netlink_ext_ack *extack = cls->common.extack; in sja1105_cls_flower_add()
353 unsigned long cookie = cls->cookie; in sja1105_cls_flower_add()
360 rc = sja1105_flower_parse_key(priv, extack, cls, &key); in sja1105_cls_flower_add()
463 struct flow_cls_offload *cls, bool ingress) in sja1105_cls_flower_del() argument
503 struct flow_cls_offload *cls, bool ingress) in sja1105_cls_flower_stats() argument
515 rc = sja1105_vl_stats(priv, port, rule, &cls->stats, in sja1105_cls_flower_stats()
[all …]
A Dsja1105.h416 struct flow_cls_offload *cls, bool ingress);
418 struct flow_cls_offload *cls, bool ingress);
420 struct flow_cls_offload *cls, bool ingress);
/drivers/acpi/acpica/
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()
A 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()
/drivers/net/ethernet/meta/fbnic/
A Dfbnic_mac.c12 unsigned int cls, unsigned int readrq) in fbnic_init_readrq() argument
22 FIELD_PREP(FBNIC_QM_TNI_TDF_CTL_CLS, cls); in fbnic_init_readrq()
28 unsigned int cls, unsigned int mps) in fbnic_init_mps() argument
36 FIELD_PREP(FBNIC_QM_TNI_TCM_CTL_CLS, cls); in fbnic_init_mps()
44 int readrq, mps, cls; in fbnic_mac_init_axi() local
60 cls = ilog2(L1_CACHE_BYTES) - 6; in fbnic_mac_init_axi()
61 cls = clamp(cls, 0, 3); in fbnic_mac_init_axi()
65 fbnic_init_mps(fbd, FBNIC_QM_TNI_TCM_CTL, cls, mps); in fbnic_mac_init_axi()
77 FIELD_PREP(FBNIC_QM_TNI_TDE_CTL_CLS, cls)); in fbnic_mac_init_axi()
80 fbnic_init_mps(fbd, FBNIC_QM_RNI_RDE_CTL, cls, mps); in fbnic_mac_init_axi()
[all …]
/drivers/hid/
A Dhid-multitouch.c636 struct mt_class *cls = &td->mtclass; in mt_allocate_report_data() local
747 struct mt_class *cls = &td->mtclass; in mt_touch_input_mapping() local
821 if ((cls->name == MT_CLS_WIN_8 || in mt_touch_input_mapping()
869 cls->sn_width); in mt_touch_input_mapping()
875 cls->sn_height); in mt_touch_input_mapping()
890 cls->sn_pressure); in mt_touch_input_mapping()
911 cls->sn_move ? in mt_touch_input_mapping()
1349 if (cls->quirks & MT_QUIRK_APPLE_TOUCHBAR && cls->maxcontacts) in mt_touch_input_configured()
1366 if (cls->is_indirect) in mt_touch_input_configured()
1585 if (cls->maxcontacts) { in mt_need_to_apply_feature()
[all …]
/drivers/net/ethernet/mediatek/
A Dmtk_ppe_offload.c546 int mtk_flow_offload_cmd(struct mtk_eth *eth, struct flow_cls_offload *cls, in mtk_flow_offload_cmd() argument
552 switch (cls->command) { in mtk_flow_offload_cmd()
554 err = mtk_flow_offload_replace(eth, cls, ppe_index); in mtk_flow_offload_cmd()
557 err = mtk_flow_offload_destroy(eth, cls); in mtk_flow_offload_cmd()
560 err = mtk_flow_offload_stats(eth, cls); in mtk_flow_offload_cmd()
574 struct flow_cls_offload *cls = type_data; in mtk_eth_setup_tc_block_cb() local
588 return mtk_flow_offload_cmd(eth, cls, 0); in mtk_eth_setup_tc_block_cb()
/drivers/ata/
A 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()
/drivers/net/ethernet/freescale/enetc/
A Denetc_cbdr.c178 cbd.cls = 1; in enetc_clear_mac_flt_entry()
196 cbd.cls = 1; in enetc_set_mac_flt_entry()
224 cbd.cls = 4; in enetc_set_fs_entry()
269 cbd.cls = 3; in enetc_cmd_rss_table()
/drivers/net/ethernet/ti/
A Dam65-cpsw-qos.c1002 struct flow_cls_offload *cls, in am65_cpsw_qos_clsflower_add_policer() argument
1005 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in am65_cpsw_qos_clsflower_add_policer()
1043 qos->ale_bc_ratelimit.cookie = cls->cookie; in am65_cpsw_qos_clsflower_add_policer()
1051 qos->ale_mc_ratelimit.cookie = cls->cookie; in am65_cpsw_qos_clsflower_add_policer()
1096 struct flow_cls_offload *cls) in am65_cpsw_qos_configure_clsflower() argument
1098 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in am65_cpsw_qos_configure_clsflower()
1099 struct netlink_ext_ack *extack = cls->common.extack; in am65_cpsw_qos_configure_clsflower()
1110 return am65_cpsw_qos_clsflower_add_policer(port, extack, cls, in am65_cpsw_qos_configure_clsflower()
1121 static int am65_cpsw_qos_delete_clsflower(struct am65_cpsw_port *port, struct flow_cls_offload *cls) in am65_cpsw_qos_delete_clsflower() argument
1125 if (cls->cookie == qos->ale_bc_ratelimit.cookie) { in am65_cpsw_qos_delete_clsflower()
[all …]
A Dcpsw_priv.c1368 struct flow_cls_offload *cls, in cpsw_qos_clsflower_add_policer() argument
1371 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in cpsw_qos_clsflower_add_policer()
1411 priv->ale_bc_ratelimit.cookie = cls->cookie; in cpsw_qos_clsflower_add_policer()
1419 priv->ale_mc_ratelimit.cookie = cls->cookie; in cpsw_qos_clsflower_add_policer()
1463 static int cpsw_qos_configure_clsflower(struct cpsw_priv *priv, struct flow_cls_offload *cls) in cpsw_qos_configure_clsflower() argument
1465 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in cpsw_qos_configure_clsflower()
1466 struct netlink_ext_ack *extack = cls->common.extack; in cpsw_qos_configure_clsflower()
1477 return cpsw_qos_clsflower_add_policer(priv, extack, cls, in cpsw_qos_configure_clsflower()
1487 static int cpsw_qos_delete_clsflower(struct cpsw_priv *priv, struct flow_cls_offload *cls) in cpsw_qos_delete_clsflower() argument
1491 if (cls->cookie == priv->ale_bc_ratelimit.cookie) { in cpsw_qos_delete_clsflower()
[all …]
/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_tc.c234 struct tc_cls_matchall_offload *cls) in otx2_tc_egress_matchall_install() argument
236 struct netlink_ext_ack *extack = cls->common.extack; in otx2_tc_egress_matchall_install()
237 struct flow_action *actions = &cls->rule->action; in otx2_tc_egress_matchall_install()
251 entry = &cls->rule->action.entries[0]; in otx2_tc_egress_matchall_install()
278 struct tc_cls_matchall_offload *cls) in otx2_tc_egress_matchall_delete() argument
280 struct netlink_ext_ack *extack = cls->common.extack; in otx2_tc_egress_matchall_delete()
1427 struct tc_cls_matchall_offload *cls) in otx2_tc_ingress_matchall_install() argument
1429 struct netlink_ext_ack *extack = cls->common.extack; in otx2_tc_ingress_matchall_install()
1430 struct flow_action *actions = &cls->rule->action; in otx2_tc_ingress_matchall_install()
1445 entry = &cls->rule->action.entries[0]; in otx2_tc_ingress_matchall_install()
[all …]

Completed in 65 milliseconds

12