Home
last modified time | relevance | path

Searched refs:schema (Results 1 – 25 of 3012) sorted by relevance

12345678910>>...121

/freebsd-14.2/sys/dev/pci/
H A Dpci_iov_schema.c168 nvlist_set_error(schema, ENOMEM); in pci_iov_schema_add_bool()
177 nvlist_move_nvlist(schema, name, entry); in pci_iov_schema_add_bool()
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()
208 nvlist_set_error(schema, ENOMEM); in pci_iov_schema_int()
217 nvlist_move_nvlist(schema, name, entry); in pci_iov_schema_int()
260 nvlist_set_error(schema, ENOMEM); in pci_iov_schema_add_unicast_mac()
269 nvlist_move_nvlist(schema, name, entry); in pci_iov_schema_add_unicast_mac()
280 nvlist_set_error(schema, ENOMEM); in pci_iov_schema_add_vlan()
289 nvlist_move_nvlist(schema, name, entry); in pci_iov_schema_add_vlan()
[all …]
H A Dpci_iov.c120 nvlist_t *schema; in pci_iov_attach_method() local
126 schema = NULL; in pci_iov_attach_method()
154 if (schema == NULL) { in pci_iov_attach_method()
162 iov->iov_schema = schema; in pci_iov_attach_method()
179 nvlist_destroy(schema); in pci_iov_attach_method()
240 if (schema == NULL) in pci_iov_build_schema()
246 if (nvlist_error(schema) != 0) in pci_iov_build_schema()
249 return (schema); in pci_iov_build_schema()
252 nvlist_destroy(schema); in pci_iov_build_schema()
265 nvlist_set_error(schema, ENOMEM); in pci_iov_build_pf_schema()
[all …]
/freebsd-14.2/sys/contrib/device-tree/Bindings/
H A Dwriting-schema.rst16 Each schema doc is a structured json-schema which is defined by a set of
30 $schema
31 Indicates the meta-schema the schema file adheres to.
98 boilerplate. The tools process the schema files to produce the final schema for
123 The DT schema project must be installed in order to validate the DT schema
124 binding documents and validate DTS files using the DT schema. The DT schema
142 The DT schema binding documents must be validated using the meta-schema (the
143 schema for the schema) to ensure they are both valid json-schema and valid
155 binding schema files.
171 json-schema Resources
[all …]
H A Dexample-schema.yaml10 $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#
33 # In this case, a 'false' schema will never match.
36 # A dictionary of DT properties for this binding schema
42 # The boolean schema must be a list of schemas.
65 # specific schema don't need to do those checks.
122 # The type is set in the core schema. Per-device schema only need to set
154 core schema.
209 # For multiple 'if' schema, group them under an 'allOf'.
[all …]
H A DMakefile4 DT_MK_SCHEMA ?= dt-mk-schema
67 $(obj)/processed-schema.json: $(DT_DOCS) $(src)/.yamllint check_dtschema_version FORCE
70 always-y += processed-schema.json
79 dt_compatible_check: $(obj)/processed-schema.json
H A D.gitignore3 /processed-schema*.yaml
4 /processed-schema*.json
H A Dwriting-bindings.rst56 https://github.com/devicetree-org/dt-schema/blob/main/dtschema/schemas/property-units.yaml
72 - Properties without schema types (e.g. without standard suffix or not defined
73 by schema) need the type, even if this is an enum.
75 - If schema includes other schema (e.g. /schemas/i2c/i2c-controller.yaml) use
H A Dsubmitting-patches.rst22 2) DT binding files are written in DT schema format using json-schema
28 See Documentation/devicetree/bindings/writing-schema.rst for more details
29 about schema and tools setup.
/freebsd-14.2/contrib/libucl/tests/schema/
H A Ddefinitions.json.disabled4 "schema": {"$ref": "http://highsecure.ru/ucl-schema/schema#"},
7 "description": "valid definition schema",
19 "schema": {"$ref": "http://highsecure.ru/ucl-schema/schema#"},
22 "description": "invalid definition schema",
H A DrefRemote.json.disabled4 "schema": {"$ref": "http://highsecure.ru/ucl-schema/remotes/integer.json"},
20 "schema": {"$ref": "http://highsecure.ru/ucl-schema/remotes/subSchemas.json#/integer"},
36 "schema": {
37 "$ref": "http://highsecure.ru/ucl-schema/remotes/subSchemas.json#/refToInteger"
55 "schema": {
56 "id": "http://highsecure.ru/ucl-schema/remotes/",
/freebsd-14.2/sys/sys/
H A Diov_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-14.2/usr.sbin/iovctl/
H A Diovctl.c57 nvlist_t *schema; in get_schema() local
61 arg.schema = NULL; in get_schema()
69 if (arg.schema == NULL) in get_schema()
81 schema = nvlist_unpack(arg.schema, arg.len, NV_FLAG_IGNORE_CASE); in get_schema()
82 if (schema == NULL) in get_schema()
85 free(arg.schema); in get_schema()
86 return (schema); in get_schema()
284 schema = get_schema(fd); in config_action()
292 nvlist_destroy(schema); in config_action()
386 nvlist_t *schema; in print_schema() local
[all …]
H A Dvalidate.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()
223 validate_config(nvlist_t *config, const nvlist_t *schema, const regex_t *vf_pat) in validate_config() argument
235 validate_device(pf, nvlist_get_nvlist(schema, PF_CONFIG_NAME), in validate_config()
240 vf_schema = nvlist_get_nvlist(schema, VF_SCHEMA_NAME); in validate_config()
H A Dparse.c193 const nvlist_t *schema) in add_config() argument
197 type = nvlist_get_string(schema, TYPE_SCHEMA_NAME); in add_config()
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()
279 parse_config_file(const char *filename, const nvlist_t *schema) in parse_config_file() argument
311 pf_schema = nvlist_get_nvlist(schema, PF_CONFIG_NAME); in parse_config_file()
312 vf_schema = nvlist_get_nvlist(schema, VF_SCHEMA_NAME); in parse_config_file()
346 validate_config(config, schema, &vf_pat); in parse_config_file()
/freebsd-14.2/contrib/libucl/src/
H A Ducl_schema.c889 elt = ucl_object_lookup (schema, "maxValues"); in ucl_schema_validate_values()
939 if (schema->type != UCL_OBJECT) { in ucl_schema_validate()
942 ucl_object_type_to_string (schema->type)); in ucl_schema_validate()
961 elt = ucl_object_lookup (schema, "enum"); in ucl_schema_validate()
968 elt = ucl_object_lookup (schema, "allOf"); in ucl_schema_validate()
979 elt = ucl_object_lookup (schema, "anyOf"); in ucl_schema_validate()
997 elt = ucl_object_lookup (schema, "oneOf"); in ucl_schema_validate()
1015 elt = ucl_object_lookup (schema, "not"); in ucl_schema_validate()
1026 elt = ucl_object_lookup (schema, "$ref"); in ucl_schema_validate()
1041 elt = ucl_object_lookup (schema, "type"); in ucl_schema_validate()
[all …]
/freebsd-14.2/contrib/libucl/tests/
H A Dtest_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()
H A DMakefile.am1 EXTRA_DIST = $(TESTS) basic schema generate.res \
6 schema.test \
/freebsd-14.2/contrib/kyua/store/
H A Dwrite_backend.cpp109 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-14.2/sys/contrib/device-tree/Bindings/mfd/
H A Dallwinner,sun6i-a31-prcm.yaml5 $schema: http://devicetree.org/meta-schemas/core.yaml#
58 # Already checked in the main schema
88 # Already checked in the main schema
122 # Already checked in the main schema
153 # Already checked in the main schema
186 # Already checked in the main schema
H A Dallwinner,sun8i-a23-prcm.yaml5 $schema: http://devicetree.org/meta-schemas/core.yaml#
60 # Already checked in the main schema
94 # Already checked in the main schema
125 # Already checked in the main schema
144 # Already checked in the main schema
/freebsd-14.2/contrib/libucl/python/tests/
H A Dtest_validation.py16 def perform_test(schema, data, valid, description): argument
19 self.assertTrue(ucl.validate(schema, data), msg)
22 ucl.validate(schema, data)
/freebsd-14.2/contrib/libucl/utils/
H A Ducl-tool.c42 const char *schema = NULL, *parm, *val; in main() local
78 schema = val; in main()
133 if (schema != NULL) { in main()
138 if (!ucl_parser_add_file(schema_parser, schema)) { in main()
/freebsd-14.2/sys/contrib/device-tree/Bindings/clock/
H A Dclock-bindings.txt1 This file has moved to the clock binding schema:
2 https://github.com/devicetree-org/dt-schema/blob/main/dtschema/schemas/clock/clock.yaml
/freebsd-14.2/contrib/libucl/python/src/
H A Duclmodule.c261 ucl_object_t *data, *schema; in ucl_validate() local
270 schema = _iterate_python(schemaobj); in ucl_validate()
271 if (!schema) in ucl_validate()
279 r = ucl_object_validate (schema, data, &err); in ucl_validate()
280 ucl_object_unref (schema); in ucl_validate()
/freebsd-14.2/contrib/libucl/lua/
H A Dlua_ucl.c949 ucl_object_t *schema; in lua_ucl_parser_validate() local
957 schema = ucl_object_lua_import (L, 2); in lua_ucl_parser_validate()
959 if (schema == NULL) { in lua_ucl_parser_validate()
979 schema = ucl_parser_get_object (schema_parser); in lua_ucl_parser_validate()
989 if (!ucl_object_validate (schema, parser->top_obj, &err)) { in lua_ucl_parser_validate()
999 ucl_object_unref (schema); in lua_ucl_parser_validate()
1118 ucl_object_t *obj, *schema, *ext_refs = NULL; in lua_ucl_object_validate() local
1125 schema = lua_ucl_object_get (L, 2); in lua_ucl_object_validate()
1127 if (schema && obj && ucl_object_type (schema) == UCL_OBJECT) { in lua_ucl_object_validate()
1155 schema_elt = schema; in lua_ucl_object_validate()
[all …]

12345678910>>...121