Home
last modified time | relevance | path

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

12

/Linux-v5.10/drivers/clk/nxp/
Dclk-lpc18xx-creg.c50 struct clk_creg_data *creg = to_clk_creg(hw); in clk_creg_32k_prepare() local
53 ret = regmap_update_bits(creg->reg, LPC18XX_CREG_CREG0, in clk_creg_32k_prepare()
68 struct clk_creg_data *creg = to_clk_creg(hw); in clk_creg_32k_unprepare() local
70 regmap_update_bits(creg->reg, LPC18XX_CREG_CREG0, in clk_creg_32k_unprepare()
77 struct clk_creg_data *creg = to_clk_creg(hw); in clk_creg_32k_is_prepared() local
80 regmap_read(creg->reg, LPC18XX_CREG_CREG0, &reg); in clk_creg_32k_is_prepared()
94 struct clk_creg_data *creg = to_clk_creg(hw); in clk_creg_enable() local
96 return regmap_update_bits(creg->reg, LPC18XX_CREG_CREG0, in clk_creg_enable()
97 creg->en_mask, creg->en_mask); in clk_creg_enable()
102 struct clk_creg_data *creg = to_clk_creg(hw); in clk_creg_disable() local
[all …]
DMakefile4 obj-$(CONFIG_ARCH_LPC18XX) += clk-lpc18xx-creg.o
/Linux-v5.10/drivers/rtc/
Drtc-rk808.c56 struct rk_rtc_compat_reg *creg; member
105 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, in rk808_rtc_readtime()
119 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, in rk808_rtc_readtime()
127 ret = regmap_bulk_read(rk808->regmap, rk808_rtc->creg->seconds_reg, in rk808_rtc_readtime()
166 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, in rk808_rtc_set_time()
174 ret = regmap_bulk_write(rk808->regmap, rk808_rtc->creg->seconds_reg, in rk808_rtc_set_time()
181 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, in rk808_rtc_set_time()
200 rk808_rtc->creg->alarm_seconds_reg, in rk808_rtc_readalarm()
215 ret = regmap_read(rk808->regmap, rk808_rtc->creg->int_reg, &int_reg); in rk808_rtc_readalarm()
234 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->int_reg, in rk808_rtc_stop_alarm()
[all …]
/Linux-v5.10/drivers/usb/gadget/udc/
Dat91_udc.c118 csr = __raw_readl(ep->creg); in proc_ep_show()
312 u32 __iomem *creg = ep->creg; in read_fifo() local
313 u8 __iomem *dreg = ep->creg + (AT91_UDP_FDR(0) - AT91_UDP_CSR(0)); in read_fifo()
326 csr = __raw_readl(creg); in read_fifo()
352 __raw_writel(csr, creg); in read_fifo()
374 csr = __raw_readl(creg); in read_fifo()
387 u32 __iomem *creg = ep->creg; in write_fifo() local
388 u32 csr = __raw_readl(creg); in write_fifo()
389 u8 __iomem *dreg = ep->creg + (AT91_UDP_FDR(0) - AT91_UDP_CSR(0)); in write_fifo()
409 __raw_writel(csr, creg); in write_fifo()
[all …]
Dat91_udc.h94 void __iomem *creg; member
/Linux-v5.10/Documentation/devicetree/bindings/clock/
Dlpc1850-creg-clk.txt17 Should be "nxp,lpc1850-creg-clk"
23 The creg-clk node must be a child of the creg syscon node.
33 creg: syscon@40043000 {
34 compatible = "nxp,lpc1850-creg", "syscon", "simple-mfd";
38 compatible = "nxp,lpc1850-creg-clk";
/Linux-v5.10/arch/mips/alchemy/common/
Dusb.c425 static inline void __au1xx0_ohci_control(int enable, unsigned long rb, int creg) in __au1xx0_ohci_control() argument
428 unsigned long r = __raw_readl(base + creg); in __au1xx0_ohci_control()
438 __raw_writel(r | USBHEN_CE, base + creg); in __au1xx0_ohci_control()
441 __raw_writel(r | USBHEN_CE | USBHEN_E, base + creg); in __au1xx0_ohci_control()
446 while (__raw_readl(base + creg), in __au1xx0_ohci_control()
447 !(__raw_readl(base + creg) & USBHEN_RD)) in __au1xx0_ohci_control()
450 __raw_writel(r & ~(USBHEN_CE | USBHEN_E), base + creg); in __au1xx0_ohci_control()
459 int creg) in au1000_usb_control() argument
465 __au1xx0_ohci_control(enable, rb, creg); in au1000_usb_control()
512 static void au1000_usb_pm(unsigned long br, int creg, int susp) in au1000_usb_pm() argument
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/gpio/
Dsnps,creg-gpio.txt4 - compatible : "snps,creg-gpio-hsdk" or "snps,creg-gpio-axs10x".
16 compatible = "snps,creg-gpio-hsdk";
/Linux-v5.10/Documentation/devicetree/bindings/phy/
Dphy-lpc18xx-usb-otg.txt14 The phy node must be a child of the creg syscon node.
17 creg: syscon@40043000 {
18 compatible = "nxp,lpc1850-creg", "syscon", "simple-mfd";
/Linux-v5.10/drivers/pci/hotplug/
Dshpchp_hpc.c174 return readb(ctrl->creg + reg); in shpc_readb()
179 writeb(val, ctrl->creg + reg); in shpc_writeb()
184 return readw(ctrl->creg + reg); in shpc_readw()
189 writew(val, ctrl->creg + reg); in shpc_writew()
194 return readl(ctrl->creg + reg); in shpc_readl()
199 writel(val, ctrl->creg + reg); in shpc_writel()
596 iounmap(ctrl->creg); in hpc_release_ctlr()
988 ctrl->creg = ioremap(ctrl->mmio_base, ctrl->mmio_size); in shpc_init()
989 if (!ctrl->creg) { in shpc_init()
996 ctrl_dbg(ctrl, "ctrl->creg %p\n", ctrl->creg); in shpc_init()
[all …]
/Linux-v5.10/drivers/media/pci/ddbridge/
Dddbridge-ci.c185 ci->port->creg = (ci->port->creg & ~mask) | data; in write_creg()
186 return i2c_write_reg(i2c, adr, 0x02, ci->port->creg); in write_creg()
309 ci->port->creg = 0; in ci_xo2_attach()
Dddbridge.h272 u8 creg; member
/Linux-v5.10/arch/arc/plat-axs10x/
Daxs10x.c74 static void __init axs10x_print_board_ver(unsigned int creg, const char *str) in axs10x_print_board_ver() argument
87 board.val = ioread32((void __iomem *)creg); in axs10x_print_board_ver()
/Linux-v5.10/drivers/net/ethernet/sun/
Dsunbmac.c623 void __iomem *cregs = bp->creg; in bigmac_init_hw()
896 bmac_status = sbus_readl(bp->creg + CREG_STAT); in bigmac_interrupt()
979 sbus_writel(CREG_CTRL_TWAKEUP, bp->creg + CREG_CTRL); in bigmac_start_xmit()
1135 bp->creg = of_ioremap(&op->resource[0], 0, in bigmac_ether_init()
1137 if (!bp->creg) { in bigmac_ether_init()
1208 if (bp->creg) in bigmac_ether_init()
1209 of_iounmap(&op->resource[0], bp->creg, CREG_REG_SIZE); in bigmac_ether_init()
1251 of_iounmap(&op->resource[0], bp->creg, CREG_REG_SIZE); in bigmac_sbus_remove()
Dsunbmac.h291 void __iomem *creg; /* QEC BigMAC Channel Registers */ member
/Linux-v5.10/drivers/block/
Dxsysace.c814 u16 creg = ace_in(ace, ACE_CTRL); in ace_interrupt_checkstate() local
818 (creg & ACE_CTRL_ERRORIRQ)) { in ace_interrupt_checkstate()
829 u16 creg; in ace_interrupt() local
837 creg = ace_in(ace, ACE_CTRL); in ace_interrupt()
838 ace_out(ace, ACE_CTRL, creg | ACE_CTRL_RESETIRQ); in ace_interrupt()
839 ace_out(ace, ACE_CTRL, creg); in ace_interrupt()
/Linux-v5.10/Documentation/devicetree/bindings/reset/
Dsnps,axs10x-reset.txt17 - reg: should always contain pair address - length: for creg reset
/Linux-v5.10/arch/arm/boot/dts/
Dlpc18xx.dtsi198 creg: syscon@40043000 { label
199 compatible = "nxp,lpc1850-creg", "syscon", "simple-mfd";
205 compatible = "nxp,lpc1850-creg-clk";
/Linux-v5.10/drivers/infiniband/hw/qib/
Dqib_iba6120.c2280 u16 creg; in qib_portcntr_6120() local
2324 creg = xlator[reg]; in qib_portcntr_6120()
2339 if (creg == 0xffff) in qib_portcntr_6120()
2346 if (creg == cr_wordsend || creg == cr_wordrcv || in qib_portcntr_6120()
2347 creg == cr_pktsend || creg == cr_pktrcv) in qib_portcntr_6120()
2348 ret = read_6120_creg(dd, creg); in qib_portcntr_6120()
2350 ret = read_6120_creg32(dd, creg); in qib_portcntr_6120()
2351 if (creg == cr_ibsymbolerr) { in qib_portcntr_6120()
2355 } else if (creg == cr_iblinkerrrecov) { in qib_portcntr_6120()
Dqib_iba7220.c2906 u16 creg; in qib_portcntr_7220() local
2950 creg = xlator[reg]; in qib_portcntr_7220()
2959 if (creg == 0xffff) in qib_portcntr_7220()
2966 if ((creg == cr_wordsend || creg == cr_wordrcv || in qib_portcntr_7220()
2967 creg == cr_pktsend || creg == cr_pktrcv)) in qib_portcntr_7220()
2968 ret = read_7220_creg(dd, creg); in qib_portcntr_7220()
2970 ret = read_7220_creg32(dd, creg); in qib_portcntr_7220()
2971 if (creg == cr_ibsymbolerr) { in qib_portcntr_7220()
2975 } else if (creg == cr_iblinkerrrecov) { in qib_portcntr_7220()
/Linux-v5.10/arch/arc/boot/dts/
Daxc001.dtsi44 * this GPIO block ORs all interrupts on CPU card (creg,..)
Daxc003.dtsi52 * this GPIO block ORs all interrupts on CPU card (creg,..)
Daxc003_idu.dtsi59 * this GPIO block ORs all interrupts on CPU card (creg,..)
/Linux-v5.10/drivers/net/wireless/marvell/mwifiex/
Dpcie.c2814 const struct mwifiex_pcie_card_reg *creg = card->pcie.reg; in mwifiex_pcie_fw_dump() local
2843 reg = creg->fw_dump_start; in mwifiex_pcie_fw_dump()
2862 reg = creg->fw_dump_start; in mwifiex_pcie_fw_dump()
2874 ret = mwifiex_write_reg(adapter, creg->fw_dump_ctrl, in mwifiex_pcie_fw_dump()
2875 creg->fw_dump_read_done); in mwifiex_pcie_fw_dump()
2904 reg_start = creg->fw_dump_start; in mwifiex_pcie_fw_dump()
2905 reg_end = creg->fw_dump_end; in mwifiex_pcie_fw_dump()
/Linux-v5.10/drivers/regulator/
Dda9063-regulator.c109 creg, cmask) \ argument
116 .desc.csel_reg = (creg), \

12