Lines Matching refs:sz

157 void rtw_mstat_update(const enum mstat_f flags, const MSTAT_STATUS status, u32 sz);
160 void *dbg_rtw_vmalloc(u32 sz, const enum mstat_f flags, const char *func, const int line);
161 void *dbg_rtw_zvmalloc(u32 sz, const enum mstat_f flags, const char *func, const int line);
162 void dbg_rtw_vmfree(void *pbuf, const enum mstat_f flags, u32 sz, const char *func, const int line);
163 void *dbg_rtw_malloc(u32 sz, const enum mstat_f flags, const char *func, const int line);
164 void *dbg_rtw_zmalloc(u32 sz, const enum mstat_f flags, const char *func, const int line);
165 void dbg_rtw_mfree(void *pbuf, const enum mstat_f flags, u32 sz, const char *func, const int line);
185 #define rtw_vmalloc(sz) dbg_rtw_vmalloc((sz), MSTAT_TYPE_VIR, __FUNCTION__, __LINE__) argument
186 #define rtw_zvmalloc(sz) dbg_rtw_zvmalloc((sz), MSTAT_TYPE_VIR, __FUNCTION__, __LINE__) argument
187 #define rtw_vmfree(pbuf, sz) dbg_rtw_vmfree((pbuf), (sz), MSTAT_TYPE_VIR, __FUNCTION__, __LINE__) argument
188 #define rtw_vmalloc_f(sz, mstat_f) dbg_rtw_vmalloc((sz), ((mstat_f) & 0xff00) | MSTAT_TYPE_VIR, _… argument
189 #define rtw_zvmalloc_f(sz, mstat_f) dbg_rtw_zvmalloc((sz), ((mstat_f) & 0xff00) | MSTAT_TYPE_VIR, … argument
190 #define rtw_vmfree_f(pbuf, sz, mstat_f) dbg_rtw_vmfree((pbuf), (sz), ((mstat_f) & 0xff00) | MSTAT_T… argument
192 #define rtw_vmalloc(sz) dbg_rtw_malloc((sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__) argument
193 #define rtw_zvmalloc(sz) dbg_rtw_zmalloc((sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__) argument
194 #define rtw_vmfree(pbuf, sz) dbg_rtw_mfree((pbuf), (sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__) argument
195 #define rtw_vmalloc_f(sz, mstat_f) dbg_rtw_malloc((sz), ((mstat_f) & 0xff00) | MSTAT_TYPE_PHY, __… argument
196 #define rtw_zvmalloc_f(sz, mstat_f) dbg_rtw_zmalloc((sz), ((mstat_f) & 0xff00) | MSTAT_TYPE_PHY, _… argument
197 #define rtw_vmfree_f(pbuf, sz, mstat_f) dbg_rtw_mfree((pbuf), (sz), ((mstat_f) & 0xff00) | MSTAT_TY… argument
199 #define rtw_malloc(sz) dbg_rtw_malloc((sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__) argument
200 #define rtw_zmalloc(sz) dbg_rtw_zmalloc((sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__) argument
201 #define rtw_mfree(pbuf, sz) dbg_rtw_mfree((pbuf), (sz), MSTAT_TYPE_PHY, __FUNCTION__, __LINE__) argument
202 #define rtw_malloc_f(sz, mstat_f) dbg_rtw_malloc((sz), ((mstat_f) & 0xff00) | MSTAT_TYPE_PHY, __F… argument
203 #define rtw_zmalloc_f(sz, mstat_f) dbg_rtw_zmalloc((sz), ((mstat_f) & 0xff00) | MSTAT_TYPE_PHY, _… argument
204 #define rtw_mfree_f(pbuf, sz, mstat_f) dbg_rtw_mfree((pbuf), (sz), ((mstat_f) & 0xff00) | MSTAT_TY… argument
230 #define rtw_mstat_update(flag, status, sz) do {} while (0) argument
233 void *_rtw_vmalloc(u32 sz);
234 void *_rtw_zvmalloc(u32 sz);
235 void _rtw_vmfree(void *pbuf, u32 sz);
236 void *_rtw_zmalloc(u32 sz);
237 void *_rtw_malloc(u32 sz);
238 void _rtw_mfree(void *pbuf, u32 sz);
240 struct sk_buff *_rtw_skb_alloc(u32 sz);
259 #define rtw_vmalloc(sz) _rtw_vmalloc((sz)) argument
260 #define rtw_zvmalloc(sz) _rtw_zvmalloc((sz)) argument
261 #define rtw_vmfree(pbuf, sz) _rtw_vmfree((pbuf), (sz)) argument
262 #define rtw_vmalloc_f(sz, mstat_f) _rtw_vmalloc((sz)) argument
263 #define rtw_zvmalloc_f(sz, mstat_f) _rtw_zvmalloc((sz)) argument
264 #define rtw_vmfree_f(pbuf, sz, mstat_f) _rtw_vmfree((pbuf), (sz)) argument
266 #define rtw_vmalloc(sz) _rtw_malloc((sz)) argument
267 #define rtw_zvmalloc(sz) _rtw_zmalloc((sz)) argument
268 #define rtw_vmfree(pbuf, sz) _rtw_mfree((pbuf), (sz)) argument
269 #define rtw_vmalloc_f(sz, mstat_f) _rtw_malloc((sz)) argument
270 #define rtw_zvmalloc_f(sz, mstat_f) _rtw_zmalloc((sz)) argument
271 #define rtw_vmfree_f(pbuf, sz, mstat_f) _rtw_mfree((pbuf), (sz)) argument
273 #define rtw_malloc(sz) _rtw_malloc((sz)) argument
274 #define rtw_zmalloc(sz) _rtw_zmalloc((sz)) argument
275 #define rtw_mfree(pbuf, sz) _rtw_mfree((pbuf), (sz)) argument
276 #define rtw_malloc_f(sz, mstat_f) _rtw_malloc((sz)) argument
277 #define rtw_zmalloc_f(sz, mstat_f) _rtw_zmalloc((sz)) argument
278 #define rtw_mfree_f(pbuf, sz, mstat_f) _rtw_mfree((pbuf), (sz)) argument
312 extern void _rtw_memcpy(void *dec, const void *sour, u32 sz);
313 extern void _rtw_memmove(void *dst, const void *src, u32 sz);
314 extern int _rtw_memcmp(const void *dst, const void *src, u32 sz);
315 extern int _rtw_memcmp2(const void *dst, const void *src, u32 sz);
316 extern void _rtw_memset(void *pbuf, int c, u32 sz);
551 #define _RND(sz, r) ((((sz)+((r)-1))/(r))*(r)) argument
554 __inline static u32 _RND4(u32 sz) in _RND4() argument
559 val = ((sz >> 2) + ((sz & 3) ? 1 : 0)) << 2; in _RND4()
565 __inline static u32 _RND8(u32 sz) in _RND8() argument
570 val = ((sz >> 3) + ((sz & 7) ? 1 : 0)) << 3; in _RND8()
576 __inline static u32 _RND128(u32 sz) in _RND128() argument
581 val = ((sz >> 7) + ((sz & 127) ? 1 : 0)) << 7; in _RND128()
587 __inline static u32 _RND256(u32 sz) in _RND256() argument
592 val = ((sz >> 8) + ((sz & 255) ? 1 : 0)) << 8; in _RND256()
598 __inline static u32 _RND512(u32 sz) in _RND512() argument
603 val = ((sz >> 9) + ((sz & 511) ? 1 : 0)) << 9; in _RND512()
689 extern int rtw_is_file_readable_with_size(const char *path, u32 *sz);
690 extern int rtw_readable_file_sz_chk(const char *path, u32 sz);
691 extern int rtw_retrieve_from_file(const char *path, u8 *buf, u32 sz);
692 extern int rtw_store_to_file(const char *path, u8 *buf, u32 sz);