Lines Matching refs:smchip
912 static void sm501_gpio_ensure_gpio(struct sm501_gpio_chip *smchip, in sm501_gpio_ensure_gpio() argument
919 if (smc501_readl(smchip->control) & bit) { in sm501_gpio_ensure_gpio()
920 dev_info(sm501_gpio_to_dev(smchip->ourgpio)->dev, in sm501_gpio_ensure_gpio()
923 ctrl = smc501_readl(smchip->control); in sm501_gpio_ensure_gpio()
925 smc501_writel(ctrl, smchip->control); in sm501_gpio_ensure_gpio()
927 sm501_sync_regs(sm501_gpio_to_dev(smchip->ourgpio)); in sm501_gpio_ensure_gpio()
934 struct sm501_gpio_chip *smchip = to_sm501_gpio(chip); in sm501_gpio_set() local
935 struct sm501_gpio *smgpio = smchip->ourgpio; in sm501_gpio_set()
937 void __iomem *regs = smchip->regbase; in sm501_gpio_set()
952 sm501_gpio_ensure_gpio(smchip, bit); in sm501_gpio_set()
959 struct sm501_gpio_chip *smchip = to_sm501_gpio(chip); in sm501_gpio_input() local
960 struct sm501_gpio *smgpio = smchip->ourgpio; in sm501_gpio_input()
961 void __iomem *regs = smchip->regbase; in sm501_gpio_input()
975 sm501_gpio_ensure_gpio(smchip, bit); in sm501_gpio_input()
985 struct sm501_gpio_chip *smchip = to_sm501_gpio(chip); in sm501_gpio_output() local
986 struct sm501_gpio *smgpio = smchip->ourgpio; in sm501_gpio_output()
988 void __iomem *regs = smchip->regbase; in sm501_gpio_output()