Searched refs:GPIO_BIT (Results 1 - 6 of 6) sorted by relevance

/linux-master/drivers/gpio/
H A Dgpio-aspeed-sgpio.c133 #define GPIO_BIT(x) BIT(GPIO_OFFSET(x) >> 1) macro
180 rc = !!(ioread32(bank_reg(gpio, bank, reg)) & GPIO_BIT(offset));
205 reg |= GPIO_BIT(offset);
207 reg &= ~GPIO_BIT(offset);
265 *bit = GPIO_BIT(*offset);
501 val |= GPIO_BIT(offset);
503 val &= ~GPIO_BIT(offset);
H A Dgpio-bcm-kona.c25 #define GPIO_BIT(gpio) ((gpio) & (GPIO_PER_BANK - 1)) macro
130 int bit = GPIO_BIT(gpio);
157 int bit = GPIO_BIT(gpio);
221 int bit = GPIO_BIT(gpio);
336 int bit = GPIO_BIT(gpio);
357 int bit = GPIO_BIT(gpio);
379 int bit = GPIO_BIT(gpio);
H A Dgpio-npcm-sgpio.c45 #define GPIO_BIT(x) ((x) % 8) macro
177 *bit = GPIO_BIT(*offset);
185 if (GPIO_BIT(gpio->nin_sgpio) > 0)
189 if (GPIO_BIT(gpio->nout_sgpio) > 0)
240 reg |= BIT(GPIO_BIT(offset));
242 reg &= ~BIT(GPIO_BIT(offset));
265 return !!(reg & BIT(GPIO_BIT(offset)));
H A Dgpio-aspeed.c247 #define GPIO_BIT(x) BIT(GPIO_OFFSET(x)) macro
287 (!props || ((props->input | props->output) & GPIO_BIT(offset)));
294 return !props || (props->input & GPIO_BIT(offset));
304 return !props || (props->output & GPIO_BIT(offset));
388 return !!(ioread32(bank_reg(gpio, bank, reg_val)) & GPIO_BIT(offset));
403 reg |= GPIO_BIT(offset);
405 reg &= ~GPIO_BIT(offset);
443 reg &= ~GPIO_BIT(offset);
471 reg |= GPIO_BIT(offset);
499 val = ioread32(bank_reg(gpio, bank, reg_dir)) & GPIO_BIT(offse
[all...]
H A Dgpio-tegra.c29 #define GPIO_BIT(x) ((x) & 0x7) macro
124 val = 0x100 << GPIO_BIT(gpio);
126 val |= 1 << GPIO_BIT(gpio);
159 unsigned int bval = BIT(GPIO_BIT(offset));
210 u32 pin_mask = BIT(GPIO_BIT(offset));
276 tegra_gpio_writel(tgi, 1 << GPIO_BIT(gpio), GPIO_INT_CLR(tgi, gpio));
339 val &= ~(GPIO_INT_LVL_MASK << GPIO_BIT(gpio));
340 val |= lvl_type << GPIO_BIT(gpio);
545 bit = GPIO_BIT(gpio);
H A Dgpio-brcmstb.c61 #define GPIO_BIT(gpio) ((gpio) & (MAX_GPIO_PER_BANK - 1)) macro

Completed in 133 milliseconds