Home
last modified time | relevance | path

Searched refs:nct7802_vmul (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/hwmon/
H A Dnct7802.c284 static u8 nct7802_vmul[] = { 4, 2, 2, 2, 2 }; variable
299 ret = ((v1 << 2) | (v2 >> 6)) * nct7802_vmul[nr]; in nct7802_read_voltage()
311 ret = (v1 | ((v2 << shift) & 0x300)) * nct7802_vmul[nr]; in nct7802_read_voltage()
324 voltage = clamp_val(voltage, 0, 0x3ff * nct7802_vmul[nr]); in nct7802_write_voltage()
325 voltage = DIV_ROUND_CLOSEST(voltage, nct7802_vmul[nr]); in nct7802_write_voltage()
/kernel/linux/linux-6.6/drivers/hwmon/
H A Dnct7802.c301 static u8 nct7802_vmul[] = { 4, 2, 2, 2, 2 }; variable
316 ret = ((v1 << 2) | (v2 >> 6)) * nct7802_vmul[nr]; in nct7802_read_voltage()
328 ret = (v1 | ((v2 << shift) & 0x300)) * nct7802_vmul[nr]; in nct7802_read_voltage()
341 voltage = clamp_val(voltage, 0, 0x3ff * nct7802_vmul[nr]); in nct7802_write_voltage()
342 voltage = DIV_ROUND_CLOSEST(voltage, nct7802_vmul[nr]); in nct7802_write_voltage()

Completed in 4 milliseconds