dram_efficiency 717 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c fixed20_12 dram_efficiency; /* 0.7 */ dram_efficiency 726 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dram_efficiency.full = dfixed_const(7); dram_efficiency 727 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dram_efficiency.full = dfixed_div(dram_efficiency, a); dram_efficiency 729 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c bandwidth.full = dfixed_mul(bandwidth, dram_efficiency); dram_efficiency 743 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c fixed20_12 dram_efficiency; /* 0.7 */ dram_efficiency 752 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dram_efficiency.full = dfixed_const(7); dram_efficiency 753 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dram_efficiency.full = dfixed_div(dram_efficiency, a); dram_efficiency 755 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c bandwidth.full = dfixed_mul(bandwidth, dram_efficiency); dram_efficiency 516 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c fixed20_12 dram_efficiency; /* 0.7 */ dram_efficiency 525 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dram_efficiency.full = dfixed_const(7); dram_efficiency 526 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dram_efficiency.full = dfixed_div(dram_efficiency, a); dram_efficiency 528 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c bandwidth.full = dfixed_mul(bandwidth, dram_efficiency); dram_efficiency 652 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c fixed20_12 dram_efficiency; /* 0.7 */ dram_efficiency 661 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dram_efficiency.full = dfixed_const(7); dram_efficiency 662 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dram_efficiency.full = dfixed_div(dram_efficiency, a); dram_efficiency 664 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c bandwidth.full = dfixed_mul(bandwidth, dram_efficiency); dram_efficiency 215 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] dram_efficiency: %d", bw_fixed_to_int(data->dram_efficiency)); dram_efficiency 602 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_efficiency = bw_frc_to_fixed(5, 10); dram_efficiency 604 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_efficiency = bw_int_to_fixed(1); dram_efficiency 622 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_efficiency = bw_frc_to_fixed(5, 10); dram_efficiency 624 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_efficiency = bw_frc_to_fixed(8, 10); dram_efficiency 1188 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dmif_burst_time[i][j] = bw_max3(data->dmif_total_page_close_open_time, bw_div(data->total_display_reads_required_dram_access_data, (bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[i]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels)))), bw_div(data->total_display_reads_required_data, (bw_mul(bw_mul(sclk[j], vbios->data_return_bus_width), bw_frc_to_fixed(dceip->percent_of_ideal_port_bw_received_after_urgent_latency, 100))))); dram_efficiency 1190 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->mcifwr_burst_time[i][j] = bw_max3(data->mcifwr_total_page_close_open_time, bw_div(data->total_display_writes_required_dram_access_data, (bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[i]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_wrchannels)))), bw_div(data->total_display_writes_required_data, (bw_mul(sclk[j], vbios->data_return_bus_width)))); dram_efficiency 1529 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_bandwidth = bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[high]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels)); dram_efficiency 1535 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_bandwidth = bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[high]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels)); dram_efficiency 1540 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c && bw_ltn(bw_mul(data->required_dram_bandwidth_gbyte_per_second, bw_int_to_fixed(1000)), bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[low]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels))) && (data->cpup_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[low][s_high], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[low][s_high], vbios->high_voltage_max_dispclk))) && (data->cpuc_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[low][s_high], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[low][s_high], vbios->high_voltage_max_dispclk) && bw_ltn(data->dispclk_required_for_blackout_recovery[low][s_high], vbios->high_voltage_max_dispclk))) && (!data->increase_voltage_to_support_mclk_switch || data->nbp_state_change_enable == bw_def_no || (bw_mtn(data->min_dram_speed_change_margin[low][s_high], bw_int_to_fixed(0)) && bw_ltn(data->min_dram_speed_change_margin[low][s_high], bw_int_to_fixed(9999)) && bw_leq(data->dispclk_required_for_dram_speed_change[low][s_high], vbios->high_voltage_max_dispclk) && data->num_displays_with_margin[low][s_high] == number_of_displays_enabled_with_margin))) { dram_efficiency 1543 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_bandwidth = bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[low]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels)); dram_efficiency 1546 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c && bw_ltn(bw_mul(data->required_dram_bandwidth_gbyte_per_second, bw_int_to_fixed(1000)), bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[mid]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels))) && (data->cpup_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[mid][s_high], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[mid][s_high], vbios->high_voltage_max_dispclk))) && (data->cpuc_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[mid][s_high], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[mid][s_high], vbios->high_voltage_max_dispclk) && bw_ltn(data->dispclk_required_for_blackout_recovery[mid][s_high], vbios->high_voltage_max_dispclk))) && (!data->increase_voltage_to_support_mclk_switch || data->nbp_state_change_enable == bw_def_no || (bw_mtn(data->min_dram_speed_change_margin[mid][s_high], bw_int_to_fixed(0)) && bw_ltn(data->min_dram_speed_change_margin[mid][s_high], bw_int_to_fixed(9999)) && bw_leq(data->dispclk_required_for_dram_speed_change[mid][s_high], vbios->high_voltage_max_dispclk) && data->num_displays_with_margin[mid][s_high] == number_of_displays_enabled_with_margin))) { dram_efficiency 1549 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_bandwidth = bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[mid]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels)); dram_efficiency 1552 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c && bw_ltn(bw_mul(data->required_dram_bandwidth_gbyte_per_second, bw_int_to_fixed(1000)), bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[high]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels)))) { dram_efficiency 1555 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_bandwidth = bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[high]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels)); dram_efficiency 1560 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_bandwidth = bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[high]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels)); dram_efficiency 264 drivers/gpu/drm/amd/display/dc/inc/dce_calcs.h struct bw_fixed dram_efficiency; dram_efficiency 8947 drivers/gpu/drm/radeon/cik.c fixed20_12 dram_efficiency; /* 0.7 */ dram_efficiency 8956 drivers/gpu/drm/radeon/cik.c dram_efficiency.full = dfixed_const(7); dram_efficiency 8957 drivers/gpu/drm/radeon/cik.c dram_efficiency.full = dfixed_div(dram_efficiency, a); dram_efficiency 8959 drivers/gpu/drm/radeon/cik.c bandwidth.full = dfixed_mul(bandwidth, dram_efficiency); dram_efficiency 1950 drivers/gpu/drm/radeon/evergreen.c fixed20_12 dram_efficiency; /* 0.7 */ dram_efficiency 1959 drivers/gpu/drm/radeon/evergreen.c dram_efficiency.full = dfixed_const(7); dram_efficiency 1960 drivers/gpu/drm/radeon/evergreen.c dram_efficiency.full = dfixed_div(dram_efficiency, a); dram_efficiency 1962 drivers/gpu/drm/radeon/evergreen.c bandwidth.full = dfixed_mul(bandwidth, dram_efficiency); dram_efficiency 2076 drivers/gpu/drm/radeon/si.c fixed20_12 dram_efficiency; /* 0.7 */ dram_efficiency 2085 drivers/gpu/drm/radeon/si.c dram_efficiency.full = dfixed_const(7); dram_efficiency 2086 drivers/gpu/drm/radeon/si.c dram_efficiency.full = dfixed_div(dram_efficiency, a); dram_efficiency 2088 drivers/gpu/drm/radeon/si.c bandwidth.full = dfixed_mul(bandwidth, dram_efficiency);