/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
D | odp.c | 98 struct mlx5_ib_mr *imr, int flags) in populate_klm() argument 105 pklm->key = cpu_to_be32(imr->dev->null_mkey); in populate_klm() 131 lockdep_assert_held(&to_ib_umem_odp(imr->umem)->umem_mutex); in populate_klm() 132 lockdep_assert_held(&imr->dev->odp_srcu); in populate_klm() 135 struct mlx5_ib_mr *mtt = xa_load(&imr->implicit_children, idx); in populate_klm() 142 pklm->key = cpu_to_be32(imr->dev->null_mkey); in populate_klm() 215 struct mlx5_ib_mr *imr = mr->parent; in free_implicit_child_mr() local 216 struct ib_umem_odp *odp_imr = to_ib_umem_odp(imr->umem); in free_implicit_child_mr() 239 if (atomic_dec_and_test(&imr->num_deferred_work)) in free_implicit_child_mr() 240 wake_up(&imr->q_deferred_work); in free_implicit_child_mr() [all …]
|
/kernel/linux/linux-5.10/arch/mips/sgi-ip30/ |
D | ip30-irq.c | 50 mask = heart_read(&heart_regs->imr[cpu]); in ip30_error_irq() 59 heart_write(mask & ~(pending), &heart_regs->imr[cpu]); in ip30_error_irq() 93 heart_write(mask, &heart_regs->imr[cpu]); in ip30_error_irq() 104 mask = (heart_read(&heart_regs->imr[cpu]) & in ip30_normal_irq() 151 heart_write(*mask, &heart_regs->imr[hd->cpu]); in ip30_mask_heart_irq() 160 heart_write(*mask, &heart_regs->imr[hd->cpu]); in ip30_mask_and_ack_heart_irq() 170 heart_write(*mask, &heart_regs->imr[hd->cpu]); in ip30_unmask_heart_irq() 260 heart_write(*mask, &heart_regs->imr[cpu]); in ip30_install_ipi() 273 heart_write(HEART_CLR_ALL_MASK, &heart_regs->imr[0]); in arch_init_irq() 274 heart_write(HEART_CLR_ALL_MASK, &heart_regs->imr[1]); in arch_init_irq() [all …]
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/media/ |
D | renesas,imr.txt | 11 - compatible: "renesas,<soctype>-imr-lx4", "renesas,imr-lx4" as a fallback for 14 - "renesas,r8a7795-imr-lx4" for R-Car H3, 15 - "renesas,r8a7796-imr-lx4" for R-Car M3-W. 24 imr-lx4@fe860000 { 25 compatible = "renesas,r8a7795-imr-lx4", "renesas,imr-lx4";
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/tty/serial/ |
D | altera_jtaguart.c | 59 unsigned long imr; /* Local IMR mirror */ member 82 pp->imr |= ALTERA_JTAGUART_CONTROL_WE_MSK; in altera_jtaguart_start_tx() 83 writel(pp->imr, port->membase + ALTERA_JTAGUART_CONTROL_REG); in altera_jtaguart_start_tx() 91 pp->imr &= ~ALTERA_JTAGUART_CONTROL_WE_MSK; in altera_jtaguart_stop_tx() 92 writel(pp->imr, port->membase + ALTERA_JTAGUART_CONTROL_REG); in altera_jtaguart_stop_tx() 100 pp->imr &= ~ALTERA_JTAGUART_CONTROL_RE_MSK; in altera_jtaguart_stop_rx() 101 writel(pp->imr, port->membase + ALTERA_JTAGUART_CONTROL_REG); in altera_jtaguart_stop_rx() 174 pp->imr &= ~ALTERA_JTAGUART_CONTROL_WE_MSK; in altera_jtaguart_tx_chars() 175 writel(pp->imr, port->membase + ALTERA_JTAGUART_CONTROL_REG); in altera_jtaguart_tx_chars() 187 ALTERA_JTAGUART_CONTROL_RI_OFF) & pp->imr; in altera_jtaguart_interrupt() [all …]
|
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 | 175 unsigned int imr; member 398 msm_port->imr &= ~UART_IMR_TXLEV; in msm_stop_tx() 399 msm_write(port, msm_port->imr, UART_IMR); in msm_stop_tx() 411 msm_port->imr |= UART_IMR_TXLEV; in msm_start_tx() 412 msm_write(port, msm_port->imr, UART_IMR); in msm_start_tx() 461 msm_port->imr |= UART_IMR_TXLEV; in msm_complete_tx_dma() 462 msm_write(port, msm_port->imr, UART_IMR); in msm_complete_tx_dma() 509 msm_port->imr &= ~UART_IMR_TXLEV; in msm_handle_tx_dma() 510 msm_write(port, msm_port->imr, UART_IMR); in msm_handle_tx_dma() 631 msm_port->imr &= ~(UART_IMR_RXLEV | UART_IMR_RXSTALE); in msm_start_rx_dma() [all …]
|
/kernel/linux/linux-5.10/drivers/spi/ |
D | spi-altera.c | 56 u32 imr; member 109 hw->imr &= ~ALTERA_SPI_CONTROL_SSO_MSK; in altera_spi_set_cs() 110 altr_spi_writel(hw, ALTERA_SPI_CONTROL, hw->imr); in altera_spi_set_cs() 115 hw->imr |= ALTERA_SPI_CONTROL_SSO_MSK; in altera_spi_set_cs() 116 altr_spi_writel(hw, ALTERA_SPI_CONTROL, hw->imr); in altera_spi_set_cs() 187 hw->imr |= ALTERA_SPI_CONTROL_IRRDY_MSK; in altera_spi_txrx() 188 altr_spi_writel(hw, ALTERA_SPI_CONTROL, hw->imr); in altera_spi_txrx() 225 hw->imr &= ~ALTERA_SPI_CONTROL_IRRDY_MSK; in altera_spi_irq() 226 altr_spi_writel(hw, ALTERA_SPI_CONTROL, hw->imr); in altera_spi_irq() 312 hw->imr = 0; /* disable spi interrupts */ in altera_spi_probe() [all …]
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
D | irq_txx9.c | 28 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()
|
/kernel/linux/linux-5.10/sound/soc/fsl/ |
D | mpc5200_dma.c | 122 u16 imr; in psc_dma_trigger() local 182 imr = 0; in psc_dma_trigger() 184 imr |= MPC52xx_PSC_IMR_TXEMP; in psc_dma_trigger() 186 imr |= MPC52xx_PSC_IMR_ORERR; in psc_dma_trigger() 187 out_be16(®s->isr_imr.imr, psc_dma->imr | imr); in psc_dma_trigger() 262 out_be16(&psc_dma->psc_regs->isr_imr.imr, psc_dma->imr); in psc_dma_close() 431 out_be16(&psc_dma->psc_regs->isr_imr.imr, psc_dma->imr); in mpc5200_audio_dma_create()
|
/kernel/linux/linux-5.10/drivers/mfd/ |
D | t7l66xb.c | 203 u8 imr; in t7l66xb_irq_mask() local 206 imr = tmio_ioread8(t7l66xb->scr + SCR_IMR); in t7l66xb_irq_mask() 207 imr |= 1 << (data->irq - t7l66xb->irq_base); in t7l66xb_irq_mask() 208 tmio_iowrite8(imr, t7l66xb->scr + SCR_IMR); in t7l66xb_irq_mask() 216 u8 imr; in t7l66xb_irq_unmask() local 219 imr = tmio_ioread8(t7l66xb->scr + SCR_IMR); in t7l66xb_irq_unmask() 220 imr &= ~(1 << (data->irq - t7l66xb->irq_base)); in t7l66xb_irq_unmask() 221 tmio_iowrite8(imr, t7l66xb->scr + SCR_IMR); in t7l66xb_irq_unmask()
|
D | twl4030-irq.c | 418 u32 imr; member 440 agent->imr |= BIT(data->irq - agent->irq_base); in twl4030_sih_mask() 448 agent->imr &= ~BIT(data->irq - agent->irq_base); in twl4030_sih_unmask() 482 } imr; in twl4030_sih_bus_sync_unlock() local 485 imr.word = cpu_to_le32(agent->imr); in twl4030_sih_bus_sync_unlock() 489 status = twl_i2c_write(sih->module, imr.bytes, in twl4030_sih_bus_sync_unlock() 639 agent->imr = ~0; in twl4030_sih_setup()
|
D | tc6393xb.c | 539 u8 imr; in tc6393xb_irq_mask() local 542 imr = tmio_ioread8(tc6393xb->scr + SCR_IMR); in tc6393xb_irq_mask() 543 imr |= 1 << (data->irq - tc6393xb->irq_base); in tc6393xb_irq_mask() 544 tmio_iowrite8(imr, tc6393xb->scr + SCR_IMR); in tc6393xb_irq_mask() 552 u8 imr; in tc6393xb_irq_unmask() local 555 imr = tmio_ioread8(tc6393xb->scr + SCR_IMR); in tc6393xb_irq_unmask() 556 imr &= ~(1 << (data->irq - tc6393xb->irq_base)); in tc6393xb_irq_unmask() 557 tmio_iowrite8(imr, tc6393xb->scr + SCR_IMR); in tc6393xb_irq_unmask()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | igmp.c | 1824 static struct in_device *ip_mc_find_dev(struct net *net, struct ip_mreqn *imr) in ip_mc_find_dev() argument 1829 if (imr->imr_ifindex) { in ip_mc_find_dev() 1830 idev = inetdev_by_index(net, imr->imr_ifindex); in ip_mc_find_dev() 1833 if (imr->imr_address.s_addr) { in ip_mc_find_dev() 1834 dev = __ip_dev_find(net, imr->imr_address.s_addr, false); in ip_mc_find_dev() 1841 imr->imr_multiaddr.s_addr, in ip_mc_find_dev() 1849 imr->imr_ifindex = dev->ifindex; in ip_mc_find_dev() 2169 static int __ip_mc_join_group(struct sock *sk, struct ip_mreqn *imr, in __ip_mc_join_group() argument 2172 __be32 addr = imr->imr_multiaddr.s_addr; in __ip_mc_join_group() 2186 in_dev = ip_mc_find_dev(net, imr); in __ip_mc_join_group() [all …]
|
/kernel/linux/linux-5.10/drivers/rtc/ |
D | rtc-at91sam9.c | 71 u32 imr; member 463 rtc->imr = mr & (AT91_RTT_ALMIEN | AT91_RTT_RTTINCIEN); in at91_rtc_shutdown() 464 rtt_writel(rtc, MR, mr & ~rtc->imr); in at91_rtc_shutdown() 480 rtc->imr = mr & (AT91_RTT_ALMIEN | AT91_RTT_RTTINCIEN); in at91_rtc_suspend() 481 if (rtc->imr) { in at91_rtc_suspend() 493 rtt_writel(rtc, MR, mr & ~rtc->imr); in at91_rtc_suspend() 505 if (rtc->imr) { in at91_rtc_resume() 511 rtt_writel(rtc, MR, mr | rtc->imr); in at91_rtc_resume()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/arch/x86/kvm/ |
D | i8259.c | 112 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() 280 s->imr = 0; in kvm_pic_reset() 367 u8 imr_diff = s->imr ^ val, in pic_ioport_write() 369 s->imr = val; in pic_ioport_write() 376 !!(s->imr & (1 << irq))); in pic_ioport_write() 435 ret = s->imr; in pic_ioport_read()
|
/kernel/linux/linux-5.10/include/linux/ |
D | igmp.h | 115 extern int ip_mc_join_group(struct sock *sk, struct ip_mreqn *imr); 116 extern int ip_mc_join_group_ssm(struct sock *sk, struct ip_mreqn *imr, 118 extern int ip_mc_leave_group(struct sock *sk, struct ip_mreqn *imr);
|
/kernel/linux/linux-5.10/drivers/iio/adc/ |
D | twl4030-madc.c | 168 u8 imr; member 453 ret = twl_i2c_read_u8(TWL4030_MODULE_MADC, &val, madc->imr); in twl4030_madc_disable_irq() 456 madc->imr); in twl4030_madc_disable_irq() 460 ret = twl_i2c_write_u8(TWL4030_MODULE_MADC, val, madc->imr); in twl4030_madc_disable_irq() 463 "unable to write imr register 0x%X\n", madc->imr); in twl4030_madc_disable_irq() 485 ret = twl_i2c_read_u8(TWL4030_MODULE_MADC, &imr_val, madc->imr); in twl4030_madc_threaded_irq_handler() 488 madc->imr); in twl4030_madc_threaded_irq_handler() 791 madc->imr = madc->use_second_irq ? TWL4030_MADC_IMR2 : in twl4030_madc_probe()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | timestamping.c | 311 struct ip_mreq imr; in main() local 398 imr.imr_multiaddr.s_addr = iaddr.s_addr; in main() 399 imr.imr_interface.s_addr = in main() 402 &imr.imr_interface.s_addr, sizeof(struct in_addr)) < 0) in main() 407 &imr, sizeof(struct ip_mreq)) < 0) in main()
|