Home
last modified time | relevance | path

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

1234

/linux-6.12.1/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 …]
/linux-6.12.1/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()
/linux-6.12.1/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 …]
/linux-6.12.1/drivers/spi/
Dspi-altera-core.c78 hw->imr &= ~ALTERA_SPI_CONTROL_SSO_MSK; in altera_spi_set_cs()
79 altr_spi_writel(hw, ALTERA_SPI_CONTROL, hw->imr); in altera_spi_set_cs()
84 hw->imr |= ALTERA_SPI_CONTROL_SSO_MSK; in altera_spi_set_cs()
85 altr_spi_writel(hw, ALTERA_SPI_CONTROL, hw->imr); in altera_spi_set_cs()
156 hw->imr |= ALTERA_SPI_CONTROL_IRRDY_MSK; in altera_spi_txrx()
157 altr_spi_writel(hw, ALTERA_SPI_CONTROL, hw->imr); in altera_spi_txrx()
194 hw->imr &= ~ALTERA_SPI_CONTROL_IRRDY_MSK; in altera_spi_irq()
195 altr_spi_writel(hw, ALTERA_SPI_CONTROL, hw->imr); in altera_spi_irq()
213 hw->imr = 0; /* disable spi interrupts */ in altera_spi_init_host()
214 altr_spi_writel(hw, ALTERA_SPI_CONTROL, hw->imr); in altera_spi_init_host()
/linux-6.12.1/drivers/gpu/drm/xe/display/ext/
Di915_irq.c10 void gen3_irq_reset(struct intel_uncore *uncore, i915_reg_t imr, in gen3_irq_reset() argument
13 intel_uncore_write(uncore, imr, 0xffffffff); in gen3_irq_reset()
14 intel_uncore_posting_read(uncore, imr); in gen3_irq_reset()
46 i915_reg_t imr, u32 imr_val, in gen3_irq_init() argument
53 intel_uncore_write(uncore, imr, imr_val); in gen3_irq_init()
54 intel_uncore_posting_read(uncore, imr); in gen3_irq_init()
/linux-6.12.1/drivers/parisc/
Dgsc.c108 u32 imr; in gsc_asic_mask_irq() local
111 irq_dev->name, imr); in gsc_asic_mask_irq()
114 imr = gsc_readl(irq_dev->hpa + OFFSET_IMR); in gsc_asic_mask_irq()
115 imr &= ~(1 << local_irq); in gsc_asic_mask_irq()
116 gsc_writel(imr, irq_dev->hpa + OFFSET_IMR); in gsc_asic_mask_irq()
123 u32 imr; in gsc_asic_unmask_irq() local
126 irq_dev->name, imr); in gsc_asic_unmask_irq()
129 imr = gsc_readl(irq_dev->hpa + OFFSET_IMR); in gsc_asic_unmask_irq()
130 imr |= 1 << local_irq; in gsc_asic_unmask_irq()
131 gsc_writel(imr, irq_dev->hpa + OFFSET_IMR); in gsc_asic_unmask_irq()
/linux-6.12.1/drivers/infiniband/hw/mlx5/
Dodp.c108 struct mlx5_ib_mr *imr, int flags) in populate_klm() argument
110 struct mlx5_core_dev *dev = mr_to_mdev(imr)->mdev; in populate_klm()
114 cpu_to_be32(imr->null_mmkey.key) : in populate_klm()
115 mr_to_mdev(imr)->mkeys.null_mkey; in populate_klm()
145 lockdep_assert_held(&to_ib_umem_odp(imr->umem)->umem_mutex); in populate_klm()
148 struct mlx5_ib_mr *mtt = xa_load(&imr->implicit_children, idx); in populate_klm()
209 struct mlx5_ib_mr *imr = mr->parent; in free_implicit_child_mr_work() local
210 struct ib_umem_odp *odp_imr = to_ib_umem_odp(imr->umem); in free_implicit_child_mr_work()
222 mlx5r_deref_odp_mkey(&imr->mmkey); in free_implicit_child_mr_work()
229 struct mlx5_ib_mr *imr = mr->parent; in destroy_unused_implicit_child_mr() local
[all …]
/linux-6.12.1/drivers/tty/serial/
Daltera_uart.c81 unsigned short imr; /* Local IMR mirror */ member
114 unsigned short imr = pp->imr; in altera_uart_update_ctrl_reg() local
121 imr &= ALTERA_UART_CONTROL_TRBK_MSK | ALTERA_UART_CONTROL_RTS_MSK; in altera_uart_update_ctrl_reg()
123 altera_uart_writel(&pp->port, imr, ALTERA_UART_CONTROL_REG); in altera_uart_update_ctrl_reg()
132 pp->imr |= ALTERA_UART_CONTROL_RTS_MSK; in altera_uart_set_mctrl()
134 pp->imr &= ~ALTERA_UART_CONTROL_RTS_MSK; in altera_uart_set_mctrl()
142 pp->imr |= ALTERA_UART_CONTROL_TRDY_MSK; in altera_uart_start_tx()
150 pp->imr &= ~ALTERA_UART_CONTROL_TRDY_MSK; in altera_uart_stop_tx()
158 pp->imr &= ~ALTERA_UART_CONTROL_RRDY_MSK; in altera_uart_stop_rx()
169 pp->imr |= ALTERA_UART_CONTROL_TRBK_MSK; in altera_uart_break_ctl()
[all …]
Dmcf.c55 unsigned char imr; /* Local IMR mirror */ member
108 pp->imr |= MCFUART_UIR_TXREADY; in mcf_start_tx()
109 writeb(pp->imr, port->membase + MCFUART_UIMR); in mcf_start_tx()
118 pp->imr &= ~MCFUART_UIR_TXREADY; in mcf_stop_tx()
119 writeb(pp->imr, port->membase + MCFUART_UIMR); in mcf_stop_tx()
128 pp->imr &= ~MCFUART_UIR_RXREADY; in mcf_stop_rx()
129 writeb(pp->imr, port->membase + MCFUART_UIMR); in mcf_stop_rx()
164 pp->imr = MCFUART_UIR_RXREADY; in mcf_startup()
165 writeb(pp->imr, port->membase + MCFUART_UIMR); in mcf_startup()
182 pp->imr = 0; in mcf_shutdown()
[all …]
Dmsm_serial.c182 unsigned int imr; member
427 msm_port->imr &= ~MSM_UART_IMR_TXLEV; in msm_stop_tx()
428 msm_write(port, msm_port->imr, MSM_UART_IMR); in msm_stop_tx()
440 msm_port->imr |= MSM_UART_IMR_TXLEV; in msm_start_tx()
441 msm_write(port, msm_port->imr, MSM_UART_IMR); in msm_start_tx()
486 msm_port->imr |= MSM_UART_IMR_TXLEV; in msm_complete_tx_dma()
487 msm_write(port, msm_port->imr, MSM_UART_IMR); in msm_complete_tx_dma()
536 msm_port->imr &= ~MSM_UART_IMR_TXLEV; in msm_handle_tx_dma()
537 msm_write(port, msm_port->imr, MSM_UART_IMR); in msm_handle_tx_dma()
656 msm_port->imr &= ~(MSM_UART_IMR_RXLEV | MSM_UART_IMR_RXSTALE); in msm_start_rx_dma()
[all …]
/linux-6.12.1/sound/soc/fsl/
Dmpc5200_dma.c118 u16 imr; in psc_dma_trigger() local
178 imr = 0; in psc_dma_trigger()
180 imr |= MPC52xx_PSC_IMR_TXEMP; in psc_dma_trigger()
182 imr |= MPC52xx_PSC_IMR_ORERR; in psc_dma_trigger()
183 out_be16(&regs->isr_imr.imr, psc_dma->imr | imr); in psc_dma_trigger()
258 out_be16(&psc_dma->psc_regs->isr_imr.imr, psc_dma->imr); in psc_dma_close()
375 out_be16(&psc_dma->psc_regs->isr_imr.imr, psc_dma->imr); in mpc5200_audio_dma_create()
/linux-6.12.1/net/ipv4/
Digmp.c1827 static struct in_device *ip_mc_find_dev(struct net *net, struct ip_mreqn *imr) in ip_mc_find_dev() argument
1832 if (imr->imr_ifindex) { in ip_mc_find_dev()
1833 idev = inetdev_by_index(net, imr->imr_ifindex); in ip_mc_find_dev()
1836 if (imr->imr_address.s_addr) { in ip_mc_find_dev()
1837 dev = __ip_dev_find(net, imr->imr_address.s_addr, false); in ip_mc_find_dev()
1844 imr->imr_multiaddr.s_addr, in ip_mc_find_dev()
1853 imr->imr_ifindex = dev->ifindex; in ip_mc_find_dev()
2173 static int __ip_mc_join_group(struct sock *sk, struct ip_mreqn *imr, in __ip_mc_join_group() argument
2176 __be32 addr = imr->imr_multiaddr.s_addr; in __ip_mc_join_group()
2190 in_dev = ip_mc_find_dev(net, imr); in __ip_mc_join_group()
[all …]
/linux-6.12.1/drivers/rtc/
Drtc-at91sam9.c71 u32 imr; member
462 rtc->imr = mr & (AT91_RTT_ALMIEN | AT91_RTT_RTTINCIEN); in at91_rtc_shutdown()
463 rtt_writel(rtc, MR, mr & ~rtc->imr); in at91_rtc_shutdown()
479 rtc->imr = mr & (AT91_RTT_ALMIEN | AT91_RTT_RTTINCIEN); in at91_rtc_suspend()
480 if (rtc->imr) { in at91_rtc_suspend()
492 rtt_writel(rtc, MR, mr & ~rtc->imr); in at91_rtc_suspend()
504 if (rtc->imr) { in at91_rtc_resume()
510 rtt_writel(rtc, MR, mr | rtc->imr); in at91_rtc_resume()
/linux-6.12.1/drivers/mfd/
Dtwl4030-irq.c419 u32 imr; member
441 agent->imr |= BIT(data->irq - agent->irq_base); in twl4030_sih_mask()
449 agent->imr &= ~BIT(data->irq - agent->irq_base); in twl4030_sih_unmask()
483 } imr; in twl4030_sih_bus_sync_unlock() local
486 imr.word = cpu_to_le32(agent->imr); in twl4030_sih_bus_sync_unlock()
490 status = twl_i2c_write(sih->module, imr.bytes, in twl4030_sih_bus_sync_unlock()
640 agent->imr = ~0; in twl4030_sih_setup()
/linux-6.12.1/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()
/linux-6.12.1/arch/x86/kvm/
Di8259.c114 return (s->imr & mask) ? -1 : ret; in pic_set_irq1()
139 mask = s->irr & ~s->imr; in pic_get_irq()
200 s->pics[irq >> 3].imr, ret == 0); in kvm_pic_set_irq()
282 s->imr = 0; in kvm_pic_reset()
369 u8 imr_diff = s->imr ^ val, in pic_ioport_write()
371 s->imr = val; in pic_ioport_write()
378 !!(s->imr & (1 << irq))); in pic_ioport_write()
440 ret = s->imr; in pic_ioport_read()
/linux-6.12.1/include/linux/
Digmp.h113 extern int ip_mc_join_group(struct sock *sk, struct ip_mreqn *imr);
114 extern int ip_mc_join_group_ssm(struct sock *sk, struct ip_mreqn *imr,
116 extern int ip_mc_leave_group(struct sock *sk, struct ip_mreqn *imr);
/linux-6.12.1/drivers/iio/adc/
Dtwl4030-madc.c170 u8 imr; member
448 ret = twl_i2c_read_u8(TWL4030_MODULE_MADC, &val, madc->imr); in twl4030_madc_disable_irq()
451 madc->imr); in twl4030_madc_disable_irq()
455 ret = twl_i2c_write_u8(TWL4030_MODULE_MADC, val, madc->imr); in twl4030_madc_disable_irq()
458 "unable to write imr register 0x%X\n", madc->imr); in twl4030_madc_disable_irq()
480 ret = twl_i2c_read_u8(TWL4030_MODULE_MADC, &imr_val, madc->imr); in twl4030_madc_threaded_irq_handler()
483 madc->imr); in twl4030_madc_threaded_irq_handler()
786 madc->imr = madc->use_second_irq ? TWL4030_MADC_IMR2 : in twl4030_madc_probe()
/linux-6.12.1/arch/mips/kernel/
Dirq_txx9.c28 u32 imr; member
149 __raw_writel(0, &txx9_ircptr->imr); in txx9_irq_init()
157 __raw_writel(irc_elevel, &txx9_ircptr->imr); in txx9_irq_init()
/linux-6.12.1/tools/testing/selftests/net/
Dtimestamping.c331 struct ip_mreq imr; in main() local
431 imr.imr_multiaddr.s_addr = iaddr.s_addr; in main()
432 imr.imr_interface.s_addr = in main()
435 &imr.imr_interface.s_addr, sizeof(struct in_addr)) < 0) in main()
440 &imr, sizeof(struct ip_mreq)) < 0) in main()
/linux-6.12.1/drivers/gpu/drm/i915/
Di915_irq.h45 void gen3_irq_reset(struct intel_uncore *uncore, i915_reg_t imr,
49 i915_reg_t imr, u32 imr_val,
/linux-6.12.1/drivers/net/wireless/realtek/rtw89/
Dmac.c782 u32 dmac_err, imr, isr; in rtw89_mac_suppress_log() local
792 imr = rtw89_read32(rtwdev, R_AX_TXPKTCTL_B0_ERRFLAG_IMR); in rtw89_mac_suppress_log()
796 ((isr & imr) & B_AX_B0_ISR_ERR_CMDPSR_FRZTO)) { in rtw89_mac_suppress_log()
3380 const struct rtw89_imr_info *imr = rtwdev->chip->imr_info; in rtw89_wdrls_imr_enable() local
3383 rtw89_write32_set(rtwdev, R_AX_WDRLS_ERR_IMR, imr->wdrls_imr_set); in rtw89_wdrls_imr_enable()
3388 const struct rtw89_imr_info *imr = rtwdev->chip->imr_info; in rtw89_wsec_imr_enable() local
3390 rtw89_write32_set(rtwdev, imr->wsec_imr_reg, imr->wsec_imr_set); in rtw89_wsec_imr_enable()
3396 const struct rtw89_imr_info *imr = rtwdev->chip->imr_info; in rtw89_mpdu_trx_imr_enable() local
3411 imr->mpdu_tx_imr_set); in rtw89_mpdu_trx_imr_enable()
3418 imr->mpdu_rx_imr_set); in rtw89_mpdu_trx_imr_enable()
[all …]
/linux-6.12.1/drivers/gpu/drm/i915/gvt/
Dinterrupt.c199 u32 imr = *(u32 *)p_data; in intel_vgpu_reg_imr_handler() local
201 trace_write_ir(vgpu->id, "IMR", reg, imr, vgpu_vreg(vgpu, reg), in intel_vgpu_reg_imr_handler()
202 (vgpu_vreg(vgpu, reg) ^ imr)); in intel_vgpu_reg_imr_handler()
204 vgpu_vreg(vgpu, reg) = imr; in intel_vgpu_reg_imr_handler()
387 u32 imr = regbase_to_imr( in update_upstream_irq() local
390 vgpu_vreg(vgpu, iir) |= (set_bits & ~vgpu_vreg(vgpu, imr)); in update_upstream_irq()

1234