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