Home
last modified time | relevance | path

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

12

/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()
/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_color.c194 const struct drm_color_lut *lut, uint32_t lut_size, in __set_legacy_tf() argument
201 ASSERT(lut && lut_size == MAX_COLOR_LEGACY_LUT_ENTRIES); in __set_legacy_tf()
210 gamma->num_entries = lut_size; in __set_legacy_tf()
223 const struct drm_color_lut *lut, uint32_t lut_size, in __set_output_tf() argument
230 ASSERT(lut && lut_size == MAX_COLOR_LUT_ENTRIES); in __set_output_tf()
238 gamma->num_entries = lut_size; in __set_output_tf()
267 const struct drm_color_lut *lut, uint32_t lut_size) in __set_input_tf() argument
277 gamma->num_entries = lut_size; in __set_input_tf()
/drivers/gpu/drm/i915/display/
Dintel_color.c573 int i, lut_size = drm_color_lut_size(blob); in i965_load_lut_10p6() local
576 for (i = 0; i < lut_size - 1; i++) { in i965_load_lut_10p6()
628 int i, lut_size = drm_color_lut_size(blob); in ilk_load_lut_10() local
631 for (i = 0; i < lut_size; i++) in ilk_load_lut_10()
667 int i, lut_size = drm_color_lut_size(blob); in ivb_load_lut_10() local
673 &lut[i * (lut_size - 1) / (hw_lut_size - 1)]; in ivb_load_lut_10()
695 int i, lut_size = drm_color_lut_size(blob); in bdw_load_lut_10() local
704 &lut[i * (lut_size - 1) / (hw_lut_size - 1)]; in bdw_load_lut_10()
794 int i, lut_size = INTEL_INFO(dev_priv)->color.degamma_lut_size; in glk_load_degamma_lut() local
806 for (i = 0; i < lut_size; i++) { in glk_load_degamma_lut()
[all …]
/drivers/rapidio/switches/
Dtsi568.c86 u32 lut_size; in tsi568_route_clr_table() local
88 lut_size = (mport->sys_size) ? 0x1ff : 0xff; in tsi568_route_clr_table()
93 for (route_idx = 0; route_idx <= lut_size; route_idx++) in tsi568_route_clr_table()
101 for (route_idx = 0; route_idx <= lut_size; route_idx++) in tsi568_route_clr_table()
Dtsi57x.c94 u32 lut_size; in tsi57x_route_clr_table() local
96 lut_size = (mport->sys_size) ? 0x1ff : 0xff; in tsi57x_route_clr_table()
101 for (route_idx = 0; route_idx <= lut_size; route_idx++) in tsi57x_route_clr_table()
108 for (route_idx = 0; route_idx <= lut_size; route_idx++) in tsi57x_route_clr_table()
/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 …]
/drivers/power/supply/
Ds3c_adc_battery.c149 unsigned int lut_size; in s3c_adc_bat_get_property() local
157 lut_size = bat->pdata->lut_noac_cnt; in s3c_adc_bat_get_property()
175 lut_size = bat->pdata->lut_acin_cnt; in s3c_adc_bat_get_property()
184 lut_size--; in s3c_adc_bat_get_property()
185 while (lut_size--) { in s3c_adc_bat_get_property()
/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()
/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_dpp.c1124 uint32_t i_mode, i_enable_10bits, lut_size; in get3dlut_config() local
1152 REG_GET(CM_3DLUT_MODE, CM_3DLUT_SIZE, &lut_size); in get3dlut_config()
1154 if (lut_size == 0) in get3dlut_config()
1280 int lut_size; in dpp3_program_3dlut() local
1302 lut_size = sizeof(params->tetrahedral_17.lut1)/ in dpp3_program_3dlut()
1311 lut_size = sizeof(params->tetrahedral_9.lut1)/ in dpp3_program_3dlut()
1325 dpp3_set3dlut_ram12(dpp_base, lut1, lut_size); in dpp3_program_3dlut()
1327 dpp3_set3dlut_ram10(dpp_base, lut1, lut_size); in dpp3_program_3dlut()
1331 dpp3_set3dlut_ram12(dpp_base, lut2, lut_size); in dpp3_program_3dlut()
1333 dpp3_set3dlut_ram10(dpp_base, lut2, lut_size); in dpp3_program_3dlut()
[all …]
Ddcn30_mpc.c892 uint32_t i_mode, i_enable_10bits, lut_size; in get3dlut_config() local
921 REG_GET(RMU_3DLUT_MODE[rmu_idx], MPC_RMU_3DLUT_SIZE, &lut_size); in get3dlut_config()
923 if (lut_size == 0) in get3dlut_config()
1133 int lut_size; in mpc3_program_3dlut() local
1157 lut_size = sizeof(params->tetrahedral_17.lut1)/ in mpc3_program_3dlut()
1166 lut_size = sizeof(params->tetrahedral_9.lut1)/ in mpc3_program_3dlut()
1180 mpc3_set3dlut_ram12(mpc, lut1, lut_size, rmu_idx); in mpc3_program_3dlut()
1182 mpc3_set3dlut_ram10(mpc, lut1, lut_size, rmu_idx); in mpc3_program_3dlut()
1186 mpc3_set3dlut_ram12(mpc, lut2, lut_size, rmu_idx); in mpc3_program_3dlut()
1188 mpc3_set3dlut_ram10(mpc, lut2, lut_size, rmu_idx); in mpc3_program_3dlut()
[all …]
/drivers/gpu/drm/arm/
Dmalidp_crtc.c153 size_t lut_size; in malidp_crtc_atomic_check_gamma() local
166 lut_size = state->gamma_lut->length / sizeof(struct drm_color_lut); in malidp_crtc_atomic_check_gamma()
167 if (lut_size != MALIDP_GAMMA_LUT_SIZE) in malidp_crtc_atomic_check_gamma()
171 for (i = 0; i < lut_size; ++i) in malidp_crtc_atomic_check_gamma()
/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()
/drivers/clk/tegra/
Dclk-dfll.c304 int lut_size; member
745 td->lut_max = td->lut_size - 1; in dfll_init_out_if()
807 for (i = td->lut_bottom; i < td->lut_size; i++) { in find_lut_index_for_rate()
1661 td->lut_size = i; in dfll_build_pwm_lut()
1663 (lut_bottom + 1 >= td->lut_size)) { in dfll_build_pwm_lut()
1743 td->lut_size = j; in dfll_build_i2c_lut()
1750 for (j = 0; j < td->lut_size; j++) in dfll_build_i2c_lut()
/drivers/net/ethernet/intel/ice/
Dice_common.h55 u16 lut_size);
58 u16 lut_size);
Dice.h582 int ice_set_rss(struct ice_vsi *vsi, u8 *seed, u8 *lut, u16 lut_size);
583 int ice_get_rss(struct ice_vsi *vsi, u8 *seed, u8 *lut, u16 lut_size);
Dice_common.c3250 u16 lut_size, u8 glob_lut_idx, bool set) in __ice_aq_get_set_rss_lut() argument
3297 switch (lut_size) { in __ice_aq_get_set_rss_lut()
3320 status = ice_aq_send_cmd(hw, &desc, lut, lut_size, NULL); in __ice_aq_get_set_rss_lut()
3338 u8 *lut, u16 lut_size) in ice_aq_get_rss_lut() argument
3344 lut_type, lut, lut_size, 0, false); in ice_aq_get_rss_lut()
3359 u8 *lut, u16 lut_size) in ice_aq_set_rss_lut() argument
3365 lut_type, lut, lut_size, 0, true); in ice_aq_set_rss_lut()
/drivers/gpu/drm/i915/gem/
Di915_gem_execbuffer.c299 int lut_size; member
356 eb->lut_size = size; in eb_create()
358 eb->lut_size = -eb->buffer_count; in eb_create()
542 if (eb->lut_size > 0) { in eb_add_vma()
546 eb->lut_size)]); in eb_add_vma()
930 if (eb->lut_size < 0) { in eb_get_vma()
931 if (handle >= -eb->lut_size) in eb_get_vma()
938 head = &eb->buckets[hash_32(handle, eb->lut_size)]; in eb_get_vma()
972 if (eb->lut_size > 0) in eb_destroy()
3115 GEM_BUG_ON(!eb.lut_size); in i915_gem_do_execbuffer()
/drivers/staging/media/atomisp/pci/
Datomisp_compat_ioctl32.h291 unsigned int lut_size; member
Datomisp_compat_ioctl32.c827 assign_in_user(&kp->lut_size, &up->lut_size) || in get_atomisp_sensor_ae_bracketing_lut()
/drivers/gpu/drm/rockchip/
Drockchip_drm_vop.h210 unsigned int lut_size; member
Drockchip_drm_vop.c1812 drm_mode_crtc_set_gamma_size(crtc, vop_data->lut_size); in vop_create_crtc()
1813 drm_crtc_enable_color_mgmt(crtc, 0, false, vop_data->lut_size); in vop_create_crtc()
2122 if (!vop_data->lut_size) { in vop_bind()
/drivers/net/ethernet/intel/i40e/
Di40e_prototype.h42 bool pf_lut, u8 *lut, u16 lut_size);
44 bool pf_lut, u8 *lut, u16 lut_size);
Di40e.h1016 int i40e_config_rss(struct i40e_vsi *vsi, u8 *seed, u8 *lut, u16 lut_size);
1017 int i40e_get_rss(struct i40e_vsi *vsi, u8 *seed, u8 *lut, u16 lut_size);
Di40e_common.c387 u8 *lut, u16 lut_size, in i40e_aq_get_set_rss_lut() argument
423 status = i40e_asq_send_command(hw, &desc, lut, lut_size, NULL); in i40e_aq_get_set_rss_lut()
439 bool pf_lut, u8 *lut, u16 lut_size) in i40e_aq_get_rss_lut() argument
441 return i40e_aq_get_set_rss_lut(hw, vsi_id, pf_lut, lut, lut_size, in i40e_aq_get_rss_lut()
456 bool pf_lut, u8 *lut, u16 lut_size) in i40e_aq_set_rss_lut() argument
458 return i40e_aq_get_set_rss_lut(hw, vsi_id, pf_lut, lut, lut_size, true); in i40e_aq_set_rss_lut()

12