Home
last modified time | relevance | path

Searched refs:gpio_idx (Results 1 - 3 of 3) sorted by relevance

/kernel/linux/linux-6.6/drivers/gpio/
H A 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 in gpio_set_irq_type()
330 u32 gpio_idx = d->hwirq; gpio_set_wake_irq() local
[all...]
/kernel/linux/linux-5.10/drivers/gpio/
H A Dgpio-mxc.c178 u32 gpio_idx = d->hwirq; in gpio_set_irq_type() local
182 port->both_edges &= ~(1 << gpio_idx); in gpio_set_irq_type()
194 val = port->gc.get(&port->gc, gpio_idx); in gpio_set_irq_type()
197 pr_debug("mxc: set GPIO %d to low trigger\n", gpio_idx); in gpio_set_irq_type()
200 pr_debug("mxc: set GPIO %d to high trigger\n", gpio_idx); in gpio_set_irq_type()
202 port->both_edges |= 1 << gpio_idx; in gpio_set_irq_type()
218 writel(val | (1 << gpio_idx), in gpio_set_irq_type()
221 writel(val & ~(1 << gpio_idx), in gpio_set_irq_type()
226 reg += GPIO_ICR1 + ((gpio_idx & 0x10) >> 2); /* lower or upper register */ in gpio_set_irq_type()
227 bit = gpio_idx in gpio_set_irq_type()
328 u32 gpio_idx = d->hwirq; gpio_set_wake_irq() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtw89/
H A 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()

Completed in 5 milliseconds