• Home
  • Raw
  • Download

Lines Matching refs:__pdesc

17 static inline void set_tx_desc_pkt_size(__le32 *__pdesc, u32 __val)  in set_tx_desc_pkt_size()  argument
19 le32p_replace_bits(__pdesc, __val, GENMASK(15, 0)); in set_tx_desc_pkt_size()
22 static inline void set_tx_desc_offset(__le32 *__pdesc, u32 __val) in set_tx_desc_offset() argument
24 le32p_replace_bits(__pdesc, __val, GENMASK(23, 16)); in set_tx_desc_offset()
27 static inline void set_tx_desc_bmc(__le32 *__pdesc, u32 __val) in set_tx_desc_bmc() argument
29 le32p_replace_bits(__pdesc, __val, BIT(24)); in set_tx_desc_bmc()
32 static inline void set_tx_desc_htc(__le32 *__pdesc, u32 __val) in set_tx_desc_htc() argument
34 le32p_replace_bits(__pdesc, __val, BIT(25)); in set_tx_desc_htc()
37 static inline void set_tx_desc_last_seg(__le32 *__pdesc, u32 __val) in set_tx_desc_last_seg() argument
39 le32p_replace_bits(__pdesc, __val, BIT(26)); in set_tx_desc_last_seg()
42 static inline void set_tx_desc_first_seg(__le32 *__pdesc, u32 __val) in set_tx_desc_first_seg() argument
44 le32p_replace_bits(__pdesc, __val, BIT(27)); in set_tx_desc_first_seg()
47 static inline void set_tx_desc_linip(__le32 *__pdesc, u32 __val) in set_tx_desc_linip() argument
49 le32p_replace_bits(__pdesc, __val, BIT(28)); in set_tx_desc_linip()
52 static inline void set_tx_desc_own(__le32 *__pdesc, u32 __val) in set_tx_desc_own() argument
54 le32p_replace_bits(__pdesc, __val, BIT(31)); in set_tx_desc_own()
57 static inline int get_tx_desc_own(__le32 *__pdesc) in get_tx_desc_own() argument
59 return le32_get_bits(*(__pdesc), BIT(31)); in get_tx_desc_own()
62 static inline void set_tx_desc_macid(__le32 *__pdesc, u32 __val) in set_tx_desc_macid() argument
64 le32p_replace_bits(__pdesc + 1, __val, GENMASK(5, 0)); in set_tx_desc_macid()
67 static inline void set_tx_desc_queue_sel(__le32 *__pdesc, u32 __val) in set_tx_desc_queue_sel() argument
69 le32p_replace_bits(__pdesc + 1, __val, GENMASK(12, 8)); in set_tx_desc_queue_sel()
72 static inline void set_tx_desc_rate_id(__le32 *__pdesc, u32 __val) in set_tx_desc_rate_id() argument
74 le32p_replace_bits(__pdesc + 1, __val, GENMASK(19, 16)); in set_tx_desc_rate_id()
77 static inline void set_tx_desc_nav_use_hdr(__le32 *__pdesc, u32 __val) in set_tx_desc_nav_use_hdr() argument
79 le32p_replace_bits(__pdesc + 1, __val, BIT(20)); in set_tx_desc_nav_use_hdr()
82 static inline void set_tx_desc_sec_type(__le32 *__pdesc, u32 __val) in set_tx_desc_sec_type() argument
84 le32p_replace_bits(__pdesc + 1, __val, GENMASK(23, 22)); in set_tx_desc_sec_type()
87 static inline void set_tx_desc_pkt_offset(__le32 *__pdesc, u32 __val) in set_tx_desc_pkt_offset() argument
89 le32p_replace_bits(__pdesc + 1, __val, GENMASK(30, 26)); in set_tx_desc_pkt_offset()
92 static inline void set_tx_desc_agg_enable(__le32 *__pdesc, u32 __val) in set_tx_desc_agg_enable() argument
94 le32p_replace_bits(__pdesc + 2, __val, BIT(12)); in set_tx_desc_agg_enable()
97 static inline void set_tx_desc_rdg_enable(__le32 *__pdesc, u32 __val) in set_tx_desc_rdg_enable() argument
99 le32p_replace_bits(__pdesc + 2, __val, BIT(13)); in set_tx_desc_rdg_enable()
102 static inline void set_tx_desc_more_frag(__le32 *__pdesc, u32 __val) in set_tx_desc_more_frag() argument
104 le32p_replace_bits(__pdesc + 2, __val, BIT(17)); in set_tx_desc_more_frag()
107 static inline void set_tx_desc_ampdu_density(__le32 *__pdesc, u32 __val) in set_tx_desc_ampdu_density() argument
109 le32p_replace_bits(__pdesc + 2, __val, GENMASK(22, 20)); in set_tx_desc_ampdu_density()
112 static inline void set_tx_desc_antsel_a(__le32 *__pdesc, u32 __val) in set_tx_desc_antsel_a() argument
114 le32p_replace_bits(__pdesc + 2, __val, BIT(24)); in set_tx_desc_antsel_a()
117 static inline void set_tx_desc_antsel_b(__le32 *__pdesc, u32 __val) in set_tx_desc_antsel_b() argument
119 le32p_replace_bits(__pdesc + 2, __val, BIT(25)); in set_tx_desc_antsel_b()
122 static inline void set_tx_desc_seq(__le32 *__pdesc, u32 __val) in set_tx_desc_seq() argument
124 le32p_replace_bits(__pdesc + 3, __val, GENMASK(27, 16)); in set_tx_desc_seq()
127 static inline void set_tx_desc_hwseq_en(__le32 *__pdesc, u32 __val) in set_tx_desc_hwseq_en() argument
129 le32p_replace_bits(__pdesc + 3, __val, BIT(31)); in set_tx_desc_hwseq_en()
132 static inline void set_tx_desc_rts_rate(__le32 *__pdesc, u32 __val) in set_tx_desc_rts_rate() argument
134 le32p_replace_bits(__pdesc + 4, __val, GENMASK(4, 0)); in set_tx_desc_rts_rate()
137 static inline void set_tx_desc_qos(__le32 *__pdesc, u32 __val) in set_tx_desc_qos() argument
139 le32p_replace_bits(__pdesc + 4, __val, BIT(6)); in set_tx_desc_qos()
142 static inline void set_tx_desc_use_rate(__le32 *__pdesc, u32 __val) in set_tx_desc_use_rate() argument
144 le32p_replace_bits(__pdesc + 4, __val, BIT(8)); in set_tx_desc_use_rate()
147 static inline void set_tx_desc_disable_fb(__le32 *__pdesc, u32 __val) in set_tx_desc_disable_fb() argument
149 le32p_replace_bits(__pdesc + 4, __val, BIT(10)); in set_tx_desc_disable_fb()
152 static inline void set_tx_desc_cts2self(__le32 *__pdesc, u32 __val) in set_tx_desc_cts2self() argument
154 le32p_replace_bits(__pdesc + 4, __val, BIT(11)); in set_tx_desc_cts2self()
157 static inline void set_tx_desc_rts_enable(__le32 *__pdesc, u32 __val) in set_tx_desc_rts_enable() argument
159 le32p_replace_bits(__pdesc + 4, __val, BIT(12)); in set_tx_desc_rts_enable()
162 static inline void set_tx_desc_hw_rts_enable(__le32 *__pdesc, u32 __val) in set_tx_desc_hw_rts_enable() argument
164 le32p_replace_bits(__pdesc + 4, __val, BIT(13)); in set_tx_desc_hw_rts_enable()
167 static inline void set_tx_desc_tx_sub_carrier(__le32 *__pdesc, u32 __val) in set_tx_desc_tx_sub_carrier() argument
169 le32p_replace_bits(__pdesc + 4, __val, GENMASK(21, 20)); in set_tx_desc_tx_sub_carrier()
172 static inline void set_tx_desc_tx_stbc(__le32 *__pdesc, u32 __val) in set_tx_desc_tx_stbc() argument
174 le32p_replace_bits(__pdesc + 4, __val, GENMASK(23, 22)); in set_tx_desc_tx_stbc()
177 static inline void set_tx_desc_data_bw(__le32 *__pdesc, u32 __val) in set_tx_desc_data_bw() argument
179 le32p_replace_bits(__pdesc + 4, __val, BIT(25)); in set_tx_desc_data_bw()
182 static inline void set_tx_desc_rts_short(__le32 *__pdesc, u32 __val) in set_tx_desc_rts_short() argument
184 le32p_replace_bits(__pdesc + 4, __val, BIT(26)); in set_tx_desc_rts_short()
187 static inline void set_tx_desc_rts_bw(__le32 *__pdesc, u32 __val) in set_tx_desc_rts_bw() argument
189 le32p_replace_bits(__pdesc + 4, __val, BIT(27)); in set_tx_desc_rts_bw()
192 static inline void set_tx_desc_rts_sc(__le32 *__pdesc, u32 __val) in set_tx_desc_rts_sc() argument
194 le32p_replace_bits(__pdesc + 4, __val, GENMASK(29, 28)); in set_tx_desc_rts_sc()
197 static inline void set_tx_desc_rts_stbc(__le32 *__pdesc, u32 __val) in set_tx_desc_rts_stbc() argument
199 le32p_replace_bits(__pdesc + 4, __val, GENMASK(31, 30)); in set_tx_desc_rts_stbc()
202 static inline void set_tx_desc_tx_rate(__le32 *__pdesc, u32 __val) in set_tx_desc_tx_rate() argument
204 le32p_replace_bits(__pdesc + 5, __val, GENMASK(5, 0)); in set_tx_desc_tx_rate()
207 static inline void set_tx_desc_data_shortgi(__le32 *__pdesc, u32 __val) in set_tx_desc_data_shortgi() argument
209 le32p_replace_bits(__pdesc + 5, __val, BIT(6)); in set_tx_desc_data_shortgi()
212 static inline void set_tx_desc_data_rate_fb_limit(__le32 *__pdesc, u32 __val) in set_tx_desc_data_rate_fb_limit() argument
214 le32p_replace_bits(__pdesc + 5, __val, GENMASK(12, 8)); in set_tx_desc_data_rate_fb_limit()
217 static inline void set_tx_desc_rts_rate_fb_limit(__le32 *__pdesc, u32 __val) in set_tx_desc_rts_rate_fb_limit() argument
219 le32p_replace_bits(__pdesc + 5, __val, GENMASK(16, 13)); in set_tx_desc_rts_rate_fb_limit()
222 static inline void set_tx_desc_max_agg_num(__le32 *__pdesc, u32 __val) in set_tx_desc_max_agg_num() argument
224 le32p_replace_bits(__pdesc + 6, __val, GENMASK(15, 11)); in set_tx_desc_max_agg_num()
227 static inline void set_tx_desc_antsel_c(__le32 *__pdesc, u32 __val) in set_tx_desc_antsel_c() argument
229 le32p_replace_bits(__pdesc + 7, __val, BIT(29)); in set_tx_desc_antsel_c()
232 static inline void set_tx_desc_tx_buffer_size(__le32 *__pdesc, u32 __val) in set_tx_desc_tx_buffer_size() argument
234 le32p_replace_bits(__pdesc + 7, __val, GENMASK(15, 0)); in set_tx_desc_tx_buffer_size()
237 static inline int get_tx_desc_tx_buffer_size(__le32 *__pdesc) in get_tx_desc_tx_buffer_size() argument
239 return le32_get_bits(*(__pdesc + 7), GENMASK(15, 0)); in get_tx_desc_tx_buffer_size()
242 static inline void set_tx_desc_tx_buffer_address(__le32 *__pdesc, u32 __val) in set_tx_desc_tx_buffer_address() argument
244 *(__pdesc + 8) = cpu_to_le32(__val); in set_tx_desc_tx_buffer_address()
247 static inline u32 get_tx_desc_tx_buffer_address(__le32 *__pdesc) in get_tx_desc_tx_buffer_address() argument
249 return le32_to_cpu(*(__pdesc + 8)); in get_tx_desc_tx_buffer_address()
252 static inline void set_tx_desc_next_desc_address(__le32 *__pdesc, u32 __val) in set_tx_desc_next_desc_address() argument
254 *(__pdesc + 10) = cpu_to_le32(__val); in set_tx_desc_next_desc_address()
257 static inline int get_rx_desc_pkt_len(__le32 *__pdesc) in get_rx_desc_pkt_len() argument
259 return le32_get_bits(*(__pdesc), GENMASK(13, 0)); in get_rx_desc_pkt_len()
262 static inline int get_rx_desc_crc32(__le32 *__pdesc) in get_rx_desc_crc32() argument
264 return le32_get_bits(*(__pdesc), BIT(14)); in get_rx_desc_crc32()
267 static inline int get_rx_desc_icv(__le32 *__pdesc) in get_rx_desc_icv() argument
269 return le32_get_bits(*(__pdesc), BIT(15)); in get_rx_desc_icv()
272 static inline int get_rx_desc_drv_info_size(__le32 *__pdesc) in get_rx_desc_drv_info_size() argument
274 return le32_get_bits(*(__pdesc), GENMASK(19, 16)); in get_rx_desc_drv_info_size()
277 static inline int get_rx_desc_security(__le32 *__pdesc) in get_rx_desc_security() argument
279 return le32_get_bits(*(__pdesc), GENMASK(22, 20)); in get_rx_desc_security()
282 static inline int get_rx_desc_qos(__le32 *__pdesc) in get_rx_desc_qos() argument
284 return le32_get_bits(*(__pdesc), BIT(23)); in get_rx_desc_qos()
287 static inline int get_rx_desc_shift(__le32 *__pdesc) in get_rx_desc_shift() argument
289 return le32_get_bits(*(__pdesc), GENMASK(25, 24)); in get_rx_desc_shift()
292 static inline int get_rx_desc_physt(__le32 *__pdesc) in get_rx_desc_physt() argument
294 return le32_get_bits(*(__pdesc), BIT(26)); in get_rx_desc_physt()
297 static inline int get_rx_desc_swdec(__le32 *__pdesc) in get_rx_desc_swdec() argument
299 return le32_get_bits(*(__pdesc), BIT(27)); in get_rx_desc_swdec()
302 static inline int get_rx_desc_ls(__le32 *__pdesc) in get_rx_desc_ls() argument
304 return le32_get_bits(*(__pdesc), BIT(28)); in get_rx_desc_ls()
307 static inline int get_rx_desc_fs(__le32 *__pdesc) in get_rx_desc_fs() argument
309 return le32_get_bits(*(__pdesc), BIT(29)); in get_rx_desc_fs()
312 static inline int get_rx_desc_eor(__le32 *__pdesc) in get_rx_desc_eor() argument
314 return le32_get_bits(*(__pdesc), BIT(30)); in get_rx_desc_eor()
317 static inline int get_rx_desc_own(__le32 *__pdesc) in get_rx_desc_own() argument
319 return le32_get_bits(*(__pdesc), BIT(31)); in get_rx_desc_own()
322 static inline void set_rx_desc_pkt_len(__le32 *__pdesc, u32 __val) in set_rx_desc_pkt_len() argument
324 le32p_replace_bits(__pdesc, __val, GENMASK(13, 0)); in set_rx_desc_pkt_len()
327 static inline void set_rx_desc_eor(__le32 *__pdesc, u32 __val) in set_rx_desc_eor() argument
329 le32p_replace_bits(__pdesc, __val, BIT(30)); in set_rx_desc_eor()
332 static inline void set_rx_desc_own(__le32 *__pdesc, u32 __val) in set_rx_desc_own() argument
334 le32p_replace_bits(__pdesc, __val, BIT(31)); in set_rx_desc_own()
337 static inline int get_rx_desc_macid(__le32 *__pdesc) in get_rx_desc_macid() argument
339 return le32_get_bits(*(__pdesc + 1), GENMASK(5, 0)); in get_rx_desc_macid()
342 static inline int get_rx_desc_paggr(__le32 *__pdesc) in get_rx_desc_paggr() argument
344 return le32_get_bits(*(__pdesc + 1), BIT(14)); in get_rx_desc_paggr()
347 static inline int get_rx_desc_faggr(__le32 *__pdesc) in get_rx_desc_faggr() argument
349 return le32_get_bits(*(__pdesc + 1), BIT(15)); in get_rx_desc_faggr()
352 static inline int get_rx_desc_a1_fit(__le32 *__pdesc) in get_rx_desc_a1_fit() argument
354 return le32_get_bits(*(__pdesc + 1), GENMASK(19, 16)); in get_rx_desc_a1_fit()
357 static inline int get_rx_desc_a2_fit(__le32 *__pdesc) in get_rx_desc_a2_fit() argument
359 return le32_get_bits(*(__pdesc + 1), GENMASK(23, 20)); in get_rx_desc_a2_fit()
362 static inline int get_rx_desc_pam(__le32 *__pdesc) in get_rx_desc_pam() argument
364 return le32_get_bits(*(__pdesc + 1), BIT(24)); in get_rx_desc_pam()
367 static inline int get_rx_desc_pwr(__le32 *__pdesc) in get_rx_desc_pwr() argument
369 return le32_get_bits(*(__pdesc + 1), BIT(25)); in get_rx_desc_pwr()
372 static inline int get_rx_desc_md(__le32 *__pdesc) in get_rx_desc_md() argument
374 return le32_get_bits(*(__pdesc + 1), BIT(26)); in get_rx_desc_md()
377 static inline int get_rx_desc_mf(__le32 *__pdesc) in get_rx_desc_mf() argument
379 return le32_get_bits(*(__pdesc + 1), BIT(27)); in get_rx_desc_mf()
382 static inline int get_rx_desc_type(__le32 *__pdesc) in get_rx_desc_type() argument
384 return le32_get_bits(*(__pdesc + 1), GENMASK(29, 28)); in get_rx_desc_type()
387 static inline int get_rx_desc_mc(__le32 *__pdesc) in get_rx_desc_mc() argument
389 return le32_get_bits(*(__pdesc + 1), BIT(30)); in get_rx_desc_mc()
392 static inline int get_rx_desc_bc(__le32 *__pdesc) in get_rx_desc_bc() argument
394 return le32_get_bits(*(__pdesc + 1), BIT(31)); in get_rx_desc_bc()
397 static inline int get_rx_desc_seq(__le32 *__pdesc) in get_rx_desc_seq() argument
399 return le32_get_bits(*(__pdesc + 2), GENMASK(11, 0)); in get_rx_desc_seq()
402 static inline int get_rx_desc_frag(__le32 *__pdesc) in get_rx_desc_frag() argument
404 return le32_get_bits(*(__pdesc + 2), GENMASK(15, 12)); in get_rx_desc_frag()
407 static inline int get_rx_desc_rxmcs(__le32 *__pdesc) in get_rx_desc_rxmcs() argument
409 return le32_get_bits(*(__pdesc + 3), GENMASK(5, 0)); in get_rx_desc_rxmcs()
412 static inline int get_rx_desc_rxht(__le32 *__pdesc) in get_rx_desc_rxht() argument
414 return le32_get_bits(*(__pdesc + 3), BIT(6)); in get_rx_desc_rxht()
417 static inline int get_rx_status_desc_rx_gf(__le32 *__pdesc) in get_rx_status_desc_rx_gf() argument
419 return le32_get_bits(*(__pdesc + 3), BIT(7)); in get_rx_status_desc_rx_gf()
422 static inline int get_rx_desc_splcp(__le32 *__pdesc) in get_rx_desc_splcp() argument
424 return le32_get_bits(*(__pdesc + 3), BIT(8)); in get_rx_desc_splcp()
427 static inline int get_rx_desc_bw(__le32 *__pdesc) in get_rx_desc_bw() argument
429 return le32_get_bits(*(__pdesc + 3), BIT(9)); in get_rx_desc_bw()
432 static inline int get_rx_desc_htc(__le32 *__pdesc) in get_rx_desc_htc() argument
434 return le32_get_bits(*(__pdesc + 3), BIT(10)); in get_rx_desc_htc()
437 static inline int get_rx_status_desc_eosp(__le32 *__pdesc) in get_rx_status_desc_eosp() argument
439 return le32_get_bits(*(__pdesc + 3), BIT(11)); in get_rx_status_desc_eosp()
442 static inline int get_rx_status_desc_bssid_fit(__le32 *__pdesc) in get_rx_status_desc_bssid_fit() argument
444 return le32_get_bits(*(__pdesc + 3), GENMASK(13, 12)); in get_rx_status_desc_bssid_fit()
447 static inline int get_rx_status_desc_rpt_sel(__le32 *__pdesc) in get_rx_status_desc_rpt_sel() argument
449 return le32_get_bits(*(__pdesc + 3), GENMASK(15, 14)); in get_rx_status_desc_rpt_sel()
452 static inline int get_rx_status_desc_pattern_match(__le32 *__pdesc) in get_rx_status_desc_pattern_match() argument
454 return le32_get_bits(*(__pdesc + 3), BIT(29)); in get_rx_status_desc_pattern_match()
457 static inline int get_rx_status_desc_unicast_match(__le32 *__pdesc) in get_rx_status_desc_unicast_match() argument
459 return le32_get_bits(*(__pdesc + 3), BIT(30)); in get_rx_status_desc_unicast_match()
462 static inline int get_rx_status_desc_magic_match(__le32 *__pdesc) in get_rx_status_desc_magic_match() argument
464 return le32_get_bits(*(__pdesc + 3), BIT(31)); in get_rx_status_desc_magic_match()
467 static inline u32 get_rx_desc_iv1(__le32 *__pdesc) in get_rx_desc_iv1() argument
469 return le32_to_cpu(*(__pdesc + 4)); in get_rx_desc_iv1()
472 static inline u32 get_rx_desc_tsfl(__le32 *__pdesc) in get_rx_desc_tsfl() argument
474 return le32_to_cpu(*(__pdesc + 5)); in get_rx_desc_tsfl()
477 static inline u32 get_rx_desc_buff_addr(__le32 *__pdesc) in get_rx_desc_buff_addr() argument
479 return le32_to_cpu(*(__pdesc + 6)); in get_rx_desc_buff_addr()
482 static inline u32 get_rx_desc_buff_addr64(__le32 *__pdesc) in get_rx_desc_buff_addr64() argument
484 return le32_to_cpu(*(__pdesc + 7)); in get_rx_desc_buff_addr64()
487 static inline void set_rx_desc_buff_addr(__le32 *__pdesc, u32 __val) in set_rx_desc_buff_addr() argument
489 *(__pdesc + 6) = cpu_to_le32(__val); in set_rx_desc_buff_addr()
492 static inline void set_rx_desc_buff_addr64(__le32 *__pdesc, u32 __val) in set_rx_desc_buff_addr64() argument
494 *(__pdesc + 7) = cpu_to_le32(__val); in set_rx_desc_buff_addr64()
549 static inline void clear_pci_tx_desc_content(__le32 *__pdesc, int _size) in clear_pci_tx_desc_content() argument
552 memset(__pdesc, 0, TX_DESC_NEXT_DESC_OFFSET); in clear_pci_tx_desc_content()
554 memset(__pdesc, 0, _size); in clear_pci_tx_desc_content()