Home
last modified time | relevance | path

Searched refs:icr (Results 1 – 25 of 43) sorted by relevance

12

/linux-6.6.21/arch/m68k/coldfire/
Dintc-5272.c39 unsigned int icr; member
45 /*MCF_IRQ_SPURIOUS*/ { .icr = 0, .index = 0, .ack = 0, },
46 /*MCF_IRQ_EINT1*/ { .icr = MCFSIM_ICR1, .index = 28, .ack = 1, },
47 /*MCF_IRQ_EINT2*/ { .icr = MCFSIM_ICR1, .index = 24, .ack = 1, },
48 /*MCF_IRQ_EINT3*/ { .icr = MCFSIM_ICR1, .index = 20, .ack = 1, },
49 /*MCF_IRQ_EINT4*/ { .icr = MCFSIM_ICR1, .index = 16, .ack = 1, },
50 /*MCF_IRQ_TIMER1*/ { .icr = MCFSIM_ICR1, .index = 12, .ack = 0, },
51 /*MCF_IRQ_TIMER2*/ { .icr = MCFSIM_ICR1, .index = 8, .ack = 0, },
52 /*MCF_IRQ_TIMER3*/ { .icr = MCFSIM_ICR1, .index = 4, .ack = 0, },
53 /*MCF_IRQ_TIMER4*/ { .icr = MCFSIM_ICR1, .index = 0, .ack = 0, },
[all …]
/linux-6.6.21/tools/testing/selftests/kvm/x86_64/
Dxapic_state_test.c55 uint64_t icr; in ____test_icr() local
72 icr = (u64)(*((u32 *)&xapic.regs[APIC_ICR])) | in ____test_icr()
76 TEST_ASSERT_EQ(icr, val & ~APIC_ICR_BUSY); in ____test_icr()
78 TEST_ASSERT_EQ(icr & ~APIC_ICR_BUSY, val & ~APIC_ICR_BUSY); in ____test_icr()
102 uint64_t icr, i, j; in test_icr() local
104 icr = APIC_DEST_SELF | APIC_INT_ASSERT | APIC_DM_FIXED; in test_icr()
106 __test_icr(x, icr | i); in test_icr()
108 icr = APIC_INT_ASSERT | APIC_DM_FIXED; in test_icr()
110 __test_icr(x, icr | i); in test_icr()
116 icr = APIC_INT_ASSERT | 0xff; in test_icr()
[all …]
Dxapic_ipi_test.c63 uint32_t icr; member
152 data->icr = icr_val; in sender_guest_code()
484 data->icr, data->icr2, in main()
/linux-6.6.21/drivers/i2c/busses/
Di2c-pxa.c137 u32 icr; member
159 .icr = 0x10,
168 .icr = 0x08,
177 .icr = 0x00,
186 .icr = 0x10,
197 .icr = 0x08,
407 unsigned long icr = readl(_ICR(i2c)); in i2c_pxa_abort() local
409 icr &= ~ICR_START; in i2c_pxa_abort()
410 icr |= ICR_ACKNAK | ICR_STOP | ICR_TB; in i2c_pxa_abort()
412 writel(icr, _ICR(i2c)); in i2c_pxa_abort()
[all …]
/linux-6.6.21/arch/x86/kernel/apic/
Dlocal.h34 unsigned int icr = shortcut | dest; in __prepare_ICR() local
38 icr |= APIC_DM_FIXED | vector; in __prepare_ICR()
41 icr |= APIC_DM_NMI; in __prepare_ICR()
44 return icr; in __prepare_ICR()
Dvector.c1208 u64 icr; in print_local_APIC() local
1268 icr = apic_icr_read(); in print_local_APIC()
1269 pr_debug("... APIC ICR: %08x\n", (u32)icr); in print_local_APIC()
1270 pr_debug("... APIC ICR2: %08x\n", (u32)(icr >> 32)); in print_local_APIC()
/linux-6.6.21/drivers/char/
Ddsp56k.c52 #define DSP56K_TX_INT_ON dsp56k_host_interface.icr |= DSP56K_ICR_TREQ
53 #define DSP56K_RX_INT_ON dsp56k_host_interface.icr |= DSP56K_ICR_RREQ
54 #define DSP56K_TX_INT_OFF dsp56k_host_interface.icr &= ~DSP56K_ICR_TREQ
55 #define DSP56K_RX_INT_OFF dsp56k_host_interface.icr &= ~DSP56K_ICR_RREQ
371 dsp56k_host_interface.icr |= DSP56K_ICR_HF0; in dsp56k_ioctl()
373 dsp56k_host_interface.icr &= ~DSP56K_ICR_HF0; in dsp56k_ioctl()
375 dsp56k_host_interface.icr |= DSP56K_ICR_HF1; in dsp56k_ioctl()
377 dsp56k_host_interface.icr &= ~DSP56K_ICR_HF1; in dsp56k_ioctl()
380 if (dsp56k_host_interface.icr & DSP56K_ICR_HF0) status |= 0x1; in dsp56k_ioctl()
381 if (dsp56k_host_interface.icr & DSP56K_ICR_HF1) status |= 0x2; in dsp56k_ioctl()
[all …]
/linux-6.6.21/drivers/misc/vmw_vmci/
Dvmci_guest.c492 unsigned int icr; in vmci_interrupt() local
495 icr = vmci_read_reg(dev, VMCI_ICR_ADDR); in vmci_interrupt()
496 if (icr == 0 || icr == ~0) in vmci_interrupt()
499 if (icr & VMCI_ICR_DATAGRAM) { in vmci_interrupt()
501 icr &= ~VMCI_ICR_DATAGRAM; in vmci_interrupt()
504 if (icr & VMCI_ICR_NOTIFICATION) { in vmci_interrupt()
506 icr &= ~VMCI_ICR_NOTIFICATION; in vmci_interrupt()
510 if (icr & VMCI_ICR_DMA_DATAGRAM) { in vmci_interrupt()
512 icr &= ~VMCI_ICR_DMA_DATAGRAM; in vmci_interrupt()
515 if (icr != 0) in vmci_interrupt()
[all …]
/linux-6.6.21/drivers/rtc/
Drtc-isl1208.c276 int icr = i2c_smbus_read_byte_data(client, ISL1208_REG_INT); in isl1208_rtc_toggle_alarm() local
278 if (icr < 0) { in isl1208_rtc_toggle_alarm()
280 return icr; in isl1208_rtc_toggle_alarm()
284 icr |= ISL1208_REG_INT_ALME | ISL1208_REG_INT_IM; in isl1208_rtc_toggle_alarm()
286 icr &= ~(ISL1208_REG_INT_ALME | ISL1208_REG_INT_IM); in isl1208_rtc_toggle_alarm()
288 icr = i2c_smbus_write_byte_data(client, ISL1208_REG_INT, icr); in isl1208_rtc_toggle_alarm()
289 if (icr < 0) { in isl1208_rtc_toggle_alarm()
291 return icr; in isl1208_rtc_toggle_alarm()
384 int icr, yr, sr = isl1208_i2c_get_sr(client); in isl1208_i2c_read_alarm() local
416 icr = i2c_smbus_read_byte_data(client, ISL1208_REG_INT); in isl1208_i2c_read_alarm()
[all …]
/linux-6.6.21/arch/powerpc/platforms/embedded6xx/
Dflipper-pic.c235 u32 icr; in flipper_is_reset_button_pressed() local
239 icr = in_be32(io_base + FLIPPER_ICR); in flipper_is_reset_button_pressed()
240 return !(icr & FLIPPER_ICR_RSS); in flipper_is_reset_button_pressed()
/linux-6.6.21/arch/m68k/amiga/
Dcia.c55 old = (base->icr_data |= base->cia->icr); in cia_set_irq()
74 base->icr_data |= base->cia->icr; in cia_able_irq()
75 base->cia->icr = mask; in cia_able_irq()
/linux-6.6.21/drivers/net/fjes/
Dfjes_main.c347 u32 icr; in fjes_intr() local
349 icr = fjes_hw_capture_interrupt_status(hw); in fjes_intr()
351 if (icr & REG_IS_MASK_IS_ASSERT) { in fjes_intr()
352 if (icr & REG_ICTL_MASK_RX_DATA) { in fjes_intr()
353 fjes_rx_irq(adapter, icr & REG_IS_MASK_EPID); in fjes_intr()
354 hw->ep_shm_info[icr & REG_IS_MASK_EPID].ep_stats in fjes_intr()
358 if (icr & REG_ICTL_MASK_DEV_STOP_REQ) { in fjes_intr()
359 fjes_stop_req_irq(adapter, icr & REG_IS_MASK_EPID); in fjes_intr()
360 hw->ep_shm_info[icr & REG_IS_MASK_EPID].ep_stats in fjes_intr()
364 if (icr & REG_ICTL_MASK_TXRX_STOP_REQ) { in fjes_intr()
[all …]
/linux-6.6.21/drivers/net/can/sja1000/
Dpeak_pci.c543 u16 icr; in peak_pci_post_irq() local
546 icr = readw(chan->cfg_base + PITA_ICR); in peak_pci_post_irq()
547 if (icr & chan->icr_mask) in peak_pci_post_irq()
557 u16 sub_sys_id, icr; in peak_pci_probe() local
628 icr = readw(cfg_base + PITA_ICR + 2); in peak_pci_probe()
659 icr |= chan->icr_mask; in peak_pci_probe()
695 writew(icr, cfg_base + PITA_ICR + 2); in peak_pci_probe()
/linux-6.6.21/drivers/spi/
Datmel-quadspi.c298 u32 iar, icr, ifr; in atmel_qspi_set_cfg() local
303 icr = QSPI_ICR_INST(op->cmd.opcode); in atmel_qspi_set_cfg()
332 icr |= QSPI_ICR_OPT(op->addr.val & 0xff); in atmel_qspi_set_cfg()
392 atmel_qspi_write(icr, aq, QSPI_RICR); in atmel_qspi_set_cfg()
394 atmel_qspi_write(icr, aq, QSPI_WICR); in atmel_qspi_set_cfg()
399 atmel_qspi_write(icr, aq, QSPI_ICR); in atmel_qspi_set_cfg()
/linux-6.6.21/arch/x86/kernel/
Dkvm.c503 int cpu, apic_id, icr; in __send_ipi_mask() local
519 icr = APIC_DM_FIXED | vector; in __send_ipi_mask()
522 icr = APIC_DM_NMI; in __send_ipi_mask()
537 (unsigned long)(ipi_bitmap >> BITS_PER_LONG), min, icr); in __send_ipi_mask()
548 (unsigned long)(ipi_bitmap >> BITS_PER_LONG), min, icr); in __send_ipi_mask()
/linux-6.6.21/drivers/net/can/ctucanfd/
Dctucanfd_base.c1103 u32 isr, icr; in ctucan_interrupt() local
1120 icr = REG_INT_STAT_RBNEI; in ctucan_interrupt()
1121 ctucan_write32(priv, CTUCANFD_INT_MASK_SET, icr); in ctucan_interrupt()
1122 ctucan_write32(priv, CTUCANFD_INT_STAT, icr); in ctucan_interrupt()
1137 icr = isr & (REG_INT_STAT_EWLI | REG_INT_STAT_FCSI | REG_INT_STAT_ALI); in ctucan_interrupt()
1139 ctucan_netdev_dbg(ndev, "some ERR interrupt: clearing 0x%08x\n", icr); in ctucan_interrupt()
1140 ctucan_write32(priv, CTUCANFD_INT_STAT, icr); in ctucan_interrupt()
/linux-6.6.21/drivers/mfd/
Dstmpe.c1237 u8 icr = 0; in stmpe_chip_init() local
1266 icr = STMPE_SYS_CTRL_INT_EN; in stmpe_chip_init()
1268 icr = STMPE_ICR_LSB_GIM; in stmpe_chip_init()
1274 icr |= STMPE_ICR_LSB_EDGE; in stmpe_chip_init()
1280 icr |= STMPE_SYS_CTRL_INT_HI; in stmpe_chip_init()
1282 icr |= STMPE_ICR_LSB_HIGH; in stmpe_chip_init()
1292 return stmpe_reg_write(stmpe, stmpe->regs[STMPE_IDX_ICR_LSB], icr); in stmpe_chip_init()
/linux-6.6.21/drivers/tty/serial/
Dstm32-usart.c52 .icr = UNDEF_REG,
71 .icr = 0x20,
93 .icr = 0x20,
400 if ((sr & USART_SR_ERR_MASK) && ofs->icr != UNDEF_REG) in stm32_usart_receive_chars_pio()
402 port->membase + ofs->icr); in stm32_usart_receive_chars_pio()
830 if (ofs->icr == UNDEF_REG) in stm32_usart_transmit_chars()
833 writel_relaxed(USART_ICR_TCCF, port->membase + ofs->icr); in stm32_usart_transmit_chars()
870 if ((sr & USART_SR_RTOF) && ofs->icr != UNDEF_REG) in stm32_usart_interrupt()
872 port->membase + ofs->icr); in stm32_usart_interrupt()
874 if ((sr & USART_SR_WUF) && ofs->icr != UNDEF_REG) { in stm32_usart_interrupt()
[all …]
Dstm32-usart.h20 u8 icr; member
/linux-6.6.21/drivers/iio/proximity/
Dvcnl3020.c276 unsigned int icr; in vcnl3020_is_thr_enabled() local
278 rc = regmap_read(data->regmap, VCNL_PS_ICR, &icr); in vcnl3020_is_thr_enabled()
285 return !!(icr & VCNL_ICR_THRES_EN); in vcnl3020_is_thr_enabled()
/linux-6.6.21/include/uapi/linux/
Datm.h144 unsigned int icr; /* Initial Cell Rate (24-bit) */ member
/linux-6.6.21/drivers/net/ethernet/marvell/
Dpxa168_eth.c843 u32 icr; in pxa168_eth_collect_events() local
846 icr = rdl(pep, INT_CAUSE); in pxa168_eth_collect_events()
847 if (icr == 0) in pxa168_eth_collect_events()
850 wrl(pep, INT_CAUSE, ~icr); in pxa168_eth_collect_events()
851 if (icr & (ICR_TXBUF_H | ICR_TXBUF_L)) { in pxa168_eth_collect_events()
855 if (icr & ICR_RXBUF) in pxa168_eth_collect_events()
/linux-6.6.21/arch/x86/kvm/
Dlapic.c851 unsigned long icr, int op_64_bit) in kvm_pv_send_ipi() argument
858 if (icr & (APIC_DEST_MASK | APIC_SHORT_MASK)) in kvm_pv_send_ipi()
861 irq.vector = icr & APIC_VECTOR_MASK; in kvm_pv_send_ipi()
862 irq.delivery_mode = icr & APIC_MODE_MASK; in kvm_pv_send_ipi()
863 irq.level = (icr & APIC_INT_ASSERT) != 0; in kvm_pv_send_ipi()
864 irq.trig_mode = icr & APIC_INT_LEVELTRIG; in kvm_pv_send_ipi()
2935 u64 icr; in kvm_apic_state_fixup() local
2955 icr = __kvm_lapic_get_reg(s->regs, APIC_ICR) | in kvm_apic_state_fixup()
2957 __kvm_lapic_set_reg64(s->regs, APIC_ICR, icr); in kvm_apic_state_fixup()
2959 icr = __kvm_lapic_get_reg64(s->regs, APIC_ICR); in kvm_apic_state_fixup()
[all …]
/linux-6.6.21/drivers/atm/
Diphase.c363 srv_p->icr = 0x055cb7; in init_abr_vc()
380 u32 icr; in ia_open_abr_vc() local
396 if (!(srv_p->icr)) in ia_open_abr_vc()
397 srv_p->icr = srv_p->pcr; in ia_open_abr_vc()
398 if ((srv_p->icr < srv_p->mcr) || (srv_p->icr > srv_p->pcr)) in ia_open_abr_vc()
431 icr = min( srv_p->icr, (srv_p->tbe > srv_p->frtt) ? in ia_open_abr_vc()
434 f_abr_vc->f_icr = cellrate_to_float(icr); in ia_open_abr_vc()
1853 if (vcc->qos.txtp.icr)
1854 srv_p.icr = vcc->qos.txtp.icr;
1871 if (srv_p.icr > srv_p.pcr)
[all …]
/linux-6.6.21/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_main.c266 u32 icr = PVRDMA_INTR_CAUSE_RESPONSE; in pvrdma_intr0_handler() local
273 icr = pvrdma_read_reg(dev, PVRDMA_REG_ICR); in pvrdma_intr0_handler()
274 if (icr == 0) in pvrdma_intr0_handler()
278 if (icr == PVRDMA_INTR_CAUSE_RESPONSE) in pvrdma_intr0_handler()

12