Home
last modified time | relevance | path

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

12

/Linux-v4.19/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-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_flower.c83 struct tc_cls_flower_offload *cls, in cxgb4_process_flow_match() argument
88 if (dissector_uses_key(cls->dissector, FLOW_DISSECTOR_KEY_CONTROL)) { in cxgb4_process_flow_match()
90 skb_flow_dissector_target(cls->dissector, in cxgb4_process_flow_match()
92 cls->key); in cxgb4_process_flow_match()
97 if (dissector_uses_key(cls->dissector, FLOW_DISSECTOR_KEY_BASIC)) { in cxgb4_process_flow_match()
99 skb_flow_dissector_target(cls->dissector, in cxgb4_process_flow_match()
101 cls->key); in cxgb4_process_flow_match()
103 skb_flow_dissector_target(cls->dissector, in cxgb4_process_flow_match()
105 cls->mask); in cxgb4_process_flow_match()
125 skb_flow_dissector_target(cls->dissector, in cxgb4_process_flow_match()
[all …]
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.h112 struct tc_cls_flower_offload *cls);
114 struct tc_cls_flower_offload *cls);
116 struct tc_cls_flower_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-v4.19/fs/cifs/
Dasn1.c168 unsigned int *cls, unsigned int *con, unsigned int *tag) in asn1_id_decode() argument
175 *cls = (ch & 0xC0) >> 6; in asn1_id_decode()
225 unsigned int *cls, unsigned int *con, unsigned int *tag) in asn1_header_decode() argument
230 if (!asn1_id_decode(ctx, cls, con, tag)) in asn1_header_decode()
501 unsigned int cls, con, tag, oidlen, rc; in decode_negTokenInit() local
508 if (asn1_header_decode(&ctx, &end, &cls, &con, &tag) == 0) { in decode_negTokenInit()
511 } else if ((cls != ASN1_APL) || (con != ASN1_CON) in decode_negTokenInit()
513 cifs_dbg(FYI, "cls = %d con = %d tag = %d\n", cls, con, tag); in decode_negTokenInit()
518 rc = asn1_header_decode(&ctx, &end, &cls, &con, &tag); in decode_negTokenInit()
521 (cls == ASN1_UNI)) { in decode_negTokenInit()
[all …]
/Linux-v4.19/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; 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 …]
/Linux-v4.19/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-v4.19/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-v4.19/include/linux/
Dtransport_class.h28 #define DECLARE_TRANSPORT_CLASS(cls, nm, su, rm, cfg) \ argument
29 struct transport_class cls = { \
44 #define DECLARE_ANON_TRANSPORT_CLASS(cls, mtch, cfg) \ argument
45 struct anon_transport_class cls = { \
Ddevice.h449 void class_compat_unregister(struct class_compat *cls);
450 int class_compat_create_link(struct class_compat *cls, struct device *dev,
452 void class_compat_remove_link(struct class_compat *cls, struct device *dev,
533 extern void class_destroy(struct class *cls);
1250 struct device *device_create_vargs(struct class *cls, struct device *parent,
1254 struct device *device_create(struct class *cls, struct device *parent,
1258 struct device *device_create_with_groups(struct class *cls,
1262 extern void device_destroy(struct class *cls, dev_t devt);
/Linux-v4.19/drivers/ata/
Dsata_sil.c669 u8 cls; in sil_init_controller() local
674 cls = sil_get_device_cache_line(pdev); in sil_init_controller()
675 if (cls) { in sil_init_controller()
676 cls >>= 3; in sil_init_controller()
677 cls++; /* cls = (line_size/8)+1 */ in sil_init_controller()
679 writew(cls << 8 | cls, in sil_init_controller()
Dsata_vsc.c350 u8 cls; in vsc_sata_init_one() local
401 pci_read_config_byte(pdev, PCI_CACHE_LINE_SIZE, &cls); in vsc_sata_init_one()
402 if (cls == 0x00) in vsc_sata_init_one()
/Linux-v4.19/drivers/hid/
Dhid-multitouch.c664 struct mt_class *cls = &td->mtclass; in mt_touch_input_mapping() local
697 set_abs(hi->input, code, field, cls->sn_move); in mt_touch_input_mapping()
722 set_abs(hi->input, code, field, cls->sn_move); in mt_touch_input_mapping()
738 if ((cls->name == MT_CLS_WIN_8 || in mt_touch_input_mapping()
739 cls->name == MT_CLS_WIN_8_DUAL) && in mt_touch_input_mapping()
765 cls->sn_width); in mt_touch_input_mapping()
771 cls->sn_height); in mt_touch_input_mapping()
786 cls->sn_pressure); in mt_touch_input_mapping()
807 cls->sn_move ? in mt_touch_input_mapping()
808 field->logical_maximum / cls->sn_move : 0, 0); in mt_touch_input_mapping()
[all …]
/Linux-v4.19/net/dsa/
Dslave.c758 struct tc_cls_matchall_offload *cls, in dsa_slave_add_cls_matchall() argument
764 __be16 protocol = cls->common.protocol; in dsa_slave_add_cls_matchall()
774 if (!tcf_exts_has_one_action(cls->exts)) in dsa_slave_add_cls_matchall()
777 a = tcf_exts_first_action(cls->exts); in dsa_slave_add_cls_matchall()
793 mall_tc_entry->cookie = cls->cookie; in dsa_slave_add_cls_matchall()
815 struct tc_cls_matchall_offload *cls) in dsa_slave_del_cls_matchall() argument
824 mall_tc_entry = dsa_slave_mall_tc_entry_find(dev, cls->cookie); in dsa_slave_del_cls_matchall()
842 struct tc_cls_matchall_offload *cls, in dsa_slave_setup_tc_cls_matchall() argument
845 if (cls->common.chain_index) in dsa_slave_setup_tc_cls_matchall()
848 switch (cls->command) { in dsa_slave_setup_tc_cls_matchall()
[all …]
/Linux-v4.19/arch/mips/include/asm/mach-jz4740/
Djz4740_fb.h58 uint32_t cls; member
/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_offload.py466 chain=None, cls="", params="",
478 cls=cls, params=params),
485 cls = "bpf " + bpf
497 return self.cls_filter_op(op=op, prio=prio, handle=handle, cls=cls,
599 res = sim.cls_filter_op(op="delete", prio=1, handle=1, cls="bpf",
728 sim.cls_filter_op(op="delete", prio=1, handle=1, cls="bpf")
732 sim.cls_filter_op(op="delete", prio=1, handle=1, cls="bpf")
736 sim.cls_filter_op(op="delete", prio=1, handle=1, cls="bpf")
747 sim.cls_filter_op(op="delete", prio=1, handle=1, cls="bpf")
/Linux-v4.19/net/ceph/
Dosd_client.c275 osd_data = osd_req_op_data(osd_req, which, cls, request_info); in osd_req_op_cls_request_info_pagelist()
285 osd_data = osd_req_op_data(osd_req, which, cls, request_data); in osd_req_op_cls_request_data_pagelist()
287 osd_req->r_ops[which].cls.indata_len += pagelist->length; in osd_req_op_cls_request_data_pagelist()
298 osd_data = osd_req_op_data(osd_req, which, cls, request_data); in osd_req_op_cls_request_data_pages()
301 osd_req->r_ops[which].cls.indata_len += length; in osd_req_op_cls_request_data_pages()
317 osd_data = osd_req_op_data(osd_req, which, cls, request_data); in osd_req_op_cls_request_data_bvecs()
319 osd_req->r_ops[which].cls.indata_len += bytes; in osd_req_op_cls_request_data_bvecs()
330 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-v4.19/drivers/media/platform/ti-vpe/
Dvpdma_priv.h476 static inline u32 cfd_pkt_payload_len(bool direct, int cls, int dest, in cfd_pkt_payload_len() argument
481 (cls << CFD_CLASS_SHFT) | in cfd_pkt_payload_len()
/Linux-v4.19/Documentation/driver-model/
Dclass.txt45 int devclass_register(struct device_class * cls);
46 void devclass_unregister(struct device_class * cls);
/Linux-v4.19/drivers/acpi/
Dbus.c722 if (!id->cls) in __acpi_match_device_cls()
732 sprintf(buf, "%02x", (id->cls >> byte_shift) & msk); in __acpi_match_device_cls()
758 for (id = acpi_ids; id->id[0] || id->cls; id++) { in __acpi_match_device()
761 if (id->cls && __acpi_match_device_cls(id, hwid)) in __acpi_match_device()
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c9022 struct tc_cls_u32_offload *cls) in ixgbe_delete_clsu32() argument
9024 u32 hdl = cls->knode.handle; in ixgbe_delete_clsu32()
9025 u32 uhtid = TC_U32_USERHTID(cls->knode.handle); in ixgbe_delete_clsu32()
9026 u32 loc = cls->knode.handle & 0xfffff; in ixgbe_delete_clsu32()
9079 struct tc_cls_u32_offload *cls) in ixgbe_configure_clsu32_add_hnode() argument
9081 u32 uhtid = TC_U32_USERHTID(cls->hnode.handle); in ixgbe_configure_clsu32_add_hnode()
9089 if (cls->hnode.divisor > 0) in ixgbe_configure_clsu32_add_hnode()
9097 struct tc_cls_u32_offload *cls) in ixgbe_configure_clsu32_del_hnode() argument
9099 u32 uhtid = TC_U32_USERHTID(cls->hnode.handle); in ixgbe_configure_clsu32_del_hnode()
9211 struct tc_cls_u32_offload *cls, in ixgbe_clsu32_build_input() argument
[all …]
/Linux-v4.19/arch/mips/include/asm/txx9/
Dtx3927.h79 endian_def_b4(unused0, ht, mlt, cls);
/Linux-v4.19/scripts/mod/
Ddevicetable-offsets.c67 DEVID_FIELD(acpi_device_id, cls); in main()

12