Home
last modified time | relevance | path

Searched refs:gamma (Results 1 – 25 of 112) sorted by relevance

12345

/linux-6.6.21/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_color.c145 struct dc_gamma *gamma, bool is_legacy) in __drm_lut_to_dc_gamma() argument
156 gamma->entries.red[i] = dc_fixpt_from_int(r); in __drm_lut_to_dc_gamma()
157 gamma->entries.green[i] = dc_fixpt_from_int(g); in __drm_lut_to_dc_gamma()
158 gamma->entries.blue[i] = dc_fixpt_from_int(b); in __drm_lut_to_dc_gamma()
169 gamma->entries.red[i] = dc_fixpt_from_fraction(r, MAX_DRM_LUT_VALUE); in __drm_lut_to_dc_gamma()
170 gamma->entries.green[i] = dc_fixpt_from_fraction(g, MAX_DRM_LUT_VALUE); in __drm_lut_to_dc_gamma()
171 gamma->entries.blue[i] = dc_fixpt_from_fraction(b, MAX_DRM_LUT_VALUE); in __drm_lut_to_dc_gamma()
229 struct dc_gamma *gamma = NULL; in __set_legacy_tf() local
237 gamma = dc_create_gamma(); in __set_legacy_tf()
238 if (!gamma) in __set_legacy_tf()
[all …]
/linux-6.6.21/drivers/gpu/drm/mediatek/
Dmtk_disp_gamma.c45 struct mtk_disp_gamma *gamma = dev_get_drvdata(dev); in mtk_gamma_clk_enable() local
47 return clk_prepare_enable(gamma->clk); in mtk_gamma_clk_enable()
52 struct mtk_disp_gamma *gamma = dev_get_drvdata(dev); in mtk_gamma_clk_disable() local
54 clk_disable_unprepare(gamma->clk); in mtk_gamma_clk_disable()
93 struct mtk_disp_gamma *gamma = dev_get_drvdata(dev); in mtk_gamma_set() local
96 if (gamma->data) in mtk_gamma_set()
97 lut_diff = gamma->data->lut_diff; in mtk_gamma_set()
99 mtk_gamma_set_common(gamma->regs, state, lut_diff); in mtk_gamma_set()
106 struct mtk_disp_gamma *gamma = dev_get_drvdata(dev); in mtk_gamma_config() local
108 mtk_ddp_write(cmdq_pkt, h << 16 | w, &gamma->cmdq_reg, gamma->regs, in mtk_gamma_config()
[all …]
/linux-6.6.21/drivers/staging/fbtft/
Dfbtft-sysfs.c55 if (curve_counter == par->gamma.num_curves) { in fbtft_gamma_parse_str()
63 if (value_counter == par->gamma.num_values) { in fbtft_gamma_parse_str()
73 _count = curve_counter * par->gamma.num_values + in fbtft_gamma_parse_str()
78 if (value_counter != par->gamma.num_values) { in fbtft_gamma_parse_str()
85 if (curve_counter != par->gamma.num_curves) { in fbtft_gamma_parse_str()
102 mutex_lock(&par->gamma.lock); in sprintf_gamma()
103 for (i = 0; i < par->gamma.num_curves; i++) { in sprintf_gamma()
104 for (j = 0; j < par->gamma.num_values; j++) in sprintf_gamma()
106 "%04x ", curves[i * par->gamma.num_values + j]); in sprintf_gamma()
109 mutex_unlock(&par->gamma.lock); in sprintf_gamma()
[all …]
Dfb_ssd1305.c37 if (par->gamma.curves[0] == 0) { in init_display()
38 mutex_lock(&par->gamma.lock); in init_display()
40 par->gamma.curves[0] = 0xCF; in init_display()
42 par->gamma.curves[0] = 0x8F; in init_display()
43 mutex_unlock(&par->gamma.lock); in init_display()
188 .gamma = "00",
Dfb_st7735r.c136 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)]
142 for (i = 0; i < par->gamma.num_curves; i++) in set_gamma()
143 for (j = 0; j < par->gamma.num_values; j++) in set_gamma()
146 for (i = 0; i < par->gamma.num_curves; i++) in set_gamma()
169 .gamma = DEFAULT_GAMMA,
Dfb_ssd1306.c36 if (par->gamma.curves[0] == 0) { in init_display()
37 mutex_lock(&par->gamma.lock); in init_display()
39 par->gamma.curves[0] = 0xCF; in init_display()
41 par->gamma.curves[0] = 0x8F; in init_display()
42 mutex_unlock(&par->gamma.lock); in init_display()
209 .gamma = "00",
Dfb_hx8340bn.c151 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)]
162 for (i = 0; i < par->gamma.num_curves; i++) in set_gamma()
163 for (j = 0; j < par->gamma.num_values; j++) in set_gamma()
164 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma()
207 .gamma = DEFAULT_GAMMA,
Dfb_hx8347d.c117 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)]
128 for (i = 0; i < par->gamma.num_curves; i++) in set_gamma()
129 for (j = 0; j < par->gamma.num_values; j++) { in set_gamma()
137 for (i = 0; i < par->gamma.num_curves; i++) { in set_gamma()
165 .gamma = DEFAULT_GAMMA,
Dfb_st7789v.c338 for (i = 0; i < par->gamma.num_curves; i++) { in set_gamma()
339 c = i * par->gamma.num_values; in set_gamma()
340 for (j = 0; j < par->gamma.num_values; j++) in set_gamma()
375 .gamma = HSD20_IPS_GAMMA,
/linux-6.6.21/Documentation/devicetree/bindings/display/mediatek/
Dmediatek,gamma.yaml4 $id: http://devicetree.org/schemas/display/mediatek/mediatek,gamma.yaml#
7 title: Mediatek display gamma correction
14 Mediatek display gamma correction, namely GAMMA, provides a nonlinear
25 - mediatek,mt8173-disp-gamma
26 - mediatek,mt8183-disp-gamma
29 - mediatek,mt6795-disp-gamma
30 - const: mediatek,mt8173-disp-gamma
33 - mediatek,mt8186-disp-gamma
34 - mediatek,mt8188-disp-gamma
35 - mediatek,mt8192-disp-gamma
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/core/
Ddc_surface.c192 void dc_gamma_retain(struct dc_gamma *gamma) in dc_gamma_retain() argument
194 kref_get(&gamma->refcount); in dc_gamma_retain()
199 struct dc_gamma *gamma = container_of(kref, struct dc_gamma, refcount); in dc_gamma_free() local
200 kvfree(gamma); in dc_gamma_free()
203 void dc_gamma_release(struct dc_gamma **gamma) in dc_gamma_release() argument
205 kref_put(&(*gamma)->refcount, dc_gamma_free); in dc_gamma_release()
206 *gamma = NULL; in dc_gamma_release()
211 struct dc_gamma *gamma = kvzalloc(sizeof(*gamma), GFP_KERNEL); in dc_create_gamma() local
213 if (gamma == NULL) in dc_create_gamma()
216 kref_init(&gamma->refcount); in dc_create_gamma()
[all …]
/linux-6.6.21/drivers/gpu/drm/panel/
Dpanel-tpo-td043mtea1.c61 u16 gamma[12]; member
101 const u16 *gamma = lcd->gamma; in td043mtea1_write_gamma() local
107 val |= (gamma[i] & 0x300) >> ((i + 1) * 2); in td043mtea1_write_gamma()
111 val |= (gamma[i + 4] & 0x300) >> ((i + 1) * 2); in td043mtea1_write_gamma()
115 val |= (gamma[i + 8] & 0x300) >> ((i + 1) * 2); in td043mtea1_write_gamma()
120 td043mtea1_write(lcd, 0x14 + i, gamma[i] & 0xff); in td043mtea1_write_gamma()
247 for (i = 0; i < ARRAY_SIZE(lcd->gamma); i++) { in gamma_show()
249 lcd->gamma[i]); in gamma_show()
274 lcd->gamma[i] = g[i]; in gamma_store()
283 static DEVICE_ATTR_RW(gamma);
[all …]
Dpanel-ilitek-ili9322.c279 u8 gamma[8]; member
394 for (i = 0; i < ARRAY_SIZE(ili->gamma); i++) { in ili9322_init()
396 ili->gamma[i]); in ili9322_init()
726 u8 gamma; in ili9322_probe() local
809 for (i = 0; i < ARRAY_SIZE(ili->gamma); i++) { in ili9322_probe()
815 gamma = val << 4; in ili9322_probe()
821 gamma |= val; in ili9322_probe()
822 ili->gamma[i] = gamma; in ili9322_probe()
823 dev_dbg(dev, "gamma V%d: 0x%02x\n", i + 1, gamma); in ili9322_probe()
/linux-6.6.21/drivers/video/backlight/
Dams369fg06.c209 const unsigned int *gamma) in _ams369fg06_gamma_ctl() argument
215 ret = ams369fg06_spi_write(lcd, 0x40 + i, gamma[i]); in _ams369fg06_gamma_ctl()
216 ret = ams369fg06_spi_write(lcd, 0x50 + i, gamma[i+7*1]); in _ams369fg06_gamma_ctl()
217 ret = ams369fg06_spi_write(lcd, 0x60 + i, gamma[i+7*2]); in _ams369fg06_gamma_ctl()
231 int gamma = 0; in ams369fg06_gamma_ctl() local
234 gamma = 0; in ams369fg06_gamma_ctl()
236 gamma = 1; in ams369fg06_gamma_ctl()
238 gamma = 2; in ams369fg06_gamma_ctl()
240 gamma = 3; in ams369fg06_gamma_ctl()
242 gamma = 4; in ams369fg06_gamma_ctl()
[all …]
/linux-6.6.21/drivers/gpu/drm/i915/display/
Dintel_sprite.c50 static void i9xx_plane_linear_gamma(u16 gamma[8]) in i9xx_plane_linear_gamma()
57 gamma[i] = (in[i] << 8) / 32; in i9xx_plane_linear_gamma()
343 u16 gamma[8]; in vlv_sprite_update_gamma() local
350 i9xx_plane_linear_gamma(gamma); in vlv_sprite_update_gamma()
356 gamma[i] << 16 | gamma[i] << 8 | gamma[i]); in vlv_sprite_update_gamma()
721 u16 gamma[18]) in ivb_sprite_linear_gamma()
736 gamma[i] = min((scale * i << 10) / 16, (1 << 10) - 1); in ivb_sprite_linear_gamma()
738 gamma[i] = min((scale * i << 10) / 16, 1 << 10); in ivb_sprite_linear_gamma()
741 gamma[i] = 3 << 10; in ivb_sprite_linear_gamma()
750 u16 gamma[18]; in ivb_sprite_update_gamma() local
[all …]
/linux-6.6.21/tools/testing/selftests/net/
Dioam6.sh266 ip link del ioam-veth-gamma 2>/dev/null || true
270 ip netns del ioam-node-gamma || true
282 ip netns add ioam-node-gamma
287 peer name ioam-veth-gamma netns ioam-node-gamma
292 ip -netns ioam-node-gamma link set ioam-veth-gamma name veth0
307 ip -netns ioam-node-gamma addr add db02::2/64 dev veth0
308 ip -netns ioam-node-gamma link set veth0 up
309 ip -netns ioam-node-gamma link set lo up
310 ip -netns ioam-node-gamma route add db01::/64 via db02::1 dev veth0
333 ip netns exec ioam-node-gamma sysctl -wq net.ipv6.ioam6_id=${GAMMA[0]}
[all …]
/linux-6.6.21/arch/powerpc/platforms/512x/
Dmpc512x_shared.c47 u8 gamma[0x300]; /* 32-bit aligned! */ member
250 desc = in_be32(&diu_reg->gamma); in mpc512x_init_diu()
251 vaddr = ioremap(desc, sizeof(diu_shared_fb.gamma)); in mpc512x_init_diu()
257 memcpy(&diu_shared_fb.gamma, vaddr, sizeof(diu_shared_fb.gamma)); in mpc512x_init_diu()
259 dst = (unsigned long)&diu_shared_fb.gamma; in mpc512x_init_diu()
260 flush_dcache_range(dst, dst + sizeof(diu_shared_fb.gamma) - 1); in mpc512x_init_diu()
263 out_be32(&diu_reg->gamma, virt_to_phys(&diu_shared_fb.gamma)); in mpc512x_init_diu()
/linux-6.6.21/drivers/video/fbdev/omap2/omapfb/displays/
Dpanel-tpo-td043mtea1.c61 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()
231 for (i = 0; i < ARRAY_SIZE(ddata->gamma); i++) { in tpo_td043_gamma_show()
233 ddata->gamma[i]); in tpo_td043_gamma_show()
259 ddata->gamma[i] = g[i]; in tpo_td043_gamma_store()
261 tpo_td043_write_gamma(ddata->spi, ddata->gamma); in tpo_td043_gamma_store()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/modules/color/
Dcolor_gamma.h60 unsigned short gamma[256*3]; // gamma ramp packed in same way as OS windows ,r , g & b member
64 int gamma[3]; member
100 struct fixed31_32 gamma; member
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dce/
Ddce_ipp.c171 const struct dc_gamma *gamma) in dce_ipp_program_input_lut() argument
196 for (i = 0; i < gamma->num_entries; i++) { in dce_ipp_program_input_lut()
199 gamma->entries.red[i])); in dce_ipp_program_input_lut()
202 gamma->entries.green[i])); in dce_ipp_program_input_lut()
205 gamma->entries.blue[i])); in dce_ipp_program_input_lut()
/linux-6.6.21/drivers/media/usb/gspca/gl860/
Dgl860-ov2640.c179 sd->vcur.gamma = 32; in ov2640_init_settings()
190 sd->vmax.gamma = 64; in ov2640_init_settings()
244 sd->vold.gamma = -1; in ov2640_init_pre_alt()
342 s32 gam = sd->vcur.gamma; in ov2640_camera_settings()
428 if (gam != sd->vold.gamma) { in ov2640_camera_settings()
429 sd->vold.gamma = gam; in ov2640_camera_settings()
430 if (gam < 0 || gam > sd->vmax.gamma) in ov2640_camera_settings()
Dgl860-mi1320.c208 sd->vcur.gamma = 20; in mi1320_init_settings()
220 sd->vmax.gamma = 40; in mi1320_init_settings()
286 sd->vold.gamma = -1; in mi1320_init_pre_alt()
371 s32 gam = sd->vcur.gamma; in mi1320_camera_settings()
517 if (gam != sd->vold.gamma) { in mi1320_camera_settings()
518 sd->vold.gamma = gam; in mi1320_camera_settings()
519 if (gam < 0 || gam > sd->vmax.gamma) in mi1320_camera_settings()
/linux-6.6.21/net/ipv4/
Dtcp_vegas.c46 static int gamma = 1; variable
52 module_param(gamma, int, 0644);
53 MODULE_PARM_DESC(gamma, "limit on increase (scale by 2)");
229 if (diff > gamma && tcp_in_slow_start(tp)) { in tcp_vegas_cong_avoid()
/linux-6.6.21/drivers/media/usb/gspca/
Dsn9c20x.c73 struct v4l2_ctrl *gamma; member
1335 u8 gamma[17]; in set_gamma() local
1338 gamma[0] = 0x0a; in set_gamma()
1339 gamma[1] = 0x13 + (gval * (0xcb - 0x13) / 0xb8); in set_gamma()
1340 gamma[2] = 0x25 + (gval * (0xee - 0x25) / 0xb8); in set_gamma()
1341 gamma[3] = 0x37 + (gval * (0xfa - 0x37) / 0xb8); in set_gamma()
1342 gamma[4] = 0x45 + (gval * (0xfc - 0x45) / 0xb8); in set_gamma()
1343 gamma[5] = 0x55 + (gval * (0xfb - 0x55) / 0xb8); in set_gamma()
1344 gamma[6] = 0x65 + (gval * (0xfc - 0x65) / 0xb8); in set_gamma()
1345 gamma[7] = 0x74 + (gval * (0xfd - 0x74) / 0xb8); in set_gamma()
[all …]
/linux-6.6.21/drivers/gpu/drm/ci/xfails/
Drockchip-rk3399-fails.txt1 kms_color@legacy-gamma,Fail
2 kms_color@pipe-A-legacy-gamma,Fail
3 kms_color@pipe-B-legacy-gamma,Fail

12345