Searched refs:gpio_idx (Results 1 - 2 of 2) sorted by relevance
/linux-master/drivers/gpio/ |
H A D | gpio-mxc.c | 166 u32 gpio_idx = d->hwirq; local 170 port->both_edges &= ~(1 << gpio_idx); 182 val = port->gc.get(&port->gc, gpio_idx); 185 pr_debug("mxc: set GPIO %d to low trigger\n", gpio_idx); 188 pr_debug("mxc: set GPIO %d to high trigger\n", gpio_idx); 190 port->both_edges |= 1 << gpio_idx; 208 writel(val | (1 << gpio_idx), 211 writel(val & ~(1 << gpio_idx), 216 reg += GPIO_ICR1 + ((gpio_idx & 0x10) >> 2); /* lower or upper register */ 217 bit = gpio_idx 330 u32 gpio_idx = d->hwirq; local [all...] |
/linux-master/drivers/net/wireless/realtek/rtw89/ |
H A D | rtw8851b.c | 705 static void rtw8851b_set_bb_gpio(struct rtw89_dev *rtwdev, u8 gpio_idx, bool inv, argument 710 if (gpio_idx >= 32) 714 addr = R_RFE_SEL0_A2 + (gpio_idx / 16) * sizeof(u32); 715 mask = B_RFE_SEL0_MASK << (gpio_idx % 16) * 2; 718 rtw89_phy_write32_mask(rtwdev, R_RFE_INV0, BIT(gpio_idx), inv); 721 addr = R_RFE_SEL0_BASE + (gpio_idx / 8) * sizeof(u32); 722 mask = B_RFE_SEL0_SRC_MASK << (gpio_idx % 8) * 4;
|
Completed in 120 milliseconds