net: ipa: introduce ipa_qtime_val()
authorAlex Elder <elder@linaro.org>
Thu, 22 Sep 2022 22:20:54 +0000 (17:20 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sat, 24 Sep 2022 03:56:27 +0000 (20:56 -0700)
commit8be440e17bdbb3ddfe3fd19216ee0d904dd24d22
treeaac39f39681047d39cce144a98b78ca40ca0e9e4
parenta50d37b7565e13613e2797eabcf82c2c685578d0
net: ipa: introduce ipa_qtime_val()

Create a new function ipa_qtime_val() which returns a value that
indicates what should be encoded for a register with a time field
expressed using Qtime.  Use it to factor out common code in
aggr_time_limit_encoded() and hol_block_timer_qtime_val().

Rename aggr_time_limit_encoded() and hol_block_timer_qtime_val() so
their names are both verbs ending in "encode".  Rename the "limit"
argument to the former to be "milliseconds" for consistency.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_endpoint.c