Home
last modified time | relevance | path

Searched refs:slot_index (Results 1 – 9 of 9) sorted by relevance

/external/rust/crates/tokio/src/sync/mpsc/
Dlist.rs59 let slot_index = self.tail_position.fetch_add(1, Acquire); in push() localVariable
62 let block = self.find_block(slot_index); in push()
66 block.as_ref().write(slot_index, value); in push()
77 let slot_index = self.tail_position.fetch_add(1, Acquire); in close() localVariable
79 let block = self.find_block(slot_index); in close()
84 fn find_block(&self, slot_index: usize) -> NonNull<Block<T>> { in find_block()
86 let start_index = block::start_index(slot_index); in find_block()
89 let offset = block::offset(slot_index); in find_block()
Dblock.rs65 pub(crate) fn start_index(slot_index: usize) -> usize { in start_index()
66 BLOCK_MASK & slot_index in start_index()
71 pub(crate) fn offset(slot_index: usize) -> usize { in offset()
72 SLOT_MASK & slot_index in offset()
117 pub(crate) unsafe fn read(&self, slot_index: usize) -> Option<Read<T>> { in read()
118 let offset = offset(slot_index); in read()
144 pub(crate) unsafe fn write(&self, slot_index: usize, value: T) { in write()
146 let slot_offset = offset(slot_index); in write()
/external/libchrome/base/threading/
Dthread_local_storage_unittest.cc117 size_t slot_index = 0; in Run() local
118 for (; slot_index < 10; ++slot_index) { in Run()
119 CreateTlsKeyWithDestructor(slot_index); in Run()
127 for (; slot_index < kKeyCount; ++slot_index) { in Run()
128 CreateTlsKeyWithDestructor(slot_index); in Run()
/external/curl/lib/
Dhash.c284 iter->slot_index = 0; in Curl_hash_start_iterate()
300 for(i = iter->slot_index; i < h->slots; i++) { in Curl_hash_next_element()
303 iter->slot_index = i + 1; in Curl_hash_next_element()
334 if(iter.slot_index != last_index) {
335 fprintf(stderr, "index %d:", iter.slot_index);
339 last_index = iter.slot_index;
Dhash.h68 int slot_index; member
/external/pdfium/third_party/base/allocator/partition_allocator/
Dpartition_alloc.cc494 size_t slot_index = (reinterpret_cast<char*>(entry) - ptr) / slot_size; in PartitionPurgePage() local
495 DCHECK(slot_index < num_slots); in PartitionPurgePage()
496 slot_usage[slot_index] = 0; in PartitionPurgePage()
505 last_slot = slot_index; in PartitionPurgePage()
542 for (size_t slot_index = 0; slot_index < num_slots; ++slot_index) { in PartitionPurgePage() local
543 if (slot_usage[slot_index]) in PartitionPurgePage()
547 ptr + (slot_size * slot_index)); in PartitionPurgePage()
557 last_slot = slot_index; in PartitionPurgePage()
/external/autotest/client/bin/input/
Dinput_device.py324 for slot_index in range(self.num_slots):
325 slot_id = self._convert_slot_index_to_slot_id(slot_index)
326 self.mt_slots[slot_index][c].value = values[slot_id]
604 for slot_index in range(self.num_slots):
605 slot = self.mt_slots[slot_index]
608 slot_id = self._convert_slot_index_to_slot_id(slot_index)
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_pipe_query.c375 int slot_index = -1; in allocate_query() local
394 slot_index = allocate_query_slot(svga, alloc_entry); in allocate_query()
396 if (slot_index == -1) { in allocate_query()
403 slot_index = allocate_query_slot(svga, alloc_entry); in allocate_query()
406 assert(slot_index != -1); in allocate_query()
407 offset = slot_index * len + alloc_entry->start_offset; in allocate_query()
421 unsigned slot_index; in deallocate_query() local
431 slot_index = (offset - alloc_entry->start_offset) / in deallocate_query()
433 deallocate_query_slot(svga, alloc_entry, slot_index); in deallocate_query()
/external/mesa3d/src/amd/vulkan/
Dradv_nir_to_llvm.c92 unsigned slot_index; member
1770 index = 2 + outputs[i].slot_index; in radv_llvm_export_vs()
1905 outputs[noutput].slot_index = i == VARYING_SLOT_CLIP_DIST1; in handle_vs_outputs_post()
1931 outputs[noutput].slot_index = 0; in handle_vs_outputs_post()
2245 outputs[noutput].slot_index = i == VARYING_SLOT_CLIP_DIST1; in build_streamout_vertex()
3182 outputs[noutput].slot_index = i == VARYING_SLOT_CLIP_DIST1; in gfx10_ngg_gs_emit_epilogue_2()
3210 outputs[noutput].slot_index = 0; in gfx10_ngg_gs_emit_epilogue_2()