Lines Matching refs:offs
59 unsigned int val, offs; in syscon_gpio_get() local
62 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset; in syscon_gpio_get()
65 (offs / SYSCON_REG_BITS) * SYSCON_REG_SIZE, &val); in syscon_gpio_get()
69 return !!(val & BIT(offs % SYSCON_REG_BITS)); in syscon_gpio_get()
75 unsigned int offs; in syscon_gpio_set() local
77 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset; in syscon_gpio_set()
80 (offs / SYSCON_REG_BITS) * SYSCON_REG_SIZE, in syscon_gpio_set()
81 BIT(offs % SYSCON_REG_BITS), in syscon_gpio_set()
82 val ? BIT(offs % SYSCON_REG_BITS) : 0); in syscon_gpio_set()
90 unsigned int offs; in syscon_gpio_dir_in() local
92 offs = priv->dir_reg_offset + in syscon_gpio_dir_in()
96 (offs / SYSCON_REG_BITS) * SYSCON_REG_SIZE, in syscon_gpio_dir_in()
97 BIT(offs % SYSCON_REG_BITS), 0); in syscon_gpio_dir_in()
108 unsigned int offs; in syscon_gpio_dir_out() local
110 offs = priv->dir_reg_offset + in syscon_gpio_dir_out()
114 (offs / SYSCON_REG_BITS) * SYSCON_REG_SIZE, in syscon_gpio_dir_out()
115 BIT(offs % SYSCON_REG_BITS), in syscon_gpio_dir_out()
116 BIT(offs % SYSCON_REG_BITS)); in syscon_gpio_dir_out()
135 unsigned int offs; in rockchip_gpio_set() local
140 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset; in rockchip_gpio_set()
141 bit = offs % SYSCON_REG_BITS; in rockchip_gpio_set()
144 (offs / SYSCON_REG_BITS) * SYSCON_REG_SIZE, in rockchip_gpio_set()
163 unsigned int offs; in keystone_gpio_set() local
166 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset; in keystone_gpio_set()
173 (offs / SYSCON_REG_BITS) * SYSCON_REG_SIZE, in keystone_gpio_set()
174 BIT(offs % SYSCON_REG_BITS) | KEYSTONE_LOCK_BIT, in keystone_gpio_set()
175 BIT(offs % SYSCON_REG_BITS) | KEYSTONE_LOCK_BIT); in keystone_gpio_set()