Home
last modified time | relevance | path

Searched refs:nom (Results 1 – 16 of 16) sorted by relevance

/linux-6.15/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_pll.c44 static void amdgpu_pll_reduce_ratio(unsigned *nom, unsigned *den, in amdgpu_pll_reduce_ratio() argument
50 tmp = gcd(*nom, *den); in amdgpu_pll_reduce_ratio()
51 *nom /= tmp; in amdgpu_pll_reduce_ratio()
55 if (*nom < nom_min) { in amdgpu_pll_reduce_ratio()
56 tmp = DIV_ROUND_UP(nom_min, *nom); in amdgpu_pll_reduce_ratio()
57 *nom *= tmp; in amdgpu_pll_reduce_ratio()
64 *nom *= tmp; in amdgpu_pll_reduce_ratio()
98 *fb_div = DIV_ROUND_CLOSEST(nom * *ref_div * post_div, den); in amdgpu_pll_get_fb_ref_div()
138 unsigned nom, den; in amdgpu_pll_compute() local
195 nom = target_clock; in amdgpu_pll_compute()
[all …]
/linux-6.15/sound/soc/img/
H A Dimg-spdif-in.c152 unsigned int ori, nom, hld; in img_spdif_in_do_clkgen_calc() local
167 nom = (4096 / ori) + 1; in img_spdif_in_do_clkgen_calc()
169 hld = 4096 - (--nom * (ori - 1)); in img_spdif_in_do_clkgen_calc()
172 *pnom = nom; in img_spdif_in_do_clkgen_calc()
181 unsigned int nom, hld; in img_spdif_in_do_clkgen_single() local
190 ret = img_spdif_in_do_clkgen_calc(rate, &nom, &hld, clk_rate); in img_spdif_in_do_clkgen_single()
194 reg = (nom << IMG_SPDIF_IN_CLKGEN_NOM_SHIFT) & in img_spdif_in_do_clkgen_single()
218 unsigned int nom, hld, rate, max_rate = 0; in img_spdif_in_do_clkgen_multi() local
234 ret = img_spdif_in_do_clkgen_calc(rate, &nom, &hld, clk_rate); in img_spdif_in_do_clkgen_multi()
238 reg = (nom << IMG_SPDIF_IN_ACLKGEN_NOM_SHIFT) & in img_spdif_in_do_clkgen_multi()
/linux-6.15/drivers/video/fbdev/riva/
H A Dfbdev.c857 int nom, int den) in rivafb_do_maximize() argument
895 (nom * var->yres_virtual)) & ~15; in rivafb_do_maximize()
901 (nom * var->xres_virtual); in rivafb_do_maximize()
919 var->xres_virtual = 8192 * den / nom - 16; in rivafb_do_maximize()
933 if (var->yres_virtual > 0x7fff/nom) in rivafb_do_maximize()
934 var->yres_virtual = 0x7fff/nom; in rivafb_do_maximize()
935 if (var->xres_virtual > 0x7fff/nom) in rivafb_do_maximize()
936 var->xres_virtual = 0x7fff/nom; in rivafb_do_maximize()
1090 nom = den = 1; in rivafb_check_var()
1117 nom = 2; in rivafb_check_var()
[all …]
/linux-6.15/drivers/gpu/drm/radeon/
H A Dradeon_display.c885 static void avivo_reduce_ratio(unsigned *nom, unsigned *den, in avivo_reduce_ratio() argument
891 tmp = gcd(*nom, *den); in avivo_reduce_ratio()
892 *nom /= tmp; in avivo_reduce_ratio()
896 if (*nom < nom_min) { in avivo_reduce_ratio()
897 tmp = DIV_ROUND_UP(nom_min, *nom); in avivo_reduce_ratio()
898 *nom *= tmp; in avivo_reduce_ratio()
905 *nom *= tmp; in avivo_reduce_ratio()
971 unsigned nom, den; in radeon_compute_pll_avivo() local
1031 nom = target_clock; in radeon_compute_pll_avivo()
1035 avivo_reduce_ratio(&nom, &den, fb_div_min, post_div_min); in radeon_compute_pll_avivo()
[all …]
/linux-6.15/drivers/gpu/drm/i915/gt/
H A Dintel_gt_clock_utils.c201 static u64 div_u64_roundup(u64 nom, u32 den) in div_u64_roundup() argument
203 return div_u64(nom + den - 1, den); in div_u64_roundup()
/linux-6.15/drivers/isdn/hardware/mISDN/
H A DmISDNisar.c177 u8 nom, noc; in load_firmware() local
241 nom = (2 * noc) + 3; in load_firmware()
1353 nom = 1; in isar_pump_cmd()
1366 nom = 0; in isar_pump_cmd()
1375 nom = 1; in isar_pump_cmd()
1388 nom = 0; in isar_pump_cmd()
1397 nom = 1; in isar_pump_cmd()
1410 nom = 0; in isar_pump_cmd()
1419 nom = 1; in isar_pump_cmd()
1432 nom = 0; in isar_pump_cmd()
[all …]
/linux-6.15/drivers/video/fbdev/
H A Dcirrusfb.c670 int nom, den, div; in cirrusfb_set_par_foo() local
846 bestclock(freq, &nom, &den, &div); in cirrusfb_set_par_foo()
849 freq, nom, den, div); in cirrusfb_set_par_foo()
863 nom = 0; in cirrusfb_set_par_foo()
885 if (nom) { in cirrusfb_set_par_foo()
898 vga_wseq(regbase, CL_SEQR1E, nom); in cirrusfb_set_par_foo()
900 vga_wseq(regbase, CL_SEQRE, nom); in cirrusfb_set_par_foo()
2746 assert(nom != NULL); in bestclock()
2750 *nom = 0; in bestclock()
2774 *nom = n; in bestclock()
[all …]
/linux-6.15/Documentation/devicetree/bindings/input/
H A Ddlg,da7280.txt30 - dlg,nom-microvolt: Nominal actuator voltage rating.
89 dlg,nom-microvolt = <2000000>;
/linux-6.15/drivers/net/can/usb/
H A Desd_usb.c236 struct esd_usb_3_baudrate_cfg nom; /* nominal bit rate */ member
1119 baud_x->nom.brp = cpu_to_le16(nom_bt->brp & (nom_btc->brp_max - 1)); in esd_usb_3_set_bittiming()
1120 baud_x->nom.sjw = cpu_to_le16(nom_bt->sjw & (nom_btc->sjw_max - 1)); in esd_usb_3_set_bittiming()
1121 baud_x->nom.tseg1 = cpu_to_le16((nom_bt->prop_seg + nom_bt->phase_seg1) in esd_usb_3_set_bittiming()
1123 baud_x->nom.tseg2 = cpu_to_le16(nom_bt->phase_seg2 & (nom_btc->tseg2_max - 1)); in esd_usb_3_set_bittiming()
/linux-6.15/drivers/video/fbdev/aty/
H A Dradeon_base.c836 int nom, den; in radeonfb_check_var() local
858 nom = den = 1; in radeonfb_check_var()
864 nom = 2; in radeonfb_check_var()
873 nom = 2; in radeonfb_check_var()
884 nom = 4; in radeonfb_check_var()
893 nom = 4; in radeonfb_check_var()
925 if (((v.xres_virtual * v.yres_virtual * nom) / den) > rinfo->mapped_vram) in radeonfb_check_var()
/linux-6.15/drivers/acpi/
H A Dcppc_acpi.c1281 u64 high, low, guaranteed, nom, min_nonlinear, low_f = 0, nom_f = 0; in cppc_get_perf_caps() local
1323 cpc_read(cpunum, nominal_reg, &nom); in cppc_get_perf_caps()
1324 perf_caps->nominal_perf = nom; in cppc_get_perf_caps()
1337 if (!high || !low || !nom || !min_nonlinear) in cppc_get_perf_caps()
/linux-6.15/arch/arm64/boot/dts/qcom/
H A Dsm8150-microsoft-surface-duo.dts381 dlg,nom-microvolt = <2000000>;
/linux-6.15/drivers/media/dvb-frontends/
H A Ddib7000p.c2435 u32 nom = (insertExtSynchro * P_Kin + syncSize); in dib7090_calcSyncFreq() local
2437 u32 syncFreq = ((nom << quantif) / denom); in dib7090_calcSyncFreq()
H A Ddib8000.c1383 u32 nom = (insertExtSynchro * P_Kin+syncSize); in dib8096p_calcSyncFreq() local
1385 u32 syncFreq = ((nom << quantif) / denom); in dib8096p_calcSyncFreq()
/linux-6.15/drivers/gpu/drm/xe/
H A Dxe_oa.c1871 u64 nom = (2ULL << exponent) * NSEC_PER_SEC; in oa_exponent_to_ns() local
1874 return div_u64(nom + den - 1, den); in oa_exponent_to_ns()
/linux-6.15/drivers/gpu/drm/i915/
H A Di915_perf.c3932 u64 nom = (2ULL << exponent) * NSEC_PER_SEC; in oa_exponent_to_ns() local
3935 return div_u64(nom + den - 1, den); in oa_exponent_to_ns()