Lines Matching refs:__pdesc
19 static inline void set_tx_desc_pkt_size(__le32 *__pdesc, u32 __val) in set_tx_desc_pkt_size() argument
21 le32p_replace_bits(__pdesc, __val, GENMASK(15, 0)); in set_tx_desc_pkt_size()
24 static inline void set_tx_desc_offset(__le32 *__pdesc, u32 __val) in set_tx_desc_offset() argument
26 le32p_replace_bits(__pdesc, __val, GENMASK(23, 16)); in set_tx_desc_offset()
29 static inline void set_tx_desc_htc(__le32 *__pdesc, u32 __val) in set_tx_desc_htc() argument
31 le32p_replace_bits(__pdesc, __val, BIT(25)); in set_tx_desc_htc()
34 static inline void set_tx_desc_last_seg(__le32 *__pdesc, u32 __val) in set_tx_desc_last_seg() argument
36 le32p_replace_bits(__pdesc, __val, BIT(26)); in set_tx_desc_last_seg()
39 static inline void set_tx_desc_first_seg(__le32 *__pdesc, u32 __val) in set_tx_desc_first_seg() argument
41 le32p_replace_bits(__pdesc, __val, BIT(27)); in set_tx_desc_first_seg()
44 static inline void set_tx_desc_linip(__le32 *__pdesc, u32 __val) in set_tx_desc_linip() argument
46 le32p_replace_bits(__pdesc, __val, BIT(28)); in set_tx_desc_linip()
49 static inline void set_tx_desc_own(__le32 *__pdesc, u32 __val) in set_tx_desc_own() argument
51 le32p_replace_bits(__pdesc, __val, BIT(31)); in set_tx_desc_own()
54 static inline u32 get_tx_desc_own(__le32 *__pdesc) in get_tx_desc_own() argument
56 return le32_get_bits(*__pdesc, BIT(31)); in get_tx_desc_own()
59 static inline void set_tx_desc_macid(__le32 *__pdesc, u32 __val) in set_tx_desc_macid() argument
61 le32p_replace_bits((__pdesc + 1), __val, GENMASK(4, 0)); in set_tx_desc_macid()
64 static inline void set_tx_desc_agg_enable(__le32 *__pdesc, u32 __val) in set_tx_desc_agg_enable() argument
66 le32p_replace_bits((__pdesc + 1), __val, BIT(5)); in set_tx_desc_agg_enable()
69 static inline void set_tx_desc_rdg_enable(__le32 *__pdesc, u32 __val) in set_tx_desc_rdg_enable() argument
71 le32p_replace_bits((__pdesc + 1), __val, BIT(7)); in set_tx_desc_rdg_enable()
74 static inline void set_tx_desc_queue_sel(__le32 *__pdesc, u32 __val) in set_tx_desc_queue_sel() argument
76 le32p_replace_bits((__pdesc + 1), __val, GENMASK(12, 8)); in set_tx_desc_queue_sel()
79 static inline void set_tx_desc_rate_id(__le32 *__pdesc, u32 __val) in set_tx_desc_rate_id() argument
81 le32p_replace_bits((__pdesc + 1), __val, GENMASK(19, 16)); in set_tx_desc_rate_id()
84 static inline void set_tx_desc_sec_type(__le32 *__pdesc, u32 __val) in set_tx_desc_sec_type() argument
86 le32p_replace_bits((__pdesc + 1), __val, GENMASK(23, 22)); in set_tx_desc_sec_type()
89 static inline void set_tx_desc_pkt_offset(__le32 *__pdesc, u32 __val) in set_tx_desc_pkt_offset() argument
91 le32p_replace_bits((__pdesc + 1), __val, GENMASK(30, 26)); in set_tx_desc_pkt_offset()
94 static inline void set_tx_desc_more_frag(__le32 *__pdesc, u32 __val) in set_tx_desc_more_frag() argument
96 le32p_replace_bits((__pdesc + 2), __val, BIT(17)); in set_tx_desc_more_frag()
99 static inline void set_tx_desc_ampdu_density(__le32 *__pdesc, u32 __val) in set_tx_desc_ampdu_density() argument
101 le32p_replace_bits((__pdesc + 2), __val, GENMASK(22, 20)); in set_tx_desc_ampdu_density()
104 static inline void set_tx_desc_seq(__le32 *__pdesc, u32 __val) in set_tx_desc_seq() argument
106 le32p_replace_bits((__pdesc + 3), __val, GENMASK(27, 16)); in set_tx_desc_seq()
109 static inline void set_tx_desc_pkt_id(__le32 *__pdesc, u32 __val) in set_tx_desc_pkt_id() argument
111 le32p_replace_bits((__pdesc + 3), __val, GENMASK(31, 28)); in set_tx_desc_pkt_id()
114 static inline void set_tx_desc_rts_rate(__le32 *__pdesc, u32 __val) in set_tx_desc_rts_rate() argument
116 le32p_replace_bits((__pdesc + 4), __val, GENMASK(4, 0)); in set_tx_desc_rts_rate()
119 static inline void set_tx_desc_qos(__le32 *__pdesc, u32 __val) in set_tx_desc_qos() argument
121 le32p_replace_bits((__pdesc + 4), __val, BIT(6)); in set_tx_desc_qos()
124 static inline void set_tx_desc_hwseq_en(__le32 *__pdesc, u32 __val) in set_tx_desc_hwseq_en() argument
126 le32p_replace_bits((__pdesc + 4), __val, BIT(7)); in set_tx_desc_hwseq_en()
129 static inline void set_tx_desc_use_rate(__le32 *__pdesc, u32 __val) in set_tx_desc_use_rate() argument
131 le32p_replace_bits((__pdesc + 4), __val, BIT(8)); in set_tx_desc_use_rate()
134 static inline void set_tx_desc_disable_fb(__le32 *__pdesc, u32 __val) in set_tx_desc_disable_fb() argument
136 le32p_replace_bits((__pdesc + 4), __val, BIT(10)); in set_tx_desc_disable_fb()
139 static inline void set_tx_desc_cts2self(__le32 *__pdesc, u32 __val) in set_tx_desc_cts2self() argument
141 le32p_replace_bits((__pdesc + 4), __val, BIT(11)); in set_tx_desc_cts2self()
144 static inline void set_tx_desc_rts_enable(__le32 *__pdesc, u32 __val) in set_tx_desc_rts_enable() argument
146 le32p_replace_bits((__pdesc + 4), __val, BIT(12)); in set_tx_desc_rts_enable()
149 static inline void set_tx_desc_hw_rts_enable(__le32 *__pdesc, u32 __val) in set_tx_desc_hw_rts_enable() argument
151 le32p_replace_bits((__pdesc + 4), __val, BIT(13)); in set_tx_desc_hw_rts_enable()
154 static inline void set_tx_desc_tx_sub_carrier(__le32 *__pdesc, u32 __val) in set_tx_desc_tx_sub_carrier() argument
156 le32p_replace_bits((__pdesc + 4), __val, GENMASK(21, 20)); in set_tx_desc_tx_sub_carrier()
159 static inline void set_tx_desc_data_bw(__le32 *__pdesc, u32 __val) in set_tx_desc_data_bw() argument
161 le32p_replace_bits((__pdesc + 4), __val, BIT(25)); in set_tx_desc_data_bw()
164 static inline void set_tx_desc_rts_short(__le32 *__pdesc, u32 __val) in set_tx_desc_rts_short() argument
166 le32p_replace_bits((__pdesc + 4), __val, BIT(26)); in set_tx_desc_rts_short()
169 static inline void set_tx_desc_rts_bw(__le32 *__pdesc, u32 __val) in set_tx_desc_rts_bw() argument
171 le32p_replace_bits((__pdesc + 4), __val, BIT(27)); in set_tx_desc_rts_bw()
174 static inline void set_tx_desc_rts_sc(__le32 *__pdesc, u32 __val) in set_tx_desc_rts_sc() argument
176 le32p_replace_bits((__pdesc + 4), __val, GENMASK(29, 28)); in set_tx_desc_rts_sc()
179 static inline void set_tx_desc_rts_stbc(__le32 *__pdesc, u32 __val) in set_tx_desc_rts_stbc() argument
181 le32p_replace_bits((__pdesc + 4), __val, GENMASK(31, 30)); in set_tx_desc_rts_stbc()
184 static inline void set_tx_desc_tx_rate(__le32 *__pdesc, u32 __val) in set_tx_desc_tx_rate() argument
186 le32p_replace_bits((__pdesc + 5), __val, GENMASK(5, 0)); in set_tx_desc_tx_rate()
189 static inline void set_tx_desc_data_shortgi(__le32 *__pdesc, u32 __val) in set_tx_desc_data_shortgi() argument
191 le32p_replace_bits((__pdesc + 5), __val, BIT(6)); in set_tx_desc_data_shortgi()
194 static inline void set_tx_desc_data_rate_fb_limit(__le32 *__pdesc, u32 __val) in set_tx_desc_data_rate_fb_limit() argument
196 le32p_replace_bits((__pdesc + 5), __val, GENMASK(12, 8)); in set_tx_desc_data_rate_fb_limit()
199 static inline void set_tx_desc_rts_rate_fb_limit(__le32 *__pdesc, u32 __val) in set_tx_desc_rts_rate_fb_limit() argument
201 le32p_replace_bits((__pdesc + 5), __val, GENMASK(16, 13)); in set_tx_desc_rts_rate_fb_limit()
204 static inline void set_tx_desc_max_agg_num(__le32 *__pdesc, u32 __val) in set_tx_desc_max_agg_num() argument
206 le32p_replace_bits((__pdesc + 6), __val, GENMASK(15, 11)); in set_tx_desc_max_agg_num()
209 static inline void set_tx_desc_tx_buffer_size(__le32 *__pdesc, u32 __val) in set_tx_desc_tx_buffer_size() argument
211 le32p_replace_bits((__pdesc + 7), __val, GENMASK(15, 0)); in set_tx_desc_tx_buffer_size()
214 static inline void set_tx_desc_tx_buffer_address(__le32 *__pdesc, u32 __val) in set_tx_desc_tx_buffer_address() argument
216 *(__pdesc + 8) = cpu_to_le32(__val); in set_tx_desc_tx_buffer_address()
219 static inline u32 get_tx_desc_tx_buffer_address(__le32 *__pdesc) in get_tx_desc_tx_buffer_address() argument
221 return le32_to_cpu(*(__pdesc + 8)); in get_tx_desc_tx_buffer_address()
224 static inline void set_tx_desc_next_desc_address(__le32 *__pdesc, u32 __val) in set_tx_desc_next_desc_address() argument
226 *(__pdesc + 10) = cpu_to_le32(__val); in set_tx_desc_next_desc_address()
229 static inline u32 get_rx_desc_pkt_len(__le32 *__pdesc) in get_rx_desc_pkt_len() argument
231 return le32_get_bits(*__pdesc, GENMASK(13, 0)); in get_rx_desc_pkt_len()
234 static inline u32 get_rx_desc_crc32(__le32 *__pdesc) in get_rx_desc_crc32() argument
236 return le32_get_bits(*__pdesc, BIT(14)); in get_rx_desc_crc32()
239 static inline u32 get_rx_desc_icv(__le32 *__pdesc) in get_rx_desc_icv() argument
241 return le32_get_bits(*__pdesc, BIT(15)); in get_rx_desc_icv()
244 static inline u32 get_rx_desc_drv_info_size(__le32 *__pdesc) in get_rx_desc_drv_info_size() argument
246 return le32_get_bits(*__pdesc, GENMASK(19, 16)); in get_rx_desc_drv_info_size()
249 static inline u32 get_rx_desc_shift(__le32 *__pdesc) in get_rx_desc_shift() argument
251 return le32_get_bits(*__pdesc, GENMASK(25, 24)); in get_rx_desc_shift()
254 static inline u32 get_rx_desc_physt(__le32 *__pdesc) in get_rx_desc_physt() argument
256 return le32_get_bits(*__pdesc, BIT(26)); in get_rx_desc_physt()
259 static inline u32 get_rx_desc_swdec(__le32 *__pdesc) in get_rx_desc_swdec() argument
261 return le32_get_bits(*__pdesc, BIT(27)); in get_rx_desc_swdec()
264 static inline u32 get_rx_desc_own(__le32 *__pdesc) in get_rx_desc_own() argument
266 return le32_get_bits(*__pdesc, BIT(31)); in get_rx_desc_own()
269 static inline void set_rx_desc_pkt_len(__le32 *__pdesc, u32 __val) in set_rx_desc_pkt_len() argument
271 le32p_replace_bits(__pdesc, __val, GENMASK(13, 0)); in set_rx_desc_pkt_len()
274 static inline void set_rx_desc_eor(__le32 *__pdesc, u32 __val) in set_rx_desc_eor() argument
276 le32p_replace_bits(__pdesc, __val, BIT(30)); in set_rx_desc_eor()
279 static inline void set_rx_desc_own(__le32 *__pdesc, u32 __val) in set_rx_desc_own() argument
281 le32p_replace_bits(__pdesc, __val, BIT(31)); in set_rx_desc_own()
284 static inline u32 get_rx_desc_paggr(__le32 *__pdesc) in get_rx_desc_paggr() argument
286 return le32_get_bits(*(__pdesc + 1), BIT(14)); in get_rx_desc_paggr()
289 static inline u32 get_rx_desc_faggr(__le32 *__pdesc) in get_rx_desc_faggr() argument
291 return le32_get_bits(*(__pdesc + 1), BIT(15)); in get_rx_desc_faggr()
294 static inline u32 get_rx_desc_rxmcs(__le32 *__pdesc) in get_rx_desc_rxmcs() argument
296 return le32_get_bits(*(__pdesc + 3), GENMASK(5, 0)); in get_rx_desc_rxmcs()
299 static inline u32 get_rx_desc_rxht(__le32 *__pdesc) in get_rx_desc_rxht() argument
301 return le32_get_bits(*(__pdesc + 3), BIT(6)); in get_rx_desc_rxht()
304 static inline u32 get_rx_desc_splcp(__le32 *__pdesc) in get_rx_desc_splcp() argument
306 return le32_get_bits(*(__pdesc + 3), BIT(8)); in get_rx_desc_splcp()
309 static inline u32 get_rx_desc_bw(__le32 *__pdesc) in get_rx_desc_bw() argument
311 return le32_get_bits(*(__pdesc + 3), BIT(9)); in get_rx_desc_bw()
314 static inline u32 get_rx_desc_tsfl(__le32 *__pdesc) in get_rx_desc_tsfl() argument
316 return le32_to_cpu(*(__pdesc + 5)); in get_rx_desc_tsfl()
319 static inline u32 get_rx_desc_buff_addr(__le32 *__pdesc) in get_rx_desc_buff_addr() argument
321 return le32_to_cpu(*(__pdesc + 6)); in get_rx_desc_buff_addr()
324 static inline void set_rx_desc_buff_addr(__le32 *__pdesc, u32 __val) in set_rx_desc_buff_addr() argument
326 *(__pdesc + 6) = cpu_to_le32(__val); in set_rx_desc_buff_addr()
329 static inline void clear_pci_tx_desc_content(__le32 *__pdesc, u32 _size) in clear_pci_tx_desc_content() argument
331 memset((void *)__pdesc, 0, in clear_pci_tx_desc_content()