/linux-2.4.37.9/arch/m68k/bvme6000/ |
D | config.c | 200 unsigned char msr = rtc->msr & 0xc0; in bvme6000_timer_int() local 202 rtc->msr = msr | 0x20; /* Ack the interrupt */ in bvme6000_timer_int() 219 unsigned char msr = rtc->msr & 0xc0; in bvme6000_sched_init() local 221 rtc->msr = 0; /* Ensure timer registers accessible */ in bvme6000_sched_init() 232 rtc->msr = 0x40; /* Access int.cntrl, etc */ in bvme6000_sched_init() 237 rtc->msr = 0; /* Access timer 1 control */ in bvme6000_sched_init() 240 rtc->msr = msr; in bvme6000_sched_init() 261 unsigned char msr = rtc->msr & 0xc0; in bvme6000_gettimeoffset() local 265 rtc->msr = 0; /* Ensure timer registers accessible */ in bvme6000_gettimeoffset() 269 t1int = rtc->msr & 0x20; in bvme6000_gettimeoffset() [all …]
|
D | rtc.c | 45 unsigned char msr; in rtc_ioctl() local 55 msr = rtc->msr & 0xc0; in rtc_ioctl() 56 rtc->msr = 0x40; in rtc_ioctl() 69 rtc->msr = msr; in rtc_ioctl() 113 msr = rtc->msr & 0xc0; in rtc_ioctl() 114 rtc->msr = 0x40; in rtc_ioctl() 128 rtc->msr = msr; in rtc_ioctl()
|
/linux-2.4.37.9/include/asm-ppc64/ |
D | hw_irq.h | 46 unsigned long msr; in __cli() local 47 msr = mfmsr(); in __cli() 48 mtmsrd(msr & ~MSR_EE); in __cli() 54 unsigned long msr; in __sti() local 56 msr = mfmsr(); in __sti() 57 mtmsrd(msr | MSR_EE); in __sti() 62 unsigned long msr; in __do_save_and_cli() local 63 msr = mfmsr(); in __do_save_and_cli() 64 *flags = msr; in __do_save_and_cli() 65 mtmsrd(msr & ~MSR_EE); in __do_save_and_cli()
|
D | ptrace.h | 34 PPC_REG msr; member 51 PPC_REG_32 msr; member 78 #define user_mode(regs) ((((regs)->msr) >> MSR_PR_LG) & 0x1)
|
/linux-2.4.37.9/arch/ppc64/kernel/ |
D | process.c | 84 if (current->thread.regs && (current->thread.regs->msr & MSR_FP)) in enable_kernel_fp() 96 if (regs->msr & MSR_FP) in dump_fpu() 106 if (regs->msr & MSR_VEC) in dump_altivec() 117 if (current->thread.regs && (current->thread.regs->msr & MSR_VEC)) in enable_kernel_altivec() 154 if ( prev->thread.regs && (prev->thread.regs->msr & MSR_FP) ) in _switch_to() 168 if ((prev->thread.regs && (prev->thread.regs->msr & MSR_VEC))) in _switch_to() 187 regs->msr, regs->msr&MSR_EE ? 1 : 0, regs->msr&MSR_PR ? 1 : 0, in show_regs() 188 regs->msr & MSR_FP ? 1 : 0,regs->msr&MSR_ME ? 1 : 0, in show_regs() 189 regs->msr&MSR_IR ? 1 : 0, in show_regs() 190 regs->msr&MSR_DR ? 1 : 0); in show_regs() [all …]
|
D | ptrace32.c | 97 data = (data & MSR_DEBUGCHANGE) | (task->thread.regs->msr & ~MSR_DEBUGCHANGE); in put_reg() 109 regs->msr |= MSR_SE; in set_single_step() 117 regs->msr &= ~MSR_SE; in clear_single_step() 218 if (child->thread.regs->msr & MSR_FP) in sys32_ptrace() 262 if (child->thread.regs->msr & MSR_FP) in sys32_ptrace() 332 if (child->thread.regs->msr & MSR_FP) in sys32_ptrace() 371 if (child->thread.regs->msr & MSR_FP) in sys32_ptrace() 376 | (child->thread.regs->msr & ~MSR_DEBUGCHANGE); in sys32_ptrace() 467 if (child->thread.regs->msr & MSR_FP) in sys32_ptrace() 485 if (child->thread.regs->msr & MSR_FP) in sys32_ptrace() [all …]
|
D | ptrace.c | 63 | (task->thread.regs->msr & ~MSR_DEBUGCHANGE); in put_reg() 97 regs->msr |= MSR_SE; in set_single_step() 105 regs->msr &= ~MSR_SE; in clear_single_step() 185 if (child->thread.regs->msr & MSR_FP) in sys_ptrace() 218 if (child->thread.regs->msr & MSR_FP) in sys_ptrace() 311 if (child->thread.regs->msr & MSR_FP) in sys_ptrace() 329 if (child->thread.regs->msr & MSR_FP) in sys_ptrace() 344 if (child->thread.regs->msr & MSR_VEC) in sys_ptrace() 353 if (child->thread.regs->msr & MSR_VEC) in sys_ptrace()
|
D | traps.c | 194 } else if ((regs->msr & MSR_RI) && in recover_mce() 244 unsigned long long srr1 = regs->msr; in MachineCheckException() 266 printk(KERN_EMERG "Caused by (from SRR1=%lx): ", regs->msr); in MachineCheckException() 295 regs->nip, regs->msr, regs->trap); in UnknownException() 325 if (regs->msr & MSR_FP) in parse_fpe() 377 if (regs->msr & 0x100000) { in ProgramCheckException() 381 } else if (regs->msr & 0x40000) { in ProgramCheckException() 389 } else if (regs->msr & 0x20000) { in ProgramCheckException() 438 if (regs->msr & MSR_VEC) in AltiVecAssistException() 466 regs->msr &= ~MSR_SE; /* Turn off 'trace' bit */ in SingleStepException()
|
D | ppc-stub.c | 467 unsigned long msr; in handle_exception() local 487 msr = get_msr(); in handle_exception() 488 set_msr(msr & ~MSR_EE); /* disable interrupts */ in handle_exception() 582 ptr = mem2hex((char *)®s->msr, ptr, 4); in handle_exception() 608 ptr = hex2mem(ptr, (char *)®s->msr, 4); in handle_exception() 674 set_msr(msr); in handle_exception() 682 regs->msr |= MSR_SE; in handle_exception() 684 set_msr(msr | MSR_SE); in handle_exception()
|
/linux-2.4.37.9/include/asm-x86_64/ |
D | msr.h | 11 #define rdmsr(msr,val1,val2) \ argument 14 : "c" (msr)) 17 #define rdmsrl(msr,val) do { unsigned long a__,b__; \ argument 20 : "c" (msr)); \ 24 #define wrmsr(msr,val1,val2) \ argument 27 : "c" (msr), "a" (val1), "d" (val2)) 29 #define wrmsrl(msr,val) wrmsr(msr,(__u32)((__u64)(val)),((__u64)(val))>>32) argument 32 #define checking_wrmsrl(msr,val) ({ int ret__; \ argument 43 : "c" (msr), "0" ((__u32)val), "d" ((val)>>32), "i" (-EFAULT));\
|
/linux-2.4.37.9/arch/ppc/kernel/ |
D | process.c | 144 if (regs->msr & MSR_VEC) in dump_altivec() 154 if (current->thread.regs && (current->thread.regs->msr & MSR_VEC)) in enable_kernel_altivec() 168 if (current->thread.regs && (current->thread.regs->msr & MSR_FP)) in enable_kernel_fp() 180 if (regs->msr & MSR_FP) in dump_fpu() 210 if ( prev->thread.regs && (prev->thread.regs->msr & MSR_FP) ) in _switch_to() 224 if ((prev->thread.regs && (prev->thread.regs->msr & MSR_VEC))) in _switch_to() 235 new->thread.regs->msr |= MSR_VEC; in _switch_to() 249 regs->msr, regs->msr&MSR_EE ? 1 : 0, regs->msr&MSR_PR ? 1 : 0, in show_regs() 250 regs->msr & MSR_FP ? 1 : 0,regs->msr&MSR_ME ? 1 : 0, in show_regs() 251 regs->msr&MSR_IR ? 1 : 0, in show_regs() [all …]
|
D | ptrace.c | 67 | (task->thread.regs->msr & ~MSR_DEBUGCHANGE); in put_reg() 137 regs->msr |= MSR_DE; in set_single_step() 141 regs->msr |= MSR_SE; in set_single_step() 151 regs->msr &= ~MSR_DE; in clear_single_step() 155 regs->msr &= ~MSR_SE; in clear_single_step() 237 && child->thread.regs->msr & MSR_FP) in sys_ptrace() 271 && child->thread.regs->msr & MSR_FP) in sys_ptrace() 294 child->thread.regs->msr |= MSR_DE; in sys_ptrace() 338 if (child->thread.regs->msr & MSR_VEC) in sys_ptrace() 347 if (child->thread.regs->msr & MSR_VEC) in sys_ptrace()
|
D | traps.c | 135 unsigned long msr = regs->msr; in check_io_access() local 137 if (((msr & 0xffff0000) == 0 || (msr & (0x80000 | 0x40000))) in check_io_access() 185 #define get_reason(regs) ((regs)->msr) 191 #define single_stepping(regs) ((regs)->msr & MSR_SE) 192 #define clear_single_step(regs) ((regs)->msr &= ~MSR_SE) 304 regs->nip, regs->msr, regs->trap, print_tainted()); in UnknownException() 402 if (regs->msr & MSR_FP) in ProgramCheckException() 444 regs->msr &= ~MSR_SE; /* Turn off 'trace' bit */ in SingleStepException() 528 regs->msr &= ~MSR_DE; /* Turn off 'debug' bit */ in DebugException() 554 regs->nip, regs->msr, regs->trap, print_tainted()); in TAUException() [all …]
|
D | ppc-stub.c | 465 unsigned int msr; in handle_exception() local 490 msr = mfmsr(); in handle_exception() 491 mtmsr(msr & ~MSR_EE); /* disable interrupts */ in handle_exception() 585 ptr = mem2hex((char *)®s->msr, ptr, 4); in handle_exception() 611 ptr = hex2mem(ptr, (char *)®s->msr, 4); in handle_exception() 677 mtmsr(msr); in handle_exception() 685 regs->msr |= MSR_SE; in handle_exception()
|
D | m8xx_setup.c | 221 uint msr; in m8xx_restart() local 228 __asm__("mfmsr %0" : "=r" (msr) ); in m8xx_restart() 229 msr &= ~0x1000; in m8xx_restart() 230 __asm__("mtmsr %0" : : "r" (msr) ); in m8xx_restart()
|
D | signal.c | 237 if (regs->msr & MSR_FP) in save_user_regs() 249 if (regs->msr & MSR_VEC) in save_user_regs() 256 if (__put_user(regs->msr | MSR_VEC, &frame->mc_gregs[PT_MSR])) in save_user_regs() 290 unsigned long msr; in restore_user_regs() local 303 regs->msr &= ~MSR_FP; in restore_user_regs() 311 regs->msr &= ~MSR_VEC; in restore_user_regs() 312 if (!__get_user(msr, &sr->mc_gregs[PT_MSR]) && (msr & MSR_VEC) != 0) { in restore_user_regs()
|
/linux-2.4.37.9/drivers/char/ |
D | ec3104_keyb.c | 246 u8 msr; in e5_wait_for_cts() local 249 msr = ctrl_inb(EC3104_SER4_MSR); in e5_wait_for_cts() 250 } while (!(msr & MSR_CTS)); in e5_wait_for_cts() 377 u8 msr, lsr; in ec3104_keyb_interrupt() local 381 msr = ctrl_inb(EC3104_SER4_MSR); in ec3104_keyb_interrupt() 383 if ((msr & MSR_CTS) && !(k->last_msr & MSR_CTS)) { in ec3104_keyb_interrupt() 390 } else if ((!(msr & MSR_CTS)) && (k->last_msr & MSR_CTS)) { in ec3104_keyb_interrupt() 400 k->last_msr = msr; in ec3104_keyb_interrupt() 411 u8 msr, lsr; in ec3104_keyb_clear_state() local 419 msr = ctrl_inb(EC3104_SER4_MSR); in ec3104_keyb_clear_state() [all …]
|
/linux-2.4.37.9/arch/i386/kernel/ |
D | geode-mfgpt.c | 45 u32 msr, mask, value, dummy; in geode_mfgpt_toggle_event() local 53 msr = MSR_MFGPT_NR; in geode_mfgpt_toggle_event() 58 msr = MSR_MFGPT_NR; in geode_mfgpt_toggle_event() 63 msr = MSR_MFGPT_IRQ; in geode_mfgpt_toggle_event() 71 rdmsr(msr, value, dummy); in geode_mfgpt_toggle_event() 78 wrmsr(msr, value, dummy); in geode_mfgpt_toggle_event()
|
/linux-2.4.37.9/include/asm-i386/ |
D | msr.h | 10 #define rdmsr(msr,val1,val2) \ argument 13 : "c" (msr)) 15 #define wrmsr(msr,val1,val2) \ argument 18 : "c" (msr), "a" (val1), "d" (val2))
|
/linux-2.4.37.9/ipc/ |
D | msg.c | 272 struct msg_receiver* msr; in expunge_all() local 274 msr = list_entry(tmp,struct msg_receiver,r_list); in expunge_all() 276 msr->r_msg = ERR_PTR(res); in expunge_all() 277 wake_up_process(msr->r_tsk); in expunge_all() 606 struct msg_receiver* msr; in pipelined_send() local 607 msr = list_entry(tmp,struct msg_receiver,r_list); in pipelined_send() 609 if(testmsg(msg,msr->r_msgtype,msr->r_mode)) { in pipelined_send() 610 list_del(&msr->r_list); in pipelined_send() 611 if(msr->r_maxsize < msg->m_ts) { in pipelined_send() 612 msr->r_msg = ERR_PTR(-E2BIG); in pipelined_send() [all …]
|
/linux-2.4.37.9/drivers/usb/serial/ |
D | mct_u232.c | 297 static int mct_u232_get_modem_stat(struct usb_serial *serial, unsigned char *msr) in mct_u232_get_modem_stat() argument 303 0, 0, msr, MCT_U232_GET_MODEM_STAT_SIZE, in mct_u232_get_modem_stat() 307 *msr = 0; in mct_u232_get_modem_stat() 309 dbg("get_modem_stat: 0x%x", *msr); in mct_u232_get_modem_stat() 313 static void mct_u232_msr_to_state(unsigned int *control_state, unsigned char msr) in mct_u232_msr_to_state() argument 316 if (msr & MCT_U232_MSR_DSR) in mct_u232_msr_to_state() 320 if (msr & MCT_U232_MSR_CTS) in mct_u232_msr_to_state() 324 if (msr & MCT_U232_MSR_RI) in mct_u232_msr_to_state() 328 if (msr & MCT_U232_MSR_CD) in mct_u232_msr_to_state() 332 dbg("msr_to_state: msr=0x%x ==> state=0x%x", msr, *control_state); in mct_u232_msr_to_state()
|
/linux-2.4.37.9/include/asm-arm/proc-armv/ |
D | assembler.h | 44 msr cpsr_c, \temp 52 msr cpsr_c, \oldcpsr
|
/linux-2.4.37.9/include/asm-ppc/ |
D | ptrace.h | 24 unsigned long msr; member 46 #define user_mode(regs) (((regs)->msr & MSR_PR) != 0)
|
/linux-2.4.37.9/drivers/net/hamradio/ |
D | baycom_ser_fdx.c | 287 unsigned char iir, msr; in ser12_interrupt() local 297 msr = inb(MSR(dev->base_addr)); in ser12_interrupt() 299 if ((msr & 8) && bc->opt_dcd) in ser12_interrupt() 300 hdlcdrv_setdcd(&bc->hdrv, !((msr ^ bc->opt_dcd) & 0x80)); in ser12_interrupt() 331 msr = inb(MSR(dev->base_addr)); in ser12_interrupt() 333 if ((msr & 8) && bc->opt_dcd) in ser12_interrupt() 334 hdlcdrv_setdcd(&bc->hdrv, !((msr ^ bc->opt_dcd) & 0x80)); in ser12_interrupt() 339 ser12_rx(dev, bc, &tv, msr & 0x10); /* CTS */ in ser12_interrupt()
|
/linux-2.4.37.9/arch/arm/kernel/ |
D | entry-header.S | 77 msr cpsr_c, \reg 79 msr cpsr_c, \mode 108 msr spsr, r1 @ save in spsr_svc 121 msr spsr, r1 @ save in spsr_svc
|