Home
last modified time | relevance | path

Searched refs:extent (Results 1 – 25 of 110) sorted by relevance

12345

/freebsd/contrib/jemalloc/include/jemalloc/internal/
H A Dextent_inlines.h13 extent_lock(tsdn_t *tsdn, extent_t *extent) { in extent_lock() argument
14 assert(extent != NULL); in extent_lock()
15 mutex_pool_lock(tsdn, &extent_mutex_pool, (uintptr_t)extent); in extent_lock()
19 extent_unlock(tsdn_t *tsdn, extent_t *extent) { in extent_unlock() argument
20 assert(extent != NULL); in extent_unlock()
21 mutex_pool_unlock(tsdn, &extent_mutex_pool, (uintptr_t)extent); in extent_unlock()
39 extent_arena_ind_get(const extent_t *extent) { in extent_arena_ind_get() argument
40 unsigned arena_ind = (unsigned)((extent->e_bits & in extent_arena_ind_get()
48 extent_arena_get(const extent_t *extent) { in extent_arena_get() argument
49 unsigned arena_ind = extent_arena_ind_get(extent); in extent_arena_get()
[all …]
H A Darena_inlines_b.h44 const extent_t *extent = iealloc(tsdn, ptr); in arena_prof_tctx_get() local
45 if (unlikely(!extent_slab_get(extent))) { in arena_prof_tctx_get()
46 return large_prof_tctx_get(tsdn, extent); in arena_prof_tctx_get()
64 extent_t *extent = iealloc(tsdn, ptr); in arena_prof_tctx_set() local
65 if (unlikely(!extent_slab_get(extent))) { in arena_prof_tctx_set()
66 large_prof_tctx_set(tsdn, extent, tctx); in arena_prof_tctx_set()
80 extent_t *extent = iealloc(tsdn, ptr); in arena_prof_tctx_reset() local
81 assert(!extent_slab_get(extent)); in arena_prof_tctx_reset()
83 large_prof_tctx_reset(tsdn, extent); in arena_prof_tctx_reset()
92 extent_t *extent = iealloc(tsdn, ptr); in arena_prof_alloc_time_get() local
[all …]
H A Dlarge_externs.h9 bool large_ralloc_no_move(tsdn_t *tsdn, extent_t *extent, size_t usize_min,
21 void large_dalloc_prep_junked_locked(tsdn_t *tsdn, extent_t *extent);
22 void large_dalloc_finish(tsdn_t *tsdn, extent_t *extent);
23 void large_dalloc(tsdn_t *tsdn, extent_t *extent);
24 size_t large_salloc(tsdn_t *tsdn, const extent_t *extent);
25 prof_tctx_t *large_prof_tctx_get(tsdn_t *tsdn, const extent_t *extent);
26 void large_prof_tctx_set(tsdn_t *tsdn, extent_t *extent, prof_tctx_t *tctx);
27 void large_prof_tctx_reset(tsdn_t *tsdn, extent_t *extent);
29 nstime_t large_prof_alloc_time_get(const extent_t *extent);
30 void large_prof_alloc_time_set(extent_t *extent, nstime_t time);
H A Dextent_externs.h16 void extent_dalloc(tsdn_t *tsdn, arena_t *arena, extent_t *extent);
43 extent_hooks_t **r_extent_hooks, extents_t *extents, extent_t *extent);
52 void extent_dalloc_gap(tsdn_t *tsdn, arena_t *arena, extent_t *extent);
54 extent_hooks_t **r_extent_hooks, extent_t *extent);
56 extent_hooks_t **r_extent_hooks, extent_t *extent);
58 extent_hooks_t **r_extent_hooks, extent_t *extent, size_t offset,
61 extent_hooks_t **r_extent_hooks, extent_t *extent, size_t offset,
64 extent_hooks_t **r_extent_hooks, extent_t *extent, size_t offset,
67 extent_hooks_t **r_extent_hooks, extent_t *extent, size_t offset,
70 extent_hooks_t **r_extent_hooks, extent_t *extent, size_t size_a,
H A Drtree.h217 extent_t *extent = (extent_t *)atomic_load_p(&elm->le_extent, dependent in rtree_leaf_elm_extent_read()
219 return extent; in rtree_leaf_elm_extent_read()
249 rtree_leaf_elm_t *elm, extent_t *extent) { in rtree_leaf_elm_extent_write() argument
253 LG_VADDR) | ((uintptr_t)extent & (((uintptr_t)0x1 << LG_VADDR) - 1)) in rtree_leaf_elm_extent_write()
257 atomic_store_p(&elm->le_extent, extent, ATOMIC_RELEASE); in rtree_leaf_elm_extent_write()
296 rtree_leaf_elm_t *elm, extent_t *extent, szind_t szind, bool slab) { in rtree_leaf_elm_write() argument
299 ((uintptr_t)extent & (((uintptr_t)0x1 << LG_VADDR) - 1)) | in rtree_leaf_elm_write()
309 rtree_leaf_elm_extent_write(tsdn, rtree, elm, extent); in rtree_leaf_elm_write()
387 extent_t *extent, szind_t szind, bool slab) { in rtree_write() argument
389 assert(extent != NULL); in rtree_write()
[all …]
H A Darena_externs.h31 extent_hooks_t **r_extent_hooks, extent_t *extent);
38 extent_t *extent);
40 extent_t *extent, size_t oldsize);
42 extent_t *extent, size_t oldsize);
67 szind_t binind, extent_t *extent, void *ptr);
H A Dbase_structs.h17 extent_t extent; member
/freebsd/contrib/jemalloc/src/
H A Dextent.c35 extent_hooks_t **r_extent_hooks, extent_t *extent, size_t offset,
44 extent_hooks_t **r_extent_hooks, extent_t *extent, size_t offset,
51 extent_hooks_t **r_extent_hooks, extent_t *extent, size_t offset,
57 extent_hooks_t **r_extent_hooks, extent_t *extent, size_t size_a,
102 static void extent_deregister(tsdn_t *tsdn, extent_t *extent);
109 extent_t *extent, bool *coalesced, bool growing_retained);
111 extent_hooks_t **r_extent_hooks, extents_t *extents, extent_t *extent,
182 extent_t *extent = extent_avail_first(&arena->extent_avail); in extent_alloc() local
183 if (extent == NULL) { in extent_alloc()
187 extent_avail_remove(&arena->extent_avail, extent); in extent_alloc()
[all …]
H A Dlarge.c24 extent_t *extent; in large_palloc() local
47 if (unlikely(arena == NULL) || (extent = arena_extent_alloc_large(tsdn, in large_palloc()
56 extent_list_append(&arena->large, extent); in large_palloc()
66 memset(extent_addr_get(extent), JEMALLOC_ALLOC_JUNK, in large_palloc()
67 extent_usize_get(extent)); in large_palloc()
71 return extent_addr_get(extent); in large_palloc()
96 large_ralloc_no_move_shrink(tsdn_t *tsdn, extent_t *extent, size_t usize) { in large_ralloc_no_move_shrink() argument
97 arena_t *arena = extent_arena_get(extent); in large_ralloc_no_move_shrink()
98 size_t oldusize = extent_usize_get(extent); in large_ralloc_no_move_shrink()
100 size_t diff = extent_size_get(extent) - (usize + sz_large_pad); in large_ralloc_no_move_shrink()
[all …]
H A Dbase.c119 base_extent_init(size_t *extent_sn_next, extent_t *extent, void *addr, in base_extent_init() argument
126 extent_binit(extent, addr, size, sn); in base_extent_init()
172 extent_bsize_get(&block->extent)) >> LG_HUGEPAGE; in base_auto_thp_switch()
180 base_extent_bump_alloc_helper(extent_t *extent, size_t *gap_size, size_t size, in base_extent_bump_alloc_helper() argument
187 *gap_size = ALIGNMENT_CEILING((uintptr_t)extent_addr_get(extent), in base_extent_bump_alloc_helper()
188 alignment) - (uintptr_t)extent_addr_get(extent); in base_extent_bump_alloc_helper()
189 ret = (void *)((uintptr_t)extent_addr_get(extent) + *gap_size); in base_extent_bump_alloc_helper()
190 assert(extent_bsize_get(extent) >= *gap_size + size); in base_extent_bump_alloc_helper()
191 extent_binit(extent, (void *)((uintptr_t)extent_addr_get(extent) + in base_extent_bump_alloc_helper()
192 *gap_size + size), extent_bsize_get(extent) - *gap_size - size, in base_extent_bump_alloc_helper()
[all …]
H A Darena.c257 extent_hooks_t **r_extent_hooks, extent_t *extent) { in arena_extents_dirty_dalloc() argument
262 extent); in arena_extents_dirty_dalloc()
438 extent_t *extent = extents_alloc(tsdn, arena, &extent_hooks, in arena_extent_alloc_large() local
441 if (extent == NULL && arena_may_have_muzzy(arena)) { in arena_extent_alloc_large()
442 extent = extents_alloc(tsdn, arena, &extent_hooks, in arena_extent_alloc_large()
447 if (extent == NULL) { in arena_extent_alloc_large()
448 extent = extent_alloc_wrapper(tsdn, arena, &extent_hooks, NULL, in arena_extent_alloc_large()
463 if (extent != NULL) { in arena_extent_alloc_large()
476 return extent; in arena_extent_alloc_large()
480 arena_extent_dalloc_large_prep(tsdn_t *tsdn, arena_t *arena, extent_t *extent) { in arena_extent_dalloc_large_prep() argument
[all …]
H A Dtcache.c158 extent_t *extent = item_extent[0]; in tcache_bin_flush_small() local
159 unsigned bin_arena_ind = extent_arena_ind_get(extent); in tcache_bin_flush_small()
162 unsigned binshard = extent_binshard_get(extent); in tcache_bin_flush_small()
184 extent = item_extent[i]; in tcache_bin_flush_small()
185 assert(ptr != NULL && extent != NULL); in tcache_bin_flush_small()
187 if (extent_arena_ind_get(extent) == bin_arena_ind in tcache_bin_flush_small()
188 && extent_binshard_get(extent) == binshard) { in tcache_bin_flush_small()
190 bin_arena, bin, binind, extent, ptr); in tcache_bin_flush_small()
199 item_extent[ndeferred] = extent; in tcache_bin_flush_small()
253 extent_t *extent = item_extent[0]; in tcache_bin_flush_large() local
[all …]
H A Dextent_dss.c199 extent_t extent; in extent_alloc_dss() local
201 extent_init(&extent, arena, ret, size, in extent_alloc_dss()
206 arena, &extent_hooks, &extent, 0, in extent_alloc_dss()
/freebsd/contrib/llvm-project/libcxx/include/__type_traits/
H A Dextent.h25 struct _LIBCPP_TEMPLATE_VIS extent : integral_constant<size_t, __array_extent(_Tp, _Dim)> {}; struct
35 struct _LIBCPP_TEMPLATE_VIS extent : public integral_constant<size_t, 0> {};
37 struct _LIBCPP_TEMPLATE_VIS extent<_Tp[], 0> : public integral_constant<size_t, 0> {};
39 struct _LIBCPP_TEMPLATE_VIS extent<_Tp[], _Ip> : public integral_constant<size_t, extent<_Tp, _Ip -…
41 struct _LIBCPP_TEMPLATE_VIS extent<_Tp[_Np], 0> : public integral_constant<size_t, _Np> {};
43 struct _LIBCPP_TEMPLATE_VIS extent<_Tp[_Np], _Ip> : public integral_constant<size_t, extent<_Tp, _I…
47 inline constexpr size_t extent_v = extent<_Tp, _Ip>::value;
/freebsd/contrib/llvm-project/libcxx/include/__mdspan/
H A Dlayout_stride.h84 index_type __prod = __ext.extent(0); in __required_span_size_is_representable()
86 bool __overflowed = __builtin_mul_overflow(__prod, __ext.extent(__r), &__prod); in __required_span_size_is_representable()
107 if (__ext.extent(__r) == static_cast<index_type>(0)) in __required_span_size_is_representable()
109 index_type __prod = (__ext.extent(__r) - 1); in __required_span_size_is_representable()
145 (__extents_.extent(__permute[__r]) > static_cast<index_type>(1))) in __bubble_sort_by_strides()
164 __stride *= __extents_.extent(__r); in mapping()
203 … static_cast<index_type>(__strides[__permute[__i - 1]]) * __extents_.extent(__permute[__i - 1]))
268 if ((__extents_.extent(_Pos) * ... * 1) == 0) in required_span_size()
273 (((__extents_.extent(_Pos) - static_cast<index_type>(1)) * __strides_[_Pos]) + ... + in required_span_size()
317 if (__extents_.extent(__r) == 0 && __r != __r_largest) in is_exhaustive()
[all …]
H A Dlayout_left.h61 index_type __prod = __ext.extent(0); in __required_span_size_is_representable()
63 bool __overflowed = __builtin_mul_overflow(__prod, __ext.extent(__r), &__prod); in __required_span_size_is_representable()
143 __size *= __extents_.extent(__r); in required_span_size()
160 …((__res = __idx_a[extents_type::rank() - 1 - _Pos] + __extents_.extent(extents_type::rank() - 1 - … in operator()
183 __s *= __extents_.extent(__i); in stride()
H A Dlayout_right.h60 index_type __prod = __ext.extent(0); in __required_span_size_is_representable()
62 bool __overflowed = __builtin_mul_overflow(__prod, __ext.extent(__r), &__prod); in __required_span_size_is_representable()
142 __size *= __extents_.extent(__r); in required_span_size()
158 ((__res = static_cast<index_type>(__idx) + __extents_.extent(_Pos) * __res), ...); in operator()
180 __s *= __extents_.extent(__i); in stride()
H A Dmdspan.h96 _LIBCPP_HIDE_FROM_ABI constexpr index_type extent(rank_type __r) const noexcept { in extent() function
97 return __map_.extents().extent(__r); in extent()
173 … (static_cast<index_type>(__other.extent(__r)) == static_cast<index_type>(static_extent(__r))), in requires()
221 return (__builtin_mul_overflow(__prod, extent(_Idxs), &__prod) || ... || false); in size()
225 return ((static_cast<size_type>(__map_.extents().extent(_Idxs))) * ... * size_type(1)); in size()
231 return (rank() > 0) && ((__map_.extents().extent(_Idxs) == index_type(0)) || ... || false); in empty()
H A Dextents.h303 …_LIBCPP_HIDE_FROM_ABI constexpr index_type extent(rank_type __r) const noexcept { return __vals_._…
367 __exts.extent(_Idx));
401 __mdspan_detail::__is_representable_as<index_type>(__other.extent(__r)),
409 …(static_cast<index_type>(__other.extent(__r)) == static_cast<index_type>(_Values::__static_value(_…
425 … if (static_cast<_CommonType>(__lhs.extent(__r)) != static_cast<_CommonType>(__rhs.extent(__r))) {
515 return (__mdspan_detail::__is_index_in_extent(__ext.extent(_Idxs), __values) && ...);
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DArrayBoundCheckerV2.cpp242 getSimplifiedOffsets(NonLoc offset, nonloc::ConcreteInt extent, in getSimplifiedOffsets() argument
248 APSIntType(extent.getValue()).convert(SIE->getRHS()); in getSimplifiedOffsets()
253 if ((extent.getValue() % constant) != 0) in getSimplifiedOffsets()
254 return std::pair<NonLoc, nonloc::ConcreteInt>(offset, extent); in getSimplifiedOffsets()
258 svalBuilder.makeIntVal(extent.getValue() / constant), in getSimplifiedOffsets()
263 svalBuilder.makeIntVal(extent.getValue() - constant), svalBuilder); in getSimplifiedOffsets()
270 return std::pair<NonLoc, nonloc::ConcreteInt>(offset, extent); in getSimplifiedOffsets()
/freebsd/sys/dev/ocs_fc/
H A Dsli4.c2435 sli4_req_common_get_resource_extent_info_t *extent = NULL; in sli_cmd_common_get_resource_extent_info() local
2444 extent = (sli4_req_common_get_resource_extent_info_t *)((uint8_t *)buf + sli_config_off); in sli_cmd_common_get_resource_extent_info()
2446 extent->hdr.opcode = SLI4_OPC_COMMON_GET_RESOURCE_EXTENT_INFO; in sli_cmd_common_get_resource_extent_info()
2447 extent->hdr.subsystem = SLI4_SUBSYSTEM_COMMON; in sli_cmd_common_get_resource_extent_info()
2448 extent->hdr.request_length = 4; in sli_cmd_common_get_resource_extent_info()
2450 extent->resource_type = rtype; in sli_cmd_common_get_resource_extent_info()
3718 uint32_t *base = sli4->config.extent[0].base; in sli_get_config()
3729 sli4->config.extent[i].number = 1; in sli_get_config()
3730 sli4->config.extent[i].n_alloc = 0; in sli_get_config()
3731 sli4->config.extent[i].base = &base[i]; in sli_get_config()
[all …]
/freebsd/usr.sbin/makefs/cd9660/
H A Dcd9660_debug.c93 isonum_733(node->isoDirRecord->extent)); in debug_print_tree()
96 isonum_733(node->isoDirRecord->extent)); in debug_print_tree()
349 debug_dump_integer("extent", rec->extent, 733); in debug_dump_directory_record_9_1()
/freebsd/usr.sbin/bsnmpd/modules/snmp_hast/
H A DBEGEMOT-HAST-MIB.txt180 "Size of an extent. Extent is a block which is
182 map of dirty extents and extent is the smallest
184 of an extent is modified, entire extent will be
/freebsd/sys/fs/cd9660/
H A Dcd9660_vfsops.c372 isomp->root_extent = isonum_733 (rootp->extent); in iso_mountfs()
489 isomp->root_extent = isonum_733 (rootp->extent); in iso_mountfs()
767 if (isonum_733(isodir->extent) + in cd9660_vget_internal()
771 isonum_733(isodir->extent) + isonum_711(isodir->ext_attr_length), in cd9660_vget_internal()
796 ip->iso_extent = isonum_733(isodir->extent); in cd9660_vget_internal()
/freebsd/stand/libsa/
H A Dcd9660.c379 bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); in cd9660_open()
468 bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); in cd9660_open()
486 fp->f_bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); in cd9660_open()
624 d->d_fileno = isonum_733(ep->extent); in cd9660_readdir()

12345