sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
1870
return sysfs_emit(buf, "schema: 0x%x\n", con->schema);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
2171
static DEVICE_ATTR(schema, 0444,
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
4138
con->schema = 0;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
4211
con->schema = amdgpu_get_ras_schema(adev);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.h
510
uint32_t schema;
usr.sbin/ldapd/ldapd.h
252
struct schema *schema;
usr.sbin/ldapd/ldape.c
251
if ((at = lookup_attribute(conf->schema, aname)) == NULL)
usr.sbin/ldapd/modify.c
168
at = lookup_attribute(conf->schema, s);
usr.sbin/ldapd/modify.c
300
at = lookup_attribute(conf->schema, attr);
usr.sbin/ldapd/parse.y
143
| grammar schema '\n'
usr.sbin/ldapd/parse.y
396
schema : SCHEMA STRING {
usr.sbin/ldapd/parse.y
399
ret = schema_parse(conf->schema, $2);
usr.sbin/ldapd/parse.y
842
conf->schema = schema_new();
usr.sbin/ldapd/parse.y
843
if (conf->schema == NULL)
usr.sbin/ldapd/schema.c
102
return RB_FIND(object_tree, &schema->objects, &find);
usr.sbin/ldapd/schema.c
1020
RB_REMOVE(object_tree, &schema->objects, obj);
usr.sbin/ldapd/schema.c
1030
schema_parse_objectidentifier(struct schema *schema)
usr.sbin/ldapd/schema.c
1035
if (schema_lex(schema, &symname) != STRING)
usr.sbin/ldapd/schema.c
1037
if (schema_lex(schema, &symoid) != STRING)
usr.sbin/ldapd/schema.c
1043
} else if ((oid = lookup_symbolic_oid(schema, symoid)) == NULL)
usr.sbin/ldapd/schema.c
1046
if (push_symbolic_oid(schema, symname, oid) == NULL)
usr.sbin/ldapd/schema.c
106
lookup_object_by_name(struct schema *schema, char *name)
usr.sbin/ldapd/schema.c
1060
schema_parse(struct schema *schema, const char *filename)
usr.sbin/ldapd/schema.c
1067
if ((schema->fp = fopen(filename, "r")) == NULL) {
usr.sbin/ldapd/schema.c
1071
schema->filename = filename;
usr.sbin/ldapd/schema.c
1072
schema->lineno = 1;
usr.sbin/ldapd/schema.c
1075
token = schema_lex(schema, &kw);
usr.sbin/ldapd/schema.c
1078
ret = schema_parse_attributetype(schema);
usr.sbin/ldapd/schema.c
1080
ret = schema_parse_objectclass(schema);
usr.sbin/ldapd/schema.c
1082
ret = schema_parse_objectidentifier(schema);
usr.sbin/ldapd/schema.c
1084
schema_err(schema, "syntax error at '%s'", kw);
usr.sbin/ldapd/schema.c
1087
if (ret == -1 && schema->error == 0)
usr.sbin/ldapd/schema.c
1088
schema_err(schema, "syntax error");
usr.sbin/ldapd/schema.c
1093
schema_err(schema, "syntax error");
usr.sbin/ldapd/schema.c
1098
fclose(schema->fp);
usr.sbin/ldapd/schema.c
1099
schema->fp = NULL;
usr.sbin/ldapd/schema.c
1100
schema->filename = NULL;
usr.sbin/ldapd/schema.c
111
on = RB_FIND(oidname_tree, &schema->object_names, &find);
usr.sbin/ldapd/schema.c
119
lookup_object(struct schema *schema, char *oid_or_name)
usr.sbin/ldapd/schema.c
122
return lookup_object_by_oid(schema, oid_or_name);
usr.sbin/ldapd/schema.c
123
return lookup_object_by_name(schema, oid_or_name);
usr.sbin/ldapd/schema.c
136
lookup_symbolic_oid(struct schema *schema, char *name)
usr.sbin/ldapd/schema.c
152
symoid = RB_FIND(symoid_tree, &schema->symbolic_oids, &find);
usr.sbin/ldapd/schema.c
178
push_symbolic_oid(struct schema *schema, char *name, char *oid)
usr.sbin/ldapd/schema.c
183
symoid = RB_FIND(symoid_tree, &schema->symbolic_oids, &find);
usr.sbin/ldapd/schema.c
193
RB_INSERT(symoid_tree, &schema->symbolic_oids, symoid);
usr.sbin/ldapd/schema.c
281
schema_getc(struct schema *schema, int quotec)
usr.sbin/ldapd/schema.c
285
if (schema->pushback_index)
usr.sbin/ldapd/schema.c
286
return (schema->pushback_buffer[--schema->pushback_index]);
usr.sbin/ldapd/schema.c
289
if ((c = getc(schema->fp)) == EOF) {
usr.sbin/ldapd/schema.c
297
while ((c = getc(schema->fp)) == '\\') {
usr.sbin/ldapd/schema.c
298
next = getc(schema->fp);
usr.sbin/ldapd/schema.c
303
schema->lineno++;
usr.sbin/ldapd/schema.c
310
schema_ungetc(struct schema *schema, int c)
usr.sbin/ldapd/schema.c
315
if (schema->pushback_index < SCHEMA_MAXPUSHBACK-1)
usr.sbin/ldapd/schema.c
316
return (schema->pushback_buffer[schema->pushback_index++] = c);
usr.sbin/ldapd/schema.c
322
findeol(struct schema *schema)
usr.sbin/ldapd/schema.c
328
if (schema->pushback_index)
usr.sbin/ldapd/schema.c
329
c = schema->pushback_buffer[--schema->pushback_index];
usr.sbin/ldapd/schema.c
331
c = schema_getc(schema, 0);
usr.sbin/ldapd/schema.c
333
schema->lineno++;
usr.sbin/ldapd/schema.c
343
schema_lex(struct schema *schema, char **kw)
usr.sbin/ldapd/schema.c
354
while ((c = schema_getc(schema, 0)) == ' ' || c == '\t')
usr.sbin/ldapd/schema.c
358
while ((c = schema_getc(schema, 0)) != '\n' && c != EOF)
usr.sbin/ldapd/schema.c
366
if ((c = schema_getc(schema, quotec)) == EOF)
usr.sbin/ldapd/schema.c
369
schema->lineno++;
usr.sbin/ldapd/schema.c
372
if ((next = schema_getc(schema, quotec)) == EOF)
usr.sbin/ldapd/schema.c
379
schema_ungetc(schema, next);
usr.sbin/ldapd/schema.c
386
return (findeol(schema));
usr.sbin/ldapd/schema.c
406
return (findeol(schema));
usr.sbin/ldapd/schema.c
408
} while ((c = schema_getc(schema, 0)) != EOF && (allowed_in_string(c)));
usr.sbin/ldapd/schema.c
409
schema_ungetc(schema, c);
usr.sbin/ldapd/schema.c
416
schema->lineno++;
usr.sbin/ldapd/schema.c
424
struct schema *
usr.sbin/ldapd/schema.c
427
struct schema *schema;
usr.sbin/ldapd/schema.c
429
if ((schema = calloc(1, sizeof(*schema))) == NULL)
usr.sbin/ldapd/schema.c
432
RB_INIT(&schema->attr_types);
usr.sbin/ldapd/schema.c
433
RB_INIT(&schema->attr_names);
usr.sbin/ldapd/schema.c
434
RB_INIT(&schema->objects);
usr.sbin/ldapd/schema.c
435
RB_INIT(&schema->object_names);
usr.sbin/ldapd/schema.c
436
RB_INIT(&schema->symbolic_oids);
usr.sbin/ldapd/schema.c
438
return schema;
usr.sbin/ldapd/schema.c
442
schema_err(struct schema *schema, const char *fmt, ...)
usr.sbin/ldapd/schema.c
451
logit(LOG_CRIT, "%s:%d: %s", schema->filename, schema->lineno, msg);
usr.sbin/ldapd/schema.c
454
schema->error++;
usr.sbin/ldapd/schema.c
458
schema_link_attr_name(struct schema *schema, const char *name, struct attr_type *attr)
usr.sbin/ldapd/schema.c
469
prev = RB_INSERT(oidname_tree, &schema->attr_names, oidname);
usr.sbin/ldapd/schema.c
471
schema_err(schema, "attribute type name '%s'"
usr.sbin/ldapd/schema.c
482
schema_link_attr_names(struct schema *schema, struct attr_type *attr)
usr.sbin/ldapd/schema.c
487
if (schema_link_attr_name(schema, name->name, attr) != 0)
usr.sbin/ldapd/schema.c
494
schema_link_obj_name(struct schema *schema, const char *name, struct object *obj)
usr.sbin/ldapd/schema.c
505
prev = RB_INSERT(oidname_tree, &schema->object_names, oidname);
usr.sbin/ldapd/schema.c
507
schema_err(schema, "object class name '%s'"
usr.sbin/ldapd/schema.c
518
schema_link_obj_names(struct schema *schema, struct object *obj)
usr.sbin/ldapd/schema.c
523
if (schema_link_obj_name(schema, name->name, obj) != 0)
usr.sbin/ldapd/schema.c
530
schema_parse_names(struct schema *schema)
usr.sbin/ldapd/schema.c
536
token = schema_lex(schema, &kw);
usr.sbin/ldapd/schema.c
544
token = schema_lex(schema, &kw);
usr.sbin/ldapd/schema.c
574
schema_parse_attrlist(struct schema *schema)
usr.sbin/ldapd/schema.c
581
token = schema_lex(schema, &kw);
usr.sbin/ldapd/schema.c
583
if ((attr = lookup_attribute(schema, kw)) == NULL) {
usr.sbin/ldapd/schema.c
584
schema_err(schema, "undeclared attribute type '%s'", kw);
usr.sbin/ldapd/schema.c
595
token = schema_lex(schema, &kw);
usr.sbin/ldapd/schema.c
606
if ((attr = lookup_attribute(schema, kw)) == NULL) {
usr.sbin/ldapd/schema.c
607
schema_err(schema, "%s: no such attribute", kw);
usr.sbin/ldapd/schema.c
624
schema_parse_objlist(struct schema *schema)
usr.sbin/ldapd/schema.c
631
token = schema_lex(schema, &kw);
usr.sbin/ldapd/schema.c
633
if ((obj = lookup_object(schema, kw)) == NULL) {
usr.sbin/ldapd/schema.c
634
schema_err(schema, "undeclared object class '%s'", kw);
usr.sbin/ldapd/schema.c
645
token = schema_lex(schema, &kw);
usr.sbin/ldapd/schema.c
656
if ((obj = lookup_object(schema, kw)) == NULL)
usr.sbin/ldapd/schema.c
67
lookup_attribute_by_name(struct schema *schema, char *name)
usr.sbin/ldapd/schema.c
671
schema_validate_match_rule(struct schema *schema, struct attr_type *at,
usr.sbin/ldapd/schema.c
680
schema_err(schema, "%s: bad matching rule '%s'",
usr.sbin/ldapd/schema.c
694
schema_err(schema, "%s: inappropriate matching rule '%s' for syntax [%s]",
usr.sbin/ldapd/schema.c
700
schema_parse_attributetype(struct schema *schema)
usr.sbin/ldapd/schema.c
707
if (schema_lex(schema, NULL) != '(')
usr.sbin/ldapd/schema.c
710
if (schema_lex(schema, &kw) != STRING)
usr.sbin/ldapd/schema.c
72
on = RB_FIND(oidname_tree, &schema->attr_names, &find);
usr.sbin/ldapd/schema.c
722
attr->oid = lookup_symbolic_oid(schema, kw);
usr.sbin/ldapd/schema.c
729
prev = RB_INSERT(attr_type_tree, &schema->attr_types, attr);
usr.sbin/ldapd/schema.c
731
schema_err(schema, "attribute type %s already defined", attr->oid);
usr.sbin/ldapd/schema.c
736
token = schema_lex(schema, &kw);
usr.sbin/ldapd/schema.c
742
attr->names = schema_parse_names(schema);
usr.sbin/ldapd/schema.c
745
schema_link_attr_names(schema, attr);
usr.sbin/ldapd/schema.c
747
if (schema_lex(schema, &attr->desc) != STRING)
usr.sbin/ldapd/schema.c
752
if (schema_lex(schema, &arg) != STRING)
usr.sbin/ldapd/schema.c
754
if ((attr->sup = lookup_attribute(schema, arg)) == NULL) {
usr.sbin/ldapd/schema.c
755
schema_err(schema, "%s: no such attribute", arg);
usr.sbin/ldapd/schema.c
760
if (schema_lex(schema, &arg) != STRING)
usr.sbin/ldapd/schema.c
763
schema_err(schema, "%s: unknown matching rule",
usr.sbin/ldapd/schema.c
769
if (schema_lex(schema, &arg) != STRING)
usr.sbin/ldapd/schema.c
772
schema_err(schema, "%s: unknown matching rule",
usr.sbin/ldapd/schema.c
778
if (schema_lex(schema, &arg) != STRING)
usr.sbin/ldapd/schema.c
781
schema_err(schema, "%s: unknown matching rule",
usr.sbin/ldapd/schema.c
787
if (schema_lex(schema, &arg) != STRING ||
usr.sbin/ldapd/schema.c
792
schema_err(schema, "syntax not supported: %s",
usr.sbin/ldapd/schema.c
797
if ((c = schema_getc(schema, 0)) == '{') {
usr.sbin/ldapd/schema.c
798
if (schema_lex(schema, NULL) != STRING ||
usr.sbin/ldapd/schema.c
799
schema_lex(schema, NULL) != '}')
usr.sbin/ldapd/schema.c
80
lookup_attribute_by_oid(struct schema *schema, char *oid)
usr.sbin/ldapd/schema.c
802
schema_ungetc(schema, c);
usr.sbin/ldapd/schema.c
811
if (schema_lex(schema, &arg) != STRING)
usr.sbin/ldapd/schema.c
822
schema_err(schema, "invalid usage '%s'", arg);
usr.sbin/ldapd/schema.c
828
xnames = schema_parse_names(schema);
usr.sbin/ldapd/schema.c
833
schema_err(schema, "syntax error at token '%s'", kw);
usr.sbin/ldapd/schema.c
849
schema_err(schema, "%s: no syntax defined", ATTR_NAME(attr));
usr.sbin/ldapd/schema.c
85
return RB_FIND(attr_type_tree, &schema->attr_types, &find);
usr.sbin/ldapd/schema.c
874
if (schema_validate_match_rule(schema, attr, attr->equality, MATCH_EQUALITY) != 0 ||
usr.sbin/ldapd/schema.c
875
schema_validate_match_rule(schema, attr, attr->ordering, MATCH_ORDERING) != 0 ||
usr.sbin/ldapd/schema.c
876
schema_validate_match_rule(schema, attr, attr->substr, MATCH_SUBSTR) != 0)
usr.sbin/ldapd/schema.c
885
RB_REMOVE(attr_type_tree, &schema->attr_types, attr);
usr.sbin/ldapd/schema.c
89
lookup_attribute(struct schema *schema, char *oid_or_name)
usr.sbin/ldapd/schema.c
895
schema_parse_objectclass(struct schema *schema)
usr.sbin/ldapd/schema.c
903
if (schema_lex(schema, NULL) != '(')
usr.sbin/ldapd/schema.c
906
if (schema_lex(schema, &kw) != STRING)
usr.sbin/ldapd/schema.c
918
obj->oid = lookup_symbolic_oid(schema, kw);
usr.sbin/ldapd/schema.c
92
return lookup_attribute_by_oid(schema, oid_or_name);
usr.sbin/ldapd/schema.c
925
prev = RB_INSERT(object_tree, &schema->objects, obj);
usr.sbin/ldapd/schema.c
927
schema_err(schema, "object class %s already defined", obj->oid);
usr.sbin/ldapd/schema.c
93
return lookup_attribute_by_name(schema, oid_or_name);
usr.sbin/ldapd/schema.c
932
token = schema_lex(schema, &kw);
usr.sbin/ldapd/schema.c
938
obj->names = schema_parse_names(schema);
usr.sbin/ldapd/schema.c
941
schema_link_obj_names(schema, obj);
usr.sbin/ldapd/schema.c
943
if (schema_lex(schema, &obj->desc) != STRING)
usr.sbin/ldapd/schema.c
948
obj->sup = schema_parse_objlist(schema);
usr.sbin/ldapd/schema.c
958
obj->must = schema_parse_attrlist(schema);
usr.sbin/ldapd/schema.c
962
obj->may = schema_parse_attrlist(schema);
usr.sbin/ldapd/schema.c
967
xnames = schema_parse_names(schema);
usr.sbin/ldapd/schema.c
97
lookup_object_by_oid(struct schema *schema, char *oid)
usr.sbin/ldapd/schema.c
972
schema_err(schema, "syntax error at token '%s'", kw);
usr.sbin/ldapd/schema.h
154
struct schema *schema_new(void);
usr.sbin/ldapd/schema.h
155
int schema_parse(struct schema *schema,
usr.sbin/ldapd/schema.h
164
struct attr_type *lookup_attribute_by_oid(struct schema *schema, char *oid);
usr.sbin/ldapd/schema.h
165
struct attr_type *lookup_attribute_by_name(struct schema *schema, char *name);
usr.sbin/ldapd/schema.h
166
struct attr_type *lookup_attribute(struct schema *schema, char *oid_or_name);
usr.sbin/ldapd/schema.h
167
struct object *lookup_object_by_oid(struct schema *schema, char *oid);
usr.sbin/ldapd/schema.h
168
struct object *lookup_object_by_name(struct schema *schema, char *name);
usr.sbin/ldapd/schema.h
169
struct object *lookup_object(struct schema *schema, char *oid_or_name);
usr.sbin/ldapd/schema.h
170
char *lookup_symbolic_oid(struct schema *schema, char *name);
usr.sbin/ldapd/schema.h
45
struct schema;
usr.sbin/ldapd/schema.h
49
int (*is_valid)(struct schema *schema, char *value,
usr.sbin/ldapd/search.c
584
RB_FOREACH(obj, object_tree, &conf->schema->objects) {
usr.sbin/ldapd/search.c
59
at = lookup_attribute(conf->schema, adesc);
usr.sbin/ldapd/search.c
598
RB_FOREACH(at, attr_type_tree, &conf->schema->attr_types) {
usr.sbin/ldapd/search.c
667
plan->at = lookup_attribute(conf->schema, "name");
usr.sbin/ldapd/search.c
670
plan->at = lookup_attribute(conf->schema, attr);
usr.sbin/ldapd/syntax.c
114
syntax_is_octet_string(struct schema *schema, char *value, size_t len)
usr.sbin/ldapd/syntax.c
123
syntax_is_directory_string(struct schema *schema, char *value, size_t len)
usr.sbin/ldapd/syntax.c
139
syntax_is_printable_string(struct schema *schema, char *value, size_t len)
usr.sbin/ldapd/syntax.c
158
syntax_is_ia5_string(struct schema *schema, char *value, size_t len)
usr.sbin/ldapd/syntax.c
176
syntax_is_integer(struct schema *schema, char *value, size_t len)
usr.sbin/ldapd/syntax.c
189
syntax_is_dn(struct schema *schema, char *value, size_t len)
usr.sbin/ldapd/syntax.c
191
if (!syntax_is_directory_string(schema, value, len))
usr.sbin/ldapd/syntax.c
200
syntax_is_oid(struct schema *schema, char *value, size_t len)
usr.sbin/ldapd/syntax.c
212
if (lookup_object_by_name(schema, value) != NULL ||
usr.sbin/ldapd/syntax.c
213
lookup_attribute_by_name(schema, value) != NULL ||
usr.sbin/ldapd/syntax.c
214
(symoid = lookup_symbolic_oid(schema, value)) != NULL) {
usr.sbin/ldapd/syntax.c
223
syntax_is_uuid(struct schema *schema, char *value, size_t len)
usr.sbin/ldapd/syntax.c
252
syntax_is_numeric_string(struct schema *schema, char *value, size_t len)
usr.sbin/ldapd/syntax.c
264
syntax_is_time(struct schema *schema, char *value, size_t len, int gen)
usr.sbin/ldapd/syntax.c
312
syntax_is_gentime(struct schema *schema, char *value, size_t len)
usr.sbin/ldapd/syntax.c
314
return syntax_is_time(schema, value, len, 1);
usr.sbin/ldapd/syntax.c
318
syntax_is_utctime(struct schema *schema, char *value, size_t len)
usr.sbin/ldapd/syntax.c
32
static int syntax_is_##TYPE(struct schema *schema, char *value, size_t len)
usr.sbin/ldapd/syntax.c
320
return syntax_is_time(schema, value, len, 0);
usr.sbin/ldapd/syntax.c
324
syntax_is_country(struct schema *schema, char *value, size_t len)
usr.sbin/ldapd/syntax.c
328
return syntax_is_printable_string(schema, value, len);
usr.sbin/ldapd/syntax.c
332
syntax_is_bit_string(struct schema *schema, char *value, size_t len)
usr.sbin/ldapd/syntax.c
351
syntax_is_boolean(struct schema *schema, char *value, size_t len)
usr.sbin/ldapd/validate.c
136
if ((at = lookup_attribute(conf->schema, na)) == NULL) {
usr.sbin/ldapd/validate.c
321
if ((obj = lookup_object(conf->schema, s)) == NULL) {
usr.sbin/ldapd/validate.c
404
if ((at = lookup_attribute(conf->schema, s)) == NULL) {
usr.sbin/ldapd/validate.c
80
!at->syntax->is_valid(conf->schema, val, elm->be_len)) {
usr.sbin/smtpd/mta_session.c
454
const char *schema;
usr.sbin/smtpd/mta_session.c
518
schema = "smtp://";
usr.sbin/smtpd/mta_session.c
520
schema = "smtp+tls://";
usr.sbin/smtpd/mta_session.c
522
schema = "smtps://";
usr.sbin/smtpd/mta_session.c
524
schema = "lmtp://";
usr.sbin/smtpd/mta_session.c
526
schema = "smtp+notls://";
usr.sbin/smtpd/mta_session.c
530
s->id, schema, sa_to_text(s->route->dst->sa),