Skip to content
Snippets Groups Projects
Select Git revision
  • 6ddf37da05cd71bf9e43349d607e810b43c9008a
  • vme-testing default
  • ci-test
  • master
  • remoteproc
  • am625-sk-ov5640
  • pcal6534-upstreaming
  • lps22df-upstreaming
  • msc-upstreaming
  • imx8mp
  • iio/noa1305
  • vme-next
  • vme-next-4.14-rc4
  • v4.14-rc4
  • v4.14-rc3
  • v4.14-rc2
  • v4.14-rc1
  • v4.13
  • vme-next-4.13-rc7
  • v4.13-rc7
  • v4.13-rc6
  • v4.13-rc5
  • v4.13-rc4
  • v4.13-rc3
  • v4.13-rc2
  • v4.13-rc1
  • v4.12
  • v4.12-rc7
  • v4.12-rc6
  • v4.12-rc5
  • v4.12-rc4
  • v4.12-rc3
32 results

msm_drv.c

Blame
    • Rob Clark's avatar
      4016260b
      drm/msm: fix bug after preclose removal · 4016260b
      Rob Clark authored
      
      commit 53190c71
      Author:     Daniel Vetter <daniel.vetter@ffwll.ch>
      AuthorDate: Mon Jan 25 22:16:49 2016 +0100
      Commit:     Daniel Vetter <daniel.vetter@ffwll.ch>
      CommitDate: Mon Feb 8 09:55:50 2016 +0100
      
          drm/msm: Nuke preclose hooks
      
      Left around the unused (and null) preclose fxn ptr, and things
      predictibly explode when you try to call that.
      
      Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
      4016260b
      History
      drm/msm: fix bug after preclose removal
      Rob Clark authored
      
      commit 53190c71
      Author:     Daniel Vetter <daniel.vetter@ffwll.ch>
      AuthorDate: Mon Jan 25 22:16:49 2016 +0100
      Commit:     Daniel Vetter <daniel.vetter@ffwll.ch>
      CommitDate: Mon Feb 8 09:55:50 2016 +0100
      
          drm/msm: Nuke preclose hooks
      
      Left around the unused (and null) preclose fxn ptr, and things
      predictibly explode when you try to call that.
      
      Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
    alignment.c 25.42 KiB
    /*
     *  linux/arch/arm/mm/alignment.c
     *
     *  Copyright (C) 1995  Linus Torvalds
     *  Modifications for ARM processor (c) 1995-2001 Russell King
     *  Thumb alignment fault fixups (c) 2004 MontaVista Software, Inc.
     *  - Adapted from gdb/sim/arm/thumbemu.c -- Thumb instruction emulation.
     *    Copyright (C) 1996, Cygnus Software Technologies Ltd.
     *
     * This program is free software; you can redistribute it and/or modify
     * it under the terms of the GNU General Public License version 2 as
     * published by the Free Software Foundation.
     */
    #include <linux/moduleparam.h>
    #include <linux/compiler.h>
    #include <linux/kernel.h>
    #include <linux/errno.h>
    #include <linux/string.h>
    #include <linux/proc_fs.h>
    #include <linux/seq_file.h>
    #include <linux/init.h>
    #include <linux/sched.h>
    #include <linux/uaccess.h>
    
    #include <asm/cp15.h>
    #include <asm/system_info.h>
    #include <asm/unaligned.h>
    
    #include "fault.h"
    
    /*
     * 32-bit misaligned trap handler (c) 1998 San Mehat (CCC) -July 1998
     * /proc/sys/debug/alignment, modified and integrated into
     * Linux 2.1 by Russell King
     *
     * Speed optimisations and better fault handling by Russell King.
     *
     * *** NOTE ***
     * This code is not portable to processors with late data abort handling.
     */
    #define CODING_BITS(i)	(i & 0x0e000000)
    
    #define LDST_I_BIT(i)	(i & (1 << 26))		/* Immediate constant	*/
    #define LDST_P_BIT(i)	(i & (1 << 24))		/* Preindex		*/
    #define LDST_U_BIT(i)	(i & (1 << 23))		/* Add offset		*/
    #define LDST_W_BIT(i)	(i & (1 << 21))		/* Writeback		*/
    #define LDST_L_BIT(i)	(i & (1 << 20))		/* Load			*/
    
    #define LDST_P_EQ_U(i)	((((i) ^ ((i) >> 1)) & (1 << 23)) == 0)
    
    #define LDSTHD_I_BIT(i)	(i & (1 << 22))		/* double/half-word immed */
    #define LDM_S_BIT(i)	(i & (1 << 22))		/* write CPSR from SPSR	*/
    
    #define RN_BITS(i)	((i >> 16) & 15)	/* Rn			*/
    #define RD_BITS(i)	((i >> 12) & 15)	/* Rd			*/
    #define RM_BITS(i)	(i & 15)		/* Rm			*/
    
    #define REGMASK_BITS(i)	(i & 0xffff)
    #define OFFSET_BITS(i)	(i & 0x0fff)
    
    #define IS_SHIFT(i)	(i & 0x0ff0)
    #define SHIFT_BITS(i)	((i >> 7) & 0x1f)
    #define SHIFT_TYPE(i)	(i & 0x60)
    #define SHIFT_LSL	0x00
    #define SHIFT_LSR	0x20
    #define SHIFT_ASR	0x40
    #define SHIFT_RORRRX	0x60
    
    #define BAD_INSTR 	0xdeadc0de