• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/video/omap2/displays/

Lines Matching defs:tpo_td043

121 	struct tpo_td043_device *tpo_td043 = dev_get_drvdata(&dssdev->dev);
123 tpo_td043->hmirror = enable;
124 return tpo_td043_write_mirror(tpo_td043->spi, tpo_td043->hmirror,
125 tpo_td043->vmirror);
130 struct tpo_td043_device *tpo_td043 = dev_get_drvdata(&dssdev->dev);
132 return tpo_td043->hmirror;
138 struct tpo_td043_device *tpo_td043 = dev_get_drvdata(dev);
140 return snprintf(buf, PAGE_SIZE, "%d\n", tpo_td043->vmirror);
146 struct tpo_td043_device *tpo_td043 = dev_get_drvdata(dev);
154 ret = tpo_td043_write_mirror(tpo_td043->spi, tpo_td043->hmirror, val);
158 tpo_td043->vmirror = val;
166 struct tpo_td043_device *tpo_td043 = dev_get_drvdata(dev);
168 return snprintf(buf, PAGE_SIZE, "%d\n", tpo_td043->mode);
174 struct tpo_td043_device *tpo_td043 = dev_get_drvdata(dev);
182 tpo_td043->mode = val;
185 tpo_td043_write(tpo_td043->spi, 2, val);
193 struct tpo_td043_device *tpo_td043 = dev_get_drvdata(dev);
198 for (i = 0; i < ARRAY_SIZE(tpo_td043->gamma); i++) {
200 tpo_td043->gamma[i]);
213 struct tpo_td043_device *tpo_td043 = dev_get_drvdata(dev);
226 tpo_td043->gamma[i] = g[i];
228 tpo_td043_write_gamma(tpo_td043->spi, tpo_td043->gamma);
268 struct tpo_td043_device *tpo_td043 = dev_get_drvdata(&dssdev->dev);
282 regulator_enable(tpo_td043->vcc_reg);
290 tpo_td043_write(tpo_td043->spi, 2,
291 TPO_R02_MODE(tpo_td043->mode) | TPO_R02_NCLK_RISING);
292 tpo_td043_write(tpo_td043->spi, 3, TPO_R03_VAL_NORMAL);
293 tpo_td043_write(tpo_td043->spi, 0x20, 0xf0);
294 tpo_td043_write(tpo_td043->spi, 0x21, 0xf0);
295 tpo_td043_write_mirror(tpo_td043->spi, tpo_td043->hmirror,
296 tpo_td043->vmirror);
297 tpo_td043_write_gamma(tpo_td043->spi, tpo_td043->gamma);
308 struct tpo_td043_device *tpo_td043 = dev_get_drvdata(&dssdev->dev);
311 tpo_td043_write(tpo_td043->spi, 3,
320 tpo_td043_write(tpo_td043->spi, 3, TPO_R03_VAL_STANDBY);
322 regulator_disable(tpo_td043->vcc_reg);
376 struct tpo_td043_device *tpo_td043 = dev_get_drvdata(&dssdev->dev);
382 if (tpo_td043 == NULL) {
392 tpo_td043->mode = TPO_R02_MODE_800x480;
393 memcpy(tpo_td043->gamma, tpo_td043_def_gamma, sizeof(tpo_td043->gamma));
395 tpo_td043->vcc_reg = regulator_get(&dssdev->dev, "vcc");
396 if (IS_ERR(tpo_td043->vcc_reg)) {
398 ret = PTR_ERR(tpo_td043->vcc_reg);
425 regulator_put(tpo_td043->vcc_reg);
427 kfree(tpo_td043);
433 struct tpo_td043_device *tpo_td043 = dev_get_drvdata(&dssdev->dev);
439 regulator_put(tpo_td043->vcc_reg);
464 struct tpo_td043_device *tpo_td043;
481 tpo_td043 = kzalloc(sizeof(*tpo_td043), GFP_KERNEL);
482 if (tpo_td043 == NULL)
485 tpo_td043->spi = spi;
486 dev_set_drvdata(&spi->dev, tpo_td043);
487 dev_set_drvdata(&dssdev->dev, tpo_td043);
496 struct tpo_td043_device *tpo_td043 = dev_get_drvdata(&spi->dev);
499 kfree(tpo_td043);