Lines Matching full:mapped
75 struct bhnd_resource *mapped; /**< current mapping, or NULL */ member
257 * Read the chip identification registers mapped by @p eio, popuating @p cid
317 * @param addr The address to be mapped.
318 * @param size The number of bytes to be mapped at @p addr.
331 * Return the address range mapped by @p eio, if any.
334 * @param[out] addr The address mapped by @p eio.
335 * @param[out] size The number of bytes mapped at @p addr.
392 iores->mapped = NULL; in bhnd_erom_iores_new()
414 if (iores->mapped) { in bhnd_erom_iores_map()
415 /* If already mapped, nothing else to do */ in bhnd_erom_iores_map()
416 if (rman_get_start(iores->mapped->res) == addr && in bhnd_erom_iores_map()
417 rman_get_size(iores->mapped->res) == size) in bhnd_erom_iores_map()
424 iores->mapped_rid, iores->mapped); in bhnd_erom_iores_map()
425 iores->mapped = NULL; in bhnd_erom_iores_map()
431 iores->mapped = bhnd_alloc_resource(iores->owner, SYS_RES_MEMORY, in bhnd_erom_iores_map()
434 if (iores->mapped == NULL) { in bhnd_erom_iores_map()
448 if (iores->mapped == NULL) in bhnd_erom_iores_tell()
451 *addr = rman_get_start(iores->mapped->res); in bhnd_erom_iores_tell()
452 *size = rman_get_size(iores->mapped->res); in bhnd_erom_iores_tell()
462 if (iores->mapped == NULL) in bhnd_erom_iores_read()
467 return (bhnd_bus_read_1(iores->mapped, offset)); in bhnd_erom_iores_read()
469 return (bhnd_bus_read_2(iores->mapped, offset)); in bhnd_erom_iores_read()
471 return (bhnd_bus_read_4(iores->mapped, offset)); in bhnd_erom_iores_read()
483 if (iores->mapped) { in bhnd_erom_iores_fini()
485 iores->mapped_rid, iores->mapped); in bhnd_erom_iores_fini()
486 iores->mapped = NULL; in bhnd_erom_iores_fini()
498 * @param addr The base address mapped by @p bsh.
499 * @param size The total size mapped by @p bsh.
520 iobus->mapped = false; in bhnd_erom_iobus_init()
555 iobus->mapped = true; in bhnd_erom_iobus_map()
566 if (!iobus->mapped) in bhnd_erom_iobus_tell()
580 if (!iobus->mapped) in bhnd_erom_iobus_read()