Lines Matching refs:smgpio
890 struct sm501_gpio_chip *smgpio = gpiochip_get_data(chip); in sm501_gpio_get() local
893 result = smc501_readl(smgpio->regbase + SM501_GPIO_DATA_LOW); in sm501_gpio_get()
922 struct sm501_gpio *smgpio = smchip->ourgpio; in sm501_gpio_set() local
928 dev_dbg(sm501_gpio_to_dev(smgpio)->dev, "%s(%p,%d)\n", in sm501_gpio_set()
931 spin_lock_irqsave(&smgpio->lock, save); in sm501_gpio_set()
938 sm501_sync_regs(sm501_gpio_to_dev(smgpio)); in sm501_gpio_set()
941 spin_unlock_irqrestore(&smgpio->lock, save); in sm501_gpio_set()
947 struct sm501_gpio *smgpio = smchip->ourgpio; in sm501_gpio_input() local
953 dev_dbg(sm501_gpio_to_dev(smgpio)->dev, "%s(%p,%d)\n", in sm501_gpio_input()
956 spin_lock_irqsave(&smgpio->lock, save); in sm501_gpio_input()
961 sm501_sync_regs(sm501_gpio_to_dev(smgpio)); in sm501_gpio_input()
964 spin_unlock_irqrestore(&smgpio->lock, save); in sm501_gpio_input()
973 struct sm501_gpio *smgpio = smchip->ourgpio; in sm501_gpio_output() local
980 dev_dbg(sm501_gpio_to_dev(smgpio)->dev, "%s(%p,%d,%d)\n", in sm501_gpio_output()
983 spin_lock_irqsave(&smgpio->lock, save); in sm501_gpio_output()
995 sm501_sync_regs(sm501_gpio_to_dev(smgpio)); in sm501_gpio_output()
998 sm501_sync_regs(sm501_gpio_to_dev(smgpio)); in sm501_gpio_output()
999 spin_unlock_irqrestore(&smgpio->lock, save); in sm501_gpio_output()