| /freebsd-13.1/sys/dev/pci/ |
| H A D | pci_iov_schema.c | 163 nvlist_set_error(schema, ENOMEM); in pci_iov_schema_add_bool() 172 nvlist_move_nvlist(schema, name, entry); in pci_iov_schema_add_bool() 183 nvlist_set_error(schema, ENOMEM); in pci_iov_schema_add_string() 192 nvlist_move_nvlist(schema, name, entry); in pci_iov_schema_add_string() 203 nvlist_set_error(schema, ENOMEM); in pci_iov_schema_int() 212 nvlist_move_nvlist(schema, name, entry); in pci_iov_schema_int() 255 nvlist_set_error(schema, ENOMEM); in pci_iov_schema_add_unicast_mac() 264 nvlist_move_nvlist(schema, name, entry); in pci_iov_schema_add_unicast_mac() 519 if (!nvlist_exists_nvlist(schema, name)) in pci_iov_validate_device_schema() 521 dev_schema = nvlist_get_nvlist(schema, name); in pci_iov_validate_device_schema() [all …]
|
| H A D | pci_iov.c | 122 nvlist_t *schema; in pci_iov_attach_method() local 128 schema = NULL; in pci_iov_attach_method() 156 if (schema == NULL) { in pci_iov_attach_method() 164 iov->iov_schema = schema; in pci_iov_attach_method() 181 nvlist_destroy(schema); in pci_iov_attach_method() 242 if (schema == NULL) in pci_iov_build_schema() 248 if (nvlist_error(schema) != 0) in pci_iov_build_schema() 251 return (schema); in pci_iov_build_schema() 254 nvlist_destroy(schema); in pci_iov_build_schema() 267 nvlist_set_error(schema, ENOMEM); in pci_iov_build_pf_schema() [all …]
|
| /freebsd-13.1/usr.sbin/iovctl/ |
| H A D | iovctl.c | 59 nvlist_t *schema; in get_schema() local 63 arg.schema = NULL; in get_schema() 71 if (arg.schema == NULL) in get_schema() 83 schema = nvlist_unpack(arg.schema, arg.len, NV_FLAG_IGNORE_CASE); in get_schema() 84 if (schema == NULL) in get_schema() 87 free(arg.schema); in get_schema() 88 return (schema); in get_schema() 286 schema = get_schema(fd); in config_action() 294 nvlist_destroy(schema); in config_action() 382 nvlist_t *schema; in print_schema() local [all …]
|
| H A D | validate.c | 170 const nvlist_t *subsystem, *schema, *config; in validate_subsystem() local 176 schema = nvlist_get_nvlist(device_schema, subsystem_name); in validate_subsystem() 179 while ((name = nvlist_next(schema, &type, &cookie)) != NULL) { in validate_subsystem() 180 config = nvlist_get_nvlist(schema, name); in validate_subsystem() 196 validate_device(const nvlist_t *device, const nvlist_t *schema, in validate_device() argument 200 validate_subsystem(device, schema, DRIVER_CONFIG_NAME, config_name); in validate_device() 201 validate_subsystem(device, schema, IOV_CONFIG_NAME, config_name); in validate_device() 225 validate_config(nvlist_t *config, const nvlist_t *schema, const regex_t *vf_pat) in validate_config() argument 237 validate_device(pf, nvlist_get_nvlist(schema, PF_CONFIG_NAME), in validate_config() 242 vf_schema = nvlist_get_nvlist(schema, VF_SCHEMA_NAME); in validate_config()
|
| H A D | parse.c | 172 const nvlist_t *schema) in add_config() argument 176 type = nvlist_get_string(schema, TYPE_SCHEMA_NAME); in add_config() 203 const char *subsystem, const nvlist_t *schema) in parse_device_config() argument 215 driver_schema = nvlist_get_nvlist(schema, DRIVER_CONFIG_NAME); in parse_device_config() 216 iov_schema = nvlist_get_nvlist(schema, IOV_CONFIG_NAME); in parse_device_config() 256 parse_config_file(const char *filename, const nvlist_t *schema) in parse_config_file() argument 288 pf_schema = nvlist_get_nvlist(schema, PF_CONFIG_NAME); in parse_config_file() 289 vf_schema = nvlist_get_nvlist(schema, VF_SCHEMA_NAME); in parse_config_file() 323 validate_config(config, schema, &vf_pat); in parse_config_file()
|
| /freebsd-13.1/sys/sys/ |
| H A D | iov_schema.h | 39 void pci_iov_schema_add_bool(nvlist_t *schema, const char *name, 41 void pci_iov_schema_add_string(nvlist_t *schema, const char *name, 43 void pci_iov_schema_add_uint8(nvlist_t *schema, const char *name, 45 void pci_iov_schema_add_uint16(nvlist_t *schema, const char *name, 47 void pci_iov_schema_add_uint32(nvlist_t *schema, const char *name, 49 void pci_iov_schema_add_uint64(nvlist_t *schema, const char *name, 51 void pci_iov_schema_add_unicast_mac(nvlist_t *schema, const char *name,
|
| /freebsd-13.1/sys/contrib/device-tree/Bindings/ |
| H A D | Makefile | 4 DT_MK_SCHEMA ?= dt-mk-schema 22 DT_TMP_SCHEMA := $(obj)/processed-schema-examples.yaml 42 $(obj)/processed-schema-examples.yaml: $(DT_DOCS) check_dtschema_version FORCE 50 $(obj)/processed-schema.yaml: $(obj)/processed-schema-examples.yaml FORCE 59 $(obj)/processed-schema.yaml: DT_MK_SCHEMA_FLAGS := -u 60 $(obj)/processed-schema.yaml: $(DT_SCHEMA_FILES) check_dtschema_version FORCE 67 extra-$(CHECK_DT_BINDING) += processed-schema-examples.yaml 68 extra-$(CHECK_DTBS) += processed-schema.yaml
|
| H A D | example-schema.yaml | 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 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. 120 # The type is set in the core schema. Per device schema only need to set 152 core schema. [all …]
|
| H A D | submitting-patches.rst | 22 2) DT binding files are written in DT schema format using json-schema 28 See ../writing-schema.rst for more details about schema and tools setup.
|
| /freebsd-13.1/contrib/libucl/src/ |
| H A D | ucl_schema.c | 889 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-13.1/contrib/libucl/tests/ |
| H A D | test_schema.c | 65 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 D | Makefile.am | 1 EXTRA_DIST = $(TESTS) basic schema generate.res \ 6 schema.test \
|
| /freebsd-13.1/contrib/kyua/store/ |
| H A D | write_backend.cpp | 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.1/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/ |
| H A D | TraceIntelPTSessionFileParser.cpp | 23 static std::string schema; in GetSchema() local 24 if (schema.empty()) { in GetSchema() 25 schema = TraceSessionFileParser::BuildSchema(R"({ in GetSchema() 35 return schema; in GetSchema()
|
| /freebsd-13.1/contrib/libucl/python/tests/ |
| H A D | test_validation.py | 16 def perform_test(schema, data, valid, description): argument 19 self.assertTrue(ucl.validate(schema, data), msg) 22 ucl.validate(schema, data)
|
| /freebsd-13.1/sys/contrib/device-tree/Bindings/mfd/ |
| H A D | allwinner,sun8i-a23-prcm.yaml | 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 50 # Already checked in the main schema 84 # Already checked in the main schema 115 # Already checked in the main schema 134 # Already checked in the main schema
|
| H A D | allwinner,sun6i-a31-prcm.yaml | 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 48 # Already checked in the main schema 82 # Already checked in the main schema 113 # Already checked in the main schema 146 # Already checked in the main schema
|
| /freebsd-13.1/contrib/libucl/utils/ |
| H A D | ucl-tool.c | 42 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-13.1/contrib/libucl/python/src/ |
| H A D | uclmodule.c | 261 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-13.1/contrib/libucl/lua/ |
| H A D | lua_ucl.c | 949 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 …]
|
| /freebsd-13.1/sys/contrib/device-tree/Bindings/input/ |
| H A D | input.yaml | 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Common input schema binding
|
| /freebsd-13.1/contrib/libucl/ |
| H A D | ChangeLog.md | 34 - Fixed serious bugs in schema and arrays iteration 55 - Add schema validation to lua API 56 - Add support for external references to schema validation 97 - Fix schema validation for patternProperties with object data (by Denis Volpato Martins)
|
| /freebsd-13.1/sys/contrib/device-tree/Bindings/reset/ |
| H A D | allwinner,sun6i-a31-clock-reset.yaml | 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 25 # PRCM's schema. Make sure we only validate standalone nodes.
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Target/ |
| H A D | Trace.cpp | 93 StringRef schema = PluginManager::GetTraceSchema(plugin_name); in FindPluginSchema() local 94 if (!schema.empty()) in FindPluginSchema() 95 return schema; in FindPluginSchema()
|
| /freebsd-13.1/contrib/file/magic/Magdir/ |
| H A D | dataone | 16 >&0 regex (onedcx/v)[0-9].[0-9]+ https://ns.dataone.org/metadata/schema/onedcx/v1.0 23 >&0 regex (mercury/terms/v)[0-9].[0-9] https://purl.org/ornl/schema/mercury/terms/v1.0
|