Home
last modified time | relevance | path

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

123456

/openbmc/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 …]
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_hw_catalog.c619 {.fl = 4, .lut = 0x1b},
620 {.fl = 5, .lut = 0x5b},
621 {.fl = 6, .lut = 0x15b},
622 {.fl = 7, .lut = 0x55b},
623 {.fl = 8, .lut = 0x155b},
624 {.fl = 9, .lut = 0x555b},
625 {.fl = 10, .lut = 0x1555b},
626 {.fl = 11, .lut = 0x5555b},
627 {.fl = 12, .lut = 0x15555b},
628 {.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 …]
/openbmc/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 …]
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_color.c115 static bool __is_lut_linear(const struct drm_color_lut *lut, uint32_t size) in __is_lut_linear() argument
123 if ((lut[i].red != lut[i].green) || (lut[i].green != lut[i].blue)) in __is_lut_linear()
129 delta = lut[i].red - expected; in __is_lut_linear()
144 static void __drm_lut_to_dc_gamma(const struct drm_color_lut *lut, in __drm_lut_to_dc_gamma() argument
152 r = drm_color_lut_extract(lut[i].red, 16); in __drm_lut_to_dc_gamma()
153 g = drm_color_lut_extract(lut[i].green, 16); in __drm_lut_to_dc_gamma()
154 b = drm_color_lut_extract(lut[i].blue, 16); in __drm_lut_to_dc_gamma()
165 r = drm_color_lut_extract(lut[i].red, 16); in __drm_lut_to_dc_gamma()
166 g = drm_color_lut_extract(lut[i].green, 16); in __drm_lut_to_dc_gamma()
167 b = drm_color_lut_extract(lut[i].blue, 16); in __drm_lut_to_dc_gamma()
[all …]
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_surface.c257 struct dc_3dlut *lut = container_of(kref, struct dc_3dlut, refcount); in dc_3dlut_func_free() local
259 kvfree(lut); in dc_3dlut_func_free()
264 struct dc_3dlut *lut = kvzalloc(sizeof(*lut), GFP_KERNEL); in dc_create_3dlut_func() local
266 if (lut == NULL) in dc_create_3dlut_func()
269 kref_init(&lut->refcount); in dc_create_3dlut_func()
270 lut->state.raw = 0; in dc_create_3dlut_func()
272 return lut; in dc_create_3dlut_func()
279 void dc_3dlut_func_release(struct dc_3dlut *lut) in dc_3dlut_func_release() argument
281 kref_put(&lut->refcount, dc_3dlut_func_free); in dc_3dlut_func_release()
284 void dc_3dlut_func_retain(struct dc_3dlut *lut) in dc_3dlut_func_retain() argument
[all …]
/openbmc/linux/drivers/gpu/drm/mediatek/
H A Dmtk_disp_gamma.c60 struct drm_color_lut *lut; in mtk_gamma_set_common() local
70 lut = (struct drm_color_lut *)state->gamma_lut->data; in mtk_gamma_set_common()
74 word = (((lut[i].red >> 6) & LUT_10BIT_MASK) << 20) + in mtk_gamma_set_common()
75 (((lut[i].green >> 6) & LUT_10BIT_MASK) << 10) + in mtk_gamma_set_common()
76 ((lut[i].blue >> 6) & LUT_10BIT_MASK); in mtk_gamma_set_common()
78 diff[0] = (lut[i].red >> 6) - (lut[i - 1].red >> 6); in mtk_gamma_set_common()
79 diff[1] = (lut[i].green >> 6) - (lut[i - 1].green >> 6); in mtk_gamma_set_common()
80 diff[2] = (lut[i].blue >> 6) - (lut[i - 1].blue >> 6); in mtk_gamma_set_common()
/openbmc/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()
/openbmc/u-boot/drivers/spi/
H A Dfsl_qspi.c191 qspi_write32(priv->flags, &regs->lut[lut_base], OPRND0(QSPI_CMD_WREN) | in qspi_set_lut()
193 qspi_write32(priv->flags, &regs->lut[lut_base + 1], 0); in qspi_set_lut()
194 qspi_write32(priv->flags, &regs->lut[lut_base + 2], 0); in qspi_set_lut()
195 qspi_write32(priv->flags, &regs->lut[lut_base + 3], 0); in qspi_set_lut()
200 qspi_write32(priv->flags, &regs->lut[lut_base], in qspi_set_lut()
206 qspi_write32(priv->flags, &regs->lut[lut_base], in qspi_set_lut()
211 qspi_write32(priv->flags, &regs->lut[lut_base], in qspi_set_lut()
217 qspi_write32(priv->flags, &regs->lut[lut_base + 1], in qspi_set_lut()
221 qspi_write32(priv->flags, &regs->lut[lut_base + 2], 0); in qspi_set_lut()
222 qspi_write32(priv->flags, &regs->lut[lut_base + 3], 0); in qspi_set_lut()
[all …]
/openbmc/linux/drivers/staging/media/atomisp/pci/isp/kernels/bnlm/
H A Dia_css_bnlm.host.c45 bnlm_lut_encode(struct bnlm_lut *lut, const int32_t *lut_thr, in bnlm_lut_encode() argument
71 lut->thr[0][i] = 0; in bnlm_lut_encode()
72 lut->val[0][i] = 0; in bnlm_lut_encode()
77 lut->thr[0][i] = lut_thr[i]; in bnlm_lut_encode()
78 lut->val[0][i] = lut_val[i]; in bnlm_lut_encode()
80 lut->val[0][i] = lut_val[i]; /* val has one more element than thr */ in bnlm_lut_encode()
87 lut->thr[0][blk_offset + i] = lut->thr[0][i]; in bnlm_lut_encode()
88 lut->val[0][blk_offset + i] = lut->val[0][i]; in bnlm_lut_encode()
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_color.c171 static bool lut_is_legacy(const struct drm_property_blob *lut) in lut_is_legacy() argument
173 return lut && drm_color_lut_size(lut) == LEGACY_LUT_LENGTH; in lut_is_legacy()
1089 struct drm_color_lut *lut; in create_linear_lut() local
1093 sizeof(lut[0]) * lut_size, in create_linear_lut()
1098 lut = blob->data; in create_linear_lut()
1103 lut[i].red = val; in create_linear_lut()
1104 lut[i].green = val; in create_linear_lut()
1105 lut[i].blue = val; in create_linear_lut()
1158 const struct drm_color_lut *lut; in i9xx_load_lut_8() local
1165 lut = blob->data; in i9xx_load_lut_8()
[all …]
/openbmc/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()
/openbmc/u-boot/arch/arm/dts/
H A Dfsl-ls2080a.dtsi103 0x00 0x03480000 0x0 0x80000 /* lut registers */
105 reg-names = "dbi", "lut", "config";
118 0x00 0x03580000 0x0 0x80000 /* lut registers */
120 reg-names = "dbi", "lut", "config";
133 0x00 0x03680000 0x0 0x80000 /* lut registers */
135 reg-names = "dbi", "lut", "config";
148 0x00 0x03780000 0x0 0x80000 /* lut registers */
150 reg-names = "dbi", "lut", "config";
H A Dfsl-ls1088a.dtsi109 0x00 0x03480000 0x0 0x80000 /* lut registers */
112 reg-names = "dbi", "lut", "ctrl", "config";
125 0x00 0x03580000 0x0 0x80000 /* lut registers */
128 reg-names = "dbi", "lut", "ctrl", "config";
141 0x00 0x03680000 0x0 0x80000 /* lut registers */
144 reg-names = "dbi", "lut", "ctrl", "config";
H A Dfsl-ls1043a.dtsi248 0x00 0x03410000 0x0 0x10000 /* lut registers */
250 reg-names = "dbi", "lut", "config";
263 0x00 0x03510000 0x0 0x10000 /* lut registers */
265 reg-names = "dbi", "lut", "config";
279 0x00 0x03610000 0x0 0x10000 /* lut registers */
281 reg-names = "dbi", "lut", "config";
H A Dfsl-ls1046a.dtsi249 0x00 0x03480000 0x0 0x40000 /* lut registers */
252 reg-names = "dbi", "lut", "ctrl", "config";
265 0x00 0x03580000 0x0 0x40000 /* lut registers */
268 reg-names = "dbi", "lut", "ctrl", "config";
282 0x00 0x03680000 0x0 0x40000 /* lut registers */
285 reg-names = "dbi", "lut", "ctrl", "config";
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/arm/display/komeda/
H A Dkomeda_color_mgmt.c95 struct drm_color_lut *lut; in drm_lut_to_coeffs() local
101 lut = lut_blob->data; in drm_lut_to_coeffs()
108 coeffs[num++] = drm_color_lut_extract(lut[in].red, in drm_lut_to_coeffs()
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/vkms/
H A Dvkms_composer.c104 static s64 get_lut_index(const struct vkms_color_lut *lut, u16 channel_value) in get_lut_index() argument
108 return drm_fixp_mul(color_channel_fp, lut->channel_value2index_ratio); in get_lut_index()
122 static u16 apply_lut_to_channel_value(const struct vkms_color_lut *lut, u16 channel_value, in apply_lut_to_channel_value() argument
125 s64 lut_index = get_lut_index(lut, channel_value); in apply_lut_to_channel_value()
135 floor_lut_value = (__u16 *)&lut->base[drm_fixp2int(lut_index)]; in apply_lut_to_channel_value()
136 if (drm_fixp2int(lut_index) == (lut->lut_length - 1)) in apply_lut_to_channel_value()
140 ceil_lut_value = (__u16 *)&lut->base[drm_fixp2int_ceil(lut_index)]; in apply_lut_to_channel_value()
/openbmc/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_object.c238 struct i915_lut_handle *lut, *ln; in i915_gem_close_object() local
242 list_for_each_entry_safe(lut, ln, &obj->lut_list, obj_link) { in i915_gem_close_object()
243 struct i915_gem_context *ctx = lut->ctx; in i915_gem_close_object()
247 list_move(&lut->obj_link, &close); in i915_gem_close_object()
265 list_for_each_entry_safe(lut, ln, &close, obj_link) { in i915_gem_close_object()
266 struct i915_gem_context *ctx = lut->ctx; in i915_gem_close_object()
275 vma = radix_tree_delete(&ctx->handles_vma, lut->handle); in i915_gem_close_object()
283 i915_gem_context_put(lut->ctx); in i915_gem_close_object()
284 i915_lut_handle_free(lut); in i915_gem_close_object()
/openbmc/linux/drivers/gpu/drm/mgag200/
H A Dmgag200_mode.c70 struct drm_color_lut *lut) in mgag200_crtc_set_gamma() argument
80 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i * 8 + i / 4].red >> 8); in mgag200_crtc_set_gamma()
81 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i * 4 + i / 16].green >> 8); in mgag200_crtc_set_gamma()
82 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i * 8 + i / 4].blue >> 8); in mgag200_crtc_set_gamma()
87 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i * 4 + i / 16].green >> 8); in mgag200_crtc_set_gamma()
94 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i].red >> 8); in mgag200_crtc_set_gamma()
95 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i].green >> 8); in mgag200_crtc_set_gamma()
96 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i].blue >> 8); in mgag200_crtc_set_gamma()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_resource.h87 struct dc_3dlut **lut,
93 struct dc_3dlut **lut,

123456