Searched refs:tmpdiv (Results 1 – 2 of 2) sorted by relevance
132 unsigned long maxdiv, mindiv, tmpdiv; in clk_pll_get_best_div_mul() local153 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()
2757 u64 tmpdiv; in pci_get_aio_common_raid_map_values() local2778 tmpdiv = rmd->first_block; in pci_get_aio_common_raid_map_values()2779 do_div(tmpdiv, rmd->blocks_per_row); in pci_get_aio_common_raid_map_values()2780 rmd->first_row = tmpdiv; in pci_get_aio_common_raid_map_values()2781 tmpdiv = rmd->last_block; in pci_get_aio_common_raid_map_values()2782 do_div(tmpdiv, rmd->blocks_per_row); in pci_get_aio_common_raid_map_values()2783 rmd->last_row = tmpdiv; in pci_get_aio_common_raid_map_values()2786 tmpdiv = rmd->first_row_offset; in pci_get_aio_common_raid_map_values()2787 do_div(tmpdiv, rmd->strip_size); in pci_get_aio_common_raid_map_values()2788 rmd->first_column = tmpdiv; in pci_get_aio_common_raid_map_values()[all …]