Lines Matching refs:gamma
61 u16 gamma[12]; member
116 static void tpo_td043_write_gamma(struct spi_device *spi, u16 gamma[12]) in tpo_td043_write_gamma()
122 val |= (gamma[i] & 0x300) >> ((i + 1) * 2); in tpo_td043_write_gamma()
126 val |= (gamma[i+4] & 0x300) >> ((i + 1) * 2); in tpo_td043_write_gamma()
130 val |= (gamma[i+8] & 0x300) >> ((i + 1) * 2); in tpo_td043_write_gamma()
135 tpo_td043_write(spi, 0x14 + i, gamma[i] & 0xff); in tpo_td043_write_gamma()
230 for (i = 0; i < ARRAY_SIZE(ddata->gamma); i++) in tpo_td043_gamma_show()
231 len += sysfs_emit_at(buf, len, "%u ", ddata->gamma[i]); in tpo_td043_gamma_show()
254 ddata->gamma[i] = g[i]; in tpo_td043_gamma_store()
256 tpo_td043_write_gamma(ddata->spi, ddata->gamma); in tpo_td043_gamma_store()
265 static DEVICE_ATTR(gamma, S_IRUGO | S_IWUSR,
302 tpo_td043_write_gamma(ddata->spi, ddata->gamma); in tpo_td043_power_on()
485 memcpy(ddata->gamma, tpo_td043_def_gamma, sizeof(ddata->gamma)); in tpo_td043_probe()