Home
last modified time | relevance | path

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

/linux-6.15/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()
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()
217 bit = gpio_idx & 0xf; in gpio_set_irq_type()
223 port->pad_type[gpio_idx] = type; in gpio_set_irq_type()
330 u32 gpio_idx = d->hwirq; in gpio_set_wake_irq() local
334 if (port->irq_high && (gpio_idx >= 16)) in gpio_set_wake_irq()
338 port->wakeup_pads |= (1 << gpio_idx); in gpio_set_wake_irq()
[all …]
/linux-6.15/drivers/net/wireless/realtek/rtw89/
H A Drtw8851b.c725 static void rtw8851b_set_bb_gpio(struct rtw89_dev *rtwdev, u8 gpio_idx, bool inv, in rtw8851b_set_bb_gpio() argument
730 if (gpio_idx >= 32) in rtw8851b_set_bb_gpio()
734 addr = R_RFE_SEL0_A2 + (gpio_idx / 16) * sizeof(u32); in rtw8851b_set_bb_gpio()
735 mask = B_RFE_SEL0_MASK << (gpio_idx % 16) * 2; in rtw8851b_set_bb_gpio()
738 rtw89_phy_write32_mask(rtwdev, R_RFE_INV0, BIT(gpio_idx), inv); in rtw8851b_set_bb_gpio()
741 addr = R_RFE_SEL0_BASE + (gpio_idx / 8) * sizeof(u32); in rtw8851b_set_bb_gpio()
742 mask = B_RFE_SEL0_SRC_MASK << (gpio_idx % 8) * 4; in rtw8851b_set_bb_gpio()