Lines Matching refs:value
15 long value; in clk_max_freq_mhz_show() local
20 value = hl_fw_get_frequency(hdev, hdev->asic_prop.clk_pll_index, false); in clk_max_freq_mhz_show()
21 if (value < 0) in clk_max_freq_mhz_show()
22 return value; in clk_max_freq_mhz_show()
24 hdev->asic_prop.max_freq_value = value; in clk_max_freq_mhz_show()
26 return sprintf(buf, "%lu\n", (value / 1000 / 1000)); in clk_max_freq_mhz_show()
34 u64 value; in clk_max_freq_mhz_store() local
41 rc = kstrtoull(buf, 0, &value); in clk_max_freq_mhz_store()
47 hdev->asic_prop.max_freq_value = value * 1000 * 1000; in clk_max_freq_mhz_store()
58 long value; in clk_cur_freq_mhz_show() local
63 value = hl_fw_get_frequency(hdev, hdev->asic_prop.clk_pll_index, true); in clk_cur_freq_mhz_show()
64 if (value < 0) in clk_cur_freq_mhz_show()
65 return value; in clk_cur_freq_mhz_show()
67 return sprintf(buf, "%lu\n", (value / 1000 / 1000)); in clk_cur_freq_mhz_show()
186 long value; in soft_reset_store() local
189 rc = kstrtoul(buf, 0, &value); in soft_reset_store()
214 long value; in hard_reset_store() local
217 rc = kstrtoul(buf, 0, &value); in hard_reset_store()
328 unsigned long value; in max_power_store() local
336 rc = kstrtoul(buf, 0, &value); in max_power_store()
343 hdev->max_power = value; in max_power_store()