Home
last modified time | relevance | path

Searched refs:imr (Results 1 – 17 of 17) sorted by relevance

/arch/x86/platform/intel-quark/
Dimr.c92 static inline int imr_is_enabled(struct imr_regs *imr) in imr_is_enabled() argument
94 return !(imr->rmask == IMR_READ_ACCESS_ALL && in imr_is_enabled()
95 imr->wmask == IMR_WRITE_ACCESS_ALL && in imr_is_enabled()
96 imr_to_phys(imr->addr_lo) == 0 && in imr_is_enabled()
97 imr_to_phys(imr->addr_hi) == 0); in imr_is_enabled()
110 static int imr_read(struct imr_device *idev, u32 imr_id, struct imr_regs *imr) in imr_read() argument
115 ret = iosf_mbi_read(QRK_MBI_UNIT_MM, MBI_REG_READ, reg++, &imr->addr_lo); in imr_read()
119 ret = iosf_mbi_read(QRK_MBI_UNIT_MM, MBI_REG_READ, reg++, &imr->addr_hi); in imr_read()
123 ret = iosf_mbi_read(QRK_MBI_UNIT_MM, MBI_REG_READ, reg++, &imr->rmask); in imr_read()
127 return iosf_mbi_read(QRK_MBI_UNIT_MM, MBI_REG_READ, reg++, &imr->wmask); in imr_read()
[all …]
DMakefile2 obj-$(CONFIG_INTEL_IMR) += imr.o
/arch/m68k/coldfire/
Dintc.c47 u16 imr; in mcf_setimr() local
48 imr = __raw_readw(MCFSIM_IMR); in mcf_setimr()
49 __raw_writew(imr | (0x1 << index), MCFSIM_IMR); in mcf_setimr()
54 u16 imr; in mcf_clrimr() local
55 imr = __raw_readw(MCFSIM_IMR); in mcf_clrimr()
56 __raw_writew(imr & ~(0x1 << index), MCFSIM_IMR); in mcf_clrimr()
61 u16 imr; in mcf_maskimr() local
62 imr = __raw_readw(MCFSIM_IMR); in mcf_maskimr()
63 imr |= mask; in mcf_maskimr()
64 __raw_writew(imr, MCFSIM_IMR); in mcf_maskimr()
[all …]
Dintc-525x.c23 u32 imr = readl(MCFSIM2_GPIOINTENABLE); in intc2_irq_gpio_mask() local
28 imr &= ~(0x001 << irq); in intc2_irq_gpio_mask()
30 imr &= ~(0x100 << irq); in intc2_irq_gpio_mask()
31 writel(imr, MCFSIM2_GPIOINTENABLE); in intc2_irq_gpio_mask()
36 u32 imr = readl(MCFSIM2_GPIOINTENABLE); in intc2_irq_gpio_unmask() local
41 imr |= (0x001 << irq); in intc2_irq_gpio_unmask()
43 imr |= (0x100 << irq); in intc2_irq_gpio_unmask()
44 writel(imr, MCFSIM2_GPIOINTENABLE); in intc2_irq_gpio_unmask()
49 u32 imr = 0; in intc2_irq_gpio_ack() local
54 imr |= (0x001 << irq); in intc2_irq_gpio_ack()
[all …]
Dintc-5249.c22 u32 imr; in intc2_irq_gpio_mask() local
23 imr = readl(MCFSIM2_GPIOINTENABLE); in intc2_irq_gpio_mask()
24 imr &= ~(0x1 << (d->irq - MCF_IRQ_GPIO0)); in intc2_irq_gpio_mask()
25 writel(imr, MCFSIM2_GPIOINTENABLE); in intc2_irq_gpio_mask()
30 u32 imr; in intc2_irq_gpio_unmask() local
31 imr = readl(MCFSIM2_GPIOINTENABLE); in intc2_irq_gpio_unmask()
32 imr |= (0x1 << (d->irq - MCF_IRQ_GPIO0)); in intc2_irq_gpio_unmask()
33 writel(imr, MCFSIM2_GPIOINTENABLE); in intc2_irq_gpio_unmask()
/arch/mips/sgi-ip30/
Dip30-irq.c51 mask = heart_read(&heart_regs->imr[cpu]); in ip30_error_irq()
60 heart_write(mask & ~(pending), &heart_regs->imr[cpu]); in ip30_error_irq()
94 heart_write(mask, &heart_regs->imr[cpu]); in ip30_error_irq()
105 mask = (heart_read(&heart_regs->imr[cpu]) & in ip30_normal_irq()
150 heart_write(*mask, &heart_regs->imr[hd->cpu]); in ip30_mask_heart_irq()
159 heart_write(*mask, &heart_regs->imr[hd->cpu]); in ip30_mask_and_ack_heart_irq()
169 heart_write(*mask, &heart_regs->imr[hd->cpu]); in ip30_unmask_heart_irq()
259 heart_write(*mask, &heart_regs->imr[cpu]); in ip30_install_ipi()
272 heart_write(HEART_CLR_ALL_MASK, &heart_regs->imr[0]); in arch_init_irq()
273 heart_write(HEART_CLR_ALL_MASK, &heart_regs->imr[1]); in arch_init_irq()
[all …]
/arch/mips/kernel/
Dirq_txx9.c28 u32 imr; member
77 __raw_writel(0, &txx9_ircptr->imr); in txx9_irq_unmask()
78 __raw_writel(irc_elevel, &txx9_ircptr->imr); in txx9_irq_unmask()
93 __raw_writel(0, &txx9_ircptr->imr); in txx9_irq_mask()
94 __raw_writel(irc_elevel, &txx9_ircptr->imr); in txx9_irq_mask()
162 __raw_writel(0, &txx9_ircptr->imr); in txx9_irq_init()
170 __raw_writel(irc_elevel, &txx9_ircptr->imr); in txx9_irq_init()
/arch/m68k/include/asm/
Dmcfintc.h79 static inline void mcf_mapirq2imr(int irq, int imr) in mcf_mapirq2imr() argument
81 mcf_irq2imr[irq] = imr; in mcf_mapirq2imr()
/arch/x86/kvm/
Di8259.c112 return (s->imr & mask) ? -1 : ret; in pic_set_irq1()
137 mask = s->irr & ~s->imr; in pic_get_irq()
198 s->pics[irq >> 3].imr, ret == 0); in kvm_pic_set_irq()
281 s->imr = 0; in kvm_pic_reset()
368 u8 imr_diff = s->imr ^ val, in pic_ioport_write()
370 s->imr = val; in pic_ioport_write()
377 !!(s->imr & (1 << irq))); in pic_ioport_write()
436 ret = s->imr; in pic_ioport_read()
Dirq.h31 u8 imr; /* interrupt mask register */ member
Dtrace.h464 TP_PROTO(__u8 chip, __u8 pin, __u8 elcr, __u8 imr, bool coalesced),
465 TP_ARGS(chip, pin, elcr, imr, coalesced),
471 __field( __u8, imr )
479 __entry->imr = imr;
486 (__entry->imr & (1 << __entry->pin)) ? "|masked":"",
/arch/powerpc/include/asm/
Dmpc52xx_psc.h184 u16 imr; member
187 #define mpc52xx_psc_imr isr_imr.imr
330 u16 imr; /* PSC + 0x24 */ member
/arch/powerpc/sysdev/
Dfsl_rmu.c118 u32 imr; member
904 out_be32(&rmu->msg_regs->imr, 0x001b0060); in fsl_open_inb_mbox()
907 setbits32(&rmu->msg_regs->imr, (get_bitmask_order(entries) - 2) << 12); in fsl_open_inb_mbox()
910 setbits32(&rmu->msg_regs->imr, 0x1); in fsl_open_inb_mbox()
930 out_be32(&rmu->msg_regs->imr, 0); in fsl_close_inb_mbox()
1013 setbits32(&rmu->msg_regs->imr, RIO_MSG_IMR_MI); in fsl_get_inb_message()
/arch/mips/include/asm/sgi/
Dheart.h112 u64 imr[HEART_MAX_CPUS]; /* + 0x10000 */ member
/arch/x86/include/uapi/asm/
Dkvm.h68 __u8 imr; /* interrupt mask register */ member
/arch/arm64/boot/dts/renesas/
Dr8a77951.dtsi2839 imr-lx4@fe860000 {
2840 compatible = "renesas,r8a7795-imr-lx4",
2841 "renesas,imr-lx4";
2849 imr-lx4@fe870000 {
2850 compatible = "renesas,r8a7795-imr-lx4",
2851 "renesas,imr-lx4";
2859 imr-lx4@fe880000 {
2860 compatible = "renesas,r8a7795-imr-lx4",
2861 "renesas,imr-lx4";
2869 imr-lx4@fe890000 {
[all …]
Dr8a77960.dtsi2589 imr-lx4@fe860000 {
2590 compatible = "renesas,r8a7796-imr-lx4",
2591 "renesas,imr-lx4";
2599 imr-lx4@fe870000 {
2600 compatible = "renesas,r8a7796-imr-lx4",
2601 "renesas,imr-lx4";