Home
last modified time | relevance | path

Searched refs:lut (Results 1 – 25 of 101) sorted by relevance

12345

/linux/drivers/media/platform/renesas/vsp1/
H A Dvsp1_lut.c28 static inline void vsp1_lut_write(struct vsp1_lut *lut, in vsp1_lut_write() argument
40 static int lut_set_table(struct vsp1_lut *lut, struct v4l2_ctrl *ctrl) in lut_set_table() argument
45 dlb = vsp1_dl_body_get(lut->pool); in lut_set_table()
53 spin_lock_irq(&lut->lock); in lut_set_table()
54 swap(lut->lut, dlb); in lut_set_table()
55 spin_unlock_irq(&lut->lock); in lut_set_table()
63 struct vsp1_lut *lut = in lut_s_ctrl() local
68 lut_set_table(lut, ctrl); in lut_s_ctrl()
154 struct vsp1_lut *lut = to_lut(&entity->subdev); in lut_configure_stream() local
156 vsp1_lut_write(lut, dlb, VI6_LUT_CTRL, VI6_LUT_CTRL_EN); in lut_configure_stream()
[all …]
/linux/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_hw_catalog.c666 {.fl = 4, .lut = 0x1b},
667 {.fl = 5, .lut = 0x5b},
668 {.fl = 6, .lut = 0x15b},
669 {.fl = 7, .lut = 0x55b},
670 {.fl = 8, .lut = 0x155b},
671 {.fl = 9, .lut = 0x555b},
672 {.fl = 10, .lut = 0x1555b},
673 {.fl = 11, .lut = 0x5555b},
674 {.fl = 12, .lut = 0x15555b},
675 {.fl = 0, .lut = 0x55555b}
[all …]
H A Ddpu_hw_util.c119 u32 *lut[QSEED3_FILTERS] = {NULL, NULL, NULL, NULL, NULL}; in _dpu_hw_setup_scaler3_lut() local
131 lut[0] = scaler3_cfg->dir_lut; in _dpu_hw_setup_scaler3_lut()
137 lut[1] = scaler3_cfg->cir_lut + in _dpu_hw_setup_scaler3_lut()
144 lut[2] = scaler3_cfg->cir_lut + in _dpu_hw_setup_scaler3_lut()
151 lut[3] = scaler3_cfg->sep_lut + in _dpu_hw_setup_scaler3_lut()
158 lut[4] = scaler3_cfg->sep_lut + in _dpu_hw_setup_scaler3_lut()
165 if (!lut[filter]) in _dpu_hw_setup_scaler3_lut()
175 (lut[filter])[lut_offset++]); in _dpu_hw_setup_scaler3_lut()
194 u32 *lut[QSEED3LITE_FILTERS] = {NULL, NULL}; in _dpu_hw_setup_scaler3lite_lut() local
206 lut[0] = scaler3_cfg->sep_lut + in _dpu_hw_setup_scaler3lite_lut()
[all …]
/linux/drivers/video/fbdev/
H A Dmacfb.c58 unsigned char lut; member
64 unsigned char lut; member
73 unsigned char lut; member
79 unsigned char lut; /* OFFSET: 0x10 */ member
101 unsigned char lut; member
106 unsigned char lut; /* TFBClutWDataReg, offset 0x90018 */ member
114 unsigned char lut; member
167 &dafb_cmap_regs->lut); in dafb_setpalette()
170 &dafb_cmap_regs->lut); in dafb_setpalette()
173 &dafb_cmap_regs->lut); in dafb_setpalette()
[all …]
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_color.c357 static bool __is_lut_linear(const struct drm_color_lut *lut, uint32_t size) in __is_lut_linear() argument
365 if ((lut[i].red != lut[i].green) || (lut[i].green != lut[i].blue)) in __is_lut_linear()
371 delta = lut[i].red - expected; in __is_lut_linear()
386 static void __drm_lut_to_dc_gamma(const struct drm_color_lut *lut, in __drm_lut_to_dc_gamma() argument
394 r = drm_color_lut_extract(lut[i].red, 16); in __drm_lut_to_dc_gamma()
395 g = drm_color_lut_extract(lut[i].green, 16); in __drm_lut_to_dc_gamma()
396 b = drm_color_lut_extract(lut[i].blue, 16); in __drm_lut_to_dc_gamma()
407 r = drm_color_lut_extract(lut[i].red, 16); in __drm_lut_to_dc_gamma()
408 g = drm_color_lut_extract(lut[i].green, 16); in __drm_lut_to_dc_gamma()
409 b = drm_color_lut_extract(lut[i].blue, 16); in __drm_lut_to_dc_gamma()
[all …]
/linux/drivers/gpu/drm/nouveau/dispnv50/
H A Dlut.c32 nv50_lut_load(struct nv50_lut *lut, int buffer, struct drm_property_blob *blob, in nv50_lut_load() argument
36 void __iomem *mem = lut->mem[buffer].object.map.ptr; in nv50_lut_load()
37 const u32 addr = lut->mem[buffer].addr; in nv50_lut_load()
59 nv50_lut_fini(struct nv50_lut *lut) in nv50_lut_fini() argument
62 for (i = 0; i < ARRAY_SIZE(lut->mem); i++) in nv50_lut_fini()
63 nvif_mem_dtor(&lut->mem[i]); in nv50_lut_fini()
68 struct nv50_lut *lut) in nv50_lut_init() argument
72 for (i = 0; i < ARRAY_SIZE(lut->mem); i++) { in nv50_lut_init()
74 size * 8, &lut->mem[i]); in nv50_lut_init()
/linux/drivers/gpu/drm/mediatek/
H A Dmtk_disp_gamma.c90 static bool mtk_gamma_lut_is_descending(struct drm_color_lut *lut, u32 lut_size) in mtk_gamma_lut_is_descending() argument
95 first = lut[0].red + lut[0].green + lut[0].blue; in mtk_gamma_lut_is_descending()
96 last = lut[last_entry].red + lut[last_entry].green + lut[last_entry].blue; in mtk_gamma_lut_is_descending()
124 struct drm_color_lut *lut; in mtk_gamma_set() local
132 lut = (struct drm_color_lut *)state->gamma_lut->data; in mtk_gamma_set()
150 hwlut.red = drm_color_lut_extract(lut[n].red, lut_bits); in mtk_gamma_set()
151 hwlut.green = drm_color_lut_extract(lut[n].green, lut_bits); in mtk_gamma_set()
152 hwlut.blue = drm_color_lut_extract(lut[n].blue, lut_bits); in mtk_gamma_set()
165 diff.red = lut[n].red - lut[n - 1].red; in mtk_gamma_set()
168 diff.green = lut[n].green - lut[n - 1].green; in mtk_gamma_set()
[all …]
H A Dmtk_disp_aal.c99 struct drm_color_lut *lut; in mtk_aal_gamma_set() local
111 lut = (struct drm_color_lut *)state->gamma_lut->data; in mtk_aal_gamma_set()
114 .red = drm_color_lut_extract(lut[i].red, DISP_AAL_LUT_BITS), in mtk_aal_gamma_set()
115 .green = drm_color_lut_extract(lut[i].green, DISP_AAL_LUT_BITS), in mtk_aal_gamma_set()
116 .blue = drm_color_lut_extract(lut[i].blue, DISP_AAL_LUT_BITS) in mtk_aal_gamma_set()
/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_surface.c248 struct dc_3dlut *lut = container_of(kref, struct dc_3dlut, refcount); in dc_3dlut_func_free() local
250 kvfree(lut); in dc_3dlut_func_free()
255 struct dc_3dlut *lut = kvzalloc(sizeof(*lut), GFP_KERNEL); in dc_create_3dlut_func() local
257 if (lut == NULL) in dc_create_3dlut_func()
260 kref_init(&lut->refcount); in dc_create_3dlut_func()
261 lut->state.raw = 0; in dc_create_3dlut_func()
263 return lut; in dc_create_3dlut_func()
270 void dc_3dlut_func_release(struct dc_3dlut *lut) in dc_3dlut_func_release() argument
272 kref_put(&lut->refcount, dc_3dlut_func_free); in dc_3dlut_func_release()
275 void dc_3dlut_func_retain(struct dc_3dlut *lut) in dc_3dlut_func_retain() argument
[all …]
/linux/drivers/gpu/drm/renesas/rcar-du/
H A Drcar_cmm.c32 } lut; member
87 if (!config->lut.table) { in rcar_cmm_setup()
88 if (rcmm->lut.enabled) { in rcar_cmm_setup()
90 rcmm->lut.enabled = false; in rcar_cmm_setup()
97 if (!rcmm->lut.enabled) { in rcar_cmm_setup()
99 rcmm->lut.enabled = true; in rcar_cmm_setup()
102 rcar_cmm_lut_write(rcmm, config->lut.table); in rcar_cmm_setup()
148 rcmm->lut.enabled = false; in rcar_cmm_disable()
/linux/drivers/gpio/
H A Dgpio-adp5520.c19 unsigned char lut[ADP5520_MAXGPIOS]; member
40 return !!(reg_val & dev->lut[off]); in adp5520_gpio_get_value()
50 adp5520_set_bits(dev->master, ADP5520_GPIO_OUT, dev->lut[off]); in adp5520_gpio_set_value()
52 adp5520_clr_bits(dev->master, ADP5520_GPIO_OUT, dev->lut[off]); in adp5520_gpio_set_value()
63 dev->lut[off]); in adp5520_gpio_direction_input()
77 dev->lut[off]); in adp5520_gpio_direction_output()
80 dev->lut[off]); in adp5520_gpio_direction_output()
83 dev->lut[off]); in adp5520_gpio_direction_output()
114 dev->lut[gpios++] = 1 << i; in adp5520_gpio_probe()
/linux/drivers/clk/rockchip/
H A Dsoftrst.c15 const int *lut; member
31 if (softrst->lut) in rockchip_softrst_assert()
32 id = softrst->lut[id]; in rockchip_softrst_assert()
63 if (softrst->lut) in rockchip_softrst_deassert()
64 id = softrst->lut[id]; in rockchip_softrst_deassert()
106 softrst->lut = lookup_table; in rockchip_register_softrst_lut()
/linux/drivers/gpu/drm/arm/
H A Dmalidp_crtc.c130 struct drm_color_lut *lut = (struct drm_color_lut *)lut_blob->data; in malidp_generate_gamma_table() local
138 out_start = drm_color_lut_extract(lut[segments[i].start].green, in malidp_generate_gamma_table()
140 out_end = drm_color_lut_extract(lut[segments[i].end].green, 12); in malidp_generate_gamma_table()
155 struct drm_color_lut *lut; in malidp_crtc_atomic_check_gamma() local
173 lut = (struct drm_color_lut *)state->gamma_lut->data; in malidp_crtc_atomic_check_gamma()
175 if (!((lut[i].red == lut[i].green) && in malidp_crtc_atomic_check_gamma()
176 (lut[i].red == lut[i].blue))) in malidp_crtc_atomic_check_gamma()
/linux/drivers/hwmon/
H A Dmax31760.c47 } lut[LUT_SIZE]; member
491 struct lut_attribute *lut; in max31760_create_lut_nodes() local
494 lut = &state->lut[i]; in max31760_create_lut_nodes()
495 sda = &lut->sda; in max31760_create_lut_nodes()
497 snprintf(lut->name, sizeof(lut->name), in max31760_create_lut_nodes()
504 sda->dev_attr.attr.name = lut->name; in max31760_create_lut_nodes()
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_object.c243 struct i915_lut_handle *lut, *ln; in i915_gem_close_object() local
247 list_for_each_entry_safe(lut, ln, &obj->lut_list, obj_link) { in i915_gem_close_object()
248 struct i915_gem_context *ctx = lut->ctx; in i915_gem_close_object()
252 list_move(&lut->obj_link, &close); in i915_gem_close_object()
270 list_for_each_entry_safe(lut, ln, &close, obj_link) { in i915_gem_close_object()
271 struct i915_gem_context *ctx = lut->ctx; in i915_gem_close_object()
280 vma = radix_tree_delete(&ctx->handles_vma, lut->handle); in i915_gem_close_object()
288 i915_gem_context_put(lut->ctx); in i915_gem_close_object()
289 i915_lut_handle_free(lut); in i915_gem_close_object()
/linux/drivers/gpu/drm/mgag200/
H A Dmgag200_mode.c72 struct drm_color_lut *lut) in mgag200_crtc_set_gamma() argument
82 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i * 8 + i / 4].red >> 8); in mgag200_crtc_set_gamma()
83 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i * 4 + i / 16].green >> 8); in mgag200_crtc_set_gamma()
84 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i * 8 + i / 4].blue >> 8); in mgag200_crtc_set_gamma()
89 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i * 4 + i / 16].green >> 8); in mgag200_crtc_set_gamma()
96 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i].red >> 8); in mgag200_crtc_set_gamma()
97 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i].green >> 8); in mgag200_crtc_set_gamma()
98 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i].blue >> 8); in mgag200_crtc_set_gamma()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn30/
H A Ddcn30_resource.h87 struct dc_3dlut **lut,
93 struct dc_3dlut **lut,
/linux/drivers/clk/tegra/
H A Dclk-dfll.c303 unsigned lut[MAX_DFLL_VOLTAGES]; member
690 td->lut[lut_index]); in dfll_load_i2c_lut()
1660 td->lut[i] = i; in dfll_build_pwm_lut()
1704 int j, selector, lut; in dfll_build_i2c_lut() local
1707 lut = find_vdd_map_entry_exact(td, v); in dfll_build_i2c_lut()
1708 if (lut < 0) in dfll_build_i2c_lut()
1710 td->lut[0] = lut; in dfll_build_i2c_lut()
1734 if (selector != td->lut[j - 1]) in dfll_build_i2c_lut()
1735 td->lut[j++] = selector; in dfll_build_i2c_lut()
1742 if (selector != td->lut[j - 1]) in dfll_build_i2c_lut()
[all …]
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_common.c327 u8 *lut, u16 lut_size, in iavf_aq_get_set_rss_lut() argument
360 status = iavf_asq_send_command(hw, &desc, lut, lut_size, NULL); in iavf_aq_get_set_rss_lut()
376 bool pf_lut, u8 *lut, u16 lut_size) in iavf_aq_set_rss_lut() argument
378 return iavf_aq_get_set_rss_lut(hw, vsi_id, pf_lut, lut, lut_size, true); in iavf_aq_set_rss_lut()
/linux/drivers/gpu/drm/amd/display/dc/dpp/dcn20/
H A Ddcn20_dpp_cm.c1051 const struct dc_rgb *lut, in dpp20_set3dlut_ram12() argument
1058 red = lut[i].red<<4; in dpp20_set3dlut_ram12()
1059 green = lut[i].green<<4; in dpp20_set3dlut_ram12()
1060 blue = lut[i].blue<<4; in dpp20_set3dlut_ram12()
1061 red1 = lut[i+1].red<<4; in dpp20_set3dlut_ram12()
1062 green1 = lut[i+1].green<<4; in dpp20_set3dlut_ram12()
1063 blue1 = lut[i+1].blue<<4; in dpp20_set3dlut_ram12()
1085 const struct dc_rgb *lut, in dpp20_set3dlut_ram10() argument
1092 red = lut[i].red; in dpp20_set3dlut_ram10()
1093 green = lut[i].green; in dpp20_set3dlut_ram10()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/mpc/dcn32/
H A Ddcn32_mpc.c826 const struct dc_rgb *lut, in mpc32_set3dlut_ram12() argument
834 red = lut[i].red<<4; in mpc32_set3dlut_ram12()
835 green = lut[i].green<<4; in mpc32_set3dlut_ram12()
836 blue = lut[i].blue<<4; in mpc32_set3dlut_ram12()
837 red1 = lut[i+1].red<<4; in mpc32_set3dlut_ram12()
838 green1 = lut[i+1].green<<4; in mpc32_set3dlut_ram12()
839 blue1 = lut[i+1].blue<<4; in mpc32_set3dlut_ram12()
858 const struct dc_rgb *lut, in mpc32_set3dlut_ram10() argument
866 red = lut[i].red; in mpc32_set3dlut_ram10()
867 green = lut[i].green; in mpc32_set3dlut_ram10()
[all …]
/linux/drivers/gpu/drm/msm/hdmi/
H A Dhdmi_audio.c31 struct hdmi_msm_audio_acr lut[MSM_HDMI_SAMPLE_RATE_MAX]; member
118 n = arcs->lut[audio->rate].n; in msm_hdmi_audio_update()
119 cts = arcs->lut[audio->rate].cts; in msm_hdmi_audio_update()
/linux/drivers/gpu/drm/
H A Ddrm_color_mgmt.c602 int drm_color_lut_check(const struct drm_property_blob *lut, u32 tests) in drm_color_lut_check() argument
607 if (!lut || !tests) in drm_color_lut_check()
610 entry = lut->data; in drm_color_lut_check()
611 for (i = 0; i < drm_color_lut_size(lut); i++) { in drm_color_lut_check()
/linux/drivers/net/ethernet/google/gve/
H A Dgve_adminq.c1296 __be32 *lut = NULL; in gve_adminq_configure_rss() local
1314 lut = dma_alloc_coherent(&priv->pdev->dev, in gve_adminq_configure_rss()
1315 lut_size * sizeof(*lut), in gve_adminq_configure_rss()
1317 if (!lut) in gve_adminq_configure_rss()
1321 lut[i] = cpu_to_be32(rxfh->indir[i]); in gve_adminq_configure_rss()
1356 if (lut) in gve_adminq_configure_rss()
1358 lut_size * sizeof(*lut), in gve_adminq_configure_rss()
1359 lut, lut_bus); in gve_adminq_configure_rss()
1451 __be32 *lut; in gve_adminq_process_rss_query() local
1470 lut = (__be32 *)rss_info_addr; in gve_adminq_process_rss_query()
[all …]
/linux/arch/arm/boot/dts/amlogic/
H A Dmeson8m2.dtsi19 /delete-node/ video-lut@20;
21 canvas: video-lut@48 {

12345