Home
last modified time | relevance | path

Searched refs:byteshift (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/gpu/drm/radeon/
H A Dradeon_legacy_crtc.c504 int byteshift = target_fb->format->cpp[0] * 8 >> 4; in radeon_crtc_do_set_base() local
505 int tile_addr = (((y >> 3) * pitch_pixels + x) >> (8 - byteshift)) << 11; in radeon_crtc_do_set_base()
506 base += tile_addr + ((x << byteshift) % 256) + ((y % 8) << 8); in radeon_crtc_do_set_base()
H A Dradeon_display.c555 int byteshift = fb->format->cpp[0] * 8 >> 4; in radeon_crtc_page_flip_target() local
556 int tile_addr = (((crtc->y >> 3) * pitch_pixels + crtc->x) >> (8 - byteshift)) << 11; in radeon_crtc_page_flip_target()
557 base += tile_addr + ((crtc->x << byteshift) % 256) + ((crtc->y % 8) << 8); in radeon_crtc_page_flip_target()