/third_party/alsa-utils/alsactl/ |
H A D | init_parse.c | 63 struct space { struct 81 static void Perror(struct space *space, const char *fmt, ...) in Perror() argument 85 fprintf(stderr, "%s:%i: ", space->filename, space->linenum); in Perror() 96 static void free_space(struct space *space) in free_space() argument 98 struct pair *pair = space->pairs; in free_space() 108 space->pairs = NULL; in free_space() 109 if (space in free_space() 138 value_find(struct space *space, const char *key) value_find() argument 147 value_set(struct space *space, const char *key, const char *value) value_set() argument 178 init_space(struct space **space, int card) init_space() argument 218 cardinfo_get(struct space *space, const char *attr) cardinfo_get() argument 241 check_id_changed(struct space *space, unsigned int what) check_id_changed() argument 269 get_ctl_value(struct space *space) get_ctl_value() argument 340 set_ctl_value(struct space *space, const char *value, int all) set_ctl_value() argument 527 elemid_get(struct space *space, const char *attr) elemid_get() argument 748 elemid_set(struct space *space, const char *attr, const char *value) elemid_set() argument 942 get_key_attribute(struct space *space, char *str, char *res, size_t ressize) get_key_attribute() argument 966 get_format_attribute(struct space *space, char **str) get_format_attribute() argument 986 get_format_len(struct space *space, char **str) get_format_len() argument 1004 apply_format(struct space *space, char *string, size_t maxsize) apply_format() argument 1243 run_program1(struct space *space, const char *command0, char *result, size_t ressize, size_t *reslen ATTRIBUTE_UNUSED, int log ATTRIBUTE_UNUSED) run_program1() argument 1288 parse_line(struct space *space, char *line, size_t linesize ATTRIBUTE_UNUSED) parse_line() argument 1659 parse(struct space *space, const char *filename) parse() argument 1749 struct space *space; init() local [all...] |
H A D | init_utils_run.c | 25 int run_program1(struct space *space, 30 int run_program0(struct space *space, in run_program0() argument 74 Perror(space, "pipe failed: %s", strerror(errno)); in run_program0() 80 Perror(space, "pipe failed: %s", strerror(errno)); in run_program0() 111 Perror(space, "open /dev/null failed: %s", strerror(errno)); in run_program0() 123 Perror(space, "exec of program '%s' failed", argv[0]); in run_program0() 126 Perror(space, "fork of '%s' failed: %s", argv[0], strerror(errno)); in run_program0() 169 Perror(space, "stdi in run_program0() 241 run_program(struct space *space, const char *command0, char *result, size_t ressize, size_t *reslen, int log) run_program() argument [all...] |
/third_party/node/deps/v8/src/heap/cppgc/ |
H A D | object-allocator.cc | 14 #include "src/heap/cppgc/heap-space.h" 60 void AddToFreeList(NormalPageSpace& space, Address start, size_t size) { in AddToFreeList() argument 63 space.free_list().Add({start, size}); in AddToFreeList() 71 void ReplaceLinearAllocationBuffer(NormalPageSpace& space, in ReplaceLinearAllocationBuffer() argument 74 auto& lab = space.linear_allocation_buffer(); in ReplaceLinearAllocationBuffer() 76 AddToFreeList(space, lab.start(), lab.size()); in ReplaceLinearAllocationBuffer() 92 void* AllocateLargeObject(PageBackend& page_backend, LargePageSpace& space, in AllocateLargeObject() argument 95 LargePage* page = LargePage::Create(page_backend, space, size); in AllocateLargeObject() 96 space.AddPage(page); in AllocateLargeObject() 119 void* ObjectAllocator::OutOfLineAllocate(NormalPageSpace& space, size_ argument 137 OutOfLineAllocateImpl(NormalPageSpace& space, size_t size, AlignVal alignment, GCInfoIndex gcinfo) OutOfLineAllocateImpl() argument 173 RefillLinearAllocationBuffer(NormalPageSpace& space, size_t size) RefillLinearAllocationBuffer() argument 207 RefillLinearAllocationBufferFromFreeList( NormalPageSpace& space, size_t size) RefillLinearAllocationBufferFromFreeList() argument 231 VisitNormalPageSpace(NormalPageSpace& space) ResetLinearAllocationBuffers() argument [all...] |
H A D | heap-page.cc | 14 #include "src/heap/cppgc/heap-space.h" 50 page->space() in Destroy() 102 // Check that the space has no linear allocation buffer. in TryObjectHeaderFromInnerAddress() 103 DCHECK(!NormalPageSpace::From(normal_page->space()) in TryObjectHeaderFromInnerAddress() 116 BasePage::BasePage(HeapBase& heap, BaseSpace& space, PageType type) in BasePage() argument 117 : heap_(heap), space_(space), type_(type) { in BasePage() 125 NormalPageSpace& space) { in Create() 126 void* memory = page_backend.AllocateNormalPageMemory(space.index()); in Create() 127 auto* normal_page = new (memory) NormalPage(*space.raw_heap()->heap(), space); in Create() 124 Create(PageBackend& page_backend, NormalPageSpace& space) Create() argument 155 const BaseSpace& space = page->space(); Destroy() local 163 NormalPage(HeapBase& heap, BaseSpace& space) NormalPage() argument 207 LargePage(HeapBase& heap, BaseSpace& space, size_t size) LargePage() argument 218 Create(PageBackend& page_backend, LargePageSpace& space, size_t size) Create() argument 242 const BaseSpace& space = page->space(); Destroy() local [all...] |
H A D | heap-visitor.h | 9 #include "src/heap/cppgc/heap-space.h" 24 for (auto& space : heap) { in Traverse() 25 Traverse(*space.get()); in Traverse() 29 void Traverse(BaseSpace& space) { in Traverse() argument 31 space.is_large() in Traverse() 32 ? VisitLargePageSpaceImpl(LargePageSpace::From(space)) in Traverse() 33 : VisitNormalPageSpaceImpl(NormalPageSpace::From(space)); in Traverse() 35 for (auto* page : space) { in Traverse() 68 bool VisitNormalPageSpaceImpl(NormalPageSpace& space) { in VisitNormalPageSpaceImpl() argument 69 return ToDerived().VisitNormalPageSpace(space); in VisitNormalPageSpaceImpl() 71 VisitLargePageSpaceImpl(LargePageSpace& space) VisitLargePageSpaceImpl() argument [all...] |
H A D | heap-space.h | 93 static NormalPageSpace& From(BaseSpace& space) { in From() argument 94 DCHECK(!space.is_large()); in From() 95 return static_cast<NormalPageSpace&>(space); in From() 97 static const NormalPageSpace& From(const BaseSpace& space) { in From() argument 98 return From(const_cast<BaseSpace&>(space)); in From() 118 static LargePageSpace& From(BaseSpace& space) { in From() argument 119 DCHECK(space.is_large()); in From() 120 return static_cast<LargePageSpace&>(space); in From() 122 static const LargePageSpace& From(const BaseSpace& space) { in From() argument 123 return From(const_cast<BaseSpace&>(space)); in From() [all...] |
H A D | compactor.cc | 17 #include "src/heap/cppgc/heap-space.h" 106 if (value_page->is_large() || !value_page->space().is_compactable()) return; in AddOrFilter() 127 if (V8_LIKELY(!slot_page->space().is_compactable())) return; in AddOrFilter() 226 CompactionState(NormalPageSpace* space, MovableReferences& movable_references) in CompactionState() argument 227 : space_(space), movable_references_(movable_references) {} in CompactionState() 230 DCHECK_EQ(space_, &page->space()); in AddPage() 300 DCHECK_EQ(space_, ¤t_page_->space()); in ReturnCurrentPageToSpace() 320 // Additional pages in the current space that can be used as compaction 376 void CompactSpace(NormalPageSpace* space, in CompactSpace() argument 381 UnmarkedObjectsPoisoner().Traverse(*space); in CompactSpace() [all...] |
/third_party/node/deps/v8/src/heap/ |
H A D | sweeper.h | 44 // Temporary filters old space sweeping lists. Requires the concurrent 59 // Iteration here is from most free space to least free space. in FilterOldSpaceSweepingPages() 84 void AddPage(AllocationSpace space, Page* page, AddPageMode mode); 105 void DrainSweepingWorklistForSpace(AllocationSpace space); 111 Page* GetSweptPageSafe(PagedSpace* space); 138 Page* page, Space* space, 163 ForAllSweepingSpaces([this, &is_done](AllocationSpace space) { in IsDoneSweeping() 164 if (!sweeping_list_[GetSweepSpaceIndex(space)].empty()) is_done = false; in IsDoneSweeping() 171 // Concurrently sweeps many page from the given space 186 IsValidIterabilitySpace(AllocationSpace space) IsValidIterabilitySpace() argument 190 IsValidSweepingSpace(AllocationSpace space) IsValidSweepingSpace() argument 195 GetSweepSpaceIndex(AllocationSpace space) GetSweepSpaceIndex() argument [all...] |
H A D | sweeper.cc | 107 // Do not sweep code space concurrently. in RunImpl() 154 ForAllSweepingSpaces([this, marking_state](AllocationSpace space) { in StartSweeping() 162 int space_index = GetSweepSpaceIndex(space); in StartSweeping() 182 Page* Sweeper::GetSweptPageSafe(PagedSpace* space) { in GetSweptPageSafe() argument 184 SweptList& list = swept_list_[GetSweepSpaceIndex(space->identity())]; in GetSweptPageSafe() 200 ForAllSweepingSpaces([this](AllocationSpace space) { in EnsureCompleted() 201 ParallelSweepSpace(space, SweepingMode::kLazyOrConcurrent, 0); in EnsureCompleted() 206 ForAllSweepingSpaces([this](AllocationSpace space) { in EnsureCompleted() 207 CHECK(sweeping_list_[GetSweepSpaceIndex(space)].empty()); in EnsureCompleted() 212 void Sweeper::DrainSweepingWorklistForSpace(AllocationSpace space) { in DrainSweepingWorklistForSpace() argument 229 FreeAndProcessFreedMemory( Address free_start, Address free_end, Page* page, Space* space, FreeListRebuildingMode free_list_mode, FreeSpaceTreatmentMode free_space_mode) FreeAndProcessFreedMemory() argument 334 Space* space = p->owner(); RawSweep() local 567 TryRemoveSweepingPageSafe(AllocationSpace space, Page* page) TryRemoveSweepingPageSafe() argument 590 AddPage(AllocationSpace space, Page* page, Sweeper::AddPageMode mode) AddPage() argument 607 PrepareToBeSweptPage(AllocationSpace space, Page* page) PrepareToBeSweptPage() argument 622 GetSweepingPageSafe(AllocationSpace space) GetSweepingPageSafe() argument [all...] |
H A D | memory-chunk-layout.cc | 49 AllocationSpace space) { in ObjectStartOffsetInMemoryChunk() 50 if (space == CODE_SPACE || space == CODE_LO_SPACE) { in ObjectStartOffsetInMemoryChunk() 63 AllocationSpace space) { in AllocatableMemoryInMemoryChunk() 64 if (space == CODE_SPACE) { in AllocatableMemoryInMemoryChunk() 48 ObjectStartOffsetInMemoryChunk( AllocationSpace space) ObjectStartOffsetInMemoryChunk() argument 62 AllocatableMemoryInMemoryChunk( AllocationSpace space) AllocatableMemoryInMemoryChunk() argument
|
/third_party/node/tools/gyp/pylib/gyp/ |
H A D | ninja_syntax.py | 130 # Find the rightmost space that would obey our width constraint and 131 # that's not an escaped space. 133 space = available_space 135 space = text.rfind(" ", 0, space) 136 if space < 0 or self._count_dollars_before_index(text, space) % 2 == 0: 139 if space < 0: 140 # No such space; just use the first unescaped space w [all...] |
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/ |
H A D | ninja_syntax.py | 130 # Find the rightmost space that would obey our width constraint and 131 # that's not an escaped space. 133 space = available_space 135 space = text.rfind(" ", 0, space) 136 if space < 0 or self._count_dollars_before_index(text, space) % 2 == 0: 139 if space < 0: 140 # No such space; just use the first unescaped space w [all...] |
/third_party/skia/tests/ |
H A D | ColorSpaceTest.cpp | 30 static void test_space(skiatest::Reporter* r, SkColorSpace* space, in test_space() argument 34 REPORTER_ASSERT(r, nullptr != space); in test_space() 35 REPORTER_ASSERT(r, expectSRGB == space->gammaCloseToSRGB()); in test_space() 38 space->toXYZD50(&mat); in test_space() 96 static void test_serialize(skiatest::Reporter* r, sk_sp<SkColorSpace> space, bool isNamed) { in test_serialize() argument 97 sk_sp<SkData> data1 = space->serialize(); in test_serialize() 99 size_t bytes = space->writeToMemory(nullptr); in test_serialize() 101 space->writeToMemory(data2->writable_data()); in test_serialize() 107 REPORTER_ASSERT(r, space.get() == newSpace1.get()); in test_serialize() 108 REPORTER_ASSERT(r, space in test_serialize() 225 sk_sp<SkColorSpace> space = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, srgbToXYZ); DEF_TEST() local [all...] |
/third_party/mesa3d/src/broadcom/vulkan/ |
H A D | v3dv_cl.c | 59 cl_alloc_bo(struct v3dv_cl *cl, uint32_t space, bool use_branch) in cl_alloc_bo() argument 61 struct v3dv_bo *bo = v3dv_bo_alloc(cl->job->device, space, "CL", true); in cl_alloc_bo() 95 v3dv_cl_ensure_space(struct v3dv_cl *cl, uint32_t space, uint32_t alignment) in v3dv_cl_ensure_space() argument 99 if (offset + space <= cl->size) { in v3dv_cl_ensure_space() 104 cl_alloc_bo(cl, space, false); in v3dv_cl_ensure_space() 109 v3dv_cl_ensure_space_with_branch(struct v3dv_cl *cl, uint32_t space) in v3dv_cl_ensure_space_with_branch() argument 120 space += cl_packet_length(RETURN_FROM_SUB_LIST); in v3dv_cl_ensure_space_with_branch() 123 space += cl_packet_length(BRANCH); in v3dv_cl_ensure_space_with_branch() 126 if (v3dv_cl_offset(cl) + space <= cl->size) in v3dv_cl_ensure_space_with_branch() 132 cl_alloc_bo(cl, space, !needs_return_from_sub_lis in v3dv_cl_ensure_space_with_branch() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/bloat/ |
H A D | webtreemap.js | 99 // Given a list of rectangles |nodes|, the 1-d space available 100 // |space|, and a starting rectangle index |start|, compute an span of 105 function selectSpan(nodes, space, start) { 126 var score = Math.max(5*space*space*rmax / (rsum*rsum), 127 1*rsum*rsum / (space*space*rmin)); 166 var space; // Space available along layout axis. 168 space = (y2 - y1) * pixels_to_units; 170 space [all...] |
/third_party/mesa3d/src/panfrost/util/ |
H A D | pan_ir.c | 44 unsigned space = in pan_to_bytemask() local 54 return space | (space << 1); in pan_to_bytemask() 58 unsigned space = in pan_to_bytemask() local 64 return space | (space << 1) | (space << 2) | (space << 3); in pan_to_bytemask()
|
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/hmac/ |
H A D | hmac_crypto_tkip.c | 154 hi_u32 space = oal_netbuf_len(netbuf) - offset; in hmac_crypto_tkip_michael_mic() local 157 space = (space > data_len) ? data_len : space; in hmac_crypto_tkip_michael_mic() 160 while (space >= sizeof(hi_u32)) { in hmac_crypto_tkip_michael_mic() 165 space -= sizeof(hi_u32); in hmac_crypto_tkip_michael_mic() 178 if (space != 0) { in hmac_crypto_tkip_michael_mic() 183 if ((sizeof(hi_u32) - space) > oal_netbuf_len(netbuf)) { in hmac_crypto_tkip_michael_mic() 187 if (space == 1) { in hmac_crypto_tkip_michael_mic() 190 space in hmac_crypto_tkip_michael_mic() [all...] |
/third_party/mesa3d/src/gallium/drivers/v3d/ |
H A D | v3d_cl.c | 45 v3d_cl_ensure_space(struct v3d_cl *cl, uint32_t space, uint32_t alignment) in v3d_cl_ensure_space() argument 49 if (offset + space <= cl->size) { in v3d_cl_ensure_space() 55 cl->bo = v3d_bo_alloc(cl->job->v3d->screen, align(space, 4096), "CL"); in v3d_cl_ensure_space() 64 v3d_cl_ensure_space_with_branch(struct v3d_cl *cl, uint32_t space) in v3d_cl_ensure_space_with_branch() argument 66 if (cl_offset(cl) + space + cl_packet_length(BRANCH) <= cl->size) in v3d_cl_ensure_space_with_branch() 69 struct v3d_bo *new_bo = v3d_bo_alloc(cl->job->v3d->screen, space, "CL"); in v3d_cl_ensure_space_with_branch() 70 assert(space <= new_bo->size); in v3d_cl_ensure_space_with_branch()
|
/third_party/node/deps/v8/tools/debug_helper/ |
H A D | gen-heap-constants.py | 30 for (space, offset), (instance_type, name) in v8heapconst.KNOWN_MAPS.items(): 31 if space == target_space: 33 for (space, offset), name in v8heapconst.KNOWN_OBJECTS.items(): 34 if space == target_space and (space, offset) not in v8heapconst.KNOWN_MAPS: 51 for (space, offset), (instance_type, name) in v8heapconst.KNOWN_MAPS.items(): 52 if space == target_space:
|
/third_party/toybox/toys/posix/ |
H A D | wc.c | 36 int i, space = 0, first = 1; in show_lengths() local 46 space = 7; in show_lengths() 50 printf(" %*ld"+first, space, lengths[i]); in show_lengths() 61 int len = 0, clen = 1, space = 0; in do_wc() local 95 space = iswspace(wchar); in do_wc() 97 } else space = isspace(toybuf[pos]); in do_wc() 99 if (space) word=0; in do_wc()
|
/third_party/ninja/misc/ |
H A D | ninja_syntax.py | 170 # Find the rightmost space that would obey our width constraint and 171 # that's not an escaped space. 173 space = available_space 175 space = text.rfind(' ', 0, space) 176 if (space < 0 or 177 self._count_dollars_before_index(text, space) % 2 == 0): 180 if space < 0: 181 # No such space; just use the first unescaped space w [all...] |
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_disasm.c | 802 unsigned id, int *space) in control() 809 if (space && *space) in control() 812 if (space) in control() 813 *space = 1; in control() 1895 int space = 0; in brw_disassemble_inst() local 2077 space = 0; in brw_disassemble_inst() 2081 sfid, &space); in brw_disassemble_inst() 2091 brw_inst_math_msg_function(devinfo, inst), &space); in brw_disassemble_inst() 2093 brw_inst_math_msg_saturate(devinfo, inst), &space); in brw_disassemble_inst() 801 control(FILE *file, const char *name, const char *const ctrl[], unsigned id, int *space) control() argument [all...] |
/third_party/musl/porting/liteos_a/user/src/stdio/ |
H A D | open_wmemstream.c | 16 size_t space; member 46 if (len + c->pos >= c->space) { in wms_write() 47 len2 = 2*c->space+1 | c->pos+len+1; in wms_write() 52 memset(c->buf + c->space, 0, 4*(len2 - c->space)); in wms_write() 53 c->space = len2; in wms_write() 56 len2 = mbsnrtowcs(c->buf+c->pos, (void *)&buf, len, c->space-c->pos, &c->mbs); in wms_write() 86 f->c.pos = f->c.len = f->c.space = *sizep = 0; in open_wmemstream()
|
/third_party/musl/src/stdio/ |
H A D | open_wmemstream.c | 16 size_t space; member 50 if (len + c->pos >= c->space) { in wms_write() 51 len2 = 2*c->space+1 | c->pos+len+1; in wms_write() 56 memset(c->buf + c->space, 0, 4*(len2 - c->space)); in wms_write() 57 c->space = len2; in wms_write() 60 len2 = mbsnrtowcs(c->buf+c->pos, (void *)&buf, len, c->space-c->pos, &c->mbs); in wms_write() 90 f->c.pos = f->c.len = f->c.space = *sizep = 0; in open_wmemstream()
|
H A D | open_memstream.c | 14 size_t space; member 46 if (len + c->pos >= c->space) { in ms_write() 47 len2 = 2*c->space+1 | c->pos+len+1; in ms_write() 51 memset(c->buf + c->space, 0, len2 - c->space); in ms_write() 52 c->space = len2; in ms_write() 82 f->c.pos = f->c.len = f->c.space = *sizep = 0; in open_memstream()
|