Searched refs:exar_gpio (Results 1 – 1 of 1) sorted by relevance
37 exar_offset_to_sel_addr(struct exar_gpio_chip *exar_gpio, unsigned int offset) in exar_offset_to_sel_addr() argument39 return (offset + exar_gpio->first_pin) / 8 ? EXAR_OFFSET_MPIOSEL_HI in exar_offset_to_sel_addr()44 exar_offset_to_lvl_addr(struct exar_gpio_chip *exar_gpio, unsigned int offset) in exar_offset_to_lvl_addr() argument46 return (offset + exar_gpio->first_pin) / 8 ? EXAR_OFFSET_MPIOLVL_HI in exar_offset_to_lvl_addr()51 exar_offset_to_bit(struct exar_gpio_chip *exar_gpio, unsigned int offset) in exar_offset_to_bit() argument53 return (offset + exar_gpio->first_pin) % 8; in exar_offset_to_bit()58 struct exar_gpio_chip *exar_gpio = gpiochip_get_data(chip); in exar_get_direction() local59 unsigned int addr = exar_offset_to_sel_addr(exar_gpio, offset); in exar_get_direction()60 unsigned int bit = exar_offset_to_bit(exar_gpio, offset); in exar_get_direction()62 if (regmap_test_bits(exar_gpio->regmap, addr, BIT(bit))) in exar_get_direction()[all …]