Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/clk/
Dclk-versaclock5.c815 int mapped_value; in vc5_map_cap_value() local
833 mapped_value = DIV_ROUND_CLOSEST(femtofarads - 9000, 430); in vc5_map_cap_value()
841 if (mapped_value > 31) in vc5_map_cap_value()
842 mapped_value = 0x3f; in vc5_map_cap_value()
844 mapped_value <<= 1; in vc5_map_cap_value()
846 return mapped_value; in vc5_map_cap_value()
851 int mapped_value; in vc5_update_cap_load() local
857 mapped_value = vc5_map_cap_value(value); in vc5_update_cap_load()
858 if (mapped_value < 0) in vc5_update_cap_load()
859 return mapped_value; in vc5_update_cap_load()
[all …]