Lines Matching refs:rspec
115 static inline bool rspec_active(u32 rspec) in rspec_active() argument
117 return rspec & (RSPEC_RATE_MASK | RSPEC_MIMORATE); in rspec_active()
120 static inline u8 rspec_phytxbyte2(u32 rspec) in rspec_phytxbyte2() argument
122 return (rspec & 0xff00) >> 8; in rspec_phytxbyte2()
125 static inline u32 rspec_get_bw(u32 rspec) in rspec_get_bw() argument
127 return (rspec & RSPEC_BW_MASK) >> RSPEC_BW_SHIFT; in rspec_get_bw()
130 static inline bool rspec_issgi(u32 rspec) in rspec_issgi() argument
132 return (rspec & RSPEC_SHORT_GI) == RSPEC_SHORT_GI; in rspec_issgi()
135 static inline bool rspec_is40mhz(u32 rspec) in rspec_is40mhz() argument
137 u32 bw = rspec_get_bw(rspec); in rspec_is40mhz()
142 static inline uint rspec2rate(u32 rspec) in rspec2rate() argument
144 if (rspec & RSPEC_MIMORATE) in rspec2rate()
145 return mcs_2_rate(rspec & RSPEC_RATE_MASK, rspec_is40mhz(rspec), in rspec2rate()
146 rspec_issgi(rspec)); in rspec2rate()
147 return rspec & RSPEC_RATE_MASK; in rspec2rate()
150 static inline u8 rspec_mimoplcp3(u32 rspec) in rspec_mimoplcp3() argument
152 return (rspec & 0xf00000) >> 16; in rspec_mimoplcp3()
160 static inline uint rspec_stc(u32 rspec) in rspec_stc() argument
162 return (rspec & RSPEC_STC_MASK) >> RSPEC_STC_SHIFT; in rspec_stc()
165 static inline uint rspec_stf(u32 rspec) in rspec_stf() argument
167 return (rspec & RSPEC_STF_MASK) >> RSPEC_STF_SHIFT; in rspec_stf()