Lines Matching full:buffer_size
60 size_t buffer_size, size; in __nss_common_cache_read() local
103 buffer_size = NSS_CACHE_BUFFER_INITIAL_SIZE; in __nss_common_cache_read()
115 &buffer_size); in __nss_common_cache_read()
117 if (res == -2 && buffer_size < NSS_CACHE_BUFFER_SIZE_LIMIT) { in __nss_common_cache_read()
118 buffer = (char *)realloc(buffer, buffer_size); in __nss_common_cache_read()
119 memset(buffer, 0, buffer_size); in __nss_common_cache_read()
124 if (buffer_size == 0) { in __nss_common_cache_read()
133 res = cache_info->unmarshal_func(buffer, buffer_size, retval, in __nss_common_cache_read()
164 size_t buffer_size; in __nss_common_cache_write() local
186 buffer_size = NSS_CACHE_BUFFER_INITIAL_SIZE; in __nss_common_cache_write()
193 size = buffer_size; in __nss_common_cache_write()
200 if (buffer_size > NSS_CACHE_BUFFER_SIZE_LIMIT) in __nss_common_cache_write()
203 buffer_size <<= 1; in __nss_common_cache_write()
204 buffer = (char *)realloc(buffer, buffer_size); in __nss_common_cache_write()
205 memset(buffer, 0, buffer_size); in __nss_common_cache_write()
217 cache_data->key, cache_data->key_size, buffer, buffer_size); in __nss_common_cache_write()
266 size_t buffer_size; in __nss_mp_cache_read() local
292 buffer_size = NSS_CACHE_BUFFER_INITIAL_SIZE; in __nss_mp_cache_read()
297 res = __cached_mp_read(rs, buffer, &buffer_size); in __nss_mp_cache_read()
298 if (res == -2 && buffer_size < NSS_CACHE_BUFFER_SIZE_LIMIT) { in __nss_mp_cache_read()
299 buffer = (char *)realloc(buffer, buffer_size); in __nss_mp_cache_read()
300 memset(buffer, 0, buffer_size); in __nss_mp_cache_read()
306 res = cache_info->unmarshal_func(buffer, buffer_size, retval, in __nss_mp_cache_read()
334 size_t buffer_size; in __nss_mp_cache_write() local
357 buffer_size = NSS_CACHE_BUFFER_INITIAL_SIZE; in __nss_mp_cache_write()
364 size = buffer_size; in __nss_mp_cache_write()
371 if (buffer_size > NSS_CACHE_BUFFER_SIZE_LIMIT) in __nss_mp_cache_write()
374 buffer_size <<= 1; in __nss_mp_cache_write()
375 buffer = (char *)realloc(buffer, buffer_size); in __nss_mp_cache_write()
376 memset(buffer, 0, buffer_size); in __nss_mp_cache_write()
385 res = __cached_mp_write(ws, buffer, buffer_size); in __nss_mp_cache_write()