Home
last modified time | relevance | path

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

/linux/drivers/net/pse-pd/
H A Dtps23881.c390 u64 tmp_64; in tps23881_pi_get_chan_current() local
398 tmp_64 = ret & 0x3fff; in tps23881_pi_get_chan_current()
399 tmp_64 *= TPS23881_NA_STEP; in tps23881_pi_get_chan_current()
401 tmp_64 = DIV_ROUND_CLOSEST_ULL(tmp_64, 1000); in tps23881_pi_get_chan_current()
402 return (int)tmp_64; in tps23881_pi_get_chan_current()
427 u64 tmp_64; in tps23881_pi_get_actual_pw() local
449 tmp_64 = uV; in tps23881_pi_get_actual_pw()
450 tmp_64 *= uA; in tps23881_pi_get_actual_pw()
452 return DIV_ROUND_CLOSEST_ULL(tmp_64, 1000000000); in tps23881_pi_get_actual_pw()
H A Dpse_core.c750 s64 tmp_64; in pse_pi_get_current_limit() local
773 tmp_64 = mW; in pse_pi_get_current_limit()
774 tmp_64 *= 1000000000ull; in pse_pi_get_current_limit()
776 ret = DIV_ROUND_CLOSEST_ULL(tmp_64, uV); in pse_pi_get_current_limit()
789 s64 tmp_64; in pse_pi_set_current_limit() local
809 tmp_64 = ret; in pse_pi_set_current_limit()
810 tmp_64 *= max_uA; in pse_pi_set_current_limit()
812 mW = DIV_ROUND_CLOSEST_ULL(tmp_64, 1000000000); in pse_pi_set_current_limit()
1851 s64 tmp_64; in pse_ethtool_set_pw_limit() local
1869 tmp_64 = pw_limit; in pse_ethtool_set_pw_limit()
[all …]