/freebsd/sys/kern/ |
H A D | subr_kobj.c | 98 kobj_class_compile_common(kobj_class_t cls, kobj_ops_t ops) in kobj_class_compile_common() argument 106 if (cls->ops) in kobj_class_compile_common() 112 for (m = cls->methods; m->desc; m++) { in kobj_class_compile_common() 122 ops->cls = cls; in kobj_class_compile_common() 123 cls->ops = ops; in kobj_class_compile_common() 127 kobj_class_compile1(kobj_class_t cls, int mflags) in kobj_class_compile1() argument 143 if (cls->ops) { in kobj_class_compile1() 148 kobj_class_compile_common(cls, ops); in kobj_class_compile1() 154 kobj_class_compile(kobj_class_t cls) in kobj_class_compile() argument 158 error = kobj_class_compile1(cls, M_WAITOK); in kobj_class_compile() [all …]
|
/freebsd/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_data.c | 59 bhnd_nvram_data_class_desc(bhnd_nvram_data_class *cls) in bhnd_nvram_data_class_desc() argument 61 return (cls->desc); in bhnd_nvram_data_class_desc() 71 bhnd_nvram_data_class_caps(bhnd_nvram_data_class *cls) in bhnd_nvram_data_class_caps() argument 73 return (cls->caps); in bhnd_nvram_data_class_caps() 105 bhnd_nvram_data_serialize(bhnd_nvram_data_class *cls, in bhnd_nvram_data_serialize() argument 109 return (cls->op_serialize(cls, props, options, outp, olen)); in bhnd_nvram_data_serialize() 128 bhnd_nvram_data_probe(bhnd_nvram_data_class *cls, struct bhnd_nvram_io *io) in bhnd_nvram_data_probe() argument 130 return (cls->op_probe(io)); in bhnd_nvram_data_probe() 157 bhnd_nvram_data_class *cls; in bhnd_nvram_data_probe_classes() local 160 cls = NULL; in bhnd_nvram_data_probe_classes() [all …]
|
H A D | bhnd_nvram_data.h | 92 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/tests/atf_python/sys/net/ |
H A D | tools.py | 12 def get_output(cls, cmd: str, verbose=False) -> str: argument 18 def pf_rules(cls, rules, verbose=True): argument 35 cls.print_output("/sbin/pfctl -sr") 38 def print_output(cls, cmd: str, verbose=True): argument 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 52 cls.get_output("sysctl {}={}".format(oid, val)) [all …]
|
/freebsd/tests/atf_python/sys/netpfil/ipfw/ |
H A D | insns.py | 98 def _validate_len(cls, data, valid_options=None): argument 108 enum_from_int(cls.obj_enum_class, data[0]) 113 def _validate(cls, data): argument 114 cls._validate_len(data) 117 def _parse(cls, data): argument 121 return cls(opcode=insn.opcode, is_or=is_or, is_not=is_not, arg1=insn.arg1) 124 def from_bytes(cls, data, attr_type_enum): argument 125 cls._validate(data) 126 opcode = cls._parse(data) 172 cls = InsnUnknown [all …]
|
H A D | ioctl.py | 99 def _validate(cls, data): argument 107 def _parse(cls, data, attr_map): argument 109 return cls(hdr.n_type) 112 def from_bytes(cls, data, attr_map=None): argument 113 cls._validate(data) 114 obj = cls._parse(data, attr_map) 135 def _validate(cls, data): argument 143 def _parse(cls, data, attr_map): argument 145 self = cls(hdr.n_type, data) 166 cls = UnknownTlv [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZInstrFormats.td | 2258 class InherentRRE<string mnemonic, bits<16> opcode, RegisterOperand cls, 2260 : InstRRE<opcode, (outs cls:$R1), (ins), 2262 [(set cls:$R1, (operator))]> { 2266 class InherentDualRRE<string mnemonic, bits<16> opcode, RegisterOperand cls> 2267 : InstRRE<opcode, (outs cls:$R1, cls:$R2), (ins), 2436 RegisterOperand cls, ImmOpWithPattern imm> 2437 : InstRIEa<opcode, (outs), (ins cls:$R1, imm:$I2, cond4:$M3), 2441 RegisterOperand cls, ImmOpWithPattern imm> 2442 : InstRIEa<opcode, (outs), (ins cls:$R1, imm:$I2, imm32zx4:$M3), 2446 RegisterOperand cls, ImmOpWithPattern imm> [all …]
|
H A D | SystemZPatterns.td | 21 multiclass SXB<SDPatternOperator operator, RegisterOperand cls, 23 def : Pat<(operator cls:$src1, (sext GR32:$src2)), 24 (insn cls:$src1, GR32:$src2)>; 25 def : Pat<(operator cls:$src1, (sext_inreg GR64:$src2, i32)), 26 (insn cls:$src1, (EXTRACT_SUBREG GR64:$src2, subreg_l32))>; 30 multiclass ZXB<SDPatternOperator operator, RegisterOperand cls, 32 def : Pat<(operator cls:$src1, (zext GR32:$src2)), 33 (insn cls:$src1, GR32:$src2)>; 34 def : Pat<(operator cls:$src1, (and GR64:$src2, 0xffffffff)), 35 (insn cls:$src1, (EXTRACT_SUBREG GR64:$src2, subreg_l32))>; [all …]
|
/freebsd/tests/atf_python/sys/netlink/ |
H A D | attrs.py | 55 def _parse(cls, data): argument 57 return cls(nla_type, data[4:]) 60 def from_bytes(cls, data, attr_type_enum=None): 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 161 return cls(nla_type, val) 186 def _parse(cls, data): argument [all …]
|
H A D | netlink.py | 95 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): 109 ret[prop] = getattr(cls, prop).value [all …]
|
H A D | utils.py | 35 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 D | message.py | 124 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/sys/sys/ |
H A D | kobj.h | 84 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/lib/libc/tests/locale/ |
H A D | iswctype_test.c | 62 } 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/contrib/llvm-project/lldb/bindings/interface/ |
H A D | SBFileExtensions.i | 15 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/contrib/lib9p/pytest/ |
H A D | protocol.py | 657 cls = getattr(rrd, name) 658 data = cls(**data) 741 cls = getattr(rrd, fcall) 742 seq = self.pfods[cls].seq 746 cls = rrd.Rlerror 752 vdict = cls() 820 cls = getattr(rrd, fcall) 821 return cls in self.pfods 1528 cls, sub = typedefs[typeinfo.value] 1535 if cls is None: [all …]
|
/freebsd/sys/geom/label/ |
H A D | g_label_disk_ident.c | 45 struct g_class *cls; in g_label_disk_ident_taste() local 52 cls = cp->provider->geom->class; in g_label_disk_ident_taste() 63 if (strcmp(classes_pass[i], cls->name) == 0) { in g_label_disk_ident_taste() 73 (void)snprintf(label, size, "%s-%s", cls->name, ident); in g_label_disk_ident_taste()
|
/freebsd/tests/atf_python/ |
H A D | atf_pytest.py | 19 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/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
H A D | HTMLLogger.js | 186 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/sys/dev/bhnd/ |
H A D | bhnd_types.h | 169 #define BHND_DEVCLASS_SUPPORTS_HOSTB(cls) \ argument 170 ((cls) == BHND_DEVCLASS_PCI || (cls) == BHND_DEVCLASS_PCIE || \ 171 (cls) == BHND_DEVCLASS_PCCARD)
|
H A D | bhnd_erom.c | 122 bhnd_erom_class_t *cls; in bhnd_erom_probe_driver_classes() local 127 cls = bhnd_driver_get_erom_class(drivers[i]); in bhnd_erom_probe_driver_classes() 128 if (cls == NULL) in bhnd_erom_probe_driver_classes() 131 kobj_class_compile(cls); in bhnd_erom_probe_driver_classes() 134 result = bhnd_erom_probe(cls, eio, hint, &pcid); in bhnd_erom_probe_driver_classes() 145 erom_cls = cls; in bhnd_erom_probe_driver_classes() 171 bhnd_erom_alloc(bhnd_erom_class_t *cls, const struct bhnd_chipid *cid, in bhnd_erom_alloc() argument 177 erom = (bhnd_erom_t *)kobj_create((kobj_class_t)cls, M_BHND, in bhnd_erom_alloc() 181 printf("error initializing %s parser at %#jx: %d\n", cls->name, in bhnd_erom_alloc() 213 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 D | bhnd_erom.h | 58 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/sys/dev/sound/pcm/ |
H A D | ac97.h | 87 #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/lib/libutil/ |
H A D | login_cap.c | 402 login_getclass(const char *cls) in login_getclass() argument 404 return login_getclassbyname(cls, NULL); in login_getclass() 423 const char *cls = NULL; in login_getpwclass() local 426 cls = pwd->pw_class; in login_getpwclass() 427 if (cls == NULL || *cls == '\0') in login_getpwclass() 428 cls = (pwd->pw_uid == 0) ? LOGIN_DEFROOTCLASS : LOGIN_DEFCLASS; in login_getpwclass() 434 return login_getclassbyname(cls, pwd); in login_getpwclass()
|
/freebsd/usr.bin/limits/ |
H A D | limits.c | 274 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()
|