Home
last modified time | relevance | path

Searched full:schema (Results 1 – 25 of 1316) sorted by relevance

12345678910>>...53

/freebsd-13-stable/share/man/man9/
HDpci_iov_schema.939 .Nd PCI SR-IOV config schema interface
47 .Fn pci_iov_schema_add_bool "nvlist_t *schema" "const char *name" \
50 .Fn pci_iov_schema_add_string "nvlist_t *schema" "const char *name" \
53 .Fn pci_iov_schema_add_uint8 "nvlist_t *schema" "const char *name" \
56 .Fn pci_iov_schema_add_uint16 "nvlist_t *schema" "const char *name" \
59 .Fn pci_iov_schema_add_uint32 "nvlist_t *schema" "const char *name" \
62 .Fn pci_iov_schema_add_uint64 "nvlist_t *schema" "const char *name" \
65 .Fn pci_iov_schema_add_unicast_mac "nvlist_t *schema" "const char *name" \
70 configuration schema is a data
73 Each PF driver defines two schema instances: the PF schema and the VF schema.
[all …]
/freebsd-13-stable/sys/dev/pci/
HDpci_iov_schema.c161 pci_iov_schema_add_bool(nvlist_t *schema, const char *name, uint32_t flags, in pci_iov_schema_add_bool() argument
168 nvlist_set_error(schema, ENOMEM); in pci_iov_schema_add_bool()
177 nvlist_move_nvlist(schema, name, entry); in pci_iov_schema_add_bool()
181 pci_iov_schema_add_string(nvlist_t *schema, const char *name, uint32_t flags, in pci_iov_schema_add_string() argument
188 nvlist_set_error(schema, ENOMEM); in pci_iov_schema_add_string()
197 nvlist_move_nvlist(schema, name, entry); in pci_iov_schema_add_string()
201 pci_iov_schema_int(nvlist_t *schema, const char *name, const char *type, in pci_iov_schema_int() argument
208 nvlist_set_error(schema, ENOMEM); in pci_iov_schema_int()
217 nvlist_move_nvlist(schema, name, entry); in pci_iov_schema_int()
221 pci_iov_schema_add_uint8(nvlist_t *schema, const char *name, uint32_t flags, in pci_iov_schema_add_uint8() argument
[all …]
HDpci_iov.c92 static void pci_iov_build_pf_schema(nvlist_t *schema,
94 static void pci_iov_build_vf_schema(nvlist_t *schema,
120 nvlist_t *schema; in pci_iov_attach_method() local
126 schema = NULL; in pci_iov_attach_method()
153 schema = pci_iov_build_schema(&pf_schema, &vf_schema); in pci_iov_attach_method()
154 if (schema == NULL) { in pci_iov_attach_method()
159 error = pci_iov_validate_schema(schema); in pci_iov_attach_method()
162 iov->iov_schema = schema; in pci_iov_attach_method()
179 nvlist_destroy(schema); in pci_iov_attach_method()
231 nvlist_t *schema, *pf_driver, *vf_driver; in pci_iov_build_schema() local
[all …]
/freebsd-13-stable/sys/contrib/device-tree/Bindings/
HDexample-schema.yaml5 # All the top-level keys are standard json-schema keywords except for
10 $id: http://devicetree.org/schemas/example-schema.yaml#
11 # $schema is the meta-schema this schema should be validated with.
12 $schema: http://devicetree.org/meta-schemas/core.yaml#
14 title: An example schema annotated with jsonschema details
29 # 'select' is a schema applied to a DT node to determine if this binding
30 # schema should be applied to the node. It is optional and by default the
33 # In this case, a 'false' schema will never match.
36 # A dictionary of DT properties for this binding schema
38 # More complicated schema can use oneOf (XOR), anyOf (OR), or allOf (AND)
[all …]
HDMakefile4 DT_MK_SCHEMA ?= dt-mk-schema
22 DT_TMP_SCHEMA := $(obj)/processed-schema-examples.yaml
25 -name 'processed-schema*' ! \
28 quiet_cmd_mk_schema = SCHEMA $@
42 $(obj)/processed-schema-examples.yaml: $(DT_DOCS) check_dtschema_version FORCE
47 # Unless DT_SCHEMA_FILES is specified, use the full schema for dtbs_check too.
48 # Just copy processed-schema-examples.yaml
50 $(obj)/processed-schema.yaml: $(obj)/processed-schema-examples.yaml FORCE
57 # If DT_SCHEMA_FILES is specified, use it for processed-schema.yaml
59 $(obj)/processed-schema.yaml: DT_MK_SCHEMA_FLAGS := -u
[all …]
/freebsd-13-stable/sys/sys/
HDiov.h55 * with a configuration schema. The schema is exported from the kernel as a
62 * schema.
69 * associated with this key is a nvlist that follows the device schema
73 * associated with this key is a nvlist that follows the device schema
77 * DEVICE SCHEMA NODE
80 * schema node format. The parameters in this node specify the
84 * with this key is an nvlist that follows the device/subsystem schema node
88 * DEVICE/SUBSYSTEM SCHEMA NODE
89 * 1) All keys in the device/subsystem schema node are optional.
93 * configuration values, and must be a nvlist in parameter schema node
[all …]
HDiov_schema.h37 void pci_iov_schema_add_bool(nvlist_t *schema, const char *name,
39 void pci_iov_schema_add_string(nvlist_t *schema, const char *name,
41 void pci_iov_schema_add_uint8(nvlist_t *schema, const char *name,
43 void pci_iov_schema_add_uint16(nvlist_t *schema, const char *name,
45 void pci_iov_schema_add_uint32(nvlist_t *schema, const char *name,
47 void pci_iov_schema_add_uint64(nvlist_t *schema, const char *name,
49 void pci_iov_schema_add_unicast_mac(nvlist_t *schema, const char *name,
51 void pci_iov_schema_add_vlan(nvlist_t *schema, const char *name,
/freebsd-13-stable/usr.sbin/iovctl/
HDiovctl.c49 * Fetch the config schema from the kernel via ioctl. This function has to
51 * to allocate for the schema, and the second actually fetches the schema.
57 nvlist_t *schema; in get_schema() local
60 /* Do the ioctl() once to fetch the size of the schema. */ in get_schema()
61 arg.schema = NULL; in get_schema()
66 err(1, "Could not fetch size of config schema"); in get_schema()
68 arg.schema = malloc(arg.len); in get_schema()
69 if (arg.schema == NULL) in get_schema()
70 err(1, "Could not allocate %zu bytes for schema", in get_schema()
73 /* Now do the ioctl() for real to get the schema. */ in get_schema()
[all …]
HDvalidate.c168 const nvlist_t *subsystem, *schema, *config; in validate_subsystem() local
174 schema = nvlist_get_nvlist(device_schema, subsystem_name); in validate_subsystem()
177 while ((name = nvlist_next(schema, &type, &cookie)) != NULL) { in validate_subsystem()
178 config = nvlist_get_nvlist(schema, name); in validate_subsystem()
194 validate_device(const nvlist_t *device, const nvlist_t *schema, in validate_device() argument
198 validate_subsystem(device, schema, DRIVER_CONFIG_NAME, config_name); in validate_device()
199 validate_subsystem(device, schema, IOV_CONFIG_NAME, config_name); in validate_device()
213 * config schema. Note that the parser is required to not insert configuration
214 * keys that are not valid in the schema, and to not insert configuration values
218 * subsystem from config, validating that all required parameters in the schema
[all …]
HDparse.c189 * in the schema, and then adds the value to the configuation node.
193 const nvlist_t *schema) in add_config() argument
197 type = nvlist_get_string(schema, TYPE_SCHEMA_NAME); in add_config()
216 errx(1, "Unexpected type '%s' in schema", type); in add_config()
221 * validates that the key/value pair is valid in the schema, and then adds
226 const char *subsystem, const nvlist_t *schema) in parse_device_config() argument
238 driver_schema = nvlist_get_nvlist(schema, DRIVER_CONFIG_NAME); in parse_device_config()
239 iov_schema = nvlist_get_nvlist(schema, IOV_CONFIG_NAME); in parse_device_config()
273 * Parses the specified config file using the given schema, and returns an
279 parse_config_file(const char *filename, const nvlist_t *schema) in parse_config_file() argument
[all …]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ProfileData/
HDMemProf.cpp27 const MemProfSchema &Schema) { in serializedSizeV0() argument
34 Size += PortableMemInfoBlock::serializedSize(Schema); in serializedSizeV0()
39 const MemProfSchema &Schema) { in serializedSizeV2() argument
44 Size += PortableMemInfoBlock::serializedSize(Schema); in serializedSizeV2()
49 const MemProfSchema &Schema) { in serializedSizeV3() argument
54 Size += PortableMemInfoBlock::serializedSize(Schema); in serializedSizeV3()
58 size_t IndexedAllocationInfo::serializedSize(const MemProfSchema &Schema, in serializedSize() argument
63 return serializedSizeV0(*this, Schema); in serializedSize()
65 return serializedSizeV2(*this, Schema); in serializedSize()
67 return serializedSizeV3(*this, Schema); in serializedSize()
[all …]
HDInstrProfWriter.cpp442 // Serialize Schema.
444 const memprof::MemProfSchema &Schema) { in writeMemProfSchema() argument
445 OS.write(static_cast<uint64_t>(Schema.size())); in writeMemProfSchema()
446 for (const auto Id : Schema) in writeMemProfSchema()
455 memprof::MemProfSchema *Schema, memprof::IndexedVersion Version, in writeMemProfRecords() argument
458 memprof::RecordWriterTrait RecordWriter(Schema, Version, in writeMemProfRecords()
590 // uint64_t Num schema entries
591 // uint64_t Schema entry 0
592 // uint64_t Schema entry 1
594 // uint64_t Schema entry N - 1
[all …]
/freebsd-13-stable/contrib/libucl/tests/schema/
HDadditionalItems.json3 "description": "additionalItems as schema",
4 "schema": { object
10 "description": "additional items match schema",
15 "description": "additional items do not match schema",
22 "description": "items is schema, no additionalItems",
23 "schema": { object
29 "description": "all items match schema",
37 "schema": { object
56 "schema": {"additionalItems": false}, object
60 "items defaults to empty schema so everything is valid",
[all …]
HDdefinitions.json4 "schema": {"$ref": "http://highsecure.ru/ucl-schema/schema#"}, object
7 "description": "valid definition schema",
19 "schema": {"$ref": "http://highsecure.ru/ucl-schema/schema#"}, object
22 "description": "invalid definition schema",
HDrefRemote.json4 "schema": {"$ref": "http://highsecure.ru/ucl-schema/remotes/integer.json"}, object
20 "schema": {"$ref": "http://highsecure.ru/ucl-schema/remotes/subSchemas.json#/integer"}, object
36 "schema": { object
37 "$ref": "http://highsecure.ru/ucl-schema/remotes/subSchemas.json#/refToInteger"
55 "schema": {
56 "id": "http://highsecure.ru/ucl-schema/remotes/",
HDref.json4 "schema": { object
35 "schema": { object
56 "schema": { object
77 "schema": { object
107 "schema": { object
130 "schema": {"$ref": "http://highsecure.ru/ucl-schema/schema#"}, object
HDnot.json4 "schema": { object
22 "schema": { object
44 "description": "not more complex schema",
45 "schema": { object
75 "schema": { object
HDtype.json4 "schema": {"type": "integer"}, object
45 "schema": {"type": "number"}, object
86 "schema": {"type": "string"}, object
127 "schema": {"type": "object"}, object
168 "schema": {"type": "array"}, object
209 "schema": {"type": "boolean"}, object
250 "schema": {"type": "null"}, object
291 "schema": {"type": ["integer", "string"]}, object
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/
HDCGPointerAuth.cpp24 /// Given a pointer-authentication schema, return a concrete "other"
27 const PointerAuthSchema &Schema, GlobalDecl Decl, QualType Type) { in getPointerAuthOtherDiscriminator() argument
28 switch (Schema.getOtherDiscrimination()) { in getPointerAuthOtherDiscriminator()
33 assert(!Type.isNull() && "type not provided for type-discriminated schema"); in getPointerAuthOtherDiscriminator()
39 "declaration not provided for decl-discriminated schema"); in getPointerAuthOtherDiscriminator()
44 return llvm::ConstantInt::get(IntPtrTy, Schema.getConstantDiscrimination()); in getPointerAuthOtherDiscriminator()
72 /// Return the abstract pointer authentication schema for a pointer to the given
75 const auto &Schema = getCodeGenOpts().PointerAuth.FunctionPointers; in getFunctionPointerAuthInfo() local
76 if (!Schema) in getFunctionPointerAuthInfo()
79 assert(!Schema.isAddressDiscriminated() && in getFunctionPointerAuthInfo()
[all …]
/freebsd-13-stable/contrib/libucl/src/
HDucl_schema.c43 static bool ucl_schema_validate (const ucl_object_t *schema,
149 ucl_schema_validate_object (const ucl_object_t *schema, in ucl_schema_validate_object() argument
160 while (ret && (elt = ucl_object_iterate (schema, &iter, true)) != NULL) { in ucl_schema_validate_object()
185 "additionalProperties attribute is invalid in schema"); in ucl_schema_validate_object()
196 "required attribute is invalid in schema"); in ucl_schema_validate_object()
246 /* Check if we have exactly the same properties in schema and object */ in ucl_schema_validate_object()
248 prop = ucl_object_lookup (schema, "properties"); in ucl_schema_validate_object()
253 pat = ucl_object_lookup (schema, "patternProperties"); in ucl_schema_validate_object()
304 ucl_schema_validate_number (const ucl_object_t *schema, in ucl_schema_validate_number() argument
313 while (ret && (elt = ucl_object_iterate (schema, &iter, true)) != NULL) { in ucl_schema_validate_number()
[all …]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/ProfileData/
HDMemProf.h52 // Returns the full schema currently in use.
55 // Returns the schema consisting of the fields used for hot cold memory hinting.
59 // written partially by providing an appropriate schema to the serialize and
66 Schema.set(llvm::to_underlying(Id)); in PortableMemInfoBlock()
72 PortableMemInfoBlock(const MemProfSchema &Schema, const unsigned char *Ptr) { in PortableMemInfoBlock()
73 deserialize(Schema, Ptr); in PortableMemInfoBlock()
76 // Read the contents of \p Ptr based on the \p Schema to populate the
82 Schema.reset(); in deserialize()
96 Schema.set(llvm::to_underlying(Id)); in deserialize()
100 // Write the contents of the MemInfoBlock based on the \p Schema provided to
[all …]
/freebsd-13-stable/contrib/kyua/store/
HDmigrate.cpp66 /// Schema version at which we switched to results files.
70 /// Queries the schema version of the given database.
72 /// \param file The database from which to query the schema version.
74 /// \return The schema version number.
91 /// \param version_from Current schema version in the database.
92 /// \param version_to Schema version to migrate to.
106 LI(F("Migrating schema of %s from version %s to %s") % file % version_from in migrate_schema_step()
134 throw store::error(F("Schema migration failed: %s") % e.what()); in migrate_schema_step()
217 /// Calculates the path to a schema migration file.
231 /// Backs up a database for schema migration purposes.
[all …]
HDwrite_backend.cpp52 /// The current schema version.
54 /// Any new database gets this schema version. Existing databases with an older
55 /// schema version must be first migrated to the current schema with
85 /// Calculates the path to the schema file for the database.
109 const fs::path schema = schema_file(); in initialize() local
111 LI(F("Populating new database with schema from %s") % schema); in initialize()
113 db.exec(utils::read_file(schema)); in initialize()
119 "%s") % schema); in initialize()
128 throw error(F("Cannot read database schema '%s'") % schema); in initialize()
/freebsd-13-stable/contrib/libucl/tests/
HDtest_schema.c65 perform_test (const ucl_object_t *schema, const ucl_object_t *obj, in perform_test() argument
80 match = ucl_object_validate (schema, data, err); in perform_test()
87 fprintf (stdout, "%s\n", ucl_object_emit (schema, UCL_EMIT_CONFIG)); in perform_test()
99 const ucl_object_t *schema, *tests, *description, *test; in perform_tests() local
106 schema = ucl_object_lookup (obj, "schema"); in perform_tests()
110 if (schema == NULL || tests == NULL || description == NULL) { in perform_tests()
118 if (!perform_test (schema, test, &err)) { in perform_tests()
/freebsd-13-stable/contrib/libucl/utils/
HDucl-tool.c27 fprintf(out, " [-s|--schema file] [-f|--format format]\n\n"); in usage()
33 fprintf(out, " --schema - specify schema file for validation\n"); in usage()
42 const char *schema = NULL, *parm, *val; in main() local
75 } else if ((strcmp(parm, "--schema") == 0) || (strcmp(parm, "-s") == 0)) { in main()
78 schema = val; in main()
133 if (schema != NULL) { in main()
138 if (!ucl_parser_add_file(schema_parser, schema)) { in main()
139 fprintf(stderr, "Failed to parse schema file: %s\n", in main()

12345678910>>...53