Home
last modified time | relevance | path

Searched refs:oldsize (Results 1 – 11 of 11) sorted by relevance

/xnu-11215/bsd/nfs/
H A Dxdr_subs.h345 size_t newsize, oldsize; in xb_grow() local
349 oldsize = xbp->xb_u.xb_buffer.xbb_size; in xb_grow()
351 newsize = oldsize + xbp->xb_growsize; in xb_grow()
352 if (newsize < oldsize) { in xb_grow()
355 newbuf = xb_realloc(oldbuf, oldsize, newsize); in xb_grow()
361 xbp->xb_ptr = newbuf + oldsize; in xb_grow()
/xnu-11215/bsd/skywalk/core/
H A Dskywalk_common.h774 #define _sk_realloc_data(probename, elem, oldsize, newsize, flags, name) \ argument
778 ret = krealloc_data_tag((elem), (oldsize), (newsize), \
780 DTRACE_SKYWALK5(probename, void *, (elem), size_t, (oldsize), \
810 #define sk_realloc_type_array(type, oldsize, newsize, elem, flags, tag) \ argument
812 oldsize, newsize, elem, flags, tag)
833 #define sk_realloc_data(elem, oldsize, newsize, flags, tag) \ argument
834 _sk_realloc_data(sk_realloc_data, elem, oldsize, newsize, \
848 #define skn_realloc(name, elem, oldsize, newsize, flags, tag) \ argument
849 _sk_realloc(sk_realloc_ ## name, elem, oldsize, newsize, flags, \
888 #define skn_realloc_data(name, elem, oldsize, newsize, flags, tag) \ argument
[all …]
/xnu-11215/osfmk/kern/
H A Dsmr.c2368 size_t newsize = oldsize / 2; in __smr_hash_shrink_and_unlock()
2413 smr_hash_free_array(oldarray, oldsize); in __smr_hash_shrink_and_unlock()
2428 size_t newsize = 2 * oldsize; in __smr_hash_grow_and_unlock()
2462 memcpy(newarray + oldsize, oldarray, oldsize * sizeof(newarray[0])); in __smr_hash_grow_and_unlock()
2500 for (size_t i = 0; i < oldsize; i++) { in __smr_hash_grow_and_unlock()
2518 prevarray[i + oldsize] = &newarray[i + oldsize].first; in __smr_hash_grow_and_unlock()
2579 want_mask = (uint32_t)oldsize; in __smr_hash_grow_and_unlock()
2938 size_t oldsize, newsize; in __smr_shash_rehash_with_target() local
2956 oldsize = __smr_shash_cursize(state); in __smr_shash_rehash_with_target()
3002 for (size_t i = 0; i < oldsize; i++) { in __smr_shash_rehash_with_target()
[all …]
/xnu-11215/osfmk/vm/
H A Dvm_kern.c1679 oldsize += delta; in kmem_realloc_shrink_guard()
1794 vm_size_t oldsize; in kmem_realloc_guard() local
1841 oldsize += delta; in kmem_realloc_guard()
1859 if (oldsize == newsize) { in kmem_realloc_guard()
1870 if (oldsize < newsize) { in kmem_realloc_guard()
1935 if (oldsize == newsize) { in kmem_realloc_guard()
1966 if (newsize < oldsize) { in kmem_realloc_guard()
1988 newoffs = oldsize; in kmem_realloc_guard()
1997 newoffs = newaddr + oldsize; in kmem_realloc_guard()
2065 newsize - oldsize, in kmem_realloc_guard()
[all …]
H A Dvm_kern_xnu.h728 vm_size_t oldsize,
/xnu-11215/libkern/c++/
H A DOSUnserialize.y450 int oldsize = d - start; in yylex() local
451 assert(buflen == oldsize); in yylex()
452 start = (unsigned char *)realloc(start, oldsize, buflen); in yylex()
453 d = lastStart = start + oldsize; in yylex()
H A DOSUnserializeXML.y825 size_t oldsize = tmpbuflen; in getCFEncodedData() local
827 tmpbuf = (unsigned char *)realloc(tmpbuf, oldsize, tmpbuflen); in getCFEncodedData()
889 size_t oldsize = d - start; in getHexData() local
890 if (oldsize >= buflen) { in getHexData()
891 assert(oldsize == buflen); in getHexData()
893 start = (unsigned char *)realloc(start, oldsize, buflen); in getHexData()
894 d = start + oldsize; in getHexData()
H A DOSUnserialize.cpp2100 int oldsize = d - start; in yylex() local
2101 assert(buflen == oldsize); in yylex()
2102 start = (unsigned char *)realloc(start, oldsize, buflen); in yylex()
2103 d = lastStart = start + oldsize; in yylex()
/xnu-11215/iokit/System/
H A DOSUnserializeXMLSharedImplementation.h2436 size_t oldsize = tmpbuflen; in getCFEncodedData() local
2438 tmpbuf = (unsigned char *)realloc(tmpbuf, oldsize, tmpbuflen); in getCFEncodedData()
2500 size_t oldsize = d - start; in getHexData() local
2501 if (oldsize >= buflen) { in getHexData()
2502 assert(oldsize == buflen); in getHexData()
2504 start = (unsigned char *)realloc(start, oldsize, buflen); in getHexData()
2505 d = start + oldsize; in getHexData()
/xnu-11215/libkern/libkern/c++/
H A DOSUnserializeXMLSharedImplementation.h2436 size_t oldsize = tmpbuflen; in getCFEncodedData() local
2438 tmpbuf = (unsigned char *)realloc(tmpbuf, oldsize, tmpbuflen); in getCFEncodedData()
2500 size_t oldsize = d - start; in getHexData() local
2501 if (oldsize >= buflen) { in getHexData()
2502 assert(oldsize == buflen); in getHexData()
2504 start = (unsigned char *)realloc(start, oldsize, buflen); in getHexData()
2505 d = start + oldsize; in getHexData()
/xnu-11215/bsd/dev/dtrace/
H A Ddtrace.c10611 int newsvars, oldsize, newsize; in dtrace_difo_init() local
10616 oldsize = oldsvars * sizeof (dtrace_statvar_t *); in dtrace_difo_init()
10621 if (oldsize != 0) { in dtrace_difo_init()
10622 bcopy(*svarp, statics, oldsize); in dtrace_difo_init()
10623 kmem_free(*svarp, oldsize); in dtrace_difo_init()