Lines Matching refs:sz
136 void rtw_mstat_update(const enum mstat_f flags, const MSTAT_STATUS status, u32 sz);
139 void *dbg_rtw_vmalloc(u32 sz, const enum mstat_f flags, const char *func, const int line);
140 void *dbg_rtw_zvmalloc(u32 sz, const enum mstat_f flags, const char *func, const int line);
141 void dbg_rtw_vmfree(void *pbuf, const enum mstat_f flags, u32 sz, const char *func, const int line);
142 void *dbg_rtw_malloc(u32 sz, const enum mstat_f flags, const char *func, const int line);
143 void *dbg_rtw_zmalloc(u32 sz, const enum mstat_f flags, const char *func, const int line);
144 void dbg_rtw_mfree(void *pbuf, const enum mstat_f flags, u32 sz, const char *func, const int line);
165 #define rtw_vmalloc(sz) dbg_rtw_vmalloc((sz), MSTAT_TYPE_VIR, __FUNCTION__, __LINE__) argument
166 #define rtw_zvmalloc(sz) dbg_rtw_zvmalloc((sz), MSTAT_TYPE_VIR, __FUNCTION__, __LINE__) argument
167 #define rtw_vmfree(pbuf, sz) dbg_rtw_vmfree((pbuf), (sz), MSTAT_TYPE_VIR, __FUNCTION__, __LINE__) argument
168 #define rtw_vmalloc_f(sz, mstat_f) dbg_rtw_vmalloc((sz), ((mstat_f) & 0xff00) | MSTAT_TYPE_VIR, __… argument
169 #define rtw_zvmalloc_f(sz, mstat_f) dbg_rtw_zvmalloc((sz), ((mstat_f) & 0xff00) | MSTAT_TYPE_VIR, … argument
170 #define rtw_vmfree_f(pbuf, sz, mstat_f) dbg_rtw_vmfree((pbuf), (sz), ((mstat_f) & 0xff00) | MSTAT_T… argument
172 #define rtw_vmalloc(sz) dbg_rtw_malloc((sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__) argument
173 #define rtw_zvmalloc(sz) dbg_rtw_zmalloc((sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__) argument
174 #define rtw_vmfree(pbuf, sz) dbg_rtw_mfree((pbuf), (sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__) argument
175 #define rtw_vmalloc_f(sz, mstat_f) dbg_rtw_malloc((sz), ((mstat_f) & 0xff00) | MSTAT_TYPE_PHY, __F… argument
176 #define rtw_zvmalloc_f(sz, mstat_f) dbg_rtw_zmalloc((sz), ((mstat_f) & 0xff00) | MSTAT_TYPE_PHY, _… argument
177 #define rtw_vmfree_f(pbuf, sz, mstat_f) dbg_rtw_mfree((pbuf), (sz), ((mstat_f) & 0xff00) | MSTAT_TY… argument
179 #define rtw_malloc(sz) dbg_rtw_malloc((sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__) argument
180 #define rtw_zmalloc(sz) dbg_rtw_zmalloc((sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__) argument
181 #define rtw_mfree(pbuf, sz) dbg_rtw_mfree((pbuf), (sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__) argument
182 #define rtw_malloc_f(sz, mstat_f) dbg_rtw_malloc((sz), ((mstat_f) & 0xff00) | MSTAT_TYPE_PHY, __FU… argument
183 #define rtw_zmalloc_f(sz, mstat_f) dbg_rtw_zmalloc((sz), ((mstat_f) & 0xff00) | MSTAT_TYPE_PHY, __… argument
184 #define rtw_mfree_f(pbuf, sz, mstat_f) dbg_rtw_mfree((pbuf), (sz), ((mstat_f) & 0xff00) | MSTAT_TYP… argument
211 #define rtw_mstat_update(flag, status, sz) do {} while (0) argument
214 void *_rtw_vmalloc(u32 sz);
215 void *_rtw_zvmalloc(u32 sz);
216 void _rtw_vmfree(void *pbuf, u32 sz);
217 void *_rtw_zmalloc(u32 sz);
218 void *_rtw_malloc(u32 sz);
219 void _rtw_mfree(void *pbuf, u32 sz);
221 struct sk_buff *_rtw_skb_alloc(u32 sz);
232 #define rtw_vmalloc(sz) _rtw_vmalloc((sz)) argument
233 #define rtw_zvmalloc(sz) _rtw_zvmalloc((sz)) argument
234 #define rtw_vmfree(pbuf, sz) _rtw_vmfree((pbuf), (sz)) argument
235 #define rtw_vmalloc_f(sz, mstat_f) _rtw_vmalloc((sz)) argument
236 #define rtw_zvmalloc_f(sz, mstat_f) _rtw_zvmalloc((sz)) argument
237 #define rtw_vmfree_f(pbuf, sz, mstat_f) _rtw_vmfree((pbuf), (sz)) argument
239 #define rtw_vmalloc(sz) _rtw_malloc((sz)) argument
240 #define rtw_zvmalloc(sz) _rtw_zmalloc((sz)) argument
241 #define rtw_vmfree(pbuf, sz) _rtw_mfree((pbuf), (sz)) argument
242 #define rtw_vmalloc_f(sz, mstat_f) _rtw_malloc((sz)) argument
243 #define rtw_zvmalloc_f(sz, mstat_f) _rtw_zmalloc((sz)) argument
244 #define rtw_vmfree_f(pbuf, sz, mstat_f) _rtw_mfree((pbuf), (sz)) argument
246 #define rtw_malloc(sz) _rtw_malloc((sz)) argument
247 #define rtw_zmalloc(sz) _rtw_zmalloc((sz)) argument
248 #define rtw_mfree(pbuf, sz) _rtw_mfree((pbuf), (sz)) argument
249 #define rtw_malloc_f(sz, mstat_f) _rtw_malloc((sz)) argument
250 #define rtw_zmalloc_f(sz, mstat_f) _rtw_zmalloc((sz)) argument
251 #define rtw_mfree_f(pbuf, sz, mstat_f) _rtw_mfree((pbuf), (sz)) argument
281 void _rtw_memcpy(void *dec, const void *sour, u32 sz);
282 void _rtw_memmove(void *dst, const void *src, u32 sz);
283 int _rtw_memcmp(const void *dst, const void *src, u32 sz);
284 int _rtw_memcmp2(const void *dst, const void *src, u32 sz);
285 void _rtw_memset(void *pbuf, int c, u32 sz);
376 #define _RND(sz, r) ((((sz)+((r)-1))/(r))*(r)) argument
379 __inline static u32 _RND4(u32 sz) in _RND4() argument
384 val = ((sz >> 2) + ((sz & 3) ? 1 : 0)) << 2; in _RND4()
390 __inline static u32 _RND8(u32 sz) in _RND8() argument
395 val = ((sz >> 3) + ((sz & 7) ? 1 : 0)) << 3; in _RND8()
401 __inline static u32 _RND128(u32 sz) in _RND128() argument
406 val = ((sz >> 7) + ((sz & 127) ? 1 : 0)) << 7; in _RND128()
412 __inline static u32 _RND256(u32 sz) in _RND256() argument
417 val = ((sz >> 8) + ((sz & 255) ? 1 : 0)) << 8; in _RND256()
423 __inline static u32 _RND512(u32 sz) in _RND512() argument
428 val = ((sz >> 9) + ((sz & 511) ? 1 : 0)) << 9; in _RND512()
503 int rtw_store_to_file(const char *path, u8 *buf, u32 sz);
506 int rtw_is_file_readable_with_size(const char *path, u32 *sz);
507 int rtw_readable_file_sz_chk(const char *path, u32 sz);
508 int rtw_retrieve_from_file(const char *path, u8 *buf, u32 sz);