/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | dce_v6_0.c | 498 u32 yclk; /* bandwidth per dram data pin in kHz */ member 525 fixed20_12 yclk, dram_channels, bandwidth; in dce_v6_0_dram_bandwidth() local 529 yclk.full = dfixed_const(wm->yclk); in dce_v6_0_dram_bandwidth() 530 yclk.full = dfixed_div(yclk, a); in dce_v6_0_dram_bandwidth() 535 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce_v6_0_dram_bandwidth() 554 fixed20_12 yclk, dram_channels, bandwidth; in dce_v6_0_dram_bandwidth_for_display() local 558 yclk.full = dfixed_const(wm->yclk); in dce_v6_0_dram_bandwidth_for_display() 559 yclk.full = dfixed_div(yclk, a); in dce_v6_0_dram_bandwidth_for_display() 564 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce_v6_0_dram_bandwidth_for_display() 856 wm_high.yclk = in dce_v6_0_program_watermarks() [all …]
|
D | dce_v8_0.c | 633 u32 yclk; /* bandwidth per dram data pin in kHz */ member 660 fixed20_12 yclk, dram_channels, bandwidth; in dce_v8_0_dram_bandwidth() local 664 yclk.full = dfixed_const(wm->yclk); in dce_v8_0_dram_bandwidth() 665 yclk.full = dfixed_div(yclk, a); in dce_v8_0_dram_bandwidth() 670 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce_v8_0_dram_bandwidth() 689 fixed20_12 yclk, dram_channels, bandwidth; in dce_v8_0_dram_bandwidth_for_display() local 693 yclk.full = dfixed_const(wm->yclk); in dce_v8_0_dram_bandwidth_for_display() 694 yclk.full = dfixed_div(yclk, a); in dce_v8_0_dram_bandwidth_for_display() 699 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce_v8_0_dram_bandwidth_for_display() 982 wm_high.yclk = in dce_v8_0_program_watermarks() [all …]
|
D | dce_v10_0.c | 694 u32 yclk; /* bandwidth per dram data pin in kHz */ member 721 fixed20_12 yclk, dram_channels, bandwidth; in dce_v10_0_dram_bandwidth() local 725 yclk.full = dfixed_const(wm->yclk); in dce_v10_0_dram_bandwidth() 726 yclk.full = dfixed_div(yclk, a); in dce_v10_0_dram_bandwidth() 731 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce_v10_0_dram_bandwidth() 750 fixed20_12 yclk, dram_channels, bandwidth; in dce_v10_0_dram_bandwidth_for_display() local 754 yclk.full = dfixed_const(wm->yclk); in dce_v10_0_dram_bandwidth_for_display() 755 yclk.full = dfixed_div(yclk, a); in dce_v10_0_dram_bandwidth_for_display() 760 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce_v10_0_dram_bandwidth_for_display() 1043 wm_high.yclk = in dce_v10_0_program_watermarks() [all …]
|
D | dce_v11_0.c | 726 u32 yclk; /* bandwidth per dram data pin in kHz */ member 753 fixed20_12 yclk, dram_channels, bandwidth; in dce_v11_0_dram_bandwidth() local 757 yclk.full = dfixed_const(wm->yclk); in dce_v11_0_dram_bandwidth() 758 yclk.full = dfixed_div(yclk, a); in dce_v11_0_dram_bandwidth() 763 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce_v11_0_dram_bandwidth() 782 fixed20_12 yclk, dram_channels, bandwidth; in dce_v11_0_dram_bandwidth_for_display() local 786 yclk.full = dfixed_const(wm->yclk); in dce_v11_0_dram_bandwidth_for_display() 787 yclk.full = dfixed_div(yclk, a); in dce_v11_0_dram_bandwidth_for_display() 792 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce_v11_0_dram_bandwidth_for_display() 1075 wm_high.yclk = in dce_v11_0_program_watermarks() [all …]
|
/linux-6.6.21/drivers/gpu/drm/radeon/ |
D | evergreen.c | 1935 u32 yclk; /* bandwidth per dram data pin in kHz */ member 1953 fixed20_12 yclk, dram_channels, bandwidth; in evergreen_dram_bandwidth() local 1957 yclk.full = dfixed_const(wm->yclk); in evergreen_dram_bandwidth() 1958 yclk.full = dfixed_div(yclk, a); in evergreen_dram_bandwidth() 1963 bandwidth.full = dfixed_mul(dram_channels, yclk); in evergreen_dram_bandwidth() 1973 fixed20_12 yclk, dram_channels, bandwidth; in evergreen_dram_bandwidth_for_display() local 1977 yclk.full = dfixed_const(wm->yclk); in evergreen_dram_bandwidth_for_display() 1978 yclk.full = dfixed_div(yclk, a); in evergreen_dram_bandwidth_for_display() 1983 bandwidth.full = dfixed_mul(dram_channels, yclk); in evergreen_dram_bandwidth_for_display() 2183 wm_high.yclk = in evergreen_program_watermarks() [all …]
|
D | si.c | 2054 u32 yclk; /* bandwidth per dram data pin in kHz */ member 2072 fixed20_12 yclk, dram_channels, bandwidth; in dce6_dram_bandwidth() local 2076 yclk.full = dfixed_const(wm->yclk); in dce6_dram_bandwidth() 2077 yclk.full = dfixed_div(yclk, a); in dce6_dram_bandwidth() 2082 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce6_dram_bandwidth() 2092 fixed20_12 yclk, dram_channels, bandwidth; in dce6_dram_bandwidth_for_display() local 2096 yclk.full = dfixed_const(wm->yclk); in dce6_dram_bandwidth_for_display() 2097 yclk.full = dfixed_div(yclk, a); in dce6_dram_bandwidth_for_display() 2102 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce6_dram_bandwidth_for_display() 2325 wm_high.yclk = in dce6_program_watermarks() [all …]
|
D | cik.c | 8900 u32 yclk; /* bandwidth per dram data pin in kHz */ member 8927 fixed20_12 yclk, dram_channels, bandwidth; in dce8_dram_bandwidth() local 8931 yclk.full = dfixed_const(wm->yclk); in dce8_dram_bandwidth() 8932 yclk.full = dfixed_div(yclk, a); in dce8_dram_bandwidth() 8937 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce8_dram_bandwidth() 8956 fixed20_12 yclk, dram_channels, bandwidth; in dce8_dram_bandwidth_for_display() local 8960 yclk.full = dfixed_const(wm->yclk); in dce8_dram_bandwidth_for_display() 8961 yclk.full = dfixed_div(yclk, a); in dce8_dram_bandwidth_for_display() 8966 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce8_dram_bandwidth_for_display() 9250 wm_high.yclk = in dce8_program_watermarks() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
D | dce_calcs.c | 101 struct bw_fixed *yclk; in calculate_bandwidth() local 125 yclk = kcalloc(3, sizeof(*yclk), GFP_KERNEL); in calculate_bandwidth() 126 if (!yclk) in calculate_bandwidth() 141 yclk[low] = vbios->low_yclk; in calculate_bandwidth() 142 yclk[mid] = vbios->mid_yclk; in calculate_bandwidth() 143 yclk[high] = vbios->high_yclk; in calculate_bandwidth() 1199 …red_dram_access_data, (bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[i]), bw_int_to_fixe… in calculate_bandwidth() 1201 …red_dram_access_data, (bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[i]), bw_int_to_fixe… in calculate_bandwidth() 1537 …data->dram_bandwidth = bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[high]), bw_int_to_f… in calculate_bandwidth() 1543 …data->dram_bandwidth = bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[high]), bw_int_to_f… in calculate_bandwidth() [all …]
|