LCOV - code coverage report
Current view: top level - include/linux/irqchip - chained_irq.h (source / functions) Hit Total Coverage
Test: Real Lines: 0 11 0.0 %
Date: 2020-10-17 15:46:16 Functions: 0 1 0.0 %
Legend: Neither, QEMU, Real, Both Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: GPL-2.0-only */
       2                 :            : /*
       3                 :            :  * Chained IRQ handlers support.
       4                 :            :  *
       5                 :            :  * Copyright (C) 2011 ARM Ltd.
       6                 :            :  */
       7                 :            : #ifndef __IRQCHIP_CHAINED_IRQ_H
       8                 :            : #define __IRQCHIP_CHAINED_IRQ_H
       9                 :            : 
      10                 :            : #include <linux/irq.h>
      11                 :            : 
      12                 :            : /*
      13                 :            :  * Entry/exit functions for chained handlers where the primary IRQ chip
      14                 :            :  * may implement either fasteoi or level-trigger flow control.
      15                 :            :  */
      16                 :          0 : static inline void chained_irq_enter(struct irq_chip *chip,
      17                 :            :                                      struct irq_desc *desc)
      18                 :            : {
      19                 :            :         /* FastEOI controllers require no action on entry. */
      20                 :          0 :         if (chip->irq_eoi)
      21                 :          0 :                 return;
      22                 :            : 
      23                 :          0 :         if (chip->irq_mask_ack) {
      24                 :          0 :                 chip->irq_mask_ack(&desc->irq_data);
      25                 :            :         } else {
      26                 :          0 :                 chip->irq_mask(&desc->irq_data);
      27                 :          0 :                 if (chip->irq_ack)
      28                 :          0 :                         chip->irq_ack(&desc->irq_data);
      29                 :            :         }
      30                 :            : }
      31                 :            : 
      32                 :            : static inline void chained_irq_exit(struct irq_chip *chip,
      33                 :            :                                     struct irq_desc *desc)
      34                 :            : {
      35                 :          0 :         if (chip->irq_eoi)
      36                 :          0 :                 chip->irq_eoi(&desc->irq_data);
      37                 :            :         else
      38                 :          0 :                 chip->irq_unmask(&desc->irq_data);
      39                 :            : }
      40                 :            : 
      41                 :            : #endif /* __IRQCHIP_CHAINED_IRQ_H */
    

Generated by: LCOV version 1.14