Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 18 of 18) sorted by relevance

/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_trim/
H A Dzpool_trim_partial.ksh71 new_size=$(du -B1 "$LARGEFILE" | cut -f1)
72 log_must test $new_size -le $LARGESIZE
73 log_must test $new_size -gt $(( floor(LARGESIZE * 0.70) ))
83 new_size=$(du -B1 "$LARGEFILE" | cut -f1)
84 log_must test $new_size -gt $((4 * floor(LARGESIZE * 0.70) ))
97 new_size=$(du -B1 "$LARGEFILE" | cut -f1)
98 log_must test $new_size -gt $LARGESIZE
110 new_size=$(du -B1 "$LARGEFILE" | cut -f1)
111 log_must test $new_size -le $(( 2 * LARGESIZE))
112 log_must test $new_size -gt $(( floor(LARGESIZE * 0.70) ))
H A Dzpool_trim_verify_trimmed.ksh69 new_size=$(du -B1 "$LARGEFILE" | cut -f1)
70 log_must within_tolerance $new_size $LARGESIZE $((128 * 1024 * 1024))
78 new_size=$(du -B1 "$LARGEFILE" | cut -f1)
79 log_must within_tolerance $new_size $original_size $((128 * 1024 * 1024))
/f-stack/freebsd/netpfil/ipfw/
H A Ddn_heap.c82 heap_resize(struct dn_heap *h, unsigned int new_size) in heap_resize() argument
86 if ((unsigned int)h->size >= new_size ) /* have enough room */ in heap_resize()
89 new_size |= new_size >> 1; in heap_resize()
90 new_size |= new_size >> 2; in heap_resize()
91 new_size |= new_size >> 4; in heap_resize()
92 new_size |= new_size >> 8; in heap_resize()
93 new_size |= new_size >> 16; in heap_resize()
95 new_size = (new_size + HEAP_INCREMENT ) & ~HEAP_INCREMENT; in heap_resize()
97 p = mallocarray(new_size, sizeof(*p), M_DN_HEAP, M_NOWAIT); in heap_resize()
99 printf("--- %s, resize %d failed\n", __func__, new_size ); in heap_resize()
[all …]
H A Dip_fw_table_algo.c1788 size_t old_size, new_size; in ta_modify_chash() local
1796 new_size = mi->size; in ta_modify_chash()
1804 nhash = hash_ent(ent, af, mlen, new_size); in ta_modify_chash()
1817 new_size = mi->size6; in ta_modify_chash()
1825 nhash = hash_ent(ent, af, mlen, new_size); in ta_modify_chash()
/f-stack/app/redis-5.0.5/deps/jemalloc/test/integration/
H A Dextent.c104 size_t old_size, new_size, sz; in test_manual_hook_auto_arena() local
126 new_size = sizeof(extent_hooks_t *); in test_manual_hook_auto_arena()
128 &old_size, (void *)&new_hooks, new_size), 0, in test_manual_hook_auto_arena()
141 size_t old_size, new_size, sz; in test_manual_hook_body() local
159 new_size = sizeof(extent_hooks_t *); in test_manual_hook_body()
161 &old_size, (void *)&new_hooks, new_size), 0, in test_manual_hook_body()
186 (void *)&old_hooks, new_size), 0, "Unexpected extent_hooks error"); in test_manual_hook_body()
227 size_t new_size, sz; in TEST_BEGIN() local
234 new_size = sizeof(extent_hooks_t *); in TEST_BEGIN()
236 (void *)&new_hooks, new_size), 0, "Unexpected mallctl() failure"); in TEST_BEGIN()
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_expand/
H A Dzpool_expand_005_pos.ksh92 typeset new_size=$(get_pool_prop size $TESTPOOL1)
93 log_note "new pool size: $new_size"
94 if [[ $new_size -le $prev_size ]]; then
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/snapshot/
H A Dsnapshot_008_pos.ksh94 new_size=`get_prop available $TESTPOOL`
98 (( tolerance = new_size - orig_size))
100 log_fail "Space not freed. ($orig_size != $new_size)"
/f-stack/tools/netstat/
H A Dnhops.c212 uint32_t new_size; in nhop_map_update() local
215 new_size = 32; in nhop_map_update()
217 new_size = map->size * 2; in nhop_map_update()
218 if (new_size <= idx) in nhop_map_update()
219 new_size = roundup(idx + 1, 32); in nhop_map_update()
221 sz = new_size * (sizeof(struct nhop_entry)); in nhop_map_update()
225 memset(&map->ptr[map->size], 0, (new_size - map->size) * sizeof(struct nhop_entry)); in nhop_map_update()
226 map->size = new_size; in nhop_map_update()
/f-stack/freebsd/net/route/
H A Dnhop_utils.h43 uint32_t new_size = 0; in _cht_get_resize_size() local
46 new_size = head->hash_size * 2; in _cht_get_resize_size()
48 new_size = head->hash_size / 2; in _cht_get_resize_size()
50 return (new_size); in _cht_get_resize_size()
/f-stack/freebsd/netinet/
H A Dip_id.c192 ip_initid(int new_size) in ip_initid() argument
197 new_array = malloc(new_size * sizeof(uint16_t), M_IPID, in ip_initid()
208 V_array_size = new_size; in ip_initid()
H A Dsctputil.c1413 uint32_t new_size; in sctp_expand_mapping_array() local
1415 new_size = asoc->mapping_array_size + ((needed + 7) / 8 + SCTP_MAPPING_ARRAY_INCR); in sctp_expand_mapping_array()
1416 SCTP_MALLOC(new_array1, uint8_t *, new_size, SCTP_M_MAP); in sctp_expand_mapping_array()
1417 SCTP_MALLOC(new_array2, uint8_t *, new_size, SCTP_M_MAP); in sctp_expand_mapping_array()
1420 SCTP_PRINTF("No memory for expansion of SCTP mapping array %d\n", new_size); in sctp_expand_mapping_array()
1429 memset(new_array1, 0, new_size); in sctp_expand_mapping_array()
1430 memset(new_array2, 0, new_size); in sctp_expand_mapping_array()
1437 asoc->mapping_array_size = new_size; in sctp_expand_mapping_array()
/f-stack/freebsd/contrib/openzfs/module/zfs/
H A Dvdev_indirect_births.c133 uint64_t new_size; in vdev_indirect_births_add_entry() local
149 new_size = vdev_indirect_births_size_impl(vib); in vdev_indirect_births_add_entry()
151 new_entries = vmem_alloc(new_size, KM_SLEEP); in vdev_indirect_births_add_entry()
H A Dvdev_indirect_mapping.c477 uint64_t new_size = vdev_indirect_mapping_size(vim); in vdev_indirect_mapping_add_entries() local
478 ASSERT3U(new_size, >, old_size); in vdev_indirect_mapping_add_entries()
479 ASSERT3U(new_size - old_size, ==, in vdev_indirect_mapping_add_entries()
481 vim->vim_entries = vmem_alloc(new_size, KM_SLEEP); in vdev_indirect_mapping_add_entries()
487 new_size - old_size, &vim->vim_entries[old_count], in vdev_indirect_mapping_add_entries()
/f-stack/dpdk/lib/librte_eal/common/
H A Dmalloc_elem.c641 const size_t new_size = size + elem->pad + MALLOC_ELEM_OVERHEAD; in malloc_elem_resize() local
644 if (elem->size >= new_size) in malloc_elem_resize()
651 if (elem->size + elem->next->size < new_size) in malloc_elem_resize()
660 if (elem->size - new_size >= MIN_DATA_SIZE + MALLOC_ELEM_OVERHEAD) { in malloc_elem_resize()
662 struct malloc_elem *split_pt = RTE_PTR_ADD(elem, new_size); in malloc_elem_resize()
/f-stack/dpdk/lib/librte_mempool/
H A Drte_mempool.c246 unsigned new_size; in rte_mempool_calc_obj_size() local
247 new_size = arch_mem_object_align in rte_mempool_calc_obj_size()
249 sz->trailer_size = new_size - sz->header_size - sz->elt_size; in rte_mempool_calc_obj_size()
/f-stack/dpdk/lib/librte_eal/linux/
H A Deal_memalloc.c404 uint64_t new_size = fa_offset + page_sz; in resize_hugefile_in_filesystem() local
408 if (new_size > cur_size && in resize_hugefile_in_filesystem()
409 ftruncate(fd, new_size) < 0) { in resize_hugefile_in_filesystem()
/f-stack/freebsd/contrib/openzfs/module/nvpair/
H A Dnvpair.c365 nvt_resize(nvpriv_t *priv, uint32_t new_size) in nvt_resize() argument
375 uint32_t new_mask = new_size - 1; in nvt_resize()
376 ASSERT(ISP2(new_size)); in nvt_resize()
378 i_nvp_t **new_tab = nv_mem_zalloc(priv, new_size * sizeof (i_nvp_t *)); in nvt_resize()
405 priv->nvp_nbuckets = new_size; in nvt_resize()
/f-stack/freebsd/contrib/octeon-sdk/cvmx-malloc/
H A Dmalloc.c1494 static mchunkptr internal_function mremap_chunk(mchunkptr p, size_t new_size);