/linux-6.6.21/arch/x86/platform/intel-quark/ |
D | imr.c | 92 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.6.21/arch/m68k/coldfire/ |
D | intc.c | 47 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 …]
|
D | intc-525x.c | 23 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 …]
|
D | intc-5249.c | 22 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.6.21/arch/mips/sgi-ip30/ |
D | ip30-irq.c | 51 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.6.21/drivers/spi/ |
D | spi-altera-core.c | 78 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.6.21/drivers/parisc/ |
D | gsc.c | 108 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.6.21/drivers/infiniband/hw/mlx5/ |
D | odp.c | 100 struct mlx5_ib_mr *imr, int flags) in populate_klm() argument 107 pklm->key = mr_to_mdev(imr)->mkeys.null_mkey; in populate_klm() 130 lockdep_assert_held(&to_ib_umem_odp(imr->umem)->umem_mutex); in populate_klm() 133 struct mlx5_ib_mr *mtt = xa_load(&imr->implicit_children, idx); in populate_klm() 140 pklm->key = mr_to_mdev(imr)->mkeys.null_mkey; in populate_klm() 194 struct mlx5_ib_mr *imr = mr->parent; in free_implicit_child_mr_work() local 195 struct ib_umem_odp *odp_imr = to_ib_umem_odp(imr->umem); in free_implicit_child_mr_work() 207 mlx5r_deref_odp_mkey(&imr->mmkey); in free_implicit_child_mr_work() 214 struct mlx5_ib_mr *imr = mr->parent; in destroy_unused_implicit_child_mr() local 216 if (!refcount_inc_not_zero(&imr->mmkey.usecount)) in destroy_unused_implicit_child_mr() [all …]
|
/linux-6.6.21/Documentation/devicetree/bindings/media/ |
D | renesas,imr.yaml | 4 $id: http://devicetree.org/schemas/media/renesas,imr.yaml# 25 - renesas,r8a7795-imr-lx4 # R-Car H3 26 - renesas,r8a7796-imr-lx4 # R-Car M3-W 27 - const: renesas,imr-lx4 # R-Car Gen3 60 imr-lx4@fe860000 { 61 compatible = "renesas,r8a7795-imr-lx4", "renesas,imr-lx4";
|
/linux-6.6.21/drivers/tty/serial/ |
D | altera_uart.c | 81 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 …]
|
D | mcf.c | 55 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 …]
|
D | msm_serial.c | 176 unsigned int imr; member 412 msm_port->imr &= ~MSM_UART_IMR_TXLEV; in msm_stop_tx() 413 msm_write(port, msm_port->imr, MSM_UART_IMR); in msm_stop_tx() 425 msm_port->imr |= MSM_UART_IMR_TXLEV; in msm_start_tx() 426 msm_write(port, msm_port->imr, MSM_UART_IMR); in msm_start_tx() 471 msm_port->imr |= MSM_UART_IMR_TXLEV; in msm_complete_tx_dma() 472 msm_write(port, msm_port->imr, MSM_UART_IMR); in msm_complete_tx_dma() 519 msm_port->imr &= ~MSM_UART_IMR_TXLEV; in msm_handle_tx_dma() 520 msm_write(port, msm_port->imr, MSM_UART_IMR); in msm_handle_tx_dma() 641 msm_port->imr &= ~(MSM_UART_IMR_RXLEV | MSM_UART_IMR_RXSTALE); in msm_start_rx_dma() [all …]
|
/linux-6.6.21/sound/soc/fsl/ |
D | mpc5200_dma.c | 118 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(®s->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.6.21/net/ipv4/ |
D | igmp.c | 1827 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() 1852 imr->imr_ifindex = dev->ifindex; in ip_mc_find_dev() 2172 static int __ip_mc_join_group(struct sock *sk, struct ip_mreqn *imr, in __ip_mc_join_group() argument 2175 __be32 addr = imr->imr_multiaddr.s_addr; in __ip_mc_join_group() 2189 in_dev = ip_mc_find_dev(net, imr); in __ip_mc_join_group() [all …]
|
/linux-6.6.21/drivers/rtc/ |
D | rtc-at91sam9.c | 71 u32 imr; member 461 rtc->imr = mr & (AT91_RTT_ALMIEN | AT91_RTT_RTTINCIEN); in at91_rtc_shutdown() 462 rtt_writel(rtc, MR, mr & ~rtc->imr); in at91_rtc_shutdown() 478 rtc->imr = mr & (AT91_RTT_ALMIEN | AT91_RTT_RTTINCIEN); in at91_rtc_suspend() 479 if (rtc->imr) { in at91_rtc_suspend() 491 rtt_writel(rtc, MR, mr & ~rtc->imr); in at91_rtc_suspend() 503 if (rtc->imr) { in at91_rtc_resume() 509 rtt_writel(rtc, MR, mr | rtc->imr); in at91_rtc_resume()
|
/linux-6.6.21/drivers/mfd/ |
D | twl4030-irq.c | 419 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.6.21/arch/m68k/include/asm/ |
D | mcfintc.h | 79 static inline void mcf_mapirq2imr(int irq, int imr) in mcf_mapirq2imr() argument 81 mcf_irq2imr[irq] = imr; in mcf_mapirq2imr()
|
/linux-6.6.21/arch/x86/kvm/ |
D | i8259.c | 114 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.6.21/include/linux/ |
D | igmp.h | 113 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.6.21/arch/mips/kernel/ |
D | irq_txx9.c | 28 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.6.21/drivers/iio/adc/ |
D | twl4030-madc.c | 169 u8 imr; member 447 ret = twl_i2c_read_u8(TWL4030_MODULE_MADC, &val, madc->imr); in twl4030_madc_disable_irq() 450 madc->imr); in twl4030_madc_disable_irq() 454 ret = twl_i2c_write_u8(TWL4030_MODULE_MADC, val, madc->imr); in twl4030_madc_disable_irq() 457 "unable to write imr register 0x%X\n", madc->imr); in twl4030_madc_disable_irq() 479 ret = twl_i2c_read_u8(TWL4030_MODULE_MADC, &imr_val, madc->imr); in twl4030_madc_threaded_irq_handler() 482 madc->imr); in twl4030_madc_threaded_irq_handler() 785 madc->imr = madc->use_second_irq ? TWL4030_MADC_IMR2 : in twl4030_madc_probe()
|
/linux-6.6.21/drivers/net/wireless/realtek/rtw89/ |
D | mac.c | 652 u32 dmac_err, imr, isr; in rtw89_mac_suppress_log() local 662 imr = rtw89_read32(rtwdev, R_AX_TXPKTCTL_B0_ERRFLAG_IMR); in rtw89_mac_suppress_log() 666 ((isr & imr) & B_AX_B0_ISR_ERR_CMDPSR_FRZTO)) { in rtw89_mac_suppress_log() 3097 const struct rtw89_imr_info *imr = rtwdev->chip->imr_info; in rtw89_wdrls_imr_enable() local 3100 rtw89_write32_set(rtwdev, R_AX_WDRLS_ERR_IMR, imr->wdrls_imr_set); in rtw89_wdrls_imr_enable() 3105 const struct rtw89_imr_info *imr = rtwdev->chip->imr_info; in rtw89_wsec_imr_enable() local 3107 rtw89_write32_set(rtwdev, imr->wsec_imr_reg, imr->wsec_imr_set); in rtw89_wsec_imr_enable() 3113 const struct rtw89_imr_info *imr = rtwdev->chip->imr_info; in rtw89_mpdu_trx_imr_enable() local 3128 imr->mpdu_tx_imr_set); in rtw89_mpdu_trx_imr_enable() 3135 imr->mpdu_rx_imr_set); in rtw89_mpdu_trx_imr_enable() [all …]
|
/linux-6.6.21/drivers/gpu/drm/i915/ |
D | i915_irq.h | 45 void gen3_irq_reset(struct intel_uncore *uncore, i915_reg_t imr, 49 i915_reg_t imr, u32 imr_val,
|
/linux-6.6.21/tools/testing/selftests/net/ |
D | timestamping.c | 331 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.6.21/drivers/gpu/drm/atmel-hlcdc/ |
D | atmel_hlcdc_dc.c | 540 unsigned int imr, isr; in atmel_hlcdc_dc_irq_handler() local 543 regmap_read(dc->hlcdc->regmap, ATMEL_HLCDC_IMR, &imr); in atmel_hlcdc_dc_irq_handler() 545 status = imr & isr; in atmel_hlcdc_dc_irq_handler() 798 regmap_read(regmap, ATMEL_HLCDC_IMR, &dc->suspend.imr); in atmel_hlcdc_dc_drm_suspend() 799 regmap_write(regmap, ATMEL_HLCDC_IDR, dc->suspend.imr); in atmel_hlcdc_dc_drm_suspend() 811 regmap_write(dc->hlcdc->regmap, ATMEL_HLCDC_IER, dc->suspend.imr); in atmel_hlcdc_dc_drm_resume()
|