]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitabcbdc18c3f50723dd7de19564faac77603af2d7
treeaac39f39681047d39cce144a98b78ca40ca0e9e4
parentc95d17a64cec65274ed977e14dbbebb436aec7f4
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