| /freebsd-14-stable/sys/dev/bhnd/bcma/ |
| HD | bcma_erom.c | 67 static int bcma_erom_read32(struct bcma_erom *erom, 69 static int bcma_erom_skip32(struct bcma_erom *erom); 71 static int bcma_erom_skip_core(struct bcma_erom *erom); 72 static int bcma_erom_skip_mport(struct bcma_erom *erom); 73 static int bcma_erom_skip_sport_region(struct bcma_erom *erom); 75 static int bcma_erom_seek_next(struct bcma_erom *erom, 77 static int bcma_erom_region_to_port_type(struct bcma_erom *erom, 80 static int bcma_erom_peek32(struct bcma_erom *erom, 83 static bus_size_t bcma_erom_tell(struct bcma_erom *erom); 84 static void bcma_erom_seek(struct bcma_erom *erom, [all …]
|
| HD | bcma.c | 658 bhnd_erom_t *erom; in bcma_add_children() local 672 erom = bhnd_erom_alloc(&bcma_erom_parser, cid, eio); in bcma_add_children() 673 if (erom == NULL) { in bcma_add_children() 679 bcma_erom = (struct bcma_erom *)erom; in bcma_add_children() 710 bhnd_erom_free(erom); in bcma_add_children()
|
| /freebsd-14-stable/sys/dev/bhnd/ |
| HD | bhnd_erom.h | 63 bhnd_erom_t *erom, size_t esize, 67 void bhnd_erom_fini_static(bhnd_erom_t *erom); 69 void bhnd_erom_free(bhnd_erom_t *erom); 166 bhnd_erom_get_core_table(bhnd_erom_t *erom, struct bhnd_core_info **cores, in bhnd_erom_get_core_table() argument 169 return (BHND_EROM_GET_CORE_TABLE(erom, cores, num_cores)); in bhnd_erom_get_core_table() 179 bhnd_erom_free_core_table(bhnd_erom_t *erom, struct bhnd_core_info *cores) in bhnd_erom_free_core_table() argument 181 return (BHND_EROM_FREE_CORE_TABLE(erom, cores)); in bhnd_erom_free_core_table() 196 bhnd_erom_lookup_core(bhnd_erom_t *erom, const struct bhnd_core_match *desc, in bhnd_erom_lookup_core() argument 199 return (BHND_EROM_LOOKUP_CORE(erom, desc, core)); in bhnd_erom_lookup_core() 226 bhnd_erom_lookup_core_addr(bhnd_erom_t *erom, const struct bhnd_core_match *desc, in bhnd_erom_lookup_core_addr() argument [all …]
|
| HD | bhnd_erom_if.m | 59 * @param cls The erom class to probe. 88 * @param erom The erom parser to initialize. 91 * enumeration table. On success, the erom parser assumes 98 bhnd_erom_t *erom; 104 * Release all resources held by @p erom. 106 * @param erom An erom parser instance previously initialized via 110 bhnd_erom_t *erom; 120 * @param erom The erom parser to be queried. 129 bhnd_erom_t *erom; 137 * @param erom The erom parser instance. [all …]
|
| HD | bhnd_erom.c | 175 bhnd_erom_t *erom; in bhnd_erom_alloc() local 178 erom = (bhnd_erom_t *)kobj_create((kobj_class_t)cls, M_BHND, in bhnd_erom_alloc() 181 if ((error = BHND_EROM_INIT(erom, cid, eio))) { in bhnd_erom_alloc() 185 kobj_delete((kobj_t)erom, M_BHND); in bhnd_erom_alloc() 189 return (erom); in bhnd_erom_alloc() 214 bhnd_erom_init_static(bhnd_erom_class_t *cls, bhnd_erom_t *erom, size_t esize, in bhnd_erom_init_static() argument 226 kobj_init_static((kobj_t)erom, kcls); in bhnd_erom_init_static() 227 return (BHND_EROM_INIT(erom, cid, eio)); in bhnd_erom_init_static() 238 bhnd_erom_fini_static(bhnd_erom_t *erom) in bhnd_erom_fini_static() argument 240 return (BHND_EROM_FINI(erom)); in bhnd_erom_fini_static() [all …]
|
| /freebsd-14-stable/sys/dev/bhnd/siba/ |
| HD | siba_erom.c | 161 siba_erom_init(bhnd_erom_t *erom, const struct bhnd_chipid *cid, in siba_erom_init() argument 167 sc = (struct siba_erom *)erom; in siba_erom_init() 184 siba_erom_fini(bhnd_erom_t *erom) in siba_erom_fini() argument 186 struct siba_erom *sc = (struct siba_erom *)erom; in siba_erom_fini() 444 siba_erom_lookup_core(bhnd_erom_t *erom, const struct bhnd_core_match *desc, in siba_erom_lookup_core() argument 451 sc = (struct siba_erom *)erom; in siba_erom_lookup_core() 498 siba_erom_lookup_core_addr(bhnd_erom_t *erom, const struct bhnd_core_match *desc, in siba_erom_lookup_core_addr() argument 512 sc = (struct siba_erom *)erom; in siba_erom_lookup_core_addr() 515 if ((error = siba_erom_lookup_core(erom, desc, &core))) in siba_erom_lookup_core_addr() 543 error = siba_erom_lookup_core_addr(erom, desc, BHND_PORT_DEVICE, in siba_erom_lookup_core_addr() [all …]
|
| HD | siba.c | 1282 bhnd_erom_t *erom; in siba_add_children() local 1294 erom = bhnd_erom_alloc(&siba_erom_parser, cid, eio); in siba_add_children() 1295 if (erom == NULL) { in siba_add_children() 1313 siba_erom = (struct siba_erom *)erom; in siba_add_children() 1346 bhnd_erom_free(erom); in siba_add_children() 1347 erom = NULL; in siba_add_children() 1386 if (erom != NULL) in siba_add_children() 1387 bhnd_erom_free(erom); in siba_add_children()
|
| /freebsd-14-stable/sys/dev/bhnd/bhndb/ |
| HD | bhndb_pci.c | 168 bhnd_erom_t *erom; /**< erom parser */ member 819 error = bhnd_erom_lookup_core_addr(probe->erom, &md, BHND_PORT_DEVICE, in bhndb_pci_srsh_pi_war() 1341 p->erom = bhnd_erom_alloc(p->erom_class, &p->cid, eio); in bhndb_pci_probe_alloc() 1342 if (p->erom == NULL) { in bhndb_pci_probe_alloc() 1353 error = bhnd_erom_get_core_table(p->erom, &p->cores, &p->ncores); in bhndb_pci_probe_alloc() 1377 KASSERT(p->erom == NULL, ("I/O instance will be freed by " in bhndb_pci_probe_alloc() 1383 if (p->erom != NULL) { in bhndb_pci_probe_alloc() 1385 bhnd_erom_free_core_table(p->erom, p->cores); in bhndb_pci_probe_alloc() 1387 bhnd_erom_free(p->erom); in bhndb_pci_probe_alloc() 1407 bhnd_erom_free_core_table(probe->erom, probe->cores); in bhndb_pci_probe_free() [all …]
|
| HD | bhndb.c | 84 bhnd_erom_t *erom, 230 bhndb_init_region_cfg(struct bhndb_softc *sc, bhnd_erom_t *erom, in bhndb_init_region_cfg() argument 272 error = bhnd_erom_lookup_core_addr(erom, &md, in bhndb_init_region_cfg() 372 error = bhnd_erom_lookup_core_addr(erom, &md, in bhndb_init_region_cfg() 521 bhnd_erom_t *erom; in bhndb_attach() local 535 erom = NULL; in bhndb_attach() 575 if ((erom = bhnd_erom_alloc(erom_class, cid, eio)) == NULL) { in bhndb_attach() 583 error = bhndb_init_region_cfg(sc, erom, sc->bus_res, cores, ncores, in bhndb_attach() 592 bhnd_erom_free(erom); in bhndb_attach() 593 erom = NULL; in bhndb_attach() [all …]
|