Lines Matching refs:__pdesc

20 static inline void set_tx_desc_pkt_size(__le32 *__pdesc, u32 __val)  in set_tx_desc_pkt_size()  argument
22 le32p_replace_bits(__pdesc, __val, GENMASK(15, 0)); in set_tx_desc_pkt_size()
25 static inline void set_tx_desc_offset(__le32 *__pdesc, u32 __val) in set_tx_desc_offset() argument
27 le32p_replace_bits(__pdesc, __val, GENMASK(23, 16)); in set_tx_desc_offset()
30 static inline void set_tx_desc_htc(__le32 *__pdesc, u32 __val) in set_tx_desc_htc() argument
32 le32p_replace_bits(__pdesc, __val, BIT(25)); in set_tx_desc_htc()
35 static inline void set_tx_desc_last_seg(__le32 *__pdesc, u32 __val) in set_tx_desc_last_seg() argument
37 le32p_replace_bits(__pdesc, __val, BIT(26)); in set_tx_desc_last_seg()
40 static inline void set_tx_desc_first_seg(__le32 *__pdesc, u32 __val) in set_tx_desc_first_seg() argument
42 le32p_replace_bits(__pdesc, __val, BIT(27)); in set_tx_desc_first_seg()
45 static inline void set_tx_desc_linip(__le32 *__pdesc, u32 __val) in set_tx_desc_linip() argument
47 le32p_replace_bits(__pdesc, __val, BIT(28)); in set_tx_desc_linip()
50 static inline void set_tx_desc_own(__le32 *__pdesc, u32 __val) in set_tx_desc_own() argument
52 le32p_replace_bits(__pdesc, __val, BIT(31)); in set_tx_desc_own()
55 static inline u32 get_tx_desc_own(__le32 *__pdesc) in get_tx_desc_own() argument
57 return le32_get_bits(*__pdesc, BIT(31)); in get_tx_desc_own()
60 static inline void set_tx_desc_macid(__le32 *__pdesc, u32 __val) in set_tx_desc_macid() argument
62 le32p_replace_bits((__pdesc + 1), __val, GENMASK(4, 0)); in set_tx_desc_macid()
65 static inline void set_tx_desc_agg_enable(__le32 *__pdesc, u32 __val) in set_tx_desc_agg_enable() argument
67 le32p_replace_bits((__pdesc + 1), __val, BIT(5)); in set_tx_desc_agg_enable()
70 static inline void set_tx_desc_rdg_enable(__le32 *__pdesc, u32 __val) in set_tx_desc_rdg_enable() argument
72 le32p_replace_bits((__pdesc + 1), __val, BIT(7)); in set_tx_desc_rdg_enable()
75 static inline void set_tx_desc_queue_sel(__le32 *__pdesc, u32 __val) in set_tx_desc_queue_sel() argument
77 le32p_replace_bits((__pdesc + 1), __val, GENMASK(12, 8)); in set_tx_desc_queue_sel()
80 static inline void set_tx_desc_rate_id(__le32 *__pdesc, u32 __val) in set_tx_desc_rate_id() argument
82 le32p_replace_bits((__pdesc + 1), __val, GENMASK(19, 16)); in set_tx_desc_rate_id()
85 static inline void set_tx_desc_sec_type(__le32 *__pdesc, u32 __val) in set_tx_desc_sec_type() argument
87 le32p_replace_bits((__pdesc + 1), __val, GENMASK(23, 22)); in set_tx_desc_sec_type()
90 static inline void set_tx_desc_pkt_offset(__le32 *__pdesc, u32 __val) in set_tx_desc_pkt_offset() argument
92 le32p_replace_bits((__pdesc + 1), __val, GENMASK(30, 26)); in set_tx_desc_pkt_offset()
95 static inline void set_tx_desc_more_frag(__le32 *__pdesc, u32 __val) in set_tx_desc_more_frag() argument
97 le32p_replace_bits((__pdesc + 2), __val, BIT(17)); in set_tx_desc_more_frag()
100 static inline void set_tx_desc_ampdu_density(__le32 *__pdesc, u32 __val) in set_tx_desc_ampdu_density() argument
102 le32p_replace_bits((__pdesc + 2), __val, GENMASK(22, 20)); in set_tx_desc_ampdu_density()
105 static inline void set_tx_desc_seq(__le32 *__pdesc, u32 __val) in set_tx_desc_seq() argument
107 le32p_replace_bits((__pdesc + 3), __val, GENMASK(27, 16)); in set_tx_desc_seq()
110 static inline void set_tx_desc_pkt_id(__le32 *__pdesc, u32 __val) in set_tx_desc_pkt_id() argument
112 le32p_replace_bits((__pdesc + 3), __val, GENMASK(31, 28)); in set_tx_desc_pkt_id()
115 static inline void set_tx_desc_rts_rate(__le32 *__pdesc, u32 __val) in set_tx_desc_rts_rate() argument
117 le32p_replace_bits((__pdesc + 4), __val, GENMASK(4, 0)); in set_tx_desc_rts_rate()
120 static inline void set_tx_desc_qos(__le32 *__pdesc, u32 __val) in set_tx_desc_qos() argument
122 le32p_replace_bits((__pdesc + 4), __val, BIT(6)); in set_tx_desc_qos()
125 static inline void set_tx_desc_hwseq_en(__le32 *__pdesc, u32 __val) in set_tx_desc_hwseq_en() argument
127 le32p_replace_bits((__pdesc + 4), __val, BIT(7)); in set_tx_desc_hwseq_en()
130 static inline void set_tx_desc_use_rate(__le32 *__pdesc, u32 __val) in set_tx_desc_use_rate() argument
132 le32p_replace_bits((__pdesc + 4), __val, BIT(8)); in set_tx_desc_use_rate()
135 static inline void set_tx_desc_disable_fb(__le32 *__pdesc, u32 __val) in set_tx_desc_disable_fb() argument
137 le32p_replace_bits((__pdesc + 4), __val, BIT(10)); in set_tx_desc_disable_fb()
140 static inline void set_tx_desc_cts2self(__le32 *__pdesc, u32 __val) in set_tx_desc_cts2self() argument
142 le32p_replace_bits((__pdesc + 4), __val, BIT(11)); in set_tx_desc_cts2self()
145 static inline void set_tx_desc_rts_enable(__le32 *__pdesc, u32 __val) in set_tx_desc_rts_enable() argument
147 le32p_replace_bits((__pdesc + 4), __val, BIT(12)); in set_tx_desc_rts_enable()
150 static inline void set_tx_desc_hw_rts_enable(__le32 *__pdesc, u32 __val) in set_tx_desc_hw_rts_enable() argument
152 le32p_replace_bits((__pdesc + 4), __val, BIT(13)); in set_tx_desc_hw_rts_enable()
155 static inline void set_tx_desc_tx_sub_carrier(__le32 *__pdesc, u32 __val) in set_tx_desc_tx_sub_carrier() argument
157 le32p_replace_bits((__pdesc + 4), __val, GENMASK(21, 20)); in set_tx_desc_tx_sub_carrier()
160 static inline void set_tx_desc_data_bw(__le32 *__pdesc, u32 __val) in set_tx_desc_data_bw() argument
162 le32p_replace_bits((__pdesc + 4), __val, BIT(25)); in set_tx_desc_data_bw()
165 static inline void set_tx_desc_rts_short(__le32 *__pdesc, u32 __val) in set_tx_desc_rts_short() argument
167 le32p_replace_bits((__pdesc + 4), __val, BIT(26)); in set_tx_desc_rts_short()
170 static inline void set_tx_desc_rts_bw(__le32 *__pdesc, u32 __val) in set_tx_desc_rts_bw() argument
172 le32p_replace_bits((__pdesc + 4), __val, BIT(27)); in set_tx_desc_rts_bw()
175 static inline void set_tx_desc_rts_sc(__le32 *__pdesc, u32 __val) in set_tx_desc_rts_sc() argument
177 le32p_replace_bits((__pdesc + 4), __val, GENMASK(29, 28)); in set_tx_desc_rts_sc()
180 static inline void set_tx_desc_rts_stbc(__le32 *__pdesc, u32 __val) in set_tx_desc_rts_stbc() argument
182 le32p_replace_bits((__pdesc + 4), __val, GENMASK(31, 30)); in set_tx_desc_rts_stbc()
185 static inline void set_tx_desc_tx_rate(__le32 *__pdesc, u32 __val) in set_tx_desc_tx_rate() argument
187 le32p_replace_bits((__pdesc + 5), __val, GENMASK(5, 0)); in set_tx_desc_tx_rate()
190 static inline void set_tx_desc_data_shortgi(__le32 *__pdesc, u32 __val) in set_tx_desc_data_shortgi() argument
192 le32p_replace_bits((__pdesc + 5), __val, BIT(6)); in set_tx_desc_data_shortgi()
195 static inline void set_tx_desc_data_rate_fb_limit(__le32 *__pdesc, u32 __val) in set_tx_desc_data_rate_fb_limit() argument
197 le32p_replace_bits((__pdesc + 5), __val, GENMASK(12, 8)); in set_tx_desc_data_rate_fb_limit()
200 static inline void set_tx_desc_rts_rate_fb_limit(__le32 *__pdesc, u32 __val) in set_tx_desc_rts_rate_fb_limit() argument
202 le32p_replace_bits((__pdesc + 5), __val, GENMASK(16, 13)); in set_tx_desc_rts_rate_fb_limit()
205 static inline void set_tx_desc_max_agg_num(__le32 *__pdesc, u32 __val) in set_tx_desc_max_agg_num() argument
207 le32p_replace_bits((__pdesc + 6), __val, GENMASK(15, 11)); in set_tx_desc_max_agg_num()
210 static inline void set_tx_desc_tx_buffer_size(__le32 *__pdesc, u32 __val) in set_tx_desc_tx_buffer_size() argument
212 le32p_replace_bits((__pdesc + 7), __val, GENMASK(15, 0)); in set_tx_desc_tx_buffer_size()
215 static inline void set_tx_desc_tx_buffer_address(__le32 *__pdesc, u32 __val) in set_tx_desc_tx_buffer_address() argument
217 *(__pdesc + 8) = cpu_to_le32(__val); in set_tx_desc_tx_buffer_address()
220 static inline u32 get_tx_desc_tx_buffer_address(__le32 *__pdesc) in get_tx_desc_tx_buffer_address() argument
222 return le32_to_cpu(*(__pdesc + 8)); in get_tx_desc_tx_buffer_address()
225 static inline void set_tx_desc_next_desc_address(__le32 *__pdesc, u32 __val) in set_tx_desc_next_desc_address() argument
227 *(__pdesc + 10) = cpu_to_le32(__val); in set_tx_desc_next_desc_address()
230 static inline u32 get_rx_desc_pkt_len(__le32 *__pdesc) in get_rx_desc_pkt_len() argument
232 return le32_get_bits(*__pdesc, GENMASK(13, 0)); in get_rx_desc_pkt_len()
235 static inline u32 get_rx_desc_crc32(__le32 *__pdesc) in get_rx_desc_crc32() argument
237 return le32_get_bits(*__pdesc, BIT(14)); in get_rx_desc_crc32()
240 static inline u32 get_rx_desc_icv(__le32 *__pdesc) in get_rx_desc_icv() argument
242 return le32_get_bits(*__pdesc, BIT(15)); in get_rx_desc_icv()
245 static inline u32 get_rx_desc_drv_info_size(__le32 *__pdesc) in get_rx_desc_drv_info_size() argument
247 return le32_get_bits(*__pdesc, GENMASK(19, 16)); in get_rx_desc_drv_info_size()
250 static inline u32 get_rx_desc_enc_type(__le32 *__pdesc) in get_rx_desc_enc_type() argument
252 return le32_get_bits(*__pdesc, GENMASK(22, 20)); in get_rx_desc_enc_type()
255 static inline u32 get_rx_desc_shift(__le32 *__pdesc) in get_rx_desc_shift() argument
257 return le32_get_bits(*__pdesc, GENMASK(25, 24)); in get_rx_desc_shift()
260 static inline u32 get_rx_desc_physt(__le32 *__pdesc) in get_rx_desc_physt() argument
262 return le32_get_bits(*__pdesc, BIT(26)); in get_rx_desc_physt()
265 static inline u32 get_rx_desc_swdec(__le32 *__pdesc) in get_rx_desc_swdec() argument
267 return le32_get_bits(*__pdesc, BIT(27)); in get_rx_desc_swdec()
270 static inline u32 get_rx_desc_own(__le32 *__pdesc) in get_rx_desc_own() argument
272 return le32_get_bits(*__pdesc, BIT(31)); in get_rx_desc_own()
275 static inline void set_rx_desc_pkt_len(__le32 *__pdesc, u32 __val) in set_rx_desc_pkt_len() argument
277 le32p_replace_bits(__pdesc, __val, GENMASK(13, 0)); in set_rx_desc_pkt_len()
280 static inline void set_rx_desc_eor(__le32 *__pdesc, u32 __val) in set_rx_desc_eor() argument
282 le32p_replace_bits(__pdesc, __val, BIT(30)); in set_rx_desc_eor()
285 static inline void set_rx_desc_own(__le32 *__pdesc, u32 __val) in set_rx_desc_own() argument
287 le32p_replace_bits(__pdesc, __val, BIT(31)); in set_rx_desc_own()
290 static inline u32 get_rx_desc_paggr(__le32 *__pdesc) in get_rx_desc_paggr() argument
292 return le32_get_bits(*(__pdesc + 1), BIT(14)); in get_rx_desc_paggr()
295 static inline u32 get_rx_desc_faggr(__le32 *__pdesc) in get_rx_desc_faggr() argument
297 return le32_get_bits(*(__pdesc + 1), BIT(15)); in get_rx_desc_faggr()
300 static inline u32 get_rx_desc_rxmcs(__le32 *__pdesc) in get_rx_desc_rxmcs() argument
302 return le32_get_bits(*(__pdesc + 3), GENMASK(5, 0)); in get_rx_desc_rxmcs()
305 static inline u32 get_rx_desc_rxht(__le32 *__pdesc) in get_rx_desc_rxht() argument
307 return le32_get_bits(*(__pdesc + 3), BIT(6)); in get_rx_desc_rxht()
310 static inline u32 get_rx_desc_splcp(__le32 *__pdesc) in get_rx_desc_splcp() argument
312 return le32_get_bits(*(__pdesc + 3), BIT(8)); in get_rx_desc_splcp()
315 static inline u32 get_rx_desc_bw(__le32 *__pdesc) in get_rx_desc_bw() argument
317 return le32_get_bits(*(__pdesc + 3), BIT(9)); in get_rx_desc_bw()
320 static inline u32 get_rx_desc_tsfl(__le32 *__pdesc) in get_rx_desc_tsfl() argument
322 return le32_to_cpu(*(__pdesc + 5)); in get_rx_desc_tsfl()
325 static inline u32 get_rx_desc_buff_addr(__le32 *__pdesc) in get_rx_desc_buff_addr() argument
327 return le32_to_cpu(*(__pdesc + 6)); in get_rx_desc_buff_addr()
330 static inline void set_rx_desc_buff_addr(__le32 *__pdesc, u32 __val) in set_rx_desc_buff_addr() argument
332 *(__pdesc + 6) = cpu_to_le32(__val); in set_rx_desc_buff_addr()