Lines Matching refs:head
66 nv50_chan_create(struct nvif_object *disp, const u32 *oclass, u8 head, in nv50_chan_create() argument
69 const u32 handle = (oclass[0] << 16) | head; in nv50_chan_create()
116 nv50_pioc_create(struct nvif_object *disp, const u32 *oclass, u8 head, in nv50_pioc_create() argument
119 return nv50_chan_create(disp, oclass, head, data, size, &pioc->base); in nv50_pioc_create()
131 nv50_curs_create(struct nvif_object *disp, int head, struct nv50_curs *curs) in nv50_curs_create() argument
134 .head = head, in nv50_curs_create()
145 return nv50_pioc_create(disp, oclass, head, &args, sizeof(args), in nv50_curs_create()
158 nv50_oimm_create(struct nvif_object *disp, int head, struct nv50_oimm *oimm) in nv50_oimm_create() argument
161 .head = head, in nv50_oimm_create()
172 return nv50_pioc_create(disp, oclass, head, &args, sizeof(args), in nv50_oimm_create()
209 nv50_dmac_create(struct nvif_object *disp, const u32 *oclass, u8 head, in nv50_dmac_create() argument
236 ret = nv50_chan_create(disp, oclass, head, data, size, &dmac->base); in nv50_dmac_create()
311 nv50_base_create(struct nvif_object *disp, int head, u64 syncbuf, in nv50_base_create() argument
315 .pushbuf = 0xb0007c00 | head, in nv50_base_create()
316 .head = head, in nv50_base_create()
329 return nv50_dmac_create(disp, oclass, head, &args, sizeof(args), in nv50_base_create()
342 nv50_ovly_create(struct nvif_object *disp, int head, u64 syncbuf, in nv50_ovly_create() argument
346 .pushbuf = 0xb0007e00 | head, in nv50_ovly_create()
347 .head = head, in nv50_ovly_create()
359 return nv50_dmac_create(disp, oclass, head, &args, sizeof(args), in nv50_ovly_create()
381 struct list_head head; member
547 struct nv50_head *head = nv50_head(crtc); in nv50_display_flip_next() local
666 nouveau_bo_ref(nv_fb->nvbo, &head->image); in nv50_display_flip_next()
1098 struct nv50_head *head = nv50_head(crtc); in nv50_crtc_swap_fbs() local
1103 if (head->image) in nv50_crtc_swap_fbs()
1104 nouveau_bo_unpin(head->image); in nv50_crtc_swap_fbs()
1105 nouveau_bo_ref(nvfb->nvbo, &head->image); in nv50_crtc_swap_fbs()
1270 struct nv50_head *head = nv50_head(crtc); in nv50_crtc_disable() local
1272 if (head->image) in nv50_crtc_disable()
1273 nouveau_bo_unpin(head->image); in nv50_crtc_disable()
1274 nouveau_bo_ref(NULL, &head->image); in nv50_crtc_disable()
1354 struct nv50_head *head = nv50_head(crtc); in nv50_crtc_destroy() local
1357 list_for_each_entry(fbdma, &disp->fbdma, head) { in nv50_crtc_destroy()
1361 nv50_dmac_destroy(&head->ovly.base, disp->disp); in nv50_crtc_destroy()
1362 nv50_pioc_destroy(&head->oimm.base); in nv50_crtc_destroy()
1363 nv50_dmac_destroy(&head->sync.base, disp->disp); in nv50_crtc_destroy()
1364 nv50_pioc_destroy(&head->curs.base); in nv50_crtc_destroy()
1369 if (head->image) in nv50_crtc_destroy()
1370 nouveau_bo_unpin(head->image); in nv50_crtc_destroy()
1371 nouveau_bo_ref(NULL, &head->image); in nv50_crtc_destroy()
1412 struct nv50_head *head; in nv50_crtc_create() local
1416 head = kzalloc(sizeof(*head), GFP_KERNEL); in nv50_crtc_create()
1417 if (!head) in nv50_crtc_create()
1420 head->base.index = index; in nv50_crtc_create()
1421 head->base.set_dither = nv50_crtc_set_dither; in nv50_crtc_create()
1422 head->base.set_scale = nv50_crtc_set_scale; in nv50_crtc_create()
1423 head->base.set_color_vibrance = nv50_crtc_set_color_vibrance; in nv50_crtc_create()
1424 head->base.color_vibrance = 50; in nv50_crtc_create()
1425 head->base.vibrant_hue = 0; in nv50_crtc_create()
1426 head->base.cursor.set_pos = nv50_crtc_cursor_restore; in nv50_crtc_create()
1428 head->base.lut.r[i] = i << 8; in nv50_crtc_create()
1429 head->base.lut.g[i] = i << 8; in nv50_crtc_create()
1430 head->base.lut.b[i] = i << 8; in nv50_crtc_create()
1433 crtc = &head->base.base; in nv50_crtc_create()
1439 0, 0x0000, NULL, NULL, &head->base.lut.nvbo); in nv50_crtc_create()
1441 ret = nouveau_bo_pin(head->base.lut.nvbo, TTM_PL_FLAG_VRAM, true); in nv50_crtc_create()
1443 ret = nouveau_bo_map(head->base.lut.nvbo); in nv50_crtc_create()
1445 nouveau_bo_unpin(head->base.lut.nvbo); in nv50_crtc_create()
1448 nouveau_bo_ref(NULL, &head->base.lut.nvbo); in nv50_crtc_create()
1455 ret = nv50_curs_create(disp->disp, index, &head->curs); in nv50_crtc_create()
1461 &head->sync); in nv50_crtc_create()
1465 head->sync.addr = EVO_FLIP_SEM0(index); in nv50_crtc_create()
1466 head->sync.data = 0x00000000; in nv50_crtc_create()
1469 ret = nv50_oimm_create(disp->disp, index, &head->oimm); in nv50_crtc_create()
1474 &head->ovly); in nv50_crtc_create()
1845 list_for_each_entry(partner, &dev->mode_config.encoder_list, head) { in nv50_sor_dpms()
2283 list_del(&fbdma->head); in nv50_fbdma_fini()
2306 list_for_each_entry(fbdma, &disp->fbdma, head) { in nv50_fbdma_init()
2314 list_add(&fbdma->head, &disp->fbdma); in nv50_fbdma_init()
2339 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in nv50_fbdma_init()
2340 struct nv50_head *head = nv50_head(crtc); in nv50_fbdma_init() local
2341 int ret = nvif_object_init(&head->sync.base.base.user, NULL, in nv50_fbdma_init()
2343 &fbdma->base[head->base.index]); in nv50_fbdma_init()
2429 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in nv50_display_init()
2448 list_for_each_entry_safe(fbdma, fbtmp, &disp->fbdma, head) { in nv50_display_destroy()
2555 list_for_each_entry_safe(connector, tmp, &dev->mode_config.connector_list, head) { in nv50_display_create()