/drivers/base/ |
D | class.c | 88 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() [all …]
|
/drivers/net/ethernet/stmicro/stmmac/ |
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 …]
|
D | stmmac_selftests.c | 1337 struct flow_cls_offload *cls; in __stmmac_test_l3filt() local 1361 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() 1368 cls->command = FLOW_CLS_REPLACE; in __stmmac_test_l3filt() 1369 cls->cookie = dummy_cookie; in __stmmac_test_l3filt() 1386 cls->rule = rule; in __stmmac_test_l3filt() 1401 ret = stmmac_tc_setup_cls(priv, priv, cls); in __stmmac_test_l3filt() 1409 cls->command = FLOW_CLS_DESTROY; in __stmmac_test_l3filt() 1410 stmmac_tc_setup_cls(priv, priv, cls); in __stmmac_test_l3filt() [all …]
|
/drivers/net/ethernet/chelsio/cxgb4/ |
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 …]
|
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 139 struct netlink_ext_ack *extack = cls->common.extack; in cxgb4_matchall_alloc_tc() 150 flow_action_for_each(i, entry, &cls->rule->action) in cxgb4_matchall_alloc_tc() 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 203 struct netlink_ext_ack *extack = cls->common.extack; in cxgb4_matchall_mirror_alloc() 212 flow_action_for_each(i, act, &cls->rule->action) { in cxgb4_matchall_mirror_alloc() [all …]
|
D | cxgb4_tc_flower.h | 135 struct flow_cls_offload *cls); 137 struct flow_cls_offload *cls); 139 struct flow_cls_offload *cls);
|
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);
|
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() 946 ret = cxgb4_flow_rule_replace(dev, rule, cls->common.prio, extack, fs, 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 [all …]
|
/drivers/net/ethernet/freescale/dpaa2/ |
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() 491 struct flow_cls_offload *cls) in dpaa2_switch_cls_flower_replace_acl() argument 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 [all …]
|
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);
|
/drivers/net/dsa/sja1105/ |
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 426 struct sja1105_rule *rule = sja1105_rule_find(priv, cls->cookie); in sja1105_cls_flower_del() 434 return sja1105_vl_delete(priv, port, rule, cls->common.extack); in sja1105_cls_flower_del() [all …]
|
D | sja1105.h | 387 struct flow_cls_offload *cls, bool ingress); 389 struct flow_cls_offload *cls, bool ingress); 391 struct flow_cls_offload *cls, bool ingress);
|
/drivers/acpi/acpica/ |
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()
|
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()
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_tc.c | 228 struct tc_cls_matchall_offload *cls) in otx2_tc_egress_matchall_install() argument 230 struct netlink_ext_ack *extack = cls->common.extack; in otx2_tc_egress_matchall_install() 231 struct flow_action *actions = &cls->rule->action; in otx2_tc_egress_matchall_install() 246 entry = &cls->rule->action.entries[0]; in otx2_tc_egress_matchall_install() 271 struct tc_cls_matchall_offload *cls) in otx2_tc_egress_matchall_delete() argument 273 struct netlink_ext_ack *extack = cls->common.extack; in otx2_tc_egress_matchall_delete() 911 struct tc_cls_matchall_offload *cls) in otx2_tc_ingress_matchall_install() argument 913 struct netlink_ext_ack *extack = cls->common.extack; in otx2_tc_ingress_matchall_install() 914 struct flow_action *actions = &cls->rule->action; in otx2_tc_ingress_matchall_install() 929 entry = &cls->rule->action.entries[0]; in otx2_tc_ingress_matchall_install() [all …]
|
/drivers/hid/ |
D | hid-multitouch.c | 721 struct mt_class *cls = &td->mtclass; in mt_touch_input_mapping() local 754 set_abs(hi->input, code, field, cls->sn_move); in mt_touch_input_mapping() 779 set_abs(hi->input, code, field, cls->sn_move); in mt_touch_input_mapping() 795 if ((cls->name == MT_CLS_WIN_8 || in mt_touch_input_mapping() 796 cls->name == MT_CLS_WIN_8_FORCE_MULTI_INPUT || in mt_touch_input_mapping() 797 cls->name == MT_CLS_WIN_8_FORCE_MULTI_INPUT_NSMU || in mt_touch_input_mapping() 798 cls->name == MT_CLS_WIN_8_DISABLE_WAKEUP) && in mt_touch_input_mapping() 824 cls->sn_width); in mt_touch_input_mapping() 830 cls->sn_height); in mt_touch_input_mapping() 845 cls->sn_pressure); in mt_touch_input_mapping() [all …]
|
/drivers/ata/ |
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()
|
D | sata_vsc.c | 334 u8 cls; in vsc_sata_init_one() local 382 pci_read_config_byte(pdev, PCI_CACHE_LINE_SIZE, &cls); in vsc_sata_init_one() 383 if (cls == 0x00) in vsc_sata_init_one()
|
/drivers/net/ethernet/freescale/enetc/ |
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()
|
D | enetc_qos.c | 125 cbd.cls = BDCR_CMD_PORT_GCL; in enetc_setup_taprio() 491 cbd.cls = BDCR_CMD_STREAM_IDENTIFY; in enetc_streamid_hw_set() 533 cbd.cls = BDCR_CMD_STREAM_IDENTIFY; in enetc_streamid_hw_set() 590 cbd.cls = BDCR_CMD_STREAM_FILTER; in enetc_streamfilter_hw_set() 647 cbd.cls = BDCR_CMD_STREAM_FILTER; in enetc_streamcounter_hw_get() 741 cbd.cls = BDCR_CMD_STREAM_GCL; in enetc_streamgate_hw_set() 775 cbd.cls = BDCR_CMD_STREAM_GCL; in enetc_streamgate_hw_set() 866 cbd.cls = BDCR_CMD_FLOW_METER; in enetc_flowmeter_hw_set()
|
/drivers/net/ethernet/mediatek/ |
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()
|
/drivers/media/platform/ti-vpe/ |
D | vpdma_priv.h | 474 static inline u32 cfd_pkt_payload_len(bool direct, int cls, int dest, in cfd_pkt_payload_len() argument 479 (cls << CFD_CLASS_SHFT) | in cfd_pkt_payload_len()
|
/drivers/net/ethernet/netronome/nfp/ |
D | Makefile | 69 abm/cls.o \
|
/drivers/acpi/ |
D | bus.c | 806 if (!id->cls) in __acpi_match_device_cls() 816 sprintf(buf, "%02x", (id->cls >> byte_shift) & msk); in __acpi_match_device_cls() 842 for (id = acpi_ids; id->id[0] || id->cls; id++) { in __acpi_match_device() 845 if (id->cls && __acpi_match_device_cls(id, hwid)) in __acpi_match_device()
|
/drivers/net/dsa/ocelot/ |
D | felix.c | 1443 struct flow_cls_offload *cls, bool ingress) in felix_cls_flower_add() argument 1447 return ocelot_cls_flower_replace(ocelot, port, cls, ingress); in felix_cls_flower_add() 1451 struct flow_cls_offload *cls, bool ingress) in felix_cls_flower_del() argument 1455 return ocelot_cls_flower_destroy(ocelot, port, cls, ingress); in felix_cls_flower_del() 1459 struct flow_cls_offload *cls, bool ingress) in felix_cls_flower_stats() argument 1463 return ocelot_cls_flower_stats(ocelot, port, cls, ingress); in felix_cls_flower_stats()
|