Lines Matching refs:schema
92 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;
126 schema = NULL;
153 schema = pci_iov_build_schema(&pf_schema, &vf_schema);
154 if (schema == NULL) {
159 error = pci_iov_validate_schema(schema);
162 iov->iov_schema = schema;
179 nvlist_destroy(schema);
231 nvlist_t *schema, *pf_driver, *vf_driver;
239 schema = pci_iov_schema_alloc_node();
240 if (schema == NULL)
243 pci_iov_build_pf_schema(schema, &pf_driver);
244 pci_iov_build_vf_schema(schema, &vf_driver);
246 if (nvlist_error(schema) != 0)
249 return (schema);
252 nvlist_destroy(schema);
259 pci_iov_build_pf_schema(nvlist_t *schema, nvlist_t **driver_schema)
265 nvlist_set_error(schema, ENOMEM);
273 * nvlist_move_nvlist will put the schema in the error state and
279 nvlist_move_nvlist(schema, PF_CONFIG_NAME, pf_schema);
284 pci_iov_build_vf_schema(nvlist_t *schema, nvlist_t **driver_schema)
290 nvlist_set_error(schema, ENOMEM);
298 * nvlist_move_nvlist will put the schema in the error state and
304 nvlist_move_nvlist(schema, VF_SCHEMA_NAME, vf_schema);
960 error = copyout(packed, output->schema, size);