Home
last modified time | relevance | path

Searched refs:gctrl (Results 1 – 9 of 9) sorted by relevance

/openbmc/linux/drivers/pinctrl/
H A Dpinctrl-equilibrium.c28 struct eqbr_gpio_ctrl *gctrl = gpiochip_get_data(gc); in eqbr_gpio_disable_irq() local
32 raw_spin_lock_irqsave(&gctrl->lock, flags); in eqbr_gpio_disable_irq()
33 writel(BIT(offset), gctrl->membase + GPIO_IRNENCLR); in eqbr_gpio_disable_irq()
34 raw_spin_unlock_irqrestore(&gctrl->lock, flags); in eqbr_gpio_disable_irq()
41 struct eqbr_gpio_ctrl *gctrl = gpiochip_get_data(gc); in eqbr_gpio_enable_irq() local
47 raw_spin_lock_irqsave(&gctrl->lock, flags); in eqbr_gpio_enable_irq()
48 writel(BIT(offset), gctrl->membase + GPIO_IRNRNSET); in eqbr_gpio_enable_irq()
49 raw_spin_unlock_irqrestore(&gctrl->lock, flags); in eqbr_gpio_enable_irq()
55 struct eqbr_gpio_ctrl *gctrl = gpiochip_get_data(gc); in eqbr_gpio_ack_irq() local
59 raw_spin_lock_irqsave(&gctrl->lock, flags); in eqbr_gpio_ack_irq()
[all …]
/openbmc/u-boot/drivers/video/sunxi/
H A Dtve_common.c21 SUNXI_TVE_GCTRL_DAC_INPUT(2, 3), &tve->gctrl); in tvencoder_mode_set()
33 SUNXI_TVE_GCTRL_DAC_INPUT(3, 4), &tve->gctrl); in tvencoder_mode_set()
59 SUNXI_TVE_GCTRL_DAC_INPUT(3, 4), &tve->gctrl); in tvencoder_mode_set()
84 setbits_le32(&tve->gctrl, SUNXI_TVE_GCTRL_ENABLE); in tvencoder_enable()
/openbmc/u-boot/board/renesas/sh7757lcr/
H A Dsh7757lcr.c24 struct gctrl_regs *gctrl = GCTRL_BASE; in init_gctrl() local
28 writel(graofst | 0x20000f00, &gctrl->gracr3); in init_gctrl()
317 struct gctrl_regs *gctrl = GCTRL_BASE; in finish_spiboot() local
324 writel(0x00000000, &gctrl->spibootcan); in finish_spiboot()
339 struct gctrl_regs *gctrl = GCTRL_BASE; in do_sh_g200() local
342 writel(0xfedcba98, &gctrl->wprotect); in do_sh_g200()
344 writel(graofst | 0xa0000f00, &gctrl->gracr3); in do_sh_g200()
/openbmc/u-boot/drivers/mmc/
H A Dsunxi_mmc.c298 writel(SUNXI_MMC_GCTRL_RESET, &priv->reg->gctrl); in sunxi_mmc_core_init()
321 setbits_le32(&priv->reg->gctrl, SUNXI_MMC_GCTRL_ACCESS_BY_AHB); in mmc_trans_data_by_cpu()
472 writel(SUNXI_MMC_GCTRL_RESET, &priv->reg->gctrl); in sunxi_mmc_send_cmd_common()
476 writel(readl(&priv->reg->gctrl) | SUNXI_MMC_GCTRL_FIFO_RESET, in sunxi_mmc_send_cmd_common()
477 &priv->reg->gctrl); in sunxi_mmc_send_cmd_common()
675 writel(SUNXI_MMC_GCTRL_RESET, &priv->reg->gctrl); in sunxi_mmc_probe()
/openbmc/linux/drivers/media/usb/stk1160/
H A Dstk1160-core.c101 static const u8 gctrl[] = { in stk1160_select_input() local
110 if (dev->ctl_input < ARRAY_SIZE(gctrl)) { in stk1160_select_input()
113 stk1160_write_reg(dev, STK1160_GCTRL, gctrl[dev->ctl_input]); in stk1160_select_input()
/openbmc/linux/drivers/mfd/
H A Dlpc_ich.c94 int gctrl; /* GPIO control */ member
895 pci_write_config_byte(dev, priv->gctrl, priv->gctrl_save); in lpc_ich_restore_config_space()
932 pci_read_config_byte(dev, priv->gctrl, &reg_save); in lpc_ich_enable_gpio_space()
933 pci_write_config_byte(dev, priv->gctrl, reg_save | 0x10); in lpc_ich_enable_gpio_space()
1315 priv->gctrl = GPIOCTRL_ICH0; in lpc_ich_probe()
1318 priv->gctrl = GPIOCTRL_ICH6; in lpc_ich_probe()
/openbmc/u-boot/arch/arm/include/asm/arch-sunxi/
H A Dtve.h28 u32 gctrl; /* 0x000 */ member
H A Dmmc.h16 u32 gctrl; /* 0x00 global control */ member
/openbmc/linux/drivers/scsi/
H A Dinitio.c485 u8 gctrl; in initio_read_eeprom() local
489 gctrl = inb(base + TUL_GCTRL); in initio_read_eeprom()
490 outb(gctrl | TUL_GCTRL_EEPROM_BIT, base + TUL_GCTRL); in initio_read_eeprom()
496 gctrl = inb(base + TUL_GCTRL); in initio_read_eeprom()
497 outb(gctrl & ~TUL_GCTRL_EEPROM_BIT, base + TUL_GCTRL); in initio_read_eeprom()