Lines Matching +full:fixed +full:- +full:layout

35 	struct nvif_push *push = &wndw->wndw.push;  in wndwc57e_image_set()
42 NVVAL(NVC57E, SET_PRESENT_CONTROL, MIN_PRESENT_INTERVAL, asyw->image.interval) | in wndwc57e_image_set()
43 NVVAL(NVC57E, SET_PRESENT_CONTROL, BEGIN_MODE, asyw->image.mode) | in wndwc57e_image_set()
47 NVVAL(NVC57E, SET_SIZE, WIDTH, asyw->image.w) | in wndwc57e_image_set()
48 NVVAL(NVC57E, SET_SIZE, HEIGHT, asyw->image.h), in wndwc57e_image_set()
51 NVVAL(NVC57E, SET_STORAGE, BLOCK_HEIGHT, asyw->image.blockh) | in wndwc57e_image_set()
52 NVVAL(NVC57E, SET_STORAGE, MEMORY_LAYOUT, asyw->image.layout), in wndwc57e_image_set()
55 NVVAL(NVC57E, SET_PARAMS, FORMAT, asyw->image.format) | in wndwc57e_image_set()
61 NVVAL(NVC57E, SET_PLANAR_STORAGE, PITCH, asyw->image.blocks[0]) | in wndwc57e_image_set()
62 NVVAL(NVC57E, SET_PLANAR_STORAGE, PITCH, asyw->image.pitch[0] >> 6)); in wndwc57e_image_set()
64 PUSH_MTHD(push, NVC57E, SET_CONTEXT_DMA_ISO(0), asyw->image.handle, 1); in wndwc57e_image_set()
65 PUSH_MTHD(push, NVC57E, SET_OFFSET(0), asyw->image.offset[0] >> 8); in wndwc57e_image_set()
68 NVVAL(NVC57E, SET_POINT_IN, X, asyw->state.src_x >> 16) | in wndwc57e_image_set()
69 NVVAL(NVC57E, SET_POINT_IN, Y, asyw->state.src_y >> 16)); in wndwc57e_image_set()
72 NVVAL(NVC57E, SET_SIZE_IN, WIDTH, asyw->state.src_w >> 16) | in wndwc57e_image_set()
73 NVVAL(NVC57E, SET_SIZE_IN, HEIGHT, asyw->state.src_h >> 16)); in wndwc57e_image_set()
76 NVVAL(NVC57E, SET_SIZE_OUT, WIDTH, asyw->state.crtc_w) | in wndwc57e_image_set()
77 NVVAL(NVC57E, SET_SIZE_OUT, HEIGHT, asyw->state.crtc_h)); in wndwc57e_image_set()
84 struct nvif_push *push = &wndw->wndw.push; in wndwc57e_csc_clr()
102 struct nvif_push *push = &wndw->wndw.push; in wndwc57e_csc_set()
108 PUSH_MTHD(push, NVC57E, SET_FMT_COEFFICIENT_C00, asyw->csc.matrix, 12); in wndwc57e_csc_set()
115 struct nvif_push *push = &wndw->wndw.push; in wndwc57e_ilut_clr()
128 struct nvif_push *push = &wndw->wndw.push; in wndwc57e_ilut_set()
135 NVVAL(NVC57E, SET_ILUT_CONTROL, SIZE, asyw->xlut.i.size) | in wndwc57e_ilut_set()
136 NVVAL(NVC57E, SET_ILUT_CONTROL, MODE, asyw->xlut.i.mode) | in wndwc57e_ilut_set()
137 NVVAL(NVC57E, SET_ILUT_CONTROL, INTERPOLATE, asyw->xlut.i.output_mode), in wndwc57e_ilut_set()
139 SET_CONTEXT_DMA_ILUT, asyw->xlut.handle, in wndwc57e_ilut_set()
140 SET_OFFSET_ILUT, asyw->xlut.i.offset >> 8); in wndwc57e_ilut_set()
145 fixedU0_16_FP16(u16 fixed) in fixedU0_16_FP16() argument
148 if (fixed) { in fixedU0_16_FP16()
149 while (--exp && !(fixed & 0x8000)) in fixedU0_16_FP16()
150 fixed <<= 1; in fixedU0_16_FP16()
151 man = ((fixed << 1) & 0xffc0) >> 6; in fixedU0_16_FP16()
163 for (; size--; in++, mem += 0x08) { in wndwc57e_ilut_load()
164 u16 r = fixedU0_16_FP16(drm_color_lut_extract(in-> red, 16)); in wndwc57e_ilut_load()
165 u16 g = fixedU0_16_FP16(drm_color_lut_extract(in->green, 16)); in wndwc57e_ilut_load()
166 u16 b = fixedU0_16_FP16(drm_color_lut_extract(in-> blue, 16)); in wndwc57e_ilut_load()
175 writew(readw(mem - 8), mem + 0); in wndwc57e_ilut_load()
176 writew(readw(mem - 6), mem + 2); in wndwc57e_ilut_load()
177 writew(readw(mem - 4), mem + 4); in wndwc57e_ilut_load()
187 asyw->xlut.i.mode = NVC57E_SET_ILUT_CONTROL_MODE_DIRECT8; in wndwc57e_ilut()
189 asyw->xlut.i.mode = NVC57E_SET_ILUT_CONTROL_MODE_DIRECT10; in wndwc57e_ilut()
191 asyw->xlut.i.size = 4 /* VSS header. */ + size + 1 /* Entries. */; in wndwc57e_ilut()
192 asyw->xlut.i.output_mode = NVC57E_SET_ILUT_CONTROL_INTERPOLATE_DISABLE; in wndwc57e_ilut()
193 asyw->xlut.i.load = wndwc57e_ilut_load; in wndwc57e_ilut()
197 * Log2(block height) ----------------------------+ *
198 * Page Kind ----------------------------------+ | *
199 * Gob Height/Page Kind Generation ------+ | | *
200 * Sector layout -------+ | | | *
201 * Compression ------+ | | | | */