/linux/drivers/gpu/drm/nouveau/dispnv50/ |
A D | wndw.c | 157 asyw->ilut, asyw->xlut.i.load); in nv50_wndw_flush_set() 323 asyw->scale.sx = asyw->state.src_x >> 16; in nv50_wndw_atomic_check_acquire() 324 asyw->scale.sy = asyw->state.src_y >> 16; in nv50_wndw_atomic_check_acquire() 325 asyw->scale.sw = asyw->state.src_w >> 16; in nv50_wndw_atomic_check_acquire() 326 asyw->scale.sh = asyw->state.src_h >> 16; in nv50_wndw_atomic_check_acquire() 327 asyw->scale.dw = asyw->state.crtc_w; in nv50_wndw_atomic_check_acquire() 328 asyw->scale.dh = asyw->state.crtc_h; in nv50_wndw_atomic_check_acquire() 335 asyw->blend.k1 = asyw->state.alpha >> 8; in nv50_wndw_atomic_check_acquire() 356 asyw->point.x = asyw->state.crtc_x; in nv50_wndw_atomic_check_acquire() 357 asyw->point.y = asyw->state.crtc_y; in nv50_wndw_atomic_check_acquire() [all …]
|
A D | wndwc37e.c | 80 SET_OFFSET_INPUT_LUT, asyw->xlut.i.offset >> 8, in wndwc37e_ilut_set() 81 SET_CONTEXT_DMA_INPUT_LUT, asyw->xlut.handle); in wndwc37e_ilut_set() 95 asyw->xlut.i.load = head907d_olut_load; in wndwc37e_ilut() 118 asyw->blend.src_color) | in wndwc37e_blend_set() 120 asyw->blend.src_color) | in wndwc37e_blend_set() 122 asyw->blend.dst_color) | in wndwc37e_blend_set() 124 asyw->blend.dst_color), in wndwc37e_blend_set() 176 NVVAL(NVC37E, SET_SIZE, WIDTH, asyw->image.w) | in wndwc37e_image_set() 267 SET_SEMAPHORE_ACQUIRE, asyw->sema.acquire, in wndwc37e_sema_set() 268 SET_SEMAPHORE_RELEASE, asyw->sema.release, in wndwc37e_sema_set() [all …]
|
A D | wndwc57e.c | 49 NVVAL(NVC57E, SET_SIZE, WIDTH, asyw->image.w) | in wndwc57e_image_set() 50 NVVAL(NVC57E, SET_SIZE, HEIGHT, asyw->image.h), in wndwc57e_image_set() 57 NVVAL(NVC57E, SET_PARAMS, FORMAT, asyw->image.format) | in wndwc57e_image_set() 70 NVVAL(NVC57E, SET_POINT_IN, X, asyw->state.src_x >> 16) | in wndwc57e_image_set() 71 NVVAL(NVC57E, SET_POINT_IN, Y, asyw->state.src_y >> 16)); in wndwc57e_image_set() 78 NVVAL(NVC57E, SET_SIZE_OUT, WIDTH, asyw->state.crtc_w) | in wndwc57e_image_set() 79 NVVAL(NVC57E, SET_SIZE_OUT, HEIGHT, asyw->state.crtc_h)); in wndwc57e_image_set() 141 SET_CONTEXT_DMA_ILUT, asyw->xlut.handle, in wndwc57e_ilut_set() 142 SET_OFFSET_ILUT, asyw->xlut.i.offset >> 8); in wndwc57e_ilut_set() 189 asyw->xlut.i.mode = NVC57E_SET_ILUT_CONTROL_MODE_DIRECT8; in wndwc57e_ilut() [all …]
|
A D | base907c.c | 48 NVVAL(NV907C, SURFACE_SET_SIZE, WIDTH, asyw->image.w) | in base907c_image_set() 49 NVVAL(NV907C, SURFACE_SET_SIZE, HEIGHT, asyw->image.h), in base907c_image_set() 94 NVVAL(NV907C, SET_BASE_LUT_LO, ENABLE, asyw->xlut.i.enable) | in base907c_xlut_set() 95 NVVAL(NV907C, SET_BASE_LUT_LO, MODE, asyw->xlut.i.mode), in base907c_xlut_set() 97 SET_BASE_LUT_HI, asyw->xlut.i.offset >> 8, in base907c_xlut_set() 102 PUSH_MTHD(push, NV907C, SET_CONTEXT_DMA_LUT, asyw->xlut.handle); in base907c_xlut_set() 117 asyw->xlut.i.enable = NV907C_SET_BASE_LUT_LO_ENABLE_ENABLE; in base907c_ilut() 118 asyw->xlut.i.load = head907d_olut_load; in base907c_ilut() 148 u32 *val = &asyw->csc.matrix[j * 4 + i]; in base907c_csc() 185 NVVAL(NV907C, SET_CSC_RED2RED, COEFF, asyw->csc.matrix[0]), in base907c_csc_set() [all …]
|
A D | ovly507e.c | 45 NVVAL(NV507E, SET_POINT_IN, X, asyw->scale.sx) | in ovly507e_scale_set() 46 NVVAL(NV507E, SET_POINT_IN, Y, asyw->scale.sy), in ovly507e_scale_set() 49 NVVAL(NV507E, SET_SIZE_IN, WIDTH, asyw->scale.sw) | in ovly507e_scale_set() 50 NVVAL(NV507E, SET_SIZE_IN, HEIGHT, asyw->scale.sh), in ovly507e_scale_set() 53 NVVAL(NV507E, SET_SIZE_OUT, WIDTH, asyw->scale.dw)); in ovly507e_scale_set() 70 PUSH_MTHD(push, NV507E, SET_CONTEXT_DMA_ISO, asyw->image.handle[0]); in ovly507e_image_set() 78 NVVAL(NV507E, SURFACE_SET_SIZE, WIDTH, asyw->image.w) | in ovly507e_image_set() 79 NVVAL(NV507E, SURFACE_SET_SIZE, HEIGHT, asyw->image.h), in ovly507e_image_set() 88 NVVAL(NV507E, SURFACE_SET_PARAMS, FORMAT, asyw->image.format) | in ovly507e_image_set() 90 NVVAL(NV507E, SURFACE_SET_PARAMS, KIND, asyw->image.kind) | in ovly507e_image_set() [all …]
|
A D | base507c.c | 101 NVVAL(NV507C, SURFACE_SET_SIZE, WIDTH, asyw->image.w) | in base507c_image_set() 102 NVVAL(NV507C, SURFACE_SET_SIZE, HEIGHT, asyw->image.h), in base507c_image_set() 186 SET_CONTEXT_DMA_NOTIFIER, asyw->ntfy.handle); in base507c_ntfy_set() 220 SET_SEMAPHORE_ACQUIRE, asyw->sema.acquire, in base507c_sema_set() 221 SET_SEMAPHORE_RELEASE, asyw->sema.release, in base507c_sema_set() 222 SET_CONTEXT_DMA_SEMAPHORE, asyw->sema.handle); in base507c_sema_set() 237 const struct drm_framebuffer *fb = asyw->state.fb; in base507c_acquire() 254 asyh->base.x = asyw->state.src.x1 >> 16; in base507c_acquire() 255 asyh->base.y = asyw->state.src.y1 >> 16; in base507c_acquire() 256 asyh->base.w = asyw->state.fb->width; in base507c_acquire() [all …]
|
A D | wndwc67e.c | 44 NVVAL(NVC57E, SET_SIZE, WIDTH, asyw->image.w) | in wndwc67e_image_set() 45 NVVAL(NVC57E, SET_SIZE, HEIGHT, asyw->image.h), in wndwc67e_image_set() 48 NVVAL(NVC57E, SET_STORAGE, BLOCK_HEIGHT, asyw->image.blockh), in wndwc67e_image_set() 51 NVVAL(NVC57E, SET_PARAMS, FORMAT, asyw->image.format) | in wndwc67e_image_set() 61 PUSH_MTHD(push, NVC57E, SET_OFFSET(0), asyw->image.offset[0] >> 8); in wndwc67e_image_set() 64 NVVAL(NVC57E, SET_POINT_IN, X, asyw->state.src_x >> 16) | in wndwc67e_image_set() 65 NVVAL(NVC57E, SET_POINT_IN, Y, asyw->state.src_y >> 16)); in wndwc67e_image_set() 68 NVVAL(NVC57E, SET_SIZE_IN, WIDTH, asyw->state.src_w >> 16) | in wndwc67e_image_set() 69 NVVAL(NVC57E, SET_SIZE_IN, HEIGHT, asyw->state.src_h >> 16)); in wndwc67e_image_set() 72 NVVAL(NVC57E, SET_SIZE_OUT, WIDTH, asyw->state.crtc_w) | in wndwc67e_image_set() [all …]
|
A D | ovly907e.c | 30 ovly907e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) in ovly907e_image_set() argument 42 PUSH_MTHD(push, NV907E, SET_CONTEXT_DMA_ISO, asyw->image.handle[0]); in ovly907e_image_set() 47 PUSH_MTHD(push, NV907E, SURFACE_SET_OFFSET, asyw->image.offset[0] >> 8); in ovly907e_image_set() 50 NVVAL(NV907E, SURFACE_SET_SIZE, WIDTH, asyw->image.w) | in ovly907e_image_set() 51 NVVAL(NV907E, SURFACE_SET_SIZE, HEIGHT, asyw->image.h), in ovly907e_image_set() 54 NVVAL(NV907E, SURFACE_SET_STORAGE, BLOCK_HEIGHT, asyw->image.blockh) | in ovly907e_image_set() 55 NVVAL(NV907E, SURFACE_SET_STORAGE, PITCH, (asyw->image.pitch[0] >> 8)) | in ovly907e_image_set() 56 NVVAL(NV907E, SURFACE_SET_STORAGE, PITCH, asyw->image.blocks[0]) | in ovly907e_image_set() 57 NVVAL(NV907E, SURFACE_SET_STORAGE, MEMORY_LAYOUT, asyw->image.layout), in ovly907e_image_set() 60 NVVAL(NV907E, SURFACE_SET_PARAMS, FORMAT, asyw->image.format) | in ovly907e_image_set() [all …]
|
A D | base827c.c | 29 base827c_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) in base827c_image_set() argument 38 NVVAL(NV827C, SET_PRESENT_CONTROL, BEGIN_MODE, asyw->image.mode) | in base827c_image_set() 41 PUSH_MTHD(push, NV827C, SET_CONTEXT_DMAS_ISO(0), asyw->image.handle, 1); in base827c_image_set() 59 PUSH_MTHD(push, NV827C, SURFACE_SET_OFFSET(0, 0), asyw->image.offset[0] >> 8, in base827c_image_set() 63 NVVAL(NV827C, SURFACE_SET_SIZE, WIDTH, asyw->image.w) | in base827c_image_set() 64 NVVAL(NV827C, SURFACE_SET_SIZE, HEIGHT, asyw->image.h), in base827c_image_set() 67 NVVAL(NV827C, SURFACE_SET_STORAGE, BLOCK_HEIGHT, asyw->image.blockh) | in base827c_image_set() 68 NVVAL(NV827C, SURFACE_SET_STORAGE, PITCH, asyw->image.pitch[0] >> 8) | in base827c_image_set() 69 NVVAL(NV827C, SURFACE_SET_STORAGE, PITCH, asyw->image.blocks[0]) | in base827c_image_set() 70 NVVAL(NV827C, SURFACE_SET_STORAGE, MEMORY_LAYOUT, asyw->image.layout), in base827c_image_set() [all …]
|
A D | curs507a.c | 59 curs507a_point(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) in curs507a_point() argument 65 NVVAL(NV507A, SET_CURSOR_HOT_SPOT_POINT_OUT, X, asyw->point.x) | in curs507a_point() 66 NVVAL(NV507A, SET_CURSOR_HOT_SPOT_POINT_OUT, Y, asyw->point.y)); in curs507a_point() 79 struct nv50_wndw_atom *asyw) in curs507a_prepare() argument 82 u32 offset = asyw->image.offset[0]; in curs507a_prepare() 91 curs507a_release(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw, in curs507a_release() argument 101 struct nv50_head *head = nv50_head(asyw->state.crtc); in curs507a_acquire() 108 asyh->curs.visible = asyw->state.visible; in curs507a_acquire() 112 if (asyw->image.w != asyw->image.h) in curs507a_acquire() 115 ret = head->func->curs_layout(head, asyw, asyh); in curs507a_acquire() [all …]
|
A D | ovly827e.c | 33 ovly827e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) in ovly827e_image_set() argument 45 PUSH_MTHD(push, NV827E, SET_CONTEXT_DMA_ISO, asyw->image.handle[0]); in ovly827e_image_set() 50 PUSH_MTHD(push, NV827E, SURFACE_SET_OFFSET, asyw->image.offset[0] >> 8); in ovly827e_image_set() 53 NVVAL(NV827E, SURFACE_SET_SIZE, WIDTH, asyw->image.w) | in ovly827e_image_set() 54 NVVAL(NV827E, SURFACE_SET_SIZE, HEIGHT, asyw->image.h), in ovly827e_image_set() 57 NVVAL(NV827E, SURFACE_SET_STORAGE, BLOCK_HEIGHT, asyw->image.blockh) | in ovly827e_image_set() 58 NVVAL(NV827E, SURFACE_SET_STORAGE, PITCH, (asyw->image.pitch[0] >> 8)) | in ovly827e_image_set() 59 NVVAL(NV827E, SURFACE_SET_STORAGE, PITCH, asyw->image.blocks[0]) | in ovly827e_image_set() 60 NVVAL(NV827E, SURFACE_SET_STORAGE, MEMORY_LAYOUT, asyw->image.layout), in ovly827e_image_set() 63 NVVAL(NV827E, SURFACE_SET_PARAMS, FORMAT, asyw->image.format) | in ovly827e_image_set() [all …]
|
A D | cursc37a.c | 38 cursc37a_point(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) in cursc37a_point() argument 44 NVVAL(NVC37A, SET_CURSOR_HOT_SPOT_POINT_OUT, X, asyw->point.x) | in cursc37a_point() 45 NVVAL(NVC37A, SET_CURSOR_HOT_SPOT_POINT_OUT, Y, asyw->point.y)); in cursc37a_point()
|
A D | wimmc37b.c | 47 wimmc37b_point(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) in wimmc37b_point() argument 56 NVVAL(NVC37B, SET_POINT_OUT, X, asyw->point.x) | in wimmc37b_point() 57 NVVAL(NVC37B, SET_POINT_OUT, Y, asyw->point.y)); in wimmc37b_point()
|
A D | wndw.h | 53 int (*acquire)(struct nv50_wndw *, struct nv50_wndw_atom *asyw, 55 void (*release)(struct nv50_wndw *, struct nv50_wndw_atom *asyw, 58 struct nv50_wndw_atom *asyw);
|
A D | head917d.c | 103 head917d_curs_layout(struct nv50_head *head, struct nv50_wndw_atom *asyw, in head917d_curs_layout() argument 106 switch (asyw->state.fb->width) { in head917d_curs_layout()
|
A D | head507d.c | 163 head507d_curs_format(struct nv50_head *head, struct nv50_wndw_atom *asyw, in head507d_curs_format() argument 166 switch (asyw->image.format) { in head507d_curs_format() 176 head507d_curs_layout(struct nv50_head *head, struct nv50_wndw_atom *asyw, in head507d_curs_layout() argument 179 switch (asyw->image.w) { in head507d_curs_layout()
|
A D | disp.c | 2163 struct nv50_wndw_atom *asyw = nv50_wndw_atom(new_plane_state); in nv50_disp_atomic_commit_tail() local 2167 asyw->clr.mask, asyw->set.mask); in nv50_disp_atomic_commit_tail() 2168 if (!asyw->clr.mask) in nv50_disp_atomic_commit_tail() 2300 struct nv50_wndw_atom *asyw = nv50_wndw_atom(new_plane_state); in nv50_disp_atomic_commit_tail() local 2304 asyw->set.mask, asyw->clr.mask); in nv50_disp_atomic_commit_tail() 2305 if ( !asyw->set.mask && in nv50_disp_atomic_commit_tail() 2306 (!asyw->clr.mask || atom->flush_disable)) in nv50_disp_atomic_commit_tail() 2309 nv50_wndw_flush_set(wndw, interlock, asyw); in nv50_disp_atomic_commit_tail() 2332 int ret = nv50_wndw_wait_armed(wndw, asyw); in nv50_disp_atomic_commit_tail() 2413 if (asyw->set.image) in nv50_disp_atomic_commit() [all …]
|
A D | headc37d.c | 154 headc37d_curs_format(struct nv50_head *head, struct nv50_wndw_atom *asyw, in headc37d_curs_format() argument 157 asyh->curs.format = asyw->image.format; in headc37d_curs_format()
|