Home
last modified time | relevance | path

Searched refs:lut_size (Results 1 – 25 of 29) sorted by relevance

12

/linux-6.1.9/drivers/staging/media/atomisp/pci/isp/kernels/bnlm/
Dia_css_bnlm.host.c46 const s32 *lut_val, const uint32_t lut_size) in bnlm_lut_encode() argument
62 assert((lut_size >= 2) && (lut_size <= block_size)); in bnlm_lut_encode()
64 for (i = 0; i < lut_size - 2; i++) { in bnlm_lut_encode()
76 for (i = 0; i < lut_size - 1; i++) { in bnlm_lut_encode()
86 for (i = 1; i < lut_size; i++) { in bnlm_lut_encode()
/linux-6.1.9/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_color.c226 const struct drm_color_lut *lut, uint32_t lut_size, in __set_legacy_tf() argument
233 ASSERT(lut && lut_size == MAX_COLOR_LEGACY_LUT_ENTRIES); in __set_legacy_tf()
242 gamma->num_entries = lut_size; in __set_legacy_tf()
264 const struct drm_color_lut *lut, uint32_t lut_size, in __set_output_tf() argument
271 ASSERT(lut && lut_size == MAX_COLOR_LUT_ENTRIES); in __set_output_tf()
279 gamma->num_entries = lut_size; in __set_output_tf()
317 const struct drm_color_lut *lut, uint32_t lut_size) in __set_input_tf() argument
327 gamma->num_entries = lut_size; in __set_input_tf()
/linux-6.1.9/drivers/gpu/drm/i915/display/
Dintel_color.c596 int i, lut_size = drm_color_lut_size(blob); in i965_load_lut_10p6() local
599 for (i = 0; i < lut_size - 1; i++) { in i965_load_lut_10p6()
651 int i, lut_size = drm_color_lut_size(blob); in ilk_load_lut_10() local
654 for (i = 0; i < lut_size; i++) in ilk_load_lut_10()
697 int i, lut_size = drm_color_lut_size(blob); in ivb_load_lut_10() local
703 &lut[i * (lut_size - 1) / (hw_lut_size - 1)]; in ivb_load_lut_10()
725 int i, lut_size = drm_color_lut_size(blob); in bdw_load_lut_10() local
734 &lut[i * (lut_size - 1) / (hw_lut_size - 1)]; in bdw_load_lut_10()
845 int i, lut_size = INTEL_INFO(dev_priv)->display.color.degamma_lut_size; in glk_load_degamma_lut() local
857 for (i = 0; i < lut_size; i++) { in glk_load_degamma_lut()
[all …]
/linux-6.1.9/drivers/leds/rgb/
Dleds-qcom-lpg.c80 u32 lut_size; member
194 unsigned int lut_size; member
219 idx = bitmap_find_next_zero_area(lpg->lut_bitmap, lpg->lut_size, in lpg_lut_store()
221 if (idx >= lpg->lut_size) in lpg_lut_store()
1241 lpg->lut_size = data->lut_size; in lpg_init_lut()
1243 lpg->lut_bitmap = devm_bitmap_zalloc(lpg->dev, lpg->lut_size, GFP_KERNEL); in lpg_init_lut()
1320 .lut_size = 64,
1341 .lut_size = 64,
1356 .lut_size = 24,
1373 .lut_size = 49,
[all …]
/linux-6.1.9/drivers/power/supply/
Ds3c_adc_battery.c143 unsigned int lut_size; in s3c_adc_bat_get_property() local
151 lut_size = bat->pdata->lut_noac_cnt; in s3c_adc_bat_get_property()
169 lut_size = bat->pdata->lut_acin_cnt; in s3c_adc_bat_get_property()
178 lut_size--; in s3c_adc_bat_get_property()
179 while (lut_size--) { in s3c_adc_bat_get_property()
/linux-6.1.9/drivers/net/ethernet/intel/iavf/
Diavf_prototype.h44 bool pf_lut, u8 *lut, u16 lut_size);
46 bool pf_lut, u8 *lut, u16 lut_size);
Diavf_common.c359 u8 *lut, u16 lut_size, in iavf_aq_get_set_rss_lut() argument
395 status = iavf_asq_send_command(hw, &desc, lut, lut_size, NULL); in iavf_aq_get_set_rss_lut()
411 bool pf_lut, u8 *lut, u16 lut_size) in iavf_aq_get_rss_lut() argument
413 return iavf_aq_get_set_rss_lut(hw, vsi_id, pf_lut, lut, lut_size, in iavf_aq_get_rss_lut()
428 bool pf_lut, u8 *lut, u16 lut_size) in iavf_aq_set_rss_lut() argument
430 return iavf_aq_get_set_rss_lut(hw, vsi_id, pf_lut, lut, lut_size, true); in iavf_aq_set_rss_lut()
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_dpp_cm.c917 uint32_t i_mode, i_enable_10bits, lut_size; in get3dlut_config() local
944 REG_GET(CM_3DLUT_MODE, CM_3DLUT_SIZE, &lut_size); in get3dlut_config()
946 if (lut_size == 0) in get3dlut_config()
1072 int lut_size; in dpp20_program_3dlut() local
1094 lut_size = sizeof(params->tetrahedral_17.lut1)/ in dpp20_program_3dlut()
1103 lut_size = sizeof(params->tetrahedral_9.lut1)/ in dpp20_program_3dlut()
1117 dpp20_set3dlut_ram12(dpp_base, lut1, lut_size); in dpp20_program_3dlut()
1119 dpp20_set3dlut_ram10(dpp_base, lut1, lut_size); in dpp20_program_3dlut()
1123 dpp20_set3dlut_ram12(dpp_base, lut2, lut_size); in dpp20_program_3dlut()
1125 dpp20_set3dlut_ram10(dpp_base, lut2, lut_size); in dpp20_program_3dlut()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn32/
Ddcn32_mpc.c752 uint32_t i_mode, i_enable_10bits, lut_size; in get3dlut_config() local
781 REG_GET(MPCC_MCM_3DLUT_MODE[mpcc_id], MPCC_MCM_3DLUT_SIZE, &lut_size); in get3dlut_config()
783 if (lut_size == 0) in get3dlut_config()
913 int lut_size; in mpc32_program_3dlut() local
937 lut_size = sizeof(params->tetrahedral_17.lut1)/ in mpc32_program_3dlut()
946 lut_size = sizeof(params->tetrahedral_9.lut1)/ in mpc32_program_3dlut()
960 mpc32_set3dlut_ram12(mpc, lut1, lut_size, mpcc_id); in mpc32_program_3dlut()
962 mpc32_set3dlut_ram10(mpc, lut1, lut_size, mpcc_id); in mpc32_program_3dlut()
966 mpc32_set3dlut_ram12(mpc, lut2, lut_size, mpcc_id); in mpc32_program_3dlut()
968 mpc32_set3dlut_ram10(mpc, lut2, lut_size, mpcc_id); in mpc32_program_3dlut()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_dpp.c1203 uint32_t i_mode, i_enable_10bits, lut_size; in get3dlut_config() local
1231 REG_GET(CM_3DLUT_MODE, CM_3DLUT_SIZE, &lut_size); in get3dlut_config()
1233 if (lut_size == 0) in get3dlut_config()
1358 int lut_size; in dpp3_program_3dlut() local
1386 lut_size = sizeof(params->tetrahedral_17.lut1)/ in dpp3_program_3dlut()
1395 lut_size = sizeof(params->tetrahedral_9.lut1)/ in dpp3_program_3dlut()
1409 dpp3_set3dlut_ram12(dpp_base, lut1, lut_size); in dpp3_program_3dlut()
1411 dpp3_set3dlut_ram10(dpp_base, lut1, lut_size); in dpp3_program_3dlut()
1415 dpp3_set3dlut_ram12(dpp_base, lut2, lut_size); in dpp3_program_3dlut()
1417 dpp3_set3dlut_ram10(dpp_base, lut2, lut_size); in dpp3_program_3dlut()
[all …]
Ddcn30_mpc.c921 uint32_t i_mode, i_enable_10bits, lut_size; in get3dlut_config() local
950 REG_GET(RMU_3DLUT_MODE[rmu_idx], MPC_RMU_3DLUT_SIZE, &lut_size); in get3dlut_config()
952 if (lut_size == 0) in get3dlut_config()
1162 int lut_size; in mpc3_program_3dlut() local
1186 lut_size = sizeof(params->tetrahedral_17.lut1)/ in mpc3_program_3dlut()
1195 lut_size = sizeof(params->tetrahedral_9.lut1)/ in mpc3_program_3dlut()
1209 mpc3_set3dlut_ram12(mpc, lut1, lut_size, rmu_idx); in mpc3_program_3dlut()
1211 mpc3_set3dlut_ram10(mpc, lut1, lut_size, rmu_idx); in mpc3_program_3dlut()
1215 mpc3_set3dlut_ram12(mpc, lut2, lut_size, rmu_idx); in mpc3_program_3dlut()
1217 mpc3_set3dlut_ram10(mpc, lut2, lut_size, rmu_idx); in mpc3_program_3dlut()
[all …]
/linux-6.1.9/drivers/gpu/drm/arm/
Dmalidp_crtc.c156 size_t lut_size; in malidp_crtc_atomic_check_gamma() local
169 lut_size = state->gamma_lut->length / sizeof(struct drm_color_lut); in malidp_crtc_atomic_check_gamma()
170 if (lut_size != MALIDP_GAMMA_LUT_SIZE) in malidp_crtc_atomic_check_gamma()
174 for (i = 0; i < lut_size; ++i) in malidp_crtc_atomic_check_gamma()
/linux-6.1.9/drivers/hwmon/
Dlm63.c151 int lut_size; /* 8 or 12 */ member
210 for (i = 0; i < data->lut_size; i++) { in lm63_update_lut()
313 for (i = 1; i < data->lut_size; i++) { in lm63_lut_looks_bad()
324 return i == data->lut_size ? 0 : 1; in lm63_lut_looks_bad()
1044 data->lut_size = 8; in lm63_init_client()
1048 data->lut_size = 12; in lm63_init_client()
/linux-6.1.9/drivers/clk/tegra/
Dclk-dfll.c305 int lut_size; member
746 td->lut_max = td->lut_size - 1; in dfll_init_out_if()
808 for (i = td->lut_bottom; i < td->lut_size; i++) { in find_lut_index_for_rate()
1666 td->lut_size = i; in dfll_build_pwm_lut()
1668 (lut_bottom + 1 >= td->lut_size)) { in dfll_build_pwm_lut()
1748 td->lut_size = j; in dfll_build_i2c_lut()
1755 for (j = 0; j < td->lut_size; j++) in dfll_build_i2c_lut()
/linux-6.1.9/drivers/gpu/drm/i915/gem/
Di915_gem_execbuffer.c308 int lut_size; member
368 eb->lut_size = size; in eb_create()
370 eb->lut_size = -eb->buffer_count; in eb_create()
569 if (eb->lut_size > 0) { in eb_add_vma()
573 eb->lut_size)]); in eb_add_vma()
1056 if (eb->lut_size < 0) { in eb_get_vma()
1057 if (handle >= -eb->lut_size) in eb_get_vma()
1064 head = &eb->buckets[hash_32(handle, eb->lut_size)]; in eb_get_vma()
1097 if (eb->lut_size > 0) in eb_destroy()
3424 GEM_BUG_ON(!eb.lut_size); in i915_gem_do_execbuffer()
/linux-6.1.9/drivers/staging/media/atomisp/pci/
Datomisp_compat_ioctl32.h254 unsigned int lut_size; member
/linux-6.1.9/drivers/gpu/drm/rockchip/
Drockchip_drm_vop.c1232 unsigned int i, bpc = ilog2(vop->data->lut_size); in vop_crtc_write_gamma_lut()
1871 drm_mode_crtc_set_gamma_size(crtc, vop_data->lut_size); in vop_create_crtc()
1872 drm_crtc_enable_color_mgmt(crtc, 0, false, vop_data->lut_size); in vop_create_crtc()
2181 if (vop_data->lut_size != 1024 && vop_data->lut_size != 256) { in vop_bind()
2182 DRM_DEV_ERROR(dev, "unsupported gamma LUT size %d\n", vop_data->lut_size); in vop_bind()
Drockchip_drm_vop.h227 unsigned int lut_size; member
Drockchip_vop_reg.c734 .lut_size = 1024,
986 .lut_size = 1024,
1012 .lut_size = 256,
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice.h876 int ice_set_rss_lut(struct ice_vsi *vsi, u8 *lut, u16 lut_size);
877 int ice_get_rss_lut(struct ice_vsi *vsi, u8 *lut, u16 lut_size);
Dice_common.c3869 u16 flags = 0, vsi_id, lut_type, lut_size, glob_lut_idx, vsi_handle; in __ice_aq_get_set_rss_lut() local
3884 lut_size = params->lut_size; in __ice_aq_get_set_rss_lut()
3929 switch (lut_size) { in __ice_aq_get_set_rss_lut()
3952 status = ice_aq_send_cmd(hw, &desc, lut, lut_size, NULL); in __ice_aq_get_set_rss_lut()
Dice_type.h1031 u16 lut_size; /* size of the LUT buffer */ member
/linux-6.1.9/drivers/net/ethernet/intel/i40e/
Di40e_prototype.h61 bool pf_lut, u8 *lut, u16 lut_size);
63 bool pf_lut, u8 *lut, u16 lut_size);
Di40e.h1132 int i40e_config_rss(struct i40e_vsi *vsi, u8 *seed, u8 *lut, u16 lut_size);
1133 int i40e_get_rss(struct i40e_vsi *vsi, u8 *seed, u8 *lut, u16 lut_size);
/linux-6.1.9/drivers/staging/media/atomisp/include/linux/
Datomisp.h858 unsigned int lut_size; member

12