| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_color.c | 68 * - Input gamma LUT (de-normalized) 70 * - Surface degamma LUT (normalized) 72 * - Surface regamma LUT (normalized) 81 * The input gamma LUT block isn't really applicable here since it 96 * their respective property is set to NULL. A linear DGM/RGM LUT should 140 * 5. 1D LUT 141 * 6. 3D LUT 143 * 8. 1D LUT 156 * The 3DLUT (#6) is a tetrahedrally interpolated 17 cube LUT. 195 * degamma TF, shaper TF (before 3D LUT), and blend(dpp.ogam) TF and [all …]
|
| H A D | amdgpu_dm_colorop.c | 141 /* 1D LUT - SHAPER LUT */ in amdgpu_dm_initialize_default_pipeline() 160 /* 3D LUT */ in amdgpu_dm_initialize_default_pipeline() 196 /* 1D LUT - BLND LUT */ in amdgpu_dm_initialize_default_pipeline()
|
| /linux/include/drm/ |
| H A D | drm_color_mgmt.h | 34 * drm_color_lut_extract - clamp and round LUT entries 36 * @bit_precision: number of bits the hw LUT supports 38 * Extract a degamma/gamma LUT value provided by user (in the form of 54 * drm_color_lut32_extract - clamp and round LUT entries 56 * @bit_precision: number of bits the hw LUT supports 58 * Extract U0.bit_precision from a U0.32 LUT value. 80 * drm_color_lut_size - calculate the number of entries in the LUT 81 * @blob: blob containing the LUT 84 * The number of entries in the color LUT stored in @blob. 92 * drm_color_lut32_size - calculate the number of entries in the extended LUT [all …]
|
| /linux/drivers/net/wireless/ath/ath11k/ |
| H A D | cfr.c | 54 void ath11k_cfr_release_lut_entry(struct ath11k_look_up_table *lut) in ath11k_cfr_release_lut_entry() argument 56 memset(lut, 0, sizeof(*lut)); in ath11k_cfr_release_lut_entry() 77 struct ath11k_look_up_table *lut; in ath11k_cfr_free_pending_dbr_events() local 80 if (!cfr->lut) in ath11k_cfr_free_pending_dbr_events() 84 lut = &cfr->lut[i]; in ath11k_cfr_free_pending_dbr_events() 85 if (lut->dbr_recv && !lut->tx_recv && in ath11k_cfr_free_pending_dbr_events() 86 lut->dbr_tstamp < cfr->last_success_tstamp) { in ath11k_cfr_free_pending_dbr_events() 87 ath11k_dbring_bufs_replenish(ar, &cfr->rx_ring, lut->buff, in ath11k_cfr_free_pending_dbr_events() 89 ath11k_cfr_release_lut_entry(lut); in ath11k_cfr_free_pending_dbr_events() 98 * @lut: Lookup table for correlation [all …]
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_color_mgmt.c | 44 * Blob property to set the degamma lookup table (LUT) mapping pixel data 47 * Hardware might choose not to use the full precision of the LUT elements 48 * nor use all the elements of the LUT (for example the hardware might 49 * choose to interpolate between LUT[0] and LUT[4]). 59 * hardware). If drivers support multiple LUT sizes then they should 65 * pixel data after the lookup through the degamma LUT and before the 66 * lookup through the gamma LUT. The data is interpreted as a struct 75 * Blob property to set the gamma lookup table (LUT) mapping pixel data 78 * Hardware might choose not to use the full precision of the LUT elements 79 * nor use all the elements of the LUT (for example the hardware might [all …]
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_mode.h | 351 /* @plane_degamma_lut_property: Plane property to set a degamma LUT to 357 * size of degamma LUT as supported by the driver (read-only). 373 * shaper LUT that converts color content before 3D LUT. 375 * combine the user LUT values with pre-defined TF into the LUT 381 * pre-blending shaper LUT as supported by the driver (read-only). 386 * transfer function for pre-blending shaper (before applying 3D LUT) 387 * with or without LUT. There is no shaper ROM, but we can use AMD 388 * color modules to program LUT parameters from predefined TF (or 389 * from a combination of pre-defined TF and the custom 1D LUT). 394 * a 3D LUT (pre-blending), a three-dimensional array where each [all …]
|
| /linux/drivers/gpu/drm/nouveau/dispnv50/ |
| H A D | lut.c | 22 #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()
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_color.c | 193 static bool lut_is_legacy(const struct drm_property_blob *lut) in lut_is_legacy() argument 195 return lut && drm_color_lut_size(lut) == LEGACY_LUT_LENGTH; in lut_is_legacy() 546 * On GLK both pipe CSC and degamma LUT are controlled in ilk_assign_csc() 548 * LUT is needed but CSC is not we need to load an in ilk_assign_csc() 820 /* convert hw value with given bit_precision to lut property val */ 1191 struct drm_color_lut *lut; in create_linear_lut() local 1195 sizeof(lut[0]) * lut_size, in create_linear_lut() 1200 lut = blob->data; in create_linear_lut() 1205 lut[i].red = val; in create_linear_lut() 1206 lut[i].green = val; in create_linear_lut() [all …]
|
| /linux/drivers/gpio/ |
| H A D | gpio-adp5520.c | 19 unsigned char lut[ADP5520_MAXGPIOS]; member 40 return !!(reg_val & dev->lut[off]); in adp5520_gpio_get_value() 51 dev->lut[off]); in adp5520_gpio_set_value() 54 dev->lut[off]); in adp5520_gpio_set_value() 65 dev->lut[off]); in adp5520_gpio_direction_input() 79 dev->lut[off]); in adp5520_gpio_direction_output() 82 dev->lut[off]); in adp5520_gpio_direction_output() 85 dev->lut[off]); in adp5520_gpio_direction_output() 116 dev->lut[gpios++] = 1 << i; in adp5520_gpio_probe()
|
| /linux/drivers/net/ethernet/aquantia/atlantic/macsec/ |
| H A D | MSS_Ingress_registers.h | 50 * (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
|
| H A D | MSS_Egress_registers.h | 51 /* 0x0 : Egress MAC Control FIlter (CTLF) LUT 52 * 0x1 : Egress Classification LUT 53 * 0x2 : Egress SC/SA LUT
|
| /linux/Documentation/gpu/rfc/ |
| H A D | color_pipeline.rst | 126 * custom (uniform) 1D LUT 129 * 3D LUT 147 …├─ "TYPE": immutable enum {1D enumerated curve, 1D LUT, 3x3 matrix, 3x4 matrix, 3D LUT, etc.} = 1D… 152 /* custom 4k entry 1D LUT */ 154 …├─ "TYPE": immutable enum {1D enumerated curve, 1D LUT, 3x3 matrix, 3x4 matrix, 3D LUT, etc.} = 1D… 160 /* 17^3 3D LUT */ 162 …├─ "TYPE": immutable enum {1D enumerated curve, 1D LUT, 3x3 matrix, 3x4 matrix, 3D LUT, etc.} = 3D… 266 ├─ "TYPE" (immutable) = 1D LUT 272 ├─ "TYPE" (immutable) = 3D LUT
|
| /linux/drivers/clk/rockchip/ |
| H A D | softrst.c | 15 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/mediatek/ |
| H A D | mtk_disp_aal.c | 82 * mtk_aal_gamma_get_lut_size() - Get gamma LUT size for AAL 85 * Return: 0 if gamma control not supported in AAL or gamma LUT size 99 struct drm_color_lut *lut; in mtk_aal_gamma_set() local 107 /* Also, if there's no gamma lut there's nothing to do here. */ in mtk_aal_gamma_set() 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/msm/disp/dpu1/ |
| H A D | dpu_hw_dspp.h | 41 * struct dpu_hw_gc_lut - gc lut feature structure 44 * @c0: color0 component lut 45 * @c1: color1 component lut 46 * @c2: color2 component lut 71 * @gc_lut: Pointer to lut content
|
| /linux/drivers/net/ethernet/intel/iavf/ |
| H A D | iavf_common.c | 259 * @lut: pointer to the lut buffer provided by the caller 260 * @lut_size: size of the lut buffer 267 u8 *lut, u16 lut_size, in iavf_aq_get_set_rss_lut() argument 301 status = iavf_asq_send_command(hw, &desc, lut, lut_size, NULL); in iavf_aq_get_set_rss_lut() 311 * @lut: pointer to the lut buffer provided by the caller 312 * @lut_size: size of the lut buffer 317 bool pf_lut, u8 *lut, u16 lut_size) in iavf_aq_set_rss_lut() argument 319 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/arm/ |
| H A D | malidp_crtc.c | 126 struct drm_color_lut *lut = (struct drm_color_lut *)lut_blob->data; in malidp_generate_gamma_table() local 134 out_start = drm_color_lut_extract(lut[segments[i].start].green, in malidp_generate_gamma_table() 136 out_end = drm_color_lut_extract(lut[segments[i].end].green, 12); in malidp_generate_gamma_table() 144 * Check if there is a new gamma LUT and if it is of an acceptable size. Also, 151 struct drm_color_lut *lut; in malidp_crtc_atomic_check_gamma() local 169 lut = (struct drm_color_lut *)state->gamma_lut->data; in malidp_crtc_atomic_check_gamma() 171 if (!((lut[i].red == lut[i].green) && in malidp_crtc_atomic_check_gamma() 172 (lut[i].red == lut[i].blue))) in malidp_crtc_atomic_check_gamma() 182 * changing the gamma LUT doesn't depend on any external in malidp_crtc_atomic_check_gamma()
|
| /linux/drivers/hwmon/ |
| H A D | max31760.c | 47 } 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/Documentation/devicetree/bindings/display/msm/ |
| H A D | qcom,sm6115-dpu.yaml | 33 - description: Display lut 42 - const: lut 73 clock-names = "bus", "iface", "core", "lut", "rot", "vsync";
|
| H A D | qcom,qcm2290-dpu.yaml | 33 - description: Display lut clock from dispcc 41 - const: lut 70 clock-names = "bus", "iface", "core", "lut", "vsync";
|
| H A D | qcom,sc7180-dpu.yaml | 38 - description: Display lut clock 49 - const: lut 98 clock-names = "bus", "iface", "rot", "lut", "core",
|
| H A D | qcom,sm7150-dpu.yaml | 33 - description: Display lut clock 42 - const: lut 75 "lut",
|
| /linux/Documentation/hwmon/ |
| H A D | max31760.rst | 28 reading as an index to a 48-byte lookup table (LUT) containing 29 user-programmed PWM values. The flexible LUT-based architecture enables 47 LUT Index Name 75 pwm1_auto_point[1-48]_pwm PWM value for LUT point
|
| /linux/drivers/net/wireless/ti/wl1251/ |
| H A D | boot.c | 70 static const u32 LUT[REF_FREQ_NUM][LUT_PARAM_NUM] = { in wl1251_boot_init_seq() local 143 tmp = LUT[ref_freq][LUT_PARAM_INTEGER_DIVIDER] | 0x00017000; in wl1251_boot_init_seq() 149 tmp = LUT[ref_freq][LUT_PARAM_FRACTIONAL_DIVIDER]; in wl1251_boot_init_seq() 160 tmp = (LUT[ref_freq][LUT_PARAM_ATTN_BB] << 16) | in wl1251_boot_init_seq() 161 (LUT[ref_freq][LUT_PARAM_ALPHA_BB] << 12) | 0x1; in wl1251_boot_init_seq() 168 tmp = LUT[ref_freq][LUT_PARAM_STOP_TIME_BB] | 0x000A0000; in wl1251_boot_init_seq() 176 tmp = LUT[ref_freq][LUT_PARAM_BB_PLL_LOOP_FILTER] | 0x00000030; in wl1251_boot_init_seq()
|
| /linux/drivers/gpu/drm/vkms/ |
| H A D | vkms_composer.h | 22 s64 get_lut_index(const struct vkms_color_lut *lut, u16 channel_value); 23 u16 apply_lut_to_channel_value(const struct vkms_color_lut *lut, u16 channel_value,
|