Home
last modified time | relevance | path

Searched refs:mul_factor (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/drivers/ide/
Dide-proc.c235 int rc, mul_factor, div_factor; in ide_settings_proc_show() local
255 mul_factor = setting->mulf ? setting->mulf(drive) : 1; in ide_settings_proc_show()
260 seq_printf(m, "%-16d", rc * mul_factor / div_factor); in ide_settings_proc_show()
263 …q_printf(m, "%-16d%-16d", (setting->min * mul_factor + div_factor - 1) / div_factor, setting->max … in ide_settings_proc_show()
287 int for_real = 0, mul_factor, div_factor; in ide_settings_proc_write() local
369 mul_factor = setting->mulf ? setting->mulf(drive) : 1; in ide_settings_proc_write()
371 ide_write_setting(drive, setting, val * div_factor / mul_factor); in ide_settings_proc_write()
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dgf100.c1872 u32 mul_factor, comm_denom; in gf100_gr_oneinit_tiles() local
1915 mul_factor = gr->gpc_nr * gr->tpc_max; in gf100_gr_oneinit_tiles()
1916 if (mul_factor & 1) in gf100_gr_oneinit_tiles()
1917 mul_factor = 2; in gf100_gr_oneinit_tiles()
1919 mul_factor = 1; in gf100_gr_oneinit_tiles()
1921 comm_denom = gr->gpc_nr * gr->tpc_max * mul_factor; in gf100_gr_oneinit_tiles()
1924 init_frac[i] = gr->tpc_nr[gpc_map[i]] * gr->gpc_nr * mul_factor; in gf100_gr_oneinit_tiles()
1925 init_err[i] = i * gr->tpc_max * mul_factor - comm_denom/2; in gf100_gr_oneinit_tiles()