Lines Matching refs:memh
289 tc_mem_unmap(void *v, bus_space_handle_t memh, bus_size_t memsize, int acct) in tc_mem_unmap() argument
296 tc_mem_subregion(void *v, bus_space_handle_t memh, bus_size_t offset, bus_size_t size, bus_space_ha… in tc_mem_subregion() argument
303 if ((memh & TC_SPACE_SPARSE) != 0) in tc_mem_subregion()
304 *nmemh = memh + (offset << 1); in tc_mem_subregion()
306 *nmemh = memh + offset; in tc_mem_subregion()
370 #define TC_SPARSE_PTR(memh, off) \ argument
371 ((void *)((memh) + ((off & ((bus_size_t)-1 << 2)) << 1)))
374 tc_mem_read_1(void *v, bus_space_handle_t memh, bus_size_t off) in tc_mem_read_1() argument
379 if ((memh & TC_SPACE_SPARSE) != 0) { in tc_mem_read_1()
382 p = TC_SPARSE_PTR(memh, off); in tc_mem_read_1()
387 p = (uint8_t *)(memh + off); in tc_mem_read_1()
393 tc_mem_read_2(void *v, bus_space_handle_t memh, bus_size_t off) in tc_mem_read_2() argument
398 if ((memh & TC_SPACE_SPARSE) != 0) { in tc_mem_read_2()
401 p = TC_SPARSE_PTR(memh, off); in tc_mem_read_2()
406 p = (uint16_t *)(memh + off); in tc_mem_read_2()
412 tc_mem_read_4(void *v, bus_space_handle_t memh, bus_size_t off) in tc_mem_read_4() argument
418 if ((memh & TC_SPACE_SPARSE) != 0) in tc_mem_read_4()
420 p = (uint32_t *)(memh + (off << 1)); in tc_mem_read_4()
428 p = (uint32_t *)(memh + off); in tc_mem_read_4()
433 tc_mem_read_8(void *v, bus_space_handle_t memh, bus_size_t off) in tc_mem_read_8() argument
439 if ((memh & TC_SPACE_SPARSE) != 0) in tc_mem_read_8()
442 p = (uint64_t *)(memh + off); in tc_mem_read_8()
490 tc_mem_write_1(void *v, bus_space_handle_t memh, bus_size_t off, uint8_t val) in tc_mem_write_1() argument
493 if ((memh & TC_SPACE_SPARSE) != 0) { in tc_mem_write_1()
496 p = TC_SPARSE_PTR(memh, off); in tc_mem_write_1()
505 tc_mem_write_2(void *v, bus_space_handle_t memh, bus_size_t off, uint16_t val) in tc_mem_write_2() argument
508 if ((memh & TC_SPACE_SPARSE) != 0) { in tc_mem_write_2()
511 p = TC_SPARSE_PTR(memh, off); in tc_mem_write_2()
520 tc_mem_write_4(void *v, bus_space_handle_t memh, bus_size_t off, uint32_t val) in tc_mem_write_4() argument
524 if ((memh & TC_SPACE_SPARSE) != 0) in tc_mem_write_4()
526 p = (uint32_t *)(memh + (off << 1)); in tc_mem_write_4()
528 p = (uint32_t *)(memh + off); in tc_mem_write_4()
535 tc_mem_write_8(void *v, bus_space_handle_t memh, bus_size_t off, uint64_t val) in tc_mem_write_8() argument
539 if ((memh & TC_SPACE_SPARSE) != 0) in tc_mem_write_8()
542 p = (uint64_t *)(memh + off); in tc_mem_write_8()