Home
last modified time | relevance | path

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

/drivers/i2c/busses/
Di2c-pxa.c46 u32 icr; member
67 .icr = 0x10,
74 .icr = 0x08,
81 .icr = 0x00,
88 .icr = 0x10,
335 unsigned long icr = readl(_ICR(i2c)); in i2c_pxa_abort() local
337 icr &= ~ICR_START; in i2c_pxa_abort()
338 icr |= ICR_ACKNAK | ICR_STOP | ICR_TB; in i2c_pxa_abort()
340 writel(icr, _ICR(i2c)); in i2c_pxa_abort()
674 u32 icr; in i2c_pxa_start_message() local
[all …]
/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
369 dsp56k_host_interface.icr |= DSP56K_ICR_HF0; in dsp56k_ioctl()
371 dsp56k_host_interface.icr &= ~DSP56K_ICR_HF0; in dsp56k_ioctl()
373 dsp56k_host_interface.icr |= DSP56K_ICR_HF1; in dsp56k_ioctl()
375 dsp56k_host_interface.icr &= ~DSP56K_ICR_HF1; in dsp56k_ioctl()
378 if (dsp56k_host_interface.icr & DSP56K_ICR_HF0) status |= 0x1; in dsp56k_ioctl()
379 if (dsp56k_host_interface.icr & DSP56K_ICR_HF1) status |= 0x2; in dsp56k_ioctl()
[all …]
/drivers/rtc/
Drtc-isl1208.c217 int icr = i2c_smbus_read_byte_data(client, ISL1208_REG_INT); in isl1208_rtc_toggle_alarm() local
219 if (icr < 0) { in isl1208_rtc_toggle_alarm()
221 return icr; in isl1208_rtc_toggle_alarm()
225 icr |= ISL1208_REG_INT_ALME | ISL1208_REG_INT_IM; in isl1208_rtc_toggle_alarm()
227 icr &= ~(ISL1208_REG_INT_ALME | ISL1208_REG_INT_IM); in isl1208_rtc_toggle_alarm()
229 icr = i2c_smbus_write_byte_data(client, ISL1208_REG_INT, icr); in isl1208_rtc_toggle_alarm()
230 if (icr < 0) { in isl1208_rtc_toggle_alarm()
232 return icr; in isl1208_rtc_toggle_alarm()
325 int icr, yr, sr = isl1208_i2c_get_sr(client); in isl1208_i2c_read_alarm() local
357 icr = i2c_smbus_read_byte_data(client, ISL1208_REG_INT); in isl1208_i2c_read_alarm()
[all …]
/drivers/misc/vmw_vmci/
Dvmci_guest.c412 unsigned int icr; in vmci_interrupt() local
415 icr = ioread32(dev->iobase + VMCI_ICR_ADDR); in vmci_interrupt()
416 if (icr == 0 || icr == ~0) in vmci_interrupt()
419 if (icr & VMCI_ICR_DATAGRAM) { in vmci_interrupt()
421 icr &= ~VMCI_ICR_DATAGRAM; in vmci_interrupt()
424 if (icr & VMCI_ICR_NOTIFICATION) { in vmci_interrupt()
426 icr &= ~VMCI_ICR_NOTIFICATION; in vmci_interrupt()
429 if (icr != 0) in vmci_interrupt()
432 icr); in vmci_interrupt()
/drivers/pinctrl/
Dpinctrl-coh901.c81 u32 icr; member
414 val = readl(U300_PIN_REG(offset, icr)); in u300_toggle_trigger()
418 writel(val & ~U300_PIN_BIT(offset), U300_PIN_REG(offset, icr)); in u300_toggle_trigger()
423 writel(val | U300_PIN_BIT(offset), U300_PIN_REG(offset, icr)); in u300_toggle_trigger()
452 val = readl(U300_PIN_REG(offset, icr)); in u300_gpio_irq_type()
453 writel(val | U300_PIN_BIT(offset), U300_PIN_REG(offset, icr)); in u300_gpio_irq_type()
458 val = readl(U300_PIN_REG(offset, icr)); in u300_gpio_irq_type()
459 writel(val & ~U300_PIN_BIT(offset), U300_PIN_REG(offset, icr)); in u300_gpio_irq_type()
669 gpio->icr = U300_GPIO_PXICR; in u300_gpio_probe()
/drivers/net/can/sja1000/
Dpeak_pci.c546 u16 icr; in peak_pci_post_irq() local
549 icr = readw(chan->cfg_base + PITA_ICR); in peak_pci_post_irq()
550 if (icr & chan->icr_mask) in peak_pci_post_irq()
560 u16 sub_sys_id, icr; in peak_pci_probe() local
615 icr = readw(cfg_base + PITA_ICR + 2); in peak_pci_probe()
646 icr |= chan->icr_mask; in peak_pci_probe()
683 writew(icr, cfg_base + PITA_ICR + 2); in peak_pci_probe()
/drivers/net/fjes/
Dfjes_main.c908 u32 icr; in fjes_intr() local
910 icr = fjes_hw_capture_interrupt_status(hw); in fjes_intr()
912 if (icr & REG_IS_MASK_IS_ASSERT) { in fjes_intr()
913 if (icr & REG_ICTL_MASK_RX_DATA) in fjes_intr()
914 fjes_rx_irq(adapter, icr & REG_IS_MASK_EPID); in fjes_intr()
916 if (icr & REG_ICTL_MASK_DEV_STOP_REQ) in fjes_intr()
917 fjes_stop_req_irq(adapter, icr & REG_IS_MASK_EPID); in fjes_intr()
919 if (icr & REG_ICTL_MASK_TXRX_STOP_REQ) in fjes_intr()
920 fjes_txrx_stop_req_irq(adapter, icr & REG_IS_MASK_EPID); in fjes_intr()
922 if (icr & REG_ICTL_MASK_TXRX_STOP_DONE) in fjes_intr()
[all …]
/drivers/mfd/
Dstmpe.c1012 u8 icr = 0; in stmpe_chip_init() local
1043 icr = STMPE801_REG_SYS_CTRL_INT_EN; in stmpe_chip_init()
1045 icr = STMPE_ICR_LSB_GIM; in stmpe_chip_init()
1051 icr |= STMPE_ICR_LSB_EDGE; in stmpe_chip_init()
1057 icr |= STMPE801_REG_SYS_CTRL_INT_HI; in stmpe_chip_init()
1059 icr |= STMPE_ICR_LSB_HIGH; in stmpe_chip_init()
1069 return stmpe_reg_write(stmpe, stmpe->regs[STMPE_IDX_ICR_LSB], icr); in stmpe_chip_init()
/drivers/net/irda/
Dw83977af_ir.c1044 __u8 set, icr, isr; in w83977af_interrupt() local
1055 icr = inb(iobase+ICR); in w83977af_interrupt()
1056 isr = inb(iobase+ISR) & icr; /* Mask out the interesting ones */ in w83977af_interrupt()
1063 icr = w83977af_fir_interrupt(self, isr); in w83977af_interrupt()
1065 icr = w83977af_sir_interrupt(self, isr); in w83977af_interrupt()
1068 outb(icr, iobase+ICR); /* Restore (new) interrupts */ in w83977af_interrupt()
/drivers/net/ethernet/marvell/
Dpxa168_eth.c857 u32 icr; in pxa168_eth_collect_events() local
860 icr = rdl(pep, INT_CAUSE); in pxa168_eth_collect_events()
861 if (icr == 0) in pxa168_eth_collect_events()
864 wrl(pep, INT_CAUSE, ~icr); in pxa168_eth_collect_events()
865 if (icr & (ICR_TXBUF_H | ICR_TXBUF_L)) { in pxa168_eth_collect_events()
869 if (icr & ICR_RXBUF) in pxa168_eth_collect_events()
/drivers/atm/
Diphase.c364 srv_p->icr = 0x055cb7; in init_abr_vc()
381 u32 icr; in ia_open_abr_vc() local
397 if (!(srv_p->icr)) in ia_open_abr_vc()
398 srv_p->icr = srv_p->pcr; in ia_open_abr_vc()
399 if ((srv_p->icr < srv_p->mcr) || (srv_p->icr > srv_p->pcr)) in ia_open_abr_vc()
432 icr = min( srv_p->icr, (srv_p->tbe > srv_p->frtt) ? in ia_open_abr_vc()
435 f_abr_vc->f_icr = cellrate_to_float(icr); in ia_open_abr_vc()
1852 if (vcc->qos.txtp.icr)
1853 srv_p.icr = vcc->qos.txtp.icr;
1870 if (srv_p.icr > srv_p.pcr)
[all …]
Diphase.h252 u_short icr; member
818 u32 icr; /* Initial Cell Rate (24-bit) */ member
/drivers/net/ethernet/intel/igb/
Digb_main.c5497 u32 icr = rd32(E1000_ICR); in igb_msix_other() local
5500 if (icr & E1000_ICR_DRSTA) in igb_msix_other()
5503 if (icr & E1000_ICR_DOUTSYNC) { in igb_msix_other()
5514 if (icr & E1000_ICR_VMMB) in igb_msix_other()
5517 if (icr & E1000_ICR_LSC) { in igb_msix_other()
5524 if (icr & E1000_ICR_TS) in igb_msix_other()
6290 u32 icr = rd32(E1000_ICR); in igb_intr_msi() local
6294 if (icr & E1000_ICR_DRSTA) in igb_intr_msi()
6297 if (icr & E1000_ICR_DOUTSYNC) { in igb_intr_msi()
6302 if (icr & (E1000_ICR_RXSEQ | E1000_ICR_LSC)) { in igb_intr_msi()
[all …]
/drivers/net/ethernet/intel/e1000e/
Dnetdev.c1768 u32 icr = er32(ICR); in e1000_intr_msi() local
1771 if (icr & E1000_ICR_LSC) { in e1000_intr_msi()
1798 if ((icr & E1000_ICR_ECCER) && ((hw->mac.type == e1000_pch_lpt) || in e1000_intr_msi()
1836 u32 rctl, icr = er32(ICR); in e1000_intr() local
1838 if (!icr || test_bit(__E1000_DOWN, &adapter->state)) in e1000_intr()
1844 if (!(icr & E1000_ICR_INT_ASSERTED)) in e1000_intr()
1852 if (icr & E1000_ICR_LSC) { in e1000_intr()
1879 if ((icr & E1000_ICR_ECCER) && ((hw->mac.type == e1000_pch_lpt) || in e1000_intr()
1912 u32 icr = er32(ICR); in e1000_msix_other() local
1914 if (!(icr & E1000_ICR_INT_ASSERTED)) { in e1000_msix_other()
[all …]
/drivers/media/pci/zoran/
Dzoran_card.c953 int timeout, icr; in test_interrupts() local
958 icr = btread(ZR36057_ICR); in test_interrupts()
972 btwrite(icr, ZR36057_ICR); in test_interrupts()
/drivers/scsi/
DNCR5380.c410 unsigned char status, data, basr, mr, icr, i; in NCR5380_print() local
416 icr = NCR5380_read(INITIATOR_COMMAND_REG); in NCR5380_print()
427 printk("\nICR: %02x ", icr); in NCR5380_print()
429 if (icr & icrs[i].mask) in NCR5380_print()
Datari_NCR5380.c513 unsigned char status, data, basr, mr, icr, i; in NCR5380_print() local
520 icr = NCR5380_read(INITIATOR_COMMAND_REG); in NCR5380_print()
531 printk("\nICR: %02x ", icr); in NCR5380_print()
533 if (icr & icrs[i].mask) in NCR5380_print()
/drivers/net/ethernet/atheros/atlx/
Datl2.c2112 u32 icr; in atl2_reset_hw() local
2144 icr = ATL2_READ_REG(hw, REG_IDLE_STATUS); in atl2_reset_hw()
2145 if (!icr) in atl2_reset_hw()
2151 if (icr) in atl2_reset_hw()
2152 return icr; in atl2_reset_hw()
Datl1.c261 u32 icr; in atl1_reset_hw() local
290 icr = ioread32(hw->hw_addr + REG_IDLE_STATUS); in atl1_reset_hw()
291 if (!icr) in atl1_reset_hw()
299 if (icr) { in atl1_reset_hw()
301 dev_dbg(&pdev->dev, "ICR = 0x%x\n", icr); in atl1_reset_hw()
302 return icr; in atl1_reset_hw()
/drivers/net/ethernet/intel/e1000/
De1000_hw.c405 u32 icr; in e1000_reset_hw() local
530 icr = er32(ICR); in e1000_reset_hw()
2403 u32 icr; in e1000_check_for_link() local
2470 icr = er32(ICR); in e1000_check_for_link()
2471 ew32(ICS, (icr & ~E1000_ICS_LSC)); in e1000_check_for_link()
De1000_main.c3787 u32 icr = er32(ICR); in e1000_intr() local
3789 if (unlikely((!icr))) in e1000_intr()
3799 if (unlikely(icr & (E1000_ICR_RXSEQ | E1000_ICR_LSC))) { in e1000_intr()
/drivers/net/ethernet/intel/ixgb/
Dixgb_main.c1791 u32 icr = IXGB_READ_REG(hw, ICR); in ixgb_intr() local
1793 if (unlikely(!icr)) in ixgb_intr()
1796 if (unlikely(icr & (IXGB_INT_RXSEQ | IXGB_INT_LSC))) in ixgb_intr()
/drivers/net/vmxnet3/
Dvmxnet3_drv.c1884 u32 icr = VMXNET3_READ_BAR1_REG(adapter, VMXNET3_REG_ICR); in vmxnet3_intr() local
1885 if (unlikely(icr == 0)) in vmxnet3_intr()