• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/bhnd/bhndb/

Lines Matching refs:cores

69 #include <dev/bhnd/cores/pci/bhnd_pcireg.h>
114 struct bhnd_core_info **cores, u_int *ncores);
116 struct bhnd_core_info *cores);
156 * Provides early bus access to the bridged device's cores and core enumeration
171 struct bhnd_core_info *cores; /**< erom-owned core table */
172 u_int ncores; /**< number of cores */
299 /* Identify the chip and enumerate the bridged cores */
360 struct bhnd_core_info *cores, hostb_core;
377 cores = NULL;
386 /* Identify the chip and enumerate the bridged cores */
445 error = bhndb_pci_probe_copy_core_table(probe, &cores, &ncores);
447 cores = NULL;
455 error = bhndb_attach(dev, &cid, cores, ncores, &hostb_core, erom_class);
467 bhndb_pci_probe_free_core_table(cores);
480 if (cores != NULL)
481 bhndb_pci_probe_free_core_table(cores);
774 * On SPROM-less devices, the PCI(e) cores will be initialized with their their
1356 error = bhnd_erom_get_core_table(p->erom, &p->cores, &p->ncores);
1361 p->cores = NULL;
1366 error = bhndb_find_hostb_core(p->cores, p->ncores, hostb_devclass,
1387 if (p->cores != NULL)
1388 bhnd_erom_free_core_table(p->erom, p->cores);
1392 KASSERT(p->cores == NULL, ("cannot free erom-owned core table "
1410 bhnd_erom_free_core_table(probe->erom, probe->cores);
1420 * @param[out] cores On success, a copy of the probed core table. The
1423 * @param[out] ncores On success, the number of cores found in
1424 * @p cores.
1432 struct bhnd_core_info **cores, u_int *ncores)
1434 size_t len = sizeof(**cores) * probe->ncores;
1436 *cores = malloc(len, M_BHND, M_WAITOK);
1437 memcpy(*cores, probe->cores, len);
1447 * @param cores The core table to be freed.
1450 bhndb_pci_probe_free_core_table(struct bhnd_core_info *cores)
1452 free(cores, M_BHND);