LCOV - code coverage report
Current view: top level - drivers/common/cnxk - roc_npa_dp.h (source / functions) Hit Total Coverage
Test: Code coverage Lines: 0 6 0.0 %
Date: 2024-12-01 18:57:19 Functions: 0 0 -
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 22 0.0 %

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: BSD-3-Clause
       2                 :            :  * Copyright(C) 2022 Marvell.
       3                 :            :  */
       4                 :            : 
       5                 :            : #ifndef _ROC_NPA_DP_H_
       6                 :            : #define _ROC_NPA_DP_H_
       7                 :            : 
       8                 :            : #define ROC_AURA_ID_MASK       (BIT_ULL(16) - 1)
       9                 :            : 
      10                 :            : static inline uint64_t
      11                 :            : roc_npa_aura_handle_to_aura(uint64_t aura_handle)
      12                 :            : {
      13   [ #  #  #  #  :          0 :         return aura_handle & ROC_AURA_ID_MASK;
          #  #  #  #  #  
          #  #  #  #  #  
                   #  # ]
      14                 :            : }
      15                 :            : 
      16                 :            : static inline uintptr_t
      17                 :            : roc_npa_aura_handle_to_base(uint64_t aura_handle)
      18                 :            : {
      19         [ #  # ]:          0 :         return (uintptr_t)(aura_handle & ~ROC_AURA_ID_MASK);
      20                 :            : }
      21                 :            : 
      22                 :            : static inline void
      23                 :            : roc_npa_aura_op_free(uint64_t aura_handle, const int fabs, uint64_t iova)
      24                 :            : {
      25                 :            :         uint64_t reg = roc_npa_aura_handle_to_aura(aura_handle);
      26                 :          0 :         const uint64_t addr =
      27                 :            :                 roc_npa_aura_handle_to_base(aura_handle) + NPA_LF_AURA_OP_FREE0;
      28                 :            :         if (fabs)
      29                 :          0 :                 reg |= BIT_ULL(63); /* FABS */
      30                 :            : 
      31   [ #  #  #  # ]:          0 :         roc_store_pair(iova, reg, addr);
      32                 :          0 : }
      33                 :            : 
      34                 :            : #endif /* _ROC_NPA_DP_H_ */

Generated by: LCOV version 1.14