| /freebsd-14.2/sys/dev/bhnd/bcma/ |
| H A D | bcma_erom.c | 145 sc = (struct bcma_erom *)erom; in bcma_erom_init() 223 sc = (struct bcma_erom *)erom; in bcma_erom_lookup_core_addr() 370 sc = (struct bcma_erom *)erom; in bcma_erom_get_core_table() 453 return (erom->offset); in bcma_erom_tell() 462 erom->offset = offset; in bcma_erom_seek() 483 *entry = bhnd_erom_io_read(erom->eio, erom->offset, 4); in bcma_erom_peek32() 502 erom->offset += 4; in bcma_erom_read32() 634 erom->offset = 0; in bcma_erom_reset() 830 bcma_erom_skip32(erom); in bcma_erom_parse_sport_region() 1073 bcma_erom_reset(erom); in bcma_erom_next_corecfg() [all …]
|
| H A D | 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.2/sys/dev/bhnd/ |
| H A D | 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() 199 return (BHND_EROM_LOOKUP_CORE(erom, desc, core)); in bhnd_erom_lookup_core() 230 return (BHND_EROM_LOOKUP_CORE_ADDR(erom, desc, type, port, region, in bhnd_erom_lookup_core_addr() 244 bhnd_erom_dump(bhnd_erom_t *erom) in bhnd_erom_dump() argument [all …]
|
| H A D | bhnd_erom_if.m | 88 * @param erom The erom parser to initialize. 98 bhnd_erom_t *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. 141 bhnd_erom_t *erom; 148 * @param erom The erom parser to be queried. 169 * @param erom The erom parser to be queried. [all …]
|
| H A D | bhnd_erom.c | 175 bhnd_erom_t *erom; in bhnd_erom_alloc() local 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() 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() 251 bhnd_erom_free(bhnd_erom_t *erom) in bhnd_erom_free() argument 253 BHND_EROM_FINI(erom); in bhnd_erom_free() [all …]
|
| /freebsd-14.2/sys/dev/bhnd/siba/ |
| H A D | 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() 451 sc = (struct siba_erom *)erom; in siba_erom_lookup_core() 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() 619 sc = (struct siba_erom *)erom; in siba_erom_get_core_table() 659 siba_erom_dump(bhnd_erom_t *erom) in siba_erom_dump() argument [all …]
|
| H A D | 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.2/sys/dev/bhnd/bhndb/ |
| H A D | 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 …]
|
| H A D | 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() 592 bhnd_erom_free(erom); in bhndb_attach() 593 erom = NULL; in bhndb_attach() 603 if (erom != NULL) in bhndb_attach() [all …]
|