Lines Matching full:csc
20 #include "csc.h"
110 void csc_dump_regs(struct csc_data *csc) in csc_dump_regs() argument
112 struct device *dev = &csc->pdev->dev; in csc_dump_regs()
115 ioread32(csc->base + CSC_##r)) in csc_dump_regs()
117 dev_dbg(dev, "CSC Registers @ %pa:\n", &csc->res->start); in csc_dump_regs()
130 void csc_set_coeff_bypass(struct csc_data *csc, u32 *csc_reg5) in csc_set_coeff_bypass() argument
139 void csc_set_coeff(struct csc_data *csc, u32 *csc_reg0, in csc_set_coeff() argument
249 struct csc_data *csc; in csc_create() local
253 csc = devm_kzalloc(&pdev->dev, sizeof(*csc), GFP_KERNEL); in csc_create()
254 if (!csc) { in csc_create()
259 csc->pdev = pdev; in csc_create()
261 csc->res = platform_get_resource_byname(pdev, IORESOURCE_MEM, in csc_create()
263 if (csc->res == NULL) { in csc_create()
269 csc->base = devm_ioremap_resource(&pdev->dev, csc->res); in csc_create()
270 if (IS_ERR(csc->base)) in csc_create()
271 return ERR_CAST(csc->base); in csc_create()
273 return csc; in csc_create()