Lines Matching refs: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);
464 bhndb_pci_probe_free_core_table(cores);
477 if (cores != NULL)
478 bhndb_pci_probe_free_core_table(cores);
771 * On SPROM-less devices, the PCI(e) cores will be initialized with their their
1353 error = bhnd_erom_get_core_table(p->erom, &p->cores, &p->ncores);
1358 p->cores = NULL;
1363 error = bhndb_find_hostb_core(p->cores, p->ncores, hostb_devclass,
1384 if (p->cores != NULL)
1385 bhnd_erom_free_core_table(p->erom, p->cores);
1389 KASSERT(p->cores == NULL, ("cannot free erom-owned core table "
1407 bhnd_erom_free_core_table(probe->erom, probe->cores);
1417 * @param[out] cores On success, a copy of the probed core table. The
1420 * @param[out] ncores On success, the number of cores found in
1421 * @p cores.
1429 struct bhnd_core_info **cores, u_int *ncores)
1431 size_t len = sizeof(**cores) * probe->ncores;
1433 *cores = malloc(len, M_BHND, M_WAITOK);
1434 memcpy(*cores, probe->cores, len);
1444 * @param cores The core table to be freed.
1447 bhndb_pci_probe_free_core_table(struct bhnd_core_info *cores)
1449 free(cores, M_BHND);