/Linux-v4.19/drivers/gpu/drm/nouveau/dispnv50/ |
D | head.c | 35 struct nv50_head_atom *asyh, bool flush) in nv50_head_flush_clr() argument 38 .mask = asyh->clr.mask & ~(flush ? 0 : asyh->set.mask), in nv50_head_flush_clr() 46 nv50_head_flush_set(struct nv50_head *head, struct nv50_head_atom *asyh) in nv50_head_flush_set() argument 48 if (asyh->set.view ) head->func->view (head, asyh); in nv50_head_flush_set() 49 if (asyh->set.mode ) head->func->mode (head, asyh); in nv50_head_flush_set() 50 if (asyh->set.core ) head->func->core_set(head, asyh); in nv50_head_flush_set() 51 if (asyh->set.olut ) { in nv50_head_flush_set() 52 asyh->olut.offset = nv50_lut_load(&head->olut, in nv50_head_flush_set() 53 asyh->olut.mode <= 1, in nv50_head_flush_set() 54 asyh->olut.buffer, in nv50_head_flush_set() [all …]
|
D | head507d.c | 26 head507d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh) in head507d_procamp() argument 32 evo_data(push, asyh->procamp.sat.sin << 20 | in head507d_procamp() 33 asyh->procamp.sat.cos << 8); in head507d_procamp() 39 head507d_dither(struct nv50_head *head, struct nv50_head_atom *asyh) in head507d_dither() argument 45 evo_data(push, asyh->dither.mode << 3 | in head507d_dither() 46 asyh->dither.bits << 1 | in head507d_dither() 47 asyh->dither.enable); in head507d_dither() 53 head507d_ovly(struct nv50_head *head, struct nv50_head_atom *asyh) in head507d_ovly() argument 59 if (asyh->ovly.cpp) { in head507d_ovly() 60 switch (asyh->ovly.cpp) { in head507d_ovly() [all …]
|
D | headc37d.c | 27 headc37d_or(struct nv50_head *head, struct nv50_head_atom *asyh) in headc37d_or() argument 35 switch (asyh->or.depth) { in headc37d_or() 36 case 6: asyh->or.depth = 5; break; in headc37d_or() 37 case 5: asyh->or.depth = 4; break; in headc37d_or() 38 case 2: asyh->or.depth = 1; break; in headc37d_or() 39 case 0: asyh->or.depth = 4; break; in headc37d_or() 47 asyh->or.depth << 4 | in headc37d_or() 48 asyh->or.nvsync << 3 | in headc37d_or() 49 asyh->or.nhsync << 2); in headc37d_or() 55 headc37d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh) in headc37d_procamp() argument [all …]
|
D | head907d.c | 26 head907d_or(struct nv50_head *head, struct nv50_head_atom *asyh) in head907d_or() argument 32 evo_data(push, 0x00000001 | asyh->or.depth << 6 | in head907d_or() 33 asyh->or.nvsync << 4 | in head907d_or() 34 asyh->or.nhsync << 3); in head907d_or() 36 asyh->mode.interlace); in head907d_or() 42 head907d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh) in head907d_procamp() argument 48 evo_data(push, asyh->procamp.sat.sin << 20 | in head907d_procamp() 49 asyh->procamp.sat.cos << 8); in head907d_procamp() 55 head907d_dither(struct nv50_head *head, struct nv50_head_atom *asyh) in head907d_dither() argument 61 evo_data(push, asyh->dither.mode << 3 | in head907d_dither() [all …]
|
D | head827d.c | 40 head827d_curs_set(struct nv50_head *head, struct nv50_head_atom *asyh) in head827d_curs_set() argument 46 evo_data(push, 0x80000000 | asyh->curs.layout << 26 | in head827d_curs_set() 47 asyh->curs.format << 24); in head827d_curs_set() 48 evo_data(push, asyh->curs.offset >> 8); in head827d_curs_set() 50 evo_data(push, asyh->curs.handle); in head827d_curs_set() 56 head827d_core_set(struct nv50_head *head, struct nv50_head_atom *asyh) in head827d_core_set() argument 62 evo_data(push, asyh->core.offset >> 8); in head827d_core_set() 64 evo_data(push, asyh->core.h << 16 | asyh->core.w); in head827d_core_set() 65 evo_data(push, asyh->core.layout << 20 | in head827d_core_set() 66 (asyh->core.pitch >> 8) << 8 | in head827d_core_set() [all …]
|
D | head917d.c | 26 head917d_dither(struct nv50_head *head, struct nv50_head_atom *asyh) in head917d_dither() argument 32 evo_data(push, asyh->dither.mode << 3 | in head917d_dither() 33 asyh->dither.bits << 1 | in head917d_dither() 34 asyh->dither.enable); in head917d_dither() 40 head917d_base(struct nv50_head *head, struct nv50_head_atom *asyh) in head917d_base() argument 46 if (asyh->base.cpp) { in head917d_base() 47 switch (asyh->base.cpp) { in head917d_base() 68 struct nv50_head_atom *asyh) in head917d_curs_layout() argument 71 case 32: asyh->curs.layout = 0; break; in head917d_curs_layout() 72 case 64: asyh->curs.layout = 1; break; in head917d_curs_layout() [all …]
|
D | curs507a.c | 51 curs507a_prepare(struct nv50_wndw *wndw, struct nv50_head_atom *asyh, in curs507a_prepare() argument 56 if (asyh->curs.handle != handle || asyh->curs.offset != offset) { in curs507a_prepare() 57 asyh->curs.handle = handle; in curs507a_prepare() 58 asyh->curs.offset = offset; in curs507a_prepare() 59 asyh->set.curs = asyh->curs.visible; in curs507a_prepare() 65 struct nv50_head_atom *asyh) in curs507a_release() argument 67 asyh->curs.visible = false; in curs507a_release() 72 struct nv50_head_atom *asyh) in curs507a_acquire() argument 77 ret = drm_atomic_helper_check_plane_state(&asyw->state, &asyh->state, in curs507a_acquire() 81 asyh->curs.visible = asyw->state.visible; in curs507a_acquire() [all …]
|
D | pior507d.c | 26 struct nv50_head_atom *asyh) in pior507d_ctrl() argument 30 if (asyh) { in pior507d_ctrl() 31 ctrl |= asyh->or.depth << 16; in pior507d_ctrl() 32 ctrl |= asyh->or.nvsync << 13; in pior507d_ctrl() 33 ctrl |= asyh->or.nhsync << 12; in pior507d_ctrl()
|
D | sor507d.c | 26 struct nv50_head_atom *asyh) in sor507d_ctrl() argument 30 if (asyh) { in sor507d_ctrl() 31 ctrl |= asyh->or.depth << 16; in sor507d_ctrl() 32 ctrl |= asyh->or.nvsync << 13; in sor507d_ctrl() 33 ctrl |= asyh->or.nhsync << 12; in sor507d_ctrl()
|
D | wndw.c | 180 struct nv50_head_atom *asyh) in nv50_wndw_atomic_check_release() argument 184 wndw->func->release(wndw, asyw, asyh); in nv50_wndw_atomic_check_release() 230 struct nv50_head_atom *asyh) in nv50_wndw_atomic_check_acquire() argument 265 if (!(asyh->state.pageflip_flags & DRM_MODE_PAGE_FLIP_ASYNC)) in nv50_wndw_atomic_check_acquire() 291 return wndw->func->acquire(wndw, asyw, asyh); in nv50_wndw_atomic_check_acquire() 298 struct nv50_head_atom *asyh) in nv50_wndw_atomic_check_lut() argument 300 struct drm_property_blob *ilut = asyh->state.degamma_lut; in nv50_wndw_atomic_check_lut() 314 if (!(ilut = asyh->state.gamma_lut)) { in nv50_wndw_atomic_check_lut() 320 asyh->wndw.olut |= BIT(wndw->id); in nv50_wndw_atomic_check_lut() 322 asyh->wndw.olut &= ~BIT(wndw->id); in nv50_wndw_atomic_check_lut() [all …]
|
D | base507c.c | 170 struct nv50_head_atom *asyh) in base507c_release() argument 172 asyh->base.cpp = 0; in base507c_release() 177 struct nv50_head_atom *asyh) in base507c_acquire() argument 185 ret = drm_atomic_helper_check_plane_state(&asyw->state, &asyh->state, in base507c_acquire() 193 if ((asyh->base.cpp != 1) ^ (fb->format->cpp[0] != 1)) in base507c_acquire() 194 asyh->state.color_mgmt_changed = true; in base507c_acquire() 197 asyh->base.depth = fb->format->depth; in base507c_acquire() 198 asyh->base.cpp = fb->format->cpp[0]; in base507c_acquire() 199 asyh->base.x = asyw->state.src.x1 >> 16; in base507c_acquire() 200 asyh->base.y = asyw->state.src.y1 >> 16; in base507c_acquire() [all …]
|
D | dac507d.c | 26 struct nv50_head_atom *asyh) in dac507d_ctrl() argument 30 if (asyh) { in dac507d_ctrl() 31 sync |= asyh->or.nvsync << 1; in dac507d_ctrl() 32 sync |= asyh->or.nhsync; in dac507d_ctrl()
|
D | ovly507e.c | 119 struct nv50_head_atom *asyh) in ovly507e_release() argument 121 asyh->ovly.cpp = 0; in ovly507e_release() 126 struct nv50_head_atom *asyh) in ovly507e_acquire() argument 131 ret = drm_atomic_helper_check_plane_state(&asyw->state, &asyh->state, in ovly507e_acquire() 138 asyh->ovly.cpp = fb->format->cpp[0]; in ovly507e_acquire()
|
D | wndw.h | 54 struct nv50_head_atom *asyh); 56 struct nv50_head_atom *asyh); 57 void (*prepare)(struct nv50_wndw *, struct nv50_head_atom *asyh,
|
D | disp.c | 368 struct nv50_head_atom *asyh = nv50_head_atom(nv_crtc->base.state); in nv50_dac_enable() local 373 core->func->dac->ctrl(core, nv_encoder->or, 1 << nv_crtc->index, asyh); in nv50_dac_enable() 374 asyh->or.depth = 0; in nv50_dac_enable() 1285 struct nv50_head_atom *asyh, u8 proto, u8 depth) in nv50_sor_update() argument 1290 if (!asyh) { in nv50_sor_update() 1297 asyh->or.depth = depth; in nv50_sor_update() 1300 core->func->sor->ctrl(core, nv_encoder->or, nv_encoder->ctrl, asyh); in nv50_sor_update() 1336 struct nv50_head_atom *asyh = nv50_head_atom(nv_crtc->base.state); in nv50_sor_enable() local 1337 struct drm_display_mode *mode = &asyh->state.adjusted_mode; in nv50_sor_enable() 1431 nv_encoder->update(nv_encoder, nv_crtc->index, asyh, proto, depth); in nv50_sor_enable() [all …]
|
D | dac907d.c | 26 struct nv50_head_atom *asyh) in dac907d_ctrl() argument
|
D | sor907d.c | 28 struct nv50_head_atom *asyh) in sor907d_ctrl() argument
|
D | sorc37d.c | 26 struct nv50_head_atom *asyh) in sorc37d_ctrl() argument
|
D | wndwc37e.c | 188 struct nv50_head_atom *asyh) in wndwc37e_release() argument 194 struct nv50_head_atom *asyh) in wndwc37e_acquire() argument 196 return drm_atomic_helper_check_plane_state(&asyw->state, &asyh->state, in wndwc37e_acquire()
|