Lines Matching full:cores
67 #include <dev/bhnd/cores/pci/bhnd_pcireg.h>
112 struct bhnd_core_info **cores, u_int *ncores);
114 struct bhnd_core_info *cores);
154 * Provides early bus access to the bridged device's cores and core enumeration
169 struct bhnd_core_info *cores; /**< erom-owned core table */
170 u_int ncores; /**< number of cores */
296 /* Identify the chip and enumerate the bridged cores */
357 struct bhnd_core_info *cores, hostb_core;
374 cores = NULL;
383 /* Identify the chip and enumerate the bridged cores */
442 error = bhndb_pci_probe_copy_core_table(probe, &cores, &ncores);
444 cores = NULL;
452 error = bhndb_attach(dev, &cid, cores, ncores, &hostb_core, erom_class);
463 bhndb_pci_probe_free_core_table(cores);
476 if (cores != NULL)
477 bhndb_pci_probe_free_core_table(cores);
770 * On SPROM-less devices, the PCI(e) cores will be initialized with their their
1352 error = bhnd_erom_get_core_table(p->erom, &p->cores, &p->ncores);
1357 p->cores = NULL;
1362 error = bhndb_find_hostb_core(p->cores, p->ncores, hostb_devclass,
1383 if (p->cores != NULL)
1384 bhnd_erom_free_core_table(p->erom, p->cores);
1388 KASSERT(p->cores == NULL, ("cannot free erom-owned core table "
1406 bhnd_erom_free_core_table(probe->erom, probe->cores);
1416 * @param[out] cores On success, a copy of the probed core table. The
1419 * @param[out] ncores On success, the number of cores found in
1420 * @p cores.
1428 struct bhnd_core_info **cores, u_int *ncores)
1430 size_t len = sizeof(**cores) * probe->ncores;
1432 *cores = malloc(len, M_BHND, M_WAITOK);
1433 memcpy(*cores, probe->cores, len);
1443 * @param cores The core table to be freed.
1446 bhndb_pci_probe_free_core_table(struct bhnd_core_info *cores)
1448 free(cores, M_BHND);