Home
last modified time | relevance | path

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

123

/Linux-v5.4/drivers/base/
Dclass.c87 int class_create_file_ns(struct class *cls, const struct class_attribute *attr, in class_create_file_ns() argument
92 if (cls) in class_create_file_ns()
93 error = sysfs_create_file_ns(&cls->p->subsys.kobj, in class_create_file_ns()
100 void class_remove_file_ns(struct class *cls, const struct class_attribute *attr, in class_remove_file_ns() argument
103 if (cls) in class_remove_file_ns()
104 sysfs_remove_file_ns(&cls->p->subsys.kobj, &attr->attr, ns); in class_remove_file_ns()
107 static struct class *class_get(struct class *cls) in class_get() argument
109 if (cls) in class_get()
110 kset_get(&cls->p->subsys); in class_get()
111 return cls; in class_get()
[all …]
/Linux-v5.4/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_tc.c29 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 …]
Dstmmac_selftests.c1289 struct flow_cls_offload *cls; in __stmmac_test_l3filt() local
1310 cls = kzalloc(sizeof(*cls), GFP_KERNEL); in __stmmac_test_l3filt()
1311 if (!cls) { in __stmmac_test_l3filt()
1316 cls->common.chain_index = 0; in __stmmac_test_l3filt()
1317 cls->command = FLOW_CLS_REPLACE; in __stmmac_test_l3filt()
1318 cls->cookie = dummy_cookie; in __stmmac_test_l3filt()
1335 cls->rule = rule; in __stmmac_test_l3filt()
1349 ret = stmmac_tc_setup_cls(priv, priv, cls); in __stmmac_test_l3filt()
1357 cls->command = FLOW_CLS_DESTROY; in __stmmac_test_l3filt()
1358 stmmac_tc_setup_cls(priv, priv, cls); in __stmmac_test_l3filt()
[all …]
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_u32.c45 struct tc_cls_u32_offload *cls, in fill_match_fields() argument
54 for (i = 0; i < cls->knode.sel->nkeys; i++) { in fill_match_fields()
55 off = cls->knode.sel->keys[i].off; in fill_match_fields()
56 val = cls->knode.sel->keys[i].val; in fill_match_fields()
57 mask = cls->knode.sel->keys[i].mask; in fill_match_fields()
61 if (!cls->knode.sel->keys[i].offmask) in fill_match_fields()
65 if (cls->knode.sel->keys[i].offmask) in fill_match_fields()
91 struct tc_cls_u32_offload *cls) in fill_action_fields() argument
98 exts = cls->knode.exts; in fill_action_fields()
148 int cxgb4_config_knode(struct net_device *dev, struct tc_cls_u32_offload *cls) in cxgb4_config_knode() argument
[all …]
Dcxgb4_tc_flower.c84 struct flow_cls_offload *cls, in cxgb4_process_flow_match() argument
87 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in cxgb4_process_flow_match()
227 struct flow_cls_offload *cls) in cxgb4_validate_flow_match() argument
229 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in cxgb4_validate_flow_match()
382 struct flow_cls_offload *cls, in cxgb4_process_flow_actions() argument
385 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in cxgb4_process_flow_actions()
548 struct flow_cls_offload *cls) in cxgb4_validate_flow_actions() argument
550 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in cxgb4_validate_flow_actions()
637 struct flow_cls_offload *cls) in cxgb4_tc_flower_replace() argument
646 if (cxgb4_validate_flow_actions(dev, cls)) in cxgb4_tc_flower_replace()
[all …]
Dcxgb4_tc_flower.h112 struct flow_cls_offload *cls);
114 struct flow_cls_offload *cls);
116 struct flow_cls_offload *cls);
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);
/Linux-v5.4/fs/cifs/
Dasn1.c157 unsigned int *cls, unsigned int *con, unsigned int *tag) in asn1_id_decode() argument
164 *cls = (ch & 0xC0) >> 6; in asn1_id_decode()
214 unsigned int *cls, unsigned int *con, unsigned int *tag) in asn1_header_decode() argument
219 if (!asn1_id_decode(ctx, cls, con, tag)) in asn1_header_decode()
490 unsigned int cls, con, tag, oidlen, rc; in decode_negTokenInit() local
497 if (asn1_header_decode(&ctx, &end, &cls, &con, &tag) == 0) { in decode_negTokenInit()
500 } else if ((cls != ASN1_APL) || (con != ASN1_CON) in decode_negTokenInit()
502 cifs_dbg(FYI, "cls = %d con = %d tag = %d\n", cls, con, tag); in decode_negTokenInit()
507 rc = asn1_header_decode(&ctx, &end, &cls, &con, &tag); in decode_negTokenInit()
510 (cls == ASN1_UNI)) { in decode_negTokenInit()
[all …]
/Linux-v5.4/scripts/gdb/linux/
Ddevice.py78 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-v5.4/tools/perf/scripts/python/
Dcompaction-times.py114 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-v5.4/tools/testing/selftests/bpf/progs/
Dtest_spin_lock.c55 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-v5.4/drivers/acpi/acpica/
Dutids.c344 struct acpi_pnp_device_id *cls; in acpi_ut_execute_CLS() local
380 cls = in acpi_ut_execute_CLS()
383 if (!cls) { in acpi_ut_execute_CLS()
390 cls->string = in acpi_ut_execute_CLS()
391 ACPI_ADD_PTR(char, cls, sizeof(struct acpi_pnp_device_id)); in acpi_ut_execute_CLS()
395 acpi_ex_pci_cls_to_string(cls->string, class_code); in acpi_ut_execute_CLS()
396 cls->length = length; in acpi_ut_execute_CLS()
397 *return_id = cls; in acpi_ut_execute_CLS()
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()
/Linux-v5.4/include/linux/
Dtransport_class.h27 #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 = { \
Ddevice.h620 void class_compat_unregister(struct class_compat *cls);
621 int class_compat_create_link(struct class_compat *cls, struct device *dev,
623 void class_compat_remove_link(struct class_compat *cls, struct device *dev,
774 extern void class_destroy(struct class *cls);
1572 struct device *device_create_vargs(struct class *cls, struct device *parent,
1576 struct device *device_create(struct class *cls, struct device *parent,
1580 struct device *device_create_with_groups(struct class *cls,
1584 extern void device_destroy(struct class *cls, dev_t devt);
/Linux-v5.4/arch/arm64/mm/
Ddma-mapping.c43 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-v5.4/drivers/net/ethernet/freescale/enetc/
Denetc_cbdr.c80 cbd.cls = 1; in enetc_clear_mac_flt_entry()
97 cbd.cls = 1; in enetc_set_mac_flt_entry()
124 cbd.cls = 4; in enetc_set_fs_entry()
181 cbd.cls = 3; in enetc_cmd_rss_table()
/Linux-v5.4/drivers/ata/
Dsata_sil.c653 u8 cls; in sil_init_controller() local
658 cls = sil_get_device_cache_line(pdev); in sil_init_controller()
659 if (cls) { in sil_init_controller()
660 cls >>= 3; in sil_init_controller()
661 cls++; /* cls = (line_size/8)+1 */ in sil_init_controller()
663 writew(cls << 8 | cls, in sil_init_controller()
Dsata_vsc.c334 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()
/Linux-v5.4/drivers/hid/
Dhid-multitouch.c683 struct mt_class *cls = &td->mtclass; in mt_touch_input_mapping() local
716 set_abs(hi->input, code, field, cls->sn_move); in mt_touch_input_mapping()
741 set_abs(hi->input, code, field, cls->sn_move); in mt_touch_input_mapping()
757 if ((cls->name == MT_CLS_WIN_8 || in mt_touch_input_mapping()
758 cls->name == MT_CLS_WIN_8_DUAL) && in mt_touch_input_mapping()
784 cls->sn_width); in mt_touch_input_mapping()
790 cls->sn_height); in mt_touch_input_mapping()
805 cls->sn_pressure); in mt_touch_input_mapping()
826 cls->sn_move ? in mt_touch_input_mapping()
827 field->logical_maximum / cls->sn_move : 0, 0); in mt_touch_input_mapping()
[all …]
/Linux-v5.4/net/dsa/
Dslave.c866 struct tc_cls_matchall_offload *cls, in dsa_slave_add_cls_matchall() argument
872 __be16 protocol = cls->common.protocol; in dsa_slave_add_cls_matchall()
881 if (!flow_offload_has_one_action(&cls->rule->action)) in dsa_slave_add_cls_matchall()
884 act = &cls->rule->action.entries[0]; in dsa_slave_add_cls_matchall()
899 mall_tc_entry->cookie = cls->cookie; in dsa_slave_add_cls_matchall()
921 struct tc_cls_matchall_offload *cls) in dsa_slave_del_cls_matchall() argument
930 mall_tc_entry = dsa_slave_mall_tc_entry_find(dev, cls->cookie); in dsa_slave_del_cls_matchall()
948 struct tc_cls_matchall_offload *cls, in dsa_slave_setup_tc_cls_matchall() argument
951 if (cls->common.chain_index) in dsa_slave_setup_tc_cls_matchall()
954 switch (cls->command) { in dsa_slave_setup_tc_cls_matchall()
[all …]
/Linux-v5.4/tools/testing/selftests/bpf/
Dtest_offload.py536 chain=None, cls="", params="",
548 cls=cls, params=params),
555 cls = "bpf " + bpf
567 return self.cls_filter_op(op=op, prio=prio, handle=handle, cls=cls,
678 res = sim.cls_filter_op(op="delete", prio=1, handle=1, cls="bpf",
871 sim.cls_filter_op(op="delete", prio=1, handle=1, cls="bpf")
875 sim.cls_filter_op(op="delete", prio=1, handle=1, cls="bpf")
879 sim.cls_filter_op(op="delete", prio=1, handle=1, cls="bpf")
890 sim.cls_filter_op(op="delete", prio=1, handle=1, cls="bpf")
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/
DMakefile68 abm/cls.o \
/Linux-v5.4/net/ceph/
Dosd_client.c273 osd_data = osd_req_op_data(osd_req, which, cls, request_info); in osd_req_op_cls_request_info_pagelist()
283 osd_data = osd_req_op_data(osd_req, which, cls, request_data); in osd_req_op_cls_request_data_pagelist()
285 osd_req->r_ops[which].cls.indata_len += pagelist->length; in osd_req_op_cls_request_data_pagelist()
296 osd_data = osd_req_op_data(osd_req, which, cls, request_data); in osd_req_op_cls_request_data_pages()
299 osd_req->r_ops[which].cls.indata_len += length; in osd_req_op_cls_request_data_pages()
315 osd_data = osd_req_op_data(osd_req, which, cls, request_data); in osd_req_op_cls_request_data_bvecs()
317 osd_req->r_ops[which].cls.indata_len += bytes; in osd_req_op_cls_request_data_bvecs()
328 osd_data = osd_req_op_data(osd_req, which, cls, response_data); in osd_req_op_cls_response_data_pages()
384 ceph_osd_data_release(&op->cls.request_info); in osd_req_op_data_release()
385 ceph_osd_data_release(&op->cls.request_data); in osd_req_op_data_release()
[all …]
/Linux-v5.4/Documentation/driver-api/driver-model/
Dclass.rst45 int devclass_register(struct device_class * cls);
46 void devclass_unregister(struct device_class * cls);

123