reg32
set_regs32(struct thread *td, struct reg32 *regs)
fill_regs32(struct thread *td, struct reg32 *regs)
struct reg32;
void bsd_to_linux_regset32(const struct reg32 *b_reg,
bsd_to_linux_regset32(const struct reg32 *b_reg,
fill_regs32(struct thread *td, struct reg32 *regs)
set_regs32(struct thread *td, struct reg32 *regs)
struct reg32 reg;
struct reg32 pr_reg;
uint32_t refClk, reg32, data2111;
reg32 = ath_hal_reverseBits(chan5111 - 24, 8) & 0xFF;
reg32 = ath_hal_reverseBits(((chan5111 - 24) / 2), 8) & 0xFF;
reg32 = (reg32 << 2) | (refClk << 1) | (1 << 10) | 0x1;
OS_REG_WRITE(ah, AR_PHY(0x27), ((data2111 & 0xff) << 8) | (reg32 & 0xff));
reg32 >>= 8;
OS_REG_WRITE(ah, AR_PHY(0x34), (data2111 & 0xff00) | (reg32 & 0xff));
reg32 = (channelSel << 4) | (aModeRefSel << 2) | (bModeSynth << 1) |
OS_REG_WRITE(ah, AR_PHY(0x27), reg32 & 0xff);
reg32 >>= 8;
OS_REG_WRITE(ah, AR_PHY(0x36), reg32 & 0x7f);
uint32_t reg32, regoffset;
reg32 = ((pdadcValues[4*i + 0] & 0xFF) << 0) |
OS_REG_WRITE(ah, regoffset, reg32);
extern void ar5212ModifyRfBuffer(uint32_t *rfBuf, uint32_t reg32,
uint32_t reg32 = 0;
reg32 = (channelSel << 4) | (aModeRefSel << 2) | (bModeSynth << 1) |
OS_REG_WRITE(ah, AR_PHY(0x27), reg32 & 0xff);
reg32 >>= 8;
OS_REG_WRITE(ah, AR_PHY(0x36), reg32 & 0x7f);
uint32_t reg32, regoffset;
reg32 = ((pdadcValues[4*i + 0] & 0xFF) << 0) |
OS_REG_WRITE(ah, regoffset, reg32);
extern void ar5212ModifyRfBuffer(uint32_t *rfBuf, uint32_t reg32,
uint32_t reg32 = 0;
reg32 = (channelSel << 4) | (aModeRefSel << 2) | (bModeSynth << 1) |
OS_REG_WRITE(ah, AR_PHY(0x27), reg32 & 0xff);
reg32 >>= 8;
OS_REG_WRITE(ah, AR_PHY(0x36), reg32 & 0x7f);
uint32_t reg32, regoffset;
reg32 = ((pdadcValues[4*i + 0] & 0xFF) << 0) |
OS_REG_WRITE(ah, regoffset, reg32);
extern void ar5212ModifyRfBuffer(uint32_t *rfBuf, uint32_t reg32,
uint32_t reg32 = 0;
reg32 = (channelSel << 4) | (aModeRefSel << 2) | (bModeSynth << 1) |
OS_REG_WRITE(ah, AR_PHY(0x27), reg32 & 0xff);
reg32 >>= 8;
OS_REG_WRITE(ah, AR_PHY(0x36), reg32 & 0x7f);
extern void ar5212ModifyRfBuffer(uint32_t *rfBuf, uint32_t reg32,
uint32_t i, reg32, regoffset;
reg32 = ((pdadcValues[4*i + 0] & 0xFF) << 0) |
OS_REG_WRITE(ah, regoffset, reg32);
uint32_t reg32 = 0;
reg32 = ath_hal_reverseBits(chan5111 - 24, 8) & 0xff;
reg32 = ath_hal_reverseBits(((chan5111 - 24)/2), 8) & 0xff;
reg32 = (reg32 << 2) | (refClk << 1) | (1 << 10) | 0x1;
OS_REG_WRITE(ah, AR_PHY(0x27), ((data2111 & 0xff) << 8) | (reg32 & 0xff));
reg32 >>= 8;
OS_REG_WRITE(ah, AR_PHY(0x34), (data2111 & 0xff00) | (reg32 & 0xff));
extern void ar5212ModifyRfBuffer(uint32_t *rfBuf, uint32_t reg32,
uint32_t refClk, reg32, data2111;
reg32 = (channelSel << 4) | (aModeRefSel << 2) | (bModeSynth << 1) |
OS_REG_WRITE(ah, AR_PHY(0x27), reg32 & 0xff);
reg32 >>= 8;
OS_REG_WRITE(ah, AR_PHY(0x36), reg32 & 0x7f);
extern void ar5212ModifyRfBuffer(uint32_t *rfBuf, uint32_t reg32,
uint32_t reg32 = 0;
ar5212ModifyRfBuffer(uint32_t *rfBuf, uint32_t reg32, uint32_t numBits,
tmp32 = ath_hal_reverseBits(reg32, numBits);
void ar5212ModifyRfBuffer(uint32_t *rfBuf, uint32_t reg32,
reg32 |= (((rfBuf[arrayEntry] & mask) >> (column * 8)) >>
reg32 = ath_hal_reverseBits(reg32, numBits);
return reg32;
uint32_t reg32 = 0, mask, arrayEntry, lastBit;
reg32 = (channelSel << 4) | (aModeRefSel << 2) | (bModeSynth << 1) |
OS_REG_WRITE(ah, AR_PHY(0x27), reg32 & 0xff);
reg32 >>= 8;
OS_REG_WRITE(ah, AR_PHY(0x36), reg32 & 0x7f);
uint32_t reg32, regoffset;
extern void ar5212ModifyRfBuffer(uint32_t *rfBuf, uint32_t reg32,
reg32 = ((pdadcValues[4*i + 0] & 0xFF) << 0) |
OS_REG_WRITE(ah, regoffset, reg32);
uint32_t reg32 = 0;
uint32_t reg32 = 0;
reg32 = (channelSel << 8) | (aModeRefSel << 2) | (bModeSynth << 1) |
OS_REG_WRITE(ah, AR_PHY(0x37), reg32);
void ar5416ModifyRfBuffer(uint32_t *rfBuf, uint32_t reg32,
int reg32;
reg32 = ((pdadcValues[4*j + 0] & 0xFF) << 0) |
OS_REG_WRITE(ah, regOffset, reg32);
reg32 = reg32 | (bMode << 29) | (fracMode << 28) |
OS_REG_WRITE(ah, AR_PHY_SYNTH_CONTROL, reg32);
uint32_t freq, ndiv, channelSel = 0, channelFrac = 0, reg32 = 0;
reg32 = OS_REG_READ(ah, AR_PHY_SYNTH_CONTROL);
reg32 &= 0xc0000000;
reg32 = reg32 | (bMode << 29) | (fracMode << 28) |
OS_REG_WRITE(ah, AR_PHY_SYNTH_CONTROL, reg32);
uint32_t freq, ndiv, channelSel = 0, channelFrac = 0, reg32 = 0;
reg32 = OS_REG_READ(ah, AR_PHY_SYNTH_CONTROL);
reg32 &= 0xc0000000;
struct reg32 r32;
typedef struct reg32 elf_gregset_t;
proc_read_regs32(struct thread *td, struct reg32 *regs32)
proc_write_regs32(struct thread *td, struct reg32 *regs32)
int fill_regs32(struct thread *, struct reg32 *);
int set_regs32(struct thread *, struct reg32 *);
set_regs32(struct thread *td, struct reg32 *regs)
fill_regs32(struct thread *td, struct reg32 *regs)
struct reg32 pr_reg;
struct reg32;
int proc_read_regs32(struct thread *_td, struct reg32 *_reg32);
int proc_write_regs32(struct thread *_td, struct reg32 *_reg32);
int fill_regs32(struct thread *, struct reg32 *);
int set_regs32(struct thread *, struct reg32 *);
#define __reg32 reg32