• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/ath/ath_hal/ar5210/

Lines Matching defs:ah

23 #include "ah.h"
35 ar5210GetRxDP(struct ath_hal *ah, HAL_RX_QUEUE qtype)
39 return OS_REG_READ(ah, AR_RXDP);
46 ar5210SetRxDP(struct ath_hal *ah, uint32_t rxdp, HAL_RX_QUEUE qtype)
50 OS_REG_WRITE(ah, AR_RXDP, rxdp);
57 ar5210EnableReceive(struct ath_hal *ah)
59 OS_REG_WRITE(ah, AR_CR, AR_CR_RXE);
66 ar5210StopDmaReceive(struct ath_hal *ah)
70 OS_REG_WRITE(ah, AR_CR, AR_CR_RXD); /* Set receive disable bit */
72 if ((OS_REG_READ(ah, AR_CR) & AR_CR_RXE) == 0)
77 ath_hal_printf(ah, "ar5210: dma receive failed to stop in 10ms\n");
78 ath_hal_printf(ah, "AR_CR=0x%x\n", OS_REG_READ(ah, AR_CR));
79 ath_hal_printf(ah, "AR_DIAG_SW=0x%x\n", OS_REG_READ(ah, AR_DIAG_SW));
88 ar5210StartPcuReceive(struct ath_hal *ah, HAL_BOOL is_scanning)
90 ar5210UpdateDiagReg(ah,
91 OS_REG_READ(ah, AR_DIAG_SW) & ~(AR_DIAG_SW_DIS_RX));
98 ar5210StopPcuReceive(struct ath_hal *ah)
100 ar5210UpdateDiagReg(ah,
101 OS_REG_READ(ah, AR_DIAG_SW) | AR_DIAG_SW_DIS_RX);
109 ar5210SetMulticastFilter(struct ath_hal *ah, uint32_t filter0, uint32_t filter1)
111 OS_REG_WRITE(ah, AR_MCAST_FIL0, filter0);
112 OS_REG_WRITE(ah, AR_MCAST_FIL1, filter1);
119 ar5210ClrMulticastFilterIndex(struct ath_hal *ah, uint32_t ix)
126 val = OS_REG_READ(ah, AR_MCAST_FIL1);
127 OS_REG_WRITE(ah, AR_MCAST_FIL1, (val &~ (1<<(ix-32))));
129 val = OS_REG_READ(ah, AR_MCAST_FIL0);
130 OS_REG_WRITE(ah, AR_MCAST_FIL0, (val &~ (1<<ix)));
139 ar5210SetMulticastFilterIndex(struct ath_hal *ah, uint32_t ix)
146 val = OS_REG_READ(ah, AR_MCAST_FIL1);
147 OS_REG_WRITE(ah, AR_MCAST_FIL1, (val | (1<<(ix-32))));
149 val = OS_REG_READ(ah, AR_MCAST_FIL0);
150 OS_REG_WRITE(ah, AR_MCAST_FIL0, (val | (1<<ix)));
159 ar5210GetRxFilter(struct ath_hal *ah)
162 return OS_REG_READ(ah, AR_RX_FILTER);
169 ar5210SetRxFilter(struct ath_hal *ah, uint32_t bits)
175 OS_REG_WRITE(ah, AR_RX_FILTER, bits);
184 ar5210SetupRxDesc(struct ath_hal *ah, struct ath_desc *ds,
194 HALDEBUG(ah, HAL_DEBUG_ANY, "%s: buffer size %u too large\n",
214 ar5210ProcRxDesc(struct ath_hal *ah, struct ath_desc *ds,
229 if ((ands->ds_status1 & AR_Done) == 0 && OS_REG_READ(ah, AR_RXDP) == pa)
238 now = (OS_REG_READ(ah, AR_TSF_L32) >> 10) & 0xffff;