Home
last modified time | relevance | path

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

1234

/freebsd-14.2/sys/kern/
H A Dsubr_kobj.c107 if (cls->ops) in kobj_class_compile_common()
123 ops->cls = cls; in kobj_class_compile_common()
124 cls->ops = ops; in kobj_class_compile_common()
144 if (cls->ops) { in kobj_class_compile1()
173 cls->refs++; in kobj_class_compile_static()
251 ops = cls->ops; in kobj_class_free()
252 cls->ops = NULL; in kobj_class_free()
266 cls->refs++; in kobj_init_common()
330 kobj_class_t cls = obj->ops->cls; in kobj_delete() local
340 cls->refs--; in kobj_delete()
[all …]
/freebsd-14.2/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_data.c61 return (cls->desc); in bhnd_nvram_data_class_desc()
73 return (cls->caps); in bhnd_nvram_data_class_caps()
109 return (cls->op_serialize(cls, props, options, outp, olen)); in bhnd_nvram_data_serialize()
130 return (cls->op_probe(io)); in bhnd_nvram_data_probe()
160 cls = NULL; in bhnd_nvram_data_probe_classes()
205 cls = next_cls; in bhnd_nvram_data_probe_classes()
214 if (cls == NULL) in bhnd_nvram_data_probe_classes()
285 if (cls == NULL) in bhnd_nvram_data_new()
294 data->cls = cls; in bhnd_nvram_data_new()
334 nv->cls->op_free(nv); in bhnd_nvram_data_release()
[all …]
H A Dbhnd_nvram_data.h92 const char *bhnd_nvram_data_class_desc(bhnd_nvram_data_class *cls);
93 uint32_t bhnd_nvram_data_class_caps(bhnd_nvram_data_class *cls);
95 int bhnd_nvram_data_serialize(bhnd_nvram_data_class *cls,
99 int bhnd_nvram_data_probe(bhnd_nvram_data_class *cls,
108 bhnd_nvram_data_class *cls,
112 int bhnd_nvram_data_new(bhnd_nvram_data_class *cls,
/freebsd-14.2/tests/atf_python/sys/net/
H A Dtools.py18 def pf_rules(cls, rules, verbose=True): argument
35 cls.print_output("/sbin/pfctl -sr")
41 print(cls.get_output(cmd))
46 def print_net_debug(cls): argument
47 cls.print_output("ifconfig")
48 cls.print_output("netstat -rnW")
51 def set_sysctl(cls, oid, val): argument
57 out = cls.get_output(
70 out = cls.get_output(
81 def get_linklocals(cls): argument
[all …]
/freebsd-14.2/tests/atf_python/sys/netpfil/ipfw/
H A Dinsns.py113 def _validate(cls, data): argument
117 def _parse(cls, data): argument
125 cls._validate(data)
175 cls = attr["ad"].cls
213 def _parse(cls, data): argument
252 def _parse(cls, data): argument
300 def _parse(cls, data): argument
362 def _parse(cls, data): argument
397 def _parse(cls, data): argument
435 def _parse(cls, data): argument
[all …]
H A Dioctl.py99 def _validate(cls, data): argument
109 return cls(hdr.n_type)
113 cls._validate(data)
135 def _validate(cls, data): argument
166 cls = UnknownTlv
169 cls = obj_descr["ad"].cls
199 def _validate(cls, data): argument
249 def _validate(cls, data): argument
306 def _validate(cls, data): argument
317 self = cls(
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZInstrFormats.td2252 : InstRRE<opcode, (outs cls:$R1, cls:$R2), (ins),
2508 : InstRRFc<opcode, (outs), (ins cls:$R1, cls:$R2),
2646 : InstRSI<opcode, (outs cls:$R1), (ins cls:$R1src, cls:$R3, brtarget16:$RI2),
2702 : InstSSe<opcode, (outs cls:$R1, cls:$R3),
3046 : InstRRE<opcode, (outs cls:$R1), (ins cls:$R1src),
3724 [(set cls:$R1, (operator cls:$R1src,
4972 [(set cls:$R1, (operator mode:$BD2, cls:$R1src, cls:$R3))]> {
4984 [(set cls:$R1, (operator mode:$BD2, cls:$R1src, cls:$R3))]> {
5087 : Pseudo<(outs cls:$R1), (ins cls:$R1src, imm:$I2),
5095 : Pseudo<(outs cls:$R1), (ins cls:$R3, imm:$I2),
[all …]
H A DSystemZPatterns.td23 def : Pat<(operator cls:$src1, (sext GR32:$src2)),
24 (insn cls:$src1, GR32:$src2)>;
32 def : Pat<(operator cls:$src1, (zext GR32:$src2)),
33 (insn cls:$src1, GR32:$src2)>;
61 cls:$src1, (load mode:$src2)),
62 (insn cls:$src1, mode:$src2)>;
64 (load mode:$src2), cls:$src1),
65 (insn cls:$src1, mode:$src2)>;
150 def : Pat<(z_any_fcmp cls:$reg, (fpimm0)), (insn cls:$reg)>;
152 def : Pat<(z_any_fcmp cls:$reg, (fpimmneg0)), (insn cls:$reg)>;
[all …]
/freebsd-14.2/tests/atf_python/sys/netlink/
H A Dattrs.py55 def _parse(cls, data): argument
61 cls._validate(data)
62 attr = cls._parse(data)
132 def _parse(cls, data): argument
134 return cls(nla_type, val)
159 def _parse(cls, data): argument
186 def _parse(cls, data): argument
213 def _parse(cls, data): argument
250 def _parse(cls, data): argument
296 def _parse(cls, data): argument
[all …]
H A Dutils.py35 cls: "NlAttr"
50 def build_propmap(cls): argument
52 for prop in dir(cls):
54 ret[getattr(cls, prop).value] = prop
72 def get_bitmask_str(cls, val): argument
73 if isinstance(cls, type):
74 pmap = build_propmap(cls)
77 for _cls in cls:
H A Dnetlink.py95 cls = AddressFamilyBsd
97 cls = AddressFamilyLinux
98 return cls
100 def get_propmap(self, cls): argument
101 if cls not in self._pmap:
102 self._pmap[cls] = build_propmap(cls)
103 return self._pmap[cls]
105 def get_name_propmap(self, cls): argument
107 for prop in dir(cls):
300 if not cls:
[all …]
H A Dmessage.py124 def from_bytes(cls, helper, data): argument
127 self = cls(helper, hdr.nlmsg_type)
132 cls.print_as_bytes(data)
157 def from_bytes(cls, helper, data): argument
160 self = cls(helper, hdr.nlmsg_type)
165 cls.print_as_bytes(data)
176 cls.print_as_bytes(data)
192 cls.print_as_bytes(data, "msg dump")
193 cls.print_as_bytes(data[orig_offset:], "failed block")
232 val = v["ad"].cls.from_bytes(data[off : off + nla_len], v["ad"].val)
/freebsd-14.2/sys/sys/
H A Dkobj.h84 kobj_class_t cls; member
179 void kobj_class_compile(kobj_class_t cls);
185 void kobj_class_compile_static(kobj_class_t cls, kobj_ops_t ops);
190 void kobj_class_free(kobj_class_t cls);
195 kobj_t kobj_create(kobj_class_t cls,
202 void kobj_init(kobj_t obj, kobj_class_t cls);
203 void kobj_init_static(kobj_t obj, kobj_class_t cls);
229 _ce = kobj_lookup_method(OPS->cls, \
243 _ce = kobj_lookup_method(OPS->cls, \
249 kobj_method_t* kobj_lookup_method(kobj_class_t cls,
/freebsd-14.2/lib/libc/tests/locale/
H A Diswctype_test.c62 } cls[] = { variable
82 for (i = 0; i < nitems(cls); i++) { in ATF_TC_BODY()
83 t = wctype(cls[i].name); in ATF_TC_BODY()
86 ATF_REQUIRE(cls[i].func(j) == iswctype(j, t)); in ATF_TC_BODY()
100 for (i = 0; i < nitems(cls); i++) { in ATF_TC_BODY()
101 t = wctype(cls[i].name); in ATF_TC_BODY()
104 ATF_REQUIRE(cls[i].func(j) == iswctype(j, t)); in ATF_TC_BODY()
/freebsd-14.2/contrib/llvm-project/lldb/bindings/interface/
H A DSBFileExtensions.i15 def Create(cls, file, borrow=False, force_io_methods=False):
27 return cls.MakeBorrowedForcingIOMethods(file)
29 return cls.MakeBorrowed(file)
32 return cls.MakeForcingIOMethods(file)
34 return cls(file)
/freebsd-14.2/contrib/lib9p/pytest/
H A Dprotocol.py657 cls = getattr(rrd, name)
658 data = cls(**data)
741 cls = getattr(rrd, fcall)
746 cls = rrd.Rlerror
752 vdict = cls()
820 cls = getattr(rrd, fcall)
821 return cls in self.pfods
1535 if cls is None:
1761 cls = None
1859 if cls is None:
[all …]
/freebsd-14.2/sys/geom/label/
H A Dg_label_disk_ident.c46 struct g_class *cls; in g_label_disk_ident_taste() local
53 cls = cp->provider->geom->class; in g_label_disk_ident_taste()
64 if (strcmp(classes_pass[i], cls->name) == 0) { in g_label_disk_ident_taste()
74 (void)snprintf(label, size, "%s-%s", cls->name, ident); in g_label_disk_ident_taste()
/freebsd-14.2/tests/atf_python/
H A Datf_pytest.py19 instance = self.parent.cls()
134 cls = self.get_test_class(item)
135 cls.TARGET_USER = mark.args[0]
142 obj.parent.cls.setup_method = ATFCleanupItem.setup_method_noop
143 obj.parent.cls.teardown_method = ATFCleanupItem.teardown_method_noop
149 return obj.parent.cls
152 cls = self.get_test_class(obj)
153 if cls is not None:
156 if hasattr(cls, "cleanup") or hasattr(cls, cleanup_name):
/freebsd-14.2/sys/dev/bhnd/
H A Dbhnd_types.h169 #define BHND_DEVCLASS_SUPPORTS_HOSTB(cls) \ argument
170 ((cls) == BHND_DEVCLASS_PCI || (cls) == BHND_DEVCLASS_PCIE || \
171 (cls) == BHND_DEVCLASS_PCCARD)
H A Dbhnd_erom.c123 bhnd_erom_class_t *cls; in bhnd_erom_probe_driver_classes() local
128 cls = bhnd_driver_get_erom_class(drivers[i]); in bhnd_erom_probe_driver_classes()
129 if (cls == NULL) in bhnd_erom_probe_driver_classes()
132 kobj_class_compile(cls); in bhnd_erom_probe_driver_classes()
135 result = bhnd_erom_probe(cls, eio, hint, &pcid); in bhnd_erom_probe_driver_classes()
146 erom_cls = cls; in bhnd_erom_probe_driver_classes()
172 bhnd_erom_alloc(bhnd_erom_class_t *cls, const struct bhnd_chipid *cid, in bhnd_erom_alloc() argument
178 erom = (bhnd_erom_t *)kobj_create((kobj_class_t)cls, M_BHND, in bhnd_erom_alloc()
182 printf("error initializing %s parser at %#jx: %d\n", cls->name, in bhnd_erom_alloc()
214 bhnd_erom_init_static(bhnd_erom_class_t *cls, bhnd_erom_t *erom, size_t esize, in bhnd_erom_init_static() argument
[all …]
H A Dbhnd_erom.h58 bhnd_erom_t *bhnd_erom_alloc(bhnd_erom_class_t *cls,
62 int bhnd_erom_init_static(bhnd_erom_class_t *cls,
144 bhnd_erom_probe(bhnd_erom_class_t *cls, struct bhnd_erom_io *eio, in bhnd_erom_probe() argument
147 return (BHND_EROM_PROBE(cls, eio, hint, cid)); in bhnd_erom_probe()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DHTMLLogger.js186 function applyClassIf(cls, query) { argument
187 document.querySelectorAll('.' + cls).forEach(elt => elt.classList.remove(cls));
188 document.querySelectorAll(query).forEach(elt => elt.classList.add(cls));
193 function classSelector(cls) { argument
194 if (cls == null) return null;
195 if (Array.isArray(cls)) return cls.map(classSelector).join(', ');
196 var escaped = cls.replace('.', '\\.').replace(':', '\\:');
/freebsd-14.2/sys/dev/sound/pcm/
H A Dac97.h87 #define AC97_CREATE(dev, devinfo, cls) ac97_create(dev, devinfo, &cls ## _class) argument
95 struct ac97_info *ac97_create(device_t dev, void *devinfo, kobj_class_t cls);
/freebsd-14.2/lib/libutil/
H A Dlogin_cap.c403 login_getclass(const char *cls) in login_getclass() argument
405 return login_getclassbyname(cls, NULL); in login_getclass()
424 const char *cls = NULL; in login_getpwclass() local
427 cls = pwd->pw_class; in login_getpwclass()
428 if (cls == NULL || *cls == '\0') in login_getpwclass()
429 cls = (pwd->pw_uid == 0) ? LOGIN_DEFROOTCLASS : LOGIN_DEFCLASS; in login_getpwclass()
435 return login_getclassbyname(cls, pwd); in login_getpwclass()
/freebsd-14.2/usr.bin/limits/
H A Dlimits.c274 char *p, *cls = NULL; in main() local
311 cls = optarg; in main()
361 if (cls != NULL) { in main()
387 else if (cls != NULL && *cls != '\0') { in main()
388 lc = login_getclassbyname(cls, NULL); in main()
389 if (lc == NULL || strcmp(cls, lc->lc_class) != 0) in main()
391 cls, lc?lc->lc_class:"current settings"); in main()

1234