Lines Matching full:vsp1
3 * vsp1_dl.c -- R-Car VSP1 Display List
17 #include "vsp1.h"
128 * @vsp1: the VSP1 device
141 struct vsp1_device *vsp1; member
152 * @vsp1: the VSP1 device
165 struct vsp1_device *vsp1; member
207 * @vsp1: the VSP1 device
219 struct vsp1_device *vsp1; member
237 * @vsp1: The VSP1 device
248 vsp1_dl_body_pool_create(struct vsp1_device *vsp1, unsigned int num_bodies, in vsp1_dl_body_pool_create() argument
259 pool->vsp1 = vsp1; in vsp1_dl_body_pool_create()
276 pool->mem = dma_alloc_wc(vsp1->bus_master, pool->size, &pool->dma, in vsp1_dl_body_pool_create()
314 dma_free_wc(pool->vsp1->bus_master, pool->size, pool->mem, in vsp1_dl_body_pool_destroy()
412 * @vsp1: The VSP1 device
423 vsp1_dl_cmd_pool_create(struct vsp1_device *vsp1, enum vsp1_extcmd_type type, in vsp1_dl_cmd_pool_create() argument
434 pool->vsp1 = vsp1; in vsp1_dl_cmd_pool_create()
450 pool->mem = dma_alloc_wc(vsp1->bus_master, pool->size, &pool->dma, in vsp1_dl_cmd_pool_create()
525 dma_free_wc(pool->vsp1->bus_master, pool->size, pool->mem, in vsp1_dl_ext_cmd_pool_destroy()
839 struct vsp1_device *vsp1 = dlm->vsp1; in vsp1_dl_list_hw_update_pending() local
845 * Check whether the VSP1 has taken the update. The hardware indicates in vsp1_dl_list_hw_update_pending()
848 return !!(vsp1_read(vsp1, VI6_CMD(dlm->index)) & VI6_CMD_UPDHDR); in vsp1_dl_list_hw_update_pending()
854 struct vsp1_device *vsp1 = dlm->vsp1; in vsp1_dl_list_hw_enqueue() local
863 vsp1_write(vsp1, VI6_DL_HDR_ADDR(dlm->index), dl->dma); in vsp1_dl_list_hw_enqueue()
971 struct vsp1_device *vsp1 = dlm->vsp1; in vsp1_dlm_irq_frame_end() local
972 u32 status = vsp1_read(vsp1, VI6_STATUS); in vsp1_dlm_irq_frame_end()
1049 void vsp1_dlm_setup(struct vsp1_device *vsp1) in vsp1_dlm_setup() argument
1058 if (vsp1_feature(vsp1, VSP1_HAS_EXT_DL)) { in vsp1_dlm_setup()
1059 for (i = 0; i < vsp1->info->wpf_count; ++i) in vsp1_dlm_setup()
1060 vsp1_write(vsp1, VI6_DL_EXT_CTRL(i), ext_dl); in vsp1_dlm_setup()
1063 vsp1_write(vsp1, VI6_DL_CTRL, ctrl); in vsp1_dlm_setup()
1064 vsp1_write(vsp1, VI6_DL_SWAP, VI6_DL_SWAP_LWS); in vsp1_dlm_setup()
1089 struct vsp1_dl_manager *vsp1_dlm_create(struct vsp1_device *vsp1, in vsp1_dlm_create() argument
1097 dlm = devm_kzalloc(vsp1->dev, sizeof(*dlm), GFP_KERNEL); in vsp1_dlm_create()
1102 dlm->singleshot = vsp1->info->uapi; in vsp1_dlm_create()
1103 dlm->vsp1 = vsp1; in vsp1_dlm_create()
1115 header_size = vsp1_feature(vsp1, VSP1_HAS_EXT_DL) ? in vsp1_dlm_create()
1121 dlm->pool = vsp1_dl_body_pool_create(vsp1, prealloc + 1, in vsp1_dlm_create()
1136 if (vsp1_feature(vsp1, VSP1_HAS_EXT_DL)) in vsp1_dlm_create()
1143 if (vsp1_feature(vsp1, VSP1_HAS_EXT_DL)) { in vsp1_dlm_create()
1144 dlm->cmdpool = vsp1_dl_cmd_pool_create(vsp1, in vsp1_dlm_create()