Lines Matching defs:val
163 ar5416GpioSet(struct ath_hal *ah, uint32_t gpio, uint32_t val)
169 "%s: gpio=%d, val=%d\n", __func__, gpio, val);
172 if (val & 1)
212 uint32_t val, mask;
219 val = MS(OS_REG_READ(ah, AR_INTR_ASYNC_ENABLE),
222 AR_INTR_ASYNC_ENABLE_GPIO, val);
230 val = MS(OS_REG_READ(ah, AR_INTR_SYNC_ENABLE),
233 AR_INTR_SYNC_ENABLE_GPIO, val);
240 val = MS(OS_REG_READ(ah, AR_INTR_SYNC_CAUSE),
243 AR_INTR_SYNC_ENABLE_GPIO, val);
245 val = MS(OS_REG_READ(ah, AR_GPIO_INTR_POL),
249 val &= ~AR_GPIO_BIT(gpio);
252 val |= AR_GPIO_BIT(gpio);
255 AR_GPIO_INTR_POL_VAL, val);
258 val = MS(OS_REG_READ(ah, AR_INTR_ASYNC_ENABLE),
261 AR_INTR_ASYNC_ENABLE_GPIO, val);
269 val = MS(OS_REG_READ(ah, AR_INTR_SYNC_ENABLE),
272 AR_INTR_SYNC_ENABLE_GPIO, val);