Home
last modified time | relevance | path

Searched refs:gpio_idx (Results 1 – 2 of 2) sorted by relevance

/drivers/gpio/
Dgpio-mxc.c166 u32 gpio_idx = d->hwirq; in gpio_set_irq_type() local
170 port->both_edges &= ~(1 << gpio_idx); in gpio_set_irq_type()
182 val = port->gc.get(&port->gc, gpio_idx); in gpio_set_irq_type()
185 pr_debug("mxc: set GPIO %d to low trigger\n", gpio_idx); in gpio_set_irq_type()
188 pr_debug("mxc: set GPIO %d to high trigger\n", gpio_idx); in gpio_set_irq_type()
190 port->both_edges |= 1 << gpio_idx; in gpio_set_irq_type()
208 writel(val | (1 << gpio_idx), in gpio_set_irq_type()
211 writel(val & ~(1 << gpio_idx), in gpio_set_irq_type()
216 reg += GPIO_ICR1 + ((gpio_idx & 0x10) >> 2); /* lower or upper register */ in gpio_set_irq_type()
217 bit = gpio_idx & 0xf; in gpio_set_irq_type()
[all …]
/drivers/net/wireless/realtek/rtw89/
Drtw8851b.c690 static void rtw8851b_set_bb_gpio(struct rtw89_dev *rtwdev, u8 gpio_idx, bool inv, in rtw8851b_set_bb_gpio() argument
695 if (gpio_idx >= 32) in rtw8851b_set_bb_gpio()
699 addr = R_RFE_SEL0_A2 + (gpio_idx / 16) * sizeof(u32); in rtw8851b_set_bb_gpio()
700 mask = B_RFE_SEL0_MASK << (gpio_idx % 16) * 2; in rtw8851b_set_bb_gpio()
703 rtw89_phy_write32_mask(rtwdev, R_RFE_INV0, BIT(gpio_idx), inv); in rtw8851b_set_bb_gpio()
706 addr = R_RFE_SEL0_BASE + (gpio_idx / 8) * sizeof(u32); in rtw8851b_set_bb_gpio()
707 mask = B_RFE_SEL0_SRC_MASK << (gpio_idx % 8) * 4; in rtw8851b_set_bb_gpio()