Home
last modified time | relevance | path

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

/openbmc/linux/drivers/clk/at91/
H A Dclk-pll.c132 unsigned long maxdiv, mindiv, tmpdiv; in clk_pll_get_best_div_mul() local
153 tmpdiv = DIV_ROUND_UP(parent_rate, characteristics->input.max); in clk_pll_get_best_div_mul()
154 if (tmpdiv > PLL_DIV_MAX) in clk_pll_get_best_div_mul()
157 if (tmpdiv > mindiv) in clk_pll_get_best_div_mul()
158 mindiv = tmpdiv; in clk_pll_get_best_div_mul()
174 for (tmpdiv = mindiv; tmpdiv <= maxdiv; tmpdiv++) { in clk_pll_get_best_div_mul()
183 tmpmul = DIV_ROUND_CLOSEST(rate, parent_rate / tmpdiv); in clk_pll_get_best_div_mul()
184 tmprate = (parent_rate / tmpdiv) * tmpmul; in clk_pll_get_best_div_mul()
197 bestdiv = tmpdiv; in clk_pll_get_best_div_mul()
/openbmc/linux/drivers/scsi/smartpqi/
H A Dsmartpqi_init.c2726 u64 tmpdiv; in pci_get_aio_common_raid_map_values() local
2747 tmpdiv = rmd->first_block; in pci_get_aio_common_raid_map_values()
2748 do_div(tmpdiv, rmd->blocks_per_row); in pci_get_aio_common_raid_map_values()
2749 rmd->first_row = tmpdiv; in pci_get_aio_common_raid_map_values()
2750 tmpdiv = rmd->last_block; in pci_get_aio_common_raid_map_values()
2751 do_div(tmpdiv, rmd->blocks_per_row); in pci_get_aio_common_raid_map_values()
2752 rmd->last_row = tmpdiv; in pci_get_aio_common_raid_map_values()
2755 tmpdiv = rmd->first_row_offset; in pci_get_aio_common_raid_map_values()
2756 do_div(tmpdiv, rmd->strip_size); in pci_get_aio_common_raid_map_values()
2757 rmd->first_column = tmpdiv; in pci_get_aio_common_raid_map_values()
[all …]
/openbmc/linux/drivers/scsi/
H A Dhpsa.c5133 u64 tmpdiv; in hpsa_scsi_ioaccel_raid_map() local
5222 tmpdiv = first_block; in hpsa_scsi_ioaccel_raid_map()
5223 (void) do_div(tmpdiv, blocks_per_row); in hpsa_scsi_ioaccel_raid_map()
5224 first_row = tmpdiv; in hpsa_scsi_ioaccel_raid_map()
5225 tmpdiv = last_block; in hpsa_scsi_ioaccel_raid_map()
5226 (void) do_div(tmpdiv, blocks_per_row); in hpsa_scsi_ioaccel_raid_map()
5227 last_row = tmpdiv; in hpsa_scsi_ioaccel_raid_map()
5230 tmpdiv = first_row_offset; in hpsa_scsi_ioaccel_raid_map()
5231 (void) do_div(tmpdiv, strip_size); in hpsa_scsi_ioaccel_raid_map()
5232 first_column = tmpdiv; in hpsa_scsi_ioaccel_raid_map()
[all …]