Lines Matching refs:cores

112 			    struct bhnd_core_info **cores, u_int *ncores);
114 struct bhnd_core_info *cores);
169 struct bhnd_core_info *cores; /**< erom-owned core table */ member
357 struct bhnd_core_info *cores, hostb_core; in bhndb_pci_attach() local
374 cores = NULL; in bhndb_pci_attach()
442 error = bhndb_pci_probe_copy_core_table(probe, &cores, &ncores); in bhndb_pci_attach()
444 cores = NULL; in bhndb_pci_attach()
452 error = bhndb_attach(dev, &cid, cores, ncores, &hostb_core, erom_class); in bhndb_pci_attach()
463 bhndb_pci_probe_free_core_table(cores); in bhndb_pci_attach()
476 if (cores != NULL) in bhndb_pci_attach()
477 bhndb_pci_probe_free_core_table(cores); in bhndb_pci_attach()
1352 error = bhnd_erom_get_core_table(p->erom, &p->cores, &p->ncores); in bhndb_pci_probe_alloc()
1357 p->cores = NULL; in bhndb_pci_probe_alloc()
1362 error = bhndb_find_hostb_core(p->cores, p->ncores, hostb_devclass, in bhndb_pci_probe_alloc()
1383 if (p->cores != NULL) in bhndb_pci_probe_alloc()
1384 bhnd_erom_free_core_table(p->erom, p->cores); in bhndb_pci_probe_alloc()
1388 KASSERT(p->cores == NULL, ("cannot free erom-owned core table " in bhndb_pci_probe_alloc()
1406 bhnd_erom_free_core_table(probe->erom, probe->cores); in bhndb_pci_probe_free()
1428 struct bhnd_core_info **cores, u_int *ncores) in bhndb_pci_probe_copy_core_table() argument
1430 size_t len = sizeof(**cores) * probe->ncores; in bhndb_pci_probe_copy_core_table()
1432 *cores = malloc(len, M_BHND, M_WAITOK); in bhndb_pci_probe_copy_core_table()
1433 memcpy(*cores, probe->cores, len); in bhndb_pci_probe_copy_core_table()
1446 bhndb_pci_probe_free_core_table(struct bhnd_core_info *cores) in bhndb_pci_probe_free_core_table() argument
1448 free(cores, M_BHND); in bhndb_pci_probe_free_core_table()