Lines Matching refs:schema
93 static void pci_iov_build_pf_schema(nvlist_t *schema,
95 static void pci_iov_build_vf_schema(nvlist_t *schema,
121 nvlist_t *schema;
128 schema = NULL;
154 schema = pci_iov_build_schema(&pf_schema, &vf_schema);
155 if (schema == NULL) {
160 error = pci_iov_validate_schema(schema);
163 iov->iov_schema = schema;
180 nvlist_destroy(schema);
225 nvlist_t *schema, *pf_driver, *vf_driver;
233 schema = pci_iov_schema_alloc_node();
234 if (schema == NULL)
237 pci_iov_build_pf_schema(schema, &pf_driver);
238 pci_iov_build_vf_schema(schema, &vf_driver);
240 if (nvlist_error(schema) != 0)
243 return (schema);
246 nvlist_destroy(schema);
253 pci_iov_build_pf_schema(nvlist_t *schema, nvlist_t **driver_schema)
259 nvlist_set_error(schema, ENOMEM);
267 * nvlist_move_nvlist will put the schema in the error state and
273 nvlist_move_nvlist(schema, PF_CONFIG_NAME, pf_schema);
278 pci_iov_build_vf_schema(nvlist_t *schema, nvlist_t **driver_schema)
284 nvlist_set_error(schema, ENOMEM);
292 * nvlist_move_nvlist will put the schema in the error state and
298 nvlist_move_nvlist(schema, VF_SCHEMA_NAME, vf_schema);
934 error = copyout(packed, output->schema, size);