LCOV - code coverage report
Current view: top level - arch/x86/kernel/apic - local.h (source / functions) Hit Total Coverage
Test: combined.info Lines: 0 10 0.0 %
Date: 2022-03-28 13:20:08 Functions: 0 0 -
Branches: 0 10 0.0 %

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: GPL-2.0 */
       2                 :            : /*
       3                 :            :  * Historical copyright notices:
       4                 :            :  *
       5                 :            :  * Copyright 2004 James Cleverdon, IBM.
       6                 :            :  * (c) 1995 Alan Cox, Building #3 <alan@redhat.com>
       7                 :            :  * (c) 1998-99, 2000 Ingo Molnar <mingo@redhat.com>
       8                 :            :  * (c) 2002,2003 Andi Kleen, SuSE Labs.
       9                 :            :  */
      10                 :            : 
      11                 :            : #include <linux/jump_label.h>
      12                 :            : 
      13                 :            : #include <asm/apic.h>
      14                 :            : 
      15                 :            : /* APIC flat 64 */
      16                 :            : void flat_init_apic_ldr(void);
      17                 :            : 
      18                 :            : /* X2APIC */
      19                 :            : int x2apic_apic_id_valid(u32 apicid);
      20                 :            : int x2apic_apic_id_registered(void);
      21                 :            : void __x2apic_send_IPI_dest(unsigned int apicid, int vector, unsigned int dest);
      22                 :            : unsigned int x2apic_get_apic_id(unsigned long id);
      23                 :            : u32 x2apic_set_apic_id(unsigned int id);
      24                 :            : int x2apic_phys_pkg_id(int initial_apicid, int index_msb);
      25                 :            : void x2apic_send_IPI_self(int vector);
      26                 :            : void __x2apic_send_IPI_shorthand(int vector, u32 which);
      27                 :            : 
      28                 :            : /* IPI */
      29                 :            : 
      30                 :            : DECLARE_STATIC_KEY_FALSE(apic_use_ipi_shorthand);
      31                 :            : 
      32                 :          0 : static inline unsigned int __prepare_ICR(unsigned int shortcut, int vector,
      33                 :            :                                          unsigned int dest)
      34                 :            : {
      35                 :          0 :         unsigned int icr = shortcut | dest;
      36                 :            : 
      37   [ #  #  #  #  :          0 :         switch (vector) {
          #  #  #  #  #  
                      # ]
      38                 :          0 :         default:
      39                 :          0 :                 icr |= APIC_DM_FIXED | vector;
      40                 :          0 :                 break;
      41                 :          0 :         case NMI_VECTOR:
      42                 :          0 :                 icr |= APIC_DM_NMI;
      43                 :          0 :                 break;
      44                 :            :         }
      45                 :          0 :         return icr;
      46                 :            : }
      47                 :            : 
      48                 :            : void __default_send_IPI_shortcut(unsigned int shortcut, int vector);
      49                 :            : 
      50                 :            : /*
      51                 :            :  * This is used to send an IPI with no shorthand notation (the destination is
      52                 :            :  * specified in bits 56 to 63 of the ICR).
      53                 :            :  */
      54                 :            : void __default_send_IPI_dest_field(unsigned int mask, int vector, unsigned int dest);
      55                 :            : 
      56                 :            : void default_send_IPI_single(int cpu, int vector);
      57                 :            : void default_send_IPI_single_phys(int cpu, int vector);
      58                 :            : void default_send_IPI_mask_sequence_phys(const struct cpumask *mask, int vector);
      59                 :            : void default_send_IPI_mask_allbutself_phys(const struct cpumask *mask, int vector);
      60                 :            : void default_send_IPI_allbutself(int vector);
      61                 :            : void default_send_IPI_all(int vector);
      62                 :            : void default_send_IPI_self(int vector);
      63                 :            : 
      64                 :            : #ifdef CONFIG_X86_32
      65                 :            : void default_send_IPI_mask_sequence_logical(const struct cpumask *mask, int vector);
      66                 :            : void default_send_IPI_mask_allbutself_logical(const struct cpumask *mask, int vector);
      67                 :            : void default_send_IPI_mask_logical(const struct cpumask *mask, int vector);
      68                 :            : #endif

Generated by: LCOV version 1.14