예제 #1
0
void *jpeg_ion_init(struct jpeg_dev *dev)
{
	struct vb2_ion vb2_ion;
	struct vb2_drv vb2_drv = {0, };
	vb2_ion.dev = &dev->plat_dev->dev;
	vb2_ion.name = JPEG_ION_NAME;
	vb2_ion.contig = false;
	vb2_ion.cacheable = false;
	vb2_ion.align = SZ_8K;

	vb2_drv.use_mmu = true;
	return vb2_ion_init(&vb2_ion, &vb2_drv);
}
예제 #2
0
void *mxr_ion_init(struct mxr_device *mdev)
{
	struct vb2_ion vb2_ion;
	struct vb2_drv vb2_drv = {0, };
	char ion_name[16] = {0,};

	vb2_ion.dev = mdev->dev;
	memcpy(ion_name, "mxr", sizeof(ion_name));
	vb2_ion.name = ion_name;
	vb2_ion.contig = false;
	vb2_ion.cacheable = false;
	vb2_ion.align = SZ_4K;

	vb2_drv.use_mmu = true;

	return vb2_ion_init(&vb2_ion, &vb2_drv);
}