Home
last modified time | relevance | path

Searched full:lut (Results 1 – 25 of 418) sorted by relevance

12345678910>>...17

/OK3568_Linux_fs/kernel/drivers/media/platform/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()
153 struct vsp1_lut *lut = to_lut(&entity->subdev); in lut_configure_stream() local
155 vsp1_lut_write(lut, dlb, VI6_LUT_CTRL, VI6_LUT_CTRL_EN); in lut_configure_stream()
[all …]
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/algos/aldch/
H A Drk_aiq_uapi_aldch_v21_int.cpp41 LOGD_ALDCH("%s, attr custom lut: mode %d, flag %d", in rk_aiq_uapi_aldch_v21_SetAttrib()
44 attr.lut.update_flag); in rk_aiq_uapi_aldch_v21_SetAttrib()
47 LOGD_ALDCH("%s, attr custom lut file name: %s/%s", in rk_aiq_uapi_aldch_v21_SetAttrib()
49 attr.lut.u.file.config_file_dir, in rk_aiq_uapi_aldch_v21_SetAttrib()
50 attr.lut.u.file.mesh_file_name); in rk_aiq_uapi_aldch_v21_SetAttrib()
52 LOGD_ALDCH("%s, attr custom lut buffer %p, size %zu", in rk_aiq_uapi_aldch_v21_SetAttrib()
54 attr.lut.u.buffer.addr, in rk_aiq_uapi_aldch_v21_SetAttrib()
55 attr.lut.u.buffer.size); in rk_aiq_uapi_aldch_v21_SetAttrib()
56 if (attr.lut.u.buffer.size == 0) { in rk_aiq_uapi_aldch_v21_SetAttrib()
57 LOGE_ALDCH("Invalid lut buffer size %zu", attr.lut.u.buffer.size); in rk_aiq_uapi_aldch_v21_SetAttrib()
[all …]
H A Drk_aiq_algo_aldch_v21_itf.cpp72 LOGE_ALDCH("lut is not exist"); in updateCalibConfig()
110 rk_aiq_ldch_lut_external_file_t *lut = &ldchCtx->user_config.lut.u.file; in update_custom_lut_from_file() local
114 lut->config_file_dir, in update_custom_lut_from_file()
115 lut->mesh_file_name); in update_custom_lut_from_file()
117 LOGD_ALDCH("read lut file name: %s/%s\n", in update_custom_lut_from_file()
118 lut->config_file_dir, in update_custom_lut_from_file()
119 lut->mesh_file_name); in update_custom_lut_from_file()
129 LOGD_ALDCH("lut[0:15]: %d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d", in update_custom_lut_from_file()
141 … LOGD_ALDCH("update custom lut from external file, lut_mem_fd %d\n", ldchCtx->update_lut_mem_fd); in update_custom_lut_from_file()
152 LOGE_ALDCH("Failed to get ldch lut cache\n"); in update_custom_lut_from_external_buffer()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_color.c36 * - Input gamma LUT (de-normalized)
38 * - Surface degamma LUT (normalized)
40 * - Surface regamma LUT (normalized)
49 * The input gamma LUT block isn't really applicable here since it operates
62 * respective property is set to NULL. A linear DGM/RGM LUT should also
85 /* Extracts the DRM lut and lut size from a blob. */
94 * Return true if the given lut is a linear mapping of values, i.e. it acts
95 * like a bypass LUT.
97 * It is considered linear if the lut represents:
101 static bool __is_lut_linear(const struct drm_color_lut *lut, uint32_t size) in __is_lut_linear() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/rcar-du/
H A Drcar_cmm.c27 * @lut: 1D-LUT state
28 * @lut.enabled: 1D-LUT enabled flag
32 } lut; member
46 * rcar_cmm_lut_write() - Scale the DRM LUT table entries to hardware precision
49 * @drm_lut: Pointer to the DRM LUT table
71 * disabling and programming of the 1-D LUT unit is supported.
78 * TODO: Add support for LUT double buffer operations to avoid updating the
79 * LUT table entries while a frame is being displayed.
86 /* Disable LUT if no table is provided. */ in rcar_cmm_setup()
87 if (!config->lut.table) { in rcar_cmm_setup()
[all …]
H A Drcar_cmm.h19 * @lut: 1D-LUT configuration
20 * @lut.table: 1D-LUT table entries. Disable LUT operations when NULL
25 } lut; member
/OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_hw_util.h84 * @ lut_flag: scaler LUT update flags
85 * 0x1 swap LUT bank
86 * 0x2 update 2D filter LUT
87 * 0x4 update y circular filter LUT
88 * 0x8 update uv circular filter LUT
89 * 0x10 update y separable filter LUT
90 * 0x20 update uv separable filter LUT
91 * @ dir_lut_idx: 2D filter LUT index
92 * @ y_rgb_cir_lut_idx: y circular filter LUT index
93 * @ uv_cir_lut_idx: uv circular filter LUT index
[all …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/
H A Dintel_color.c113 static bool lut_is_legacy(const struct drm_property_blob *lut) in lut_is_legacy() argument
115 return drm_color_lut_size(lut) == LEGACY_LUT_LENGTH; in lut_is_legacy()
223 * FIXME if there's a gamma LUT after the CSC, we should in ilk_csc_limited_range()
224 * do the range compression using the gamma LUT instead. in ilk_csc_limited_range()
307 * On GLK+ both pipe CSC and degamma LUT are controlled in ilk_load_csc_matrix()
309 * LUT is needed but CSC is not we need to load an in ilk_load_csc_matrix()
390 /* convert hw value with given bit_precision to lut property val */
543 const struct drm_color_lut *lut; in i9xx_load_lut_8() local
550 lut = blob->data; in i9xx_load_lut_8()
554 i9xx_lut_8(&lut[i])); in i9xx_load_lut_8()
[all …]
/OK3568_Linux_fs/kernel/include/drm/
H A Ddrm_color_mgmt.h33 * drm_color_lut_extract - clamp and round LUT entries
35 * @bit_precision: number of bits the hw LUT supports
37 * Extract a degamma/gamma LUT value provided by user (in the form of
66 * drm_color_lut_size - calculate the number of entries in the LUT
67 * @blob: blob containing the LUT
70 * The number of entries in the color LUT stored in @blob.
97 * enum drm_color_lut_tests - hw-specific LUT tests to perform
100 * determine which tests to apply to a userspace-provided LUT.
106 * Checks whether the entries of a LUT all have equal values for the
108 * accepts a single value per LUT entry and assumes that value applies
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/isp/kernels/bnlm/
H A Dia_css_bnlm.host.c39 * lut : bnlm_lut struct containing encoded vmem parameters look-up table
40 * lut_thr : array containing threshold values for lut
45 bnlm_lut_encode(struct bnlm_lut *lut, const int32_t *lut_thr, in bnlm_lut_encode() argument
54 * Min size of the LUT is 2 entries. in bnlm_lut_encode()
56 * Max size of the LUT is 16 entries, so that the LUT can fit into a in bnlm_lut_encode()
59 * vector. If the LUT size is less than 16, then remaining elements are in bnlm_lut_encode()
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()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/dispnv50/
H A Dlut.c22 #include "lut.h"
32 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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/
H A Ddrm_color_mgmt.c41 * Blob property to set the degamma lookup table (LUT) mapping pixel data
44 * Hardware might choose not to use the full precision of the LUT elements
45 * nor use all the elements of the LUT (for example the hardware might
46 * choose to interpolate between LUT[0] and LUT[4]).
56 * hardware). If drivers support multiple LUT sizes then they should
62 * pixel data after the lookup through the degamma LUT and before the
63 * lookup through the gamma LUT. The data is interpreted as a struct
72 * Blob property to set the gamma lookup table (LUT) mapping pixel data
75 * Hardware might choose not to use the full precision of the LUT elements
76 * nor use all the elements of the LUT (for example the hardware might
[all …]
/OK3568_Linux_fs/u-boot/drivers/spi/
H A Dfsl_qspi.c117 * @cur_seqid: current LUT table sequence id
175 /* Unlock the LUT */ in qspi_set_lut()
181 qspi_write32(priv->flags, &regs->lut[lut_base], OPRND0(QSPI_CMD_WREN) | in qspi_set_lut()
183 qspi_write32(priv->flags, &regs->lut[lut_base + 1], 0); in qspi_set_lut()
184 qspi_write32(priv->flags, &regs->lut[lut_base + 2], 0); in qspi_set_lut()
185 qspi_write32(priv->flags, &regs->lut[lut_base + 3], 0); in qspi_set_lut()
190 qspi_write32(priv->flags, &regs->lut[lut_base], in qspi_set_lut()
196 qspi_write32(priv->flags, &regs->lut[lut_base], in qspi_set_lut()
201 qspi_write32(priv->flags, &regs->lut[lut_base], in qspi_set_lut()
207 qspi_write32(priv->flags, &regs->lut[lut_base + 1], in qspi_set_lut()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/hal/phydm/halrf/
H A Dhalrf_dpk.h108 u32 lut_2g_even[KPATH][3][64]; /*path/group/LUT data*/
109 u32 lut_2g_odd[KPATH][3][64]; /*path/group/LUT data*/
118 u32 lut_5g[KPATH][GROUP_5G][64]; /*path/group/LUT data*/
119 u32 lut_2g[KPATH][3][64]; /*path/group/LUT data*/
135 u32 lut_2g_even[KPATH][3][16]; /*path/group/LUT data*/
136 u32 lut_2g_odd[KPATH][3][16]; /*path/group/LUT data*/
140 u32 lut_5g_even[KPATH][GROUP_5G][16]; /*path/group/LUT data*/
141 u32 lut_5g_odd[KPATH][GROUP_5G][16]; /*path/group/LUT data*/
152 u32 lut_2g_even[1][3][16]; /*path/group/LUT data*/
153 u32 lut_2g_odd[1][3][16]; /*path/group/LUT data*/
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/hal/phydm/halrf/
H A Dhalrf_dpk.h108 u32 lut_2g_even[KPATH][3][64]; /*path/group/LUT data*/
109 u32 lut_2g_odd[KPATH][3][64]; /*path/group/LUT data*/
118 u32 lut_5g[KPATH][GROUP_5G][64]; /*path/group/LUT data*/
119 u32 lut_2g[KPATH][3][64]; /*path/group/LUT data*/
135 u32 lut_2g_even[KPATH][3][16]; /*path/group/LUT data*/
136 u32 lut_2g_odd[KPATH][3][16]; /*path/group/LUT data*/
140 u32 lut_5g_even[KPATH][GROUP_5G][16]; /*path/group/LUT data*/
141 u32 lut_5g_odd[KPATH][GROUP_5G][16]; /*path/group/LUT data*/
152 u32 lut_2g_even[1][3][16]; /*path/group/LUT data*/
153 u32 lut_2g_odd[1][3][16]; /*path/group/LUT data*/
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/hal/phydm/halrf/
H A Dhalrf_dpk.h81 u32 lut_2g_even[4][3][64]; /*path/group/LUT data*/
82 u32 lut_2g_odd[4][3][64]; /*path/group/LUT data*/
88 u32 lut_5g[4][6][64]; /*path/group/LUT data*/
89 u32 lut_2g[4][3][64]; /*path/group/LUT data*/
100 u32 lut_2g_even[1][3][16]; /*path/group/LUT data*/
101 u32 lut_2g_odd[1][3][16]; /*path/group/LUT data*/
105 u32 lut_5g_even[1][13][16]; /*path/group/LUT data*/
106 u32 lut_5g_odd[1][13][16]; /*path/group/LUT data*/
114 u32 lut_2g_even[1][3][16]; /*path/group/LUT data*/
115 u32 lut_2g_odd[1][3][16]; /*path/group/LUT data*/
[all …]
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_surface.c256 struct dc_3dlut *lut = container_of(kref, struct dc_3dlut, refcount); in dc_3dlut_func_free() local
258 kvfree(lut); in dc_3dlut_func_free()
263 struct dc_3dlut *lut = kvzalloc(sizeof(*lut), GFP_KERNEL); in dc_create_3dlut_func() local
265 if (lut == NULL) in dc_create_3dlut_func()
268 kref_init(&lut->refcount); in dc_create_3dlut_func()
269 lut->state.raw = 0; in dc_create_3dlut_func()
271 return lut; in dc_create_3dlut_func()
278 void dc_3dlut_func_release(struct dc_3dlut *lut) in dc_3dlut_func_release() argument
280 kref_put(&lut->refcount, dc_3dlut_func_free); in dc_3dlut_func_release()
283 void dc_3dlut_func_retain(struct dc_3dlut *lut) in dc_3dlut_func_retain() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/power/supply/
H A Ds3c_adc_battery.c148 const struct s3c_adc_bat_thresh *lut; in s3c_adc_bat_get_property() local
156 lut = bat->pdata->lut_noac; in s3c_adc_bat_get_property()
174 lut = bat->pdata->lut_acin; in s3c_adc_bat_get_property()
182 if (full_volt < calc_full_volt(lut->volt, lut->cur, in s3c_adc_bat_get_property()
189 lut_volt1 = calc_full_volt(lut[0].volt, lut[0].cur, in s3c_adc_bat_get_property()
191 lut_volt2 = calc_full_volt(lut[1].volt, lut[1].cur, in s3c_adc_bat_get_property()
194 new_level = (lut[1].level + in s3c_adc_bat_get_property()
195 (lut[0].level - lut[1].level) * in s3c_adc_bat_get_property()
200 new_level = lut[1].level * 1000; in s3c_adc_bat_get_property()
201 lut++; in s3c_adc_bat_get_property()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/aquantia/atlantic/macsec/
H A DMSS_Ingress_registers.h50 * (IGPRCTLF) LUT
51 * 0x1 : Ingress Pre-Security Classification LUT (IGPRC)
52 * 0x2 : Ingress Packet Format (IGPFMT) SAKey LUT
53 * 0x3 : Ingress Packet Format (IGPFMT) SC/SA LUT
54 * 0x4 : Ingress Post-Security Classification LUT
57 * (IGPOCTLF) LUT
/OK3568_Linux_fs/external/linux-rga/core/
H A DNormalRga.cpp1763 int RgaCollorPalette(rga_info *src, rga_info *dst, rga_info *lut) { in RgaCollorPalette() argument
1800 ALOGE("src = %p, dst = %p, lut = %p", src, dst, lut); in RgaCollorPalette()
1804 …/* get effective area from src、dst and lut, if the area is empty, choose to get parameter from han… in RgaCollorPalette()
1809 if (lut) in RgaCollorPalette()
1810 memcpy(&relLutRect, &lut->rect, sizeof(rga_rect_t)); in RgaCollorPalette()
1815 ALOGD("src->hnd = 0x%lx , dst->hnd = 0x%lx, lut->hnd = 0x%lx \n", in RgaCollorPalette()
1816 (unsigned long)src->hnd, (unsigned long)dst->hnd, (unsigned long)lut->hnd); in RgaCollorPalette()
1819 ALOGD("lut: Fd = %.2d , phyAddr = %p , virAddr = %p\n",lut->fd,lut->phyAddr,lut->virAddr); in RgaCollorPalette()
1822 if (lut) { in RgaCollorPalette()
1823 if (src->handle <= 0 || dst->handle <= 0 || lut->handle <= 0) { in RgaCollorPalette()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188eu/hal/phydm/halrf/
H A Dhalrf_dpk.h79 u32 lut_2g_even[4][3][64]; /*path/group/LUT data*/
80 u32 lut_2g_odd[4][3][64]; /*path/group/LUT data*/
84 u32 lut_5g[4][6][64]; /*path/group/LUT data*/
85 u32 lut_2g[4][3][64]; /*path/group/LUT data*/
96 u32 lut_2g_even[1][3][16]; /*path/group/LUT data*/
97 u32 lut_2g_odd[1][3][16]; /*path/group/LUT data*/
101 u32 lut_5g_even[1][13][16]; /*path/group/LUT data*/
102 u32 lut_5g_odd[1][13][16]; /*path/group/LUT data*/
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188fu/hal/phydm/halrf/
H A Dhalrf_dpk.h79 u32 lut_2g_even[4][3][64]; /*path/group/LUT data*/
80 u32 lut_2g_odd[4][3][64]; /*path/group/LUT data*/
84 u32 lut_5g[4][6][64]; /*path/group/LUT data*/
85 u32 lut_2g[4][3][64]; /*path/group/LUT data*/
96 u32 lut_2g_even[1][3][16]; /*path/group/LUT data*/
97 u32 lut_2g_odd[1][3][16]; /*path/group/LUT data*/
101 u32 lut_5g_even[1][13][16]; /*path/group/LUT data*/
102 u32 lut_5g_odd[1][13][16]; /*path/group/LUT data*/
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189fs/hal/phydm/halrf/
H A Dhalrf_dpk.h79 u32 lut_2g_even[4][3][64]; /*path/group/LUT data*/
80 u32 lut_2g_odd[4][3][64]; /*path/group/LUT data*/
84 u32 lut_5g[4][6][64]; /*path/group/LUT data*/
85 u32 lut_2g[4][3][64]; /*path/group/LUT data*/
96 u32 lut_2g_even[1][3][16]; /*path/group/LUT data*/
97 u32 lut_2g_odd[1][3][16]; /*path/group/LUT data*/
101 u32 lut_5g_even[1][13][16]; /*path/group/LUT data*/
102 u32 lut_5g_odd[1][13][16]; /*path/group/LUT data*/

12345678910>>...17