Home
last modified time | relevance | path

Searched refs:creg (Results 1 – 16 of 16) sorted by relevance

/drivers/infiniband/hw/ipath/
Dipath_stats.c52 u64 ipath_snap_cntr(struct ipath_devdata *dd, ipath_creg creg) in ipath_snap_cntr() argument
63 (creg == dd->ipath_cregs->cr_wordsendcnt || in ipath_snap_cntr()
64 creg == dd->ipath_cregs->cr_wordrcvcnt || in ipath_snap_cntr()
65 creg == dd->ipath_cregs->cr_pktsendcnt || in ipath_snap_cntr()
66 creg == dd->ipath_cregs->cr_pktrcvcnt)) { in ipath_snap_cntr()
67 val64 = ipath_read_creg(dd, creg); in ipath_snap_cntr()
71 val64 = val = ipath_read_creg32(dd, creg); in ipath_snap_cntr()
82 creg); in ipath_snap_cntr()
91 if (creg == dd->ipath_cregs->cr_wordsendcnt) { in ipath_snap_cntr()
97 } else if (creg == dd->ipath_cregs->cr_wordrcvcnt) { in ipath_snap_cntr()
[all …]
/drivers/usb/gadget/
Dat91_udc.c103 csr = __raw_readl(ep->creg); in proc_ep_show()
309 u32 __iomem *creg = ep->creg; in read_fifo() local
310 u8 __iomem *dreg = ep->creg + (AT91_UDP_FDR(0) - AT91_UDP_CSR(0)); in read_fifo()
323 csr = __raw_readl(creg); in read_fifo()
349 __raw_writel(csr, creg); in read_fifo()
371 csr = __raw_readl(creg); in read_fifo()
384 u32 __iomem *creg = ep->creg; in write_fifo() local
385 u32 csr = __raw_readl(creg); in write_fifo()
386 u8 __iomem *dreg = ep->creg + (AT91_UDP_FDR(0) - AT91_UDP_CSR(0)); in write_fifo()
406 __raw_writel(csr, creg); in write_fifo()
[all …]
Dat91_udc.h98 void __iomem *creg; member
/drivers/usb/host/
Dalchemy-common.c427 static inline void __au1xx0_ohci_control(int enable, unsigned long rb, int creg) in __au1xx0_ohci_control() argument
430 unsigned long r = __raw_readl(base + creg); in __au1xx0_ohci_control()
433 __raw_writel(r | USBHEN_CE, base + creg); in __au1xx0_ohci_control()
436 __raw_writel(r | USBHEN_CE | USBHEN_E, base + creg); in __au1xx0_ohci_control()
441 while (__raw_readl(base + creg), in __au1xx0_ohci_control()
442 !(__raw_readl(base + creg) & USBHEN_RD)) in __au1xx0_ohci_control()
445 __raw_writel(r & ~(USBHEN_CE | USBHEN_E), base + creg); in __au1xx0_ohci_control()
451 int creg) in au1000_usb_control() argument
457 __au1xx0_ohci_control(enable, rb, creg); in au1000_usb_control()
504 static void au1000_usb_pm(unsigned long br, int creg, int susp) in au1000_usb_pm() argument
[all …]
/drivers/gpu/drm/nouveau/
Dnva3_pm.c104 struct creg { struct
110 calc_clk(struct drm_device *dev, int clk, u32 pll, u32 khz, struct creg *reg) in calc_clk() argument
179 prog_pll(struct drm_device *dev, int clk, u32 pll, struct creg *reg) in prog_pll()
209 prog_clk(struct drm_device *dev, int clk, struct creg *reg) in prog_clk()
233 struct creg nclk;
234 struct creg sclk;
235 struct creg mclk;
236 struct creg vdec;
237 struct creg unka0;
/drivers/net/ethernet/fujitsu/
Deth16i.c858 unsigned char creg[4] = { 0 }; in eth16i_check_signature() local
862 creg[i] = inb(ioaddr + TRANSMIT_MODE_REG + i); in eth16i_check_signature()
866 creg[i], in eth16i_check_signature()
870 creg[0] &= 0x0F; /* Mask collision cnr */ in eth16i_check_signature()
871 creg[2] &= 0x7F; /* Mask DCLEN bit */ in eth16i_check_signature()
879 if( ! ((creg[0] == 0x06) && (creg[1] == 0x41)) ) { in eth16i_check_signature()
880 if(creg[1] != 0x42) in eth16i_check_signature()
885 if( !((creg[2] == 0x36) && (creg[3] == 0xE0)) ) { in eth16i_check_signature()
886 creg[2] &= 0x40; in eth16i_check_signature()
887 creg[3] &= 0x03; in eth16i_check_signature()
[all …]
/drivers/pci/hotplug/
Dshpchp_hpc.c188 return readb(ctrl->creg + reg); in shpc_readb()
193 writeb(val, ctrl->creg + reg); in shpc_writeb()
198 return readw(ctrl->creg + reg); in shpc_readw()
203 writew(val, ctrl->creg + reg); in shpc_writew()
208 return readl(ctrl->creg + reg); in shpc_readl()
213 writel(val, ctrl->creg + reg); in shpc_writel()
613 iounmap(ctrl->creg); in hpc_release_ctlr()
1005 ctrl->creg = ioremap(ctrl->mmio_base, ctrl->mmio_size); in shpc_init()
1006 if (!ctrl->creg) { in shpc_init()
1013 ctrl_dbg(ctrl, "ctrl->creg %p\n", ctrl->creg); in shpc_init()
[all …]
Dshpchp.h117 void __iomem *creg; member
/drivers/net/ethernet/sun/
Dsunbmac.c627 void __iomem *cregs = bp->creg; in bigmac_init_hw()
900 bmac_status = sbus_readl(bp->creg + CREG_STAT); in bigmac_interrupt()
982 sbus_writel(CREG_CTRL_TWAKEUP, bp->creg + CREG_CTRL); in bigmac_start_xmit()
1143 bp->creg = of_ioremap(&op->resource[0], 0, in bigmac_ether_init()
1145 if (!bp->creg) { in bigmac_ether_init()
1218 if (bp->creg) in bigmac_ether_init()
1219 of_iounmap(&op->resource[0], bp->creg, CREG_REG_SIZE); in bigmac_ether_init()
1261 of_iounmap(&op->resource[0], bp->creg, CREG_REG_SIZE); in bigmac_sbus_remove()
Dsunbmac.h290 void __iomem *creg; /* QEC BigMAC Channel Registers */ member
/drivers/block/
Dxsysace.c802 u16 creg = ace_in(ace, ACE_CTRL); in ace_interrupt_checkstate() local
806 (creg & ACE_CTRL_ERRORIRQ)) { in ace_interrupt_checkstate()
817 u16 creg; in ace_interrupt() local
825 creg = ace_in(ace, ACE_CTRL); in ace_interrupt()
826 ace_out(ace, ACE_CTRL, creg | ACE_CTRL_RESETIRQ); in ace_interrupt()
827 ace_out(ace, ACE_CTRL, creg); in ace_interrupt()
/drivers/infiniband/hw/qib/
Dqib_iba6120.c2310 u16 creg; in qib_portcntr_6120() local
2354 creg = xlator[reg]; in qib_portcntr_6120()
2369 if (creg == 0xffff) in qib_portcntr_6120()
2376 if (creg == cr_wordsend || creg == cr_wordrcv || in qib_portcntr_6120()
2377 creg == cr_pktsend || creg == cr_pktrcv) in qib_portcntr_6120()
2378 ret = read_6120_creg(dd, creg); in qib_portcntr_6120()
2380 ret = read_6120_creg32(dd, creg); in qib_portcntr_6120()
2381 if (creg == cr_ibsymbolerr) { in qib_portcntr_6120()
2385 } else if (creg == cr_iblinkerrrecov) { in qib_portcntr_6120()
Dqib_iba7220.c2932 u16 creg; in qib_portcntr_7220() local
2976 creg = xlator[reg]; in qib_portcntr_7220()
2985 if (creg == 0xffff) in qib_portcntr_7220()
2992 if ((creg == cr_wordsend || creg == cr_wordrcv || in qib_portcntr_7220()
2993 creg == cr_pktsend || creg == cr_pktrcv)) in qib_portcntr_7220()
2994 ret = read_7220_creg(dd, creg); in qib_portcntr_7220()
2996 ret = read_7220_creg32(dd, creg); in qib_portcntr_7220()
2997 if (creg == cr_ibsymbolerr) { in qib_portcntr_7220()
3001 } else if (creg == cr_iblinkerrrecov) { in qib_portcntr_7220()
Dqib_iba7322.c4430 u16 creg; in qib_portcntr_7322() local
4480 creg = xlator[reg] & _PORT_CNTR_IDXMASK; in qib_portcntr_7322()
4505 ret = qib_read_kreg_port(ppd, creg); in qib_portcntr_7322()
4514 ret = read_7322_creg_port(ppd, creg); in qib_portcntr_7322()
4516 ret = read_7322_creg32_port(ppd, creg); in qib_portcntr_7322()
4517 if (creg == crp_ibsymbolerr) { in qib_portcntr_7322()
4521 } else if (creg == crp_iblinkerrrecov) { in qib_portcntr_7322()
4525 } else if (creg == crp_errlink) in qib_portcntr_7322()
4527 else if (creg == crp_iblinkdown) in qib_portcntr_7322()
/drivers/isdn/hardware/mISDN/
DmISDNisar.c70 send_mbox(struct isar_hw *isar, u8 his, u8 creg, u8 len, u8 *msg) in send_mbox() argument
74 pr_debug("send_mbox(%02x,%02x,%d)\n", his, creg, len); in send_mbox()
75 isar->write_reg(isar->hw, ISAR_CTRL_H, creg); in send_mbox()
/drivers/isdn/hisax/
Disar.c50 sendmsg(struct IsdnCardState *cs, u_char his, u_char creg, u_char len, in sendmsg() argument
59 debugl1(cs, "sendmsg(%02x,%02x,%d)", his, creg, len); in sendmsg()
61 cs->BC_Write_Reg(cs, 0, ISAR_CTRL_H, creg); in sendmsg()