Lines Matching defs:schema
93 static void pci_iov_build_pf_schema(nvlist_t *schema,
95 static void pci_iov_build_vf_schema(nvlist_t *schema,
107 nvlist_t *schema;
114 schema = NULL;
140 schema = pci_iov_build_schema(&pf_schema, &vf_schema);
141 if (schema == NULL) {
146 error = pci_iov_validate_schema(schema);
149 iov->iov_schema = schema;
166 nvlist_destroy(schema);
211 nvlist_t *schema, *pf_driver, *vf_driver;
219 schema = pci_iov_schema_alloc_node();
220 if (schema == NULL)
223 pci_iov_build_pf_schema(schema, &pf_driver);
224 pci_iov_build_vf_schema(schema, &vf_driver);
226 if (nvlist_error(schema) != 0)
229 return (schema);
232 nvlist_destroy(schema);
239 pci_iov_build_pf_schema(nvlist_t *schema, nvlist_t **driver_schema)
245 nvlist_set_error(schema, ENOMEM);
253 * nvlist_move_nvlist will put the schema in the error state and
259 nvlist_move_nvlist(schema, PF_CONFIG_NAME, pf_schema);
264 pci_iov_build_vf_schema(nvlist_t *schema, nvlist_t **driver_schema)
270 nvlist_set_error(schema, ENOMEM);
278 * nvlist_move_nvlist will put the schema in the error state and
284 nvlist_move_nvlist(schema, VF_SCHEMA_NAME, vf_schema);
920 error = copyout(packed, output->schema, size);