Home
last modified time | relevance | path

Searched refs:tmpdiv (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/drivers/clk/at91/
Dclk-pll.c131 unsigned long maxdiv, mindiv, tmpdiv; in clk_pll_get_best_div_mul() local
152 tmpdiv = DIV_ROUND_UP(parent_rate, characteristics->input.max); in clk_pll_get_best_div_mul()
153 if (tmpdiv > PLL_DIV_MAX) in clk_pll_get_best_div_mul()
156 if (tmpdiv > mindiv) in clk_pll_get_best_div_mul()
157 mindiv = tmpdiv; in clk_pll_get_best_div_mul()
173 for (tmpdiv = mindiv; tmpdiv <= maxdiv; tmpdiv++) { in clk_pll_get_best_div_mul()
182 tmpmul = DIV_ROUND_CLOSEST(rate, parent_rate / tmpdiv); in clk_pll_get_best_div_mul()
183 tmprate = (parent_rate / tmpdiv) * tmpmul; in clk_pll_get_best_div_mul()
196 bestdiv = tmpdiv; in clk_pll_get_best_div_mul()
Dclk-sam9x60-pll.c179 unsigned long maxdiv, mindiv, tmpdiv; in sam9x60_pll_get_best_div_mul() local
201 for (tmpdiv = mindiv; tmpdiv <= maxdiv; tmpdiv++) { in sam9x60_pll_get_best_div_mul()
211 tmpmul = mult_frac(rate, tmpdiv, parent_rate); in sam9x60_pll_get_best_div_mul()
212 tmprate = mult_frac(parent_rate, tmpmul, tmpdiv); in sam9x60_pll_get_best_div_mul()
216 tmpfrac = DIV_ROUND_CLOSEST_ULL((u64)remainder * tmpdiv * (1 << 22), in sam9x60_pll_get_best_div_mul()
220 tmpdiv * (1 << 22)); in sam9x60_pll_get_best_div_mul()
235 bestdiv = tmpdiv; in sam9x60_pll_get_best_div_mul()
/Linux-v5.4/drivers/scsi/smartpqi/
Dsmartpqi_init.c2369 u64 tmpdiv; in pqi_raid_bypass_submit_scsi_cmd() local
2432 tmpdiv = first_block; in pqi_raid_bypass_submit_scsi_cmd()
2433 do_div(tmpdiv, blocks_per_row); in pqi_raid_bypass_submit_scsi_cmd()
2434 first_row = tmpdiv; in pqi_raid_bypass_submit_scsi_cmd()
2435 tmpdiv = last_block; in pqi_raid_bypass_submit_scsi_cmd()
2436 do_div(tmpdiv, blocks_per_row); in pqi_raid_bypass_submit_scsi_cmd()
2437 last_row = tmpdiv; in pqi_raid_bypass_submit_scsi_cmd()
2440 tmpdiv = first_row_offset; in pqi_raid_bypass_submit_scsi_cmd()
2441 do_div(tmpdiv, strip_size); in pqi_raid_bypass_submit_scsi_cmd()
2442 first_column = tmpdiv; in pqi_raid_bypass_submit_scsi_cmd()
[all …]
/Linux-v5.4/drivers/scsi/
Dhpsa.c5103 u64 tmpdiv; in hpsa_scsi_ioaccel_raid_map() local
5192 tmpdiv = first_block; in hpsa_scsi_ioaccel_raid_map()
5193 (void) do_div(tmpdiv, blocks_per_row); in hpsa_scsi_ioaccel_raid_map()
5194 first_row = tmpdiv; in hpsa_scsi_ioaccel_raid_map()
5195 tmpdiv = last_block; in hpsa_scsi_ioaccel_raid_map()
5196 (void) do_div(tmpdiv, blocks_per_row); in hpsa_scsi_ioaccel_raid_map()
5197 last_row = tmpdiv; in hpsa_scsi_ioaccel_raid_map()
5200 tmpdiv = first_row_offset; in hpsa_scsi_ioaccel_raid_map()
5201 (void) do_div(tmpdiv, strip_size); in hpsa_scsi_ioaccel_raid_map()
5202 first_column = tmpdiv; in hpsa_scsi_ioaccel_raid_map()
[all …]