1. 24 Sep, 2022 2 commits
    • Alex Elder's avatar
      net: ipa: introduce ipa_qtime_val() · 8be440e1
      Alex Elder authored
      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: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      8be440e1
    • Alex Elder's avatar
      net: ipa: don't use u32p_replace_bits() · a50d37b7
      Alex Elder authored
      In two spots we use u32_replace_bits() to replace a set of bits in a
      register while preserving the rest.  Both of those cases just zero
      the bits being replaced, and this can be done more simply without
      using that function.
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      a50d37b7
  2. 23 Sep, 2022 38 commits