Lines Matching refs:mapped
78 struct bhnd_resource *mapped; /**< current mapping, or NULL */
260 * Read the chip identification registers mapped by @p eio, popuating @p cid
321 * @param addr The address to be mapped.
322 * @param size The number of bytes to be mapped at @p addr.
335 * Return the address range mapped by @p eio, if any.
338 * @param[out] addr The address mapped by @p eio.
339 * @param[out] size The number of bytes mapped at @p addr.
396 iores->mapped = NULL;
418 if (iores->mapped) {
419 /* If already mapped, nothing else to do */
420 if (rman_get_start(iores->mapped->res) == addr &&
421 rman_get_size(iores->mapped->res) == size)
428 iores->mapped_rid, iores->mapped);
429 iores->mapped = NULL;
435 iores->mapped = bhnd_alloc_resource(iores->owner, SYS_RES_MEMORY,
438 if (iores->mapped == NULL) {
452 if (iores->mapped == NULL)
455 *addr = rman_get_start(iores->mapped->res);
456 *size = rman_get_size(iores->mapped->res);
466 if (iores->mapped == NULL)
471 return (bhnd_bus_read_1(iores->mapped, offset));
473 return (bhnd_bus_read_2(iores->mapped, offset));
475 return (bhnd_bus_read_4(iores->mapped, offset));
487 if (iores->mapped) {
489 iores->mapped_rid, iores->mapped);
490 iores->mapped = NULL;
502 * @param addr The base address mapped by @p bsh.
503 * @param size The total size mapped by @p bsh.
524 iobus->mapped = false;
559 iobus->mapped = true;
570 if (!iobus->mapped)
584 if (!iobus->mapped)