/fuchsia/zircon/kernel/arch/x86/ |
H A D | idt.cpp | 35 static inline void idt_set_segment_sel(struct idt_entry* entry, uint16_t sel) { argument 36 entry->w0 = (entry->w0 & 0x0000ffff) | (sel << 16); 39 static inline void idt_set_offset(struct idt_entry* entry, uintptr_t offset) { argument 42 entry->w0 = (entry->w0 & 0xffff0000) | low_16; 43 entry->w1 = (entry->w1 & 0x0000ffff) | (mid_16 << 16); 45 entry->w2 = high_32; 48 static inline void idt_set_present(struct idt_entry* entry, boo argument 52 idt_set_dpl(struct idt_entry* entry, enum idt_dpl dpl) argument 57 idt_set_type( struct idt_entry* entry, enum idt_entry_type typ) argument 70 struct idt_entry* entry = &idt->entries[vec]; local [all...] |
H A D | descriptor.cpp | 105 struct seg_desc_64 entry = {}; local 107 entry.limit_15_0 = limit & 0x0000ffff; 108 entry.limit_19_16 = (limit & 0x000f0000) >> 16; 110 entry.base_15_0 = base & 0x0000ffff; 111 entry.base_23_16 = (base & 0x00ff0000) >> 16; 112 entry.base_31_24 = (base & 0xff000000) >> 24; 113 entry.base_63_32 = (uint32_t)(base >> 32); 115 entry.type = type & 0x0f; // segment type 116 entry.p = present != 0; // present 117 entry [all...] |
/fuchsia/zircon/bootloader/src/ |
H A D | cmdline.c | 28 static kv_t entry[CMDLINE_MAX_ITEMS]; variable 39 if ((entry[n].klen + entry[n].vlen + 3) > max) { 47 memcpy(ptr, entry[n].key, entry[n].klen); 48 ptr += entry[n].klen; 49 max -= entry[n].klen; 50 if (entry[n].vlen) { 53 memcpy(ptr, entry[n].val, entry[ [all...] |
/fuchsia/zircon/kernel/dev/iommu/intel/ |
H A D | context_table_state.cpp | 26 ds::RootEntrySubentry entry; local 27 entry.ReadFrom(root_entry_); 28 entry.set_present(0); 29 entry.WriteTo(root_entry_); 31 // When modifying a present (extended) root entry, we must serially 43 ds::RootEntrySubentry entry; local 44 entry.ReadFrom(root_entry); 45 DEBUG_ASSERT(!entry.present()); 61 entry.set_present(1); 62 entry 78 volatile ds::ExtendedContextEntry* entry = &tbl->entry[bdf.packed_dev_and_func() & 0x7f]; local 82 volatile ds::ContextEntry* entry = &tbl->entry[bdf.packed_dev_and_func()]; local [all...] |
H A D | device_context.cpp | 40 ds::ExtendedContextEntry entry; local 41 entry.ReadFrom(extended_context_entry_); 42 was_present = entry.present(); 43 entry.set_present(0); 44 entry.WriteTo(extended_context_entry_); 46 ds::ContextEntry entry; local 47 entry.ReadFrom(context_entry_); 48 was_present = entry.present(); 49 entry.set_present(0); 50 entry 96 ds::ContextEntry entry; local 132 ds::ExtendedContextEntry entry; local [all...] |
/fuchsia/zircon/system/ulib/zx/ |
H A D | vcpu.cpp | 12 zx_gpaddr_t entry, vcpu* vcpu) { 15 return zx_vcpu_create(guest.get(), options, entry, 11 create(const guest& guest, uint32_t options, zx_gpaddr_t entry, vcpu* vcpu) argument
|
H A D | process.cpp | 24 zx_status_t process::start(const thread& thread_handle, uintptr_t entry, argument 27 return zx_process_start(get(), thread_handle.get(), entry, stack, arg_handle.release(), arg2);
|
/fuchsia/zircon/kernel/target/arm64/boot-shim/ |
H A D | boot-shim.h | 15 uint64_t entry; // Returned in x1. member in struct:__anon113
|
/fuchsia/zircon/system/ulib/lockdep/include/lockdep/ |
H A D | thread_lock_state.h | 18 // Linked list entry that tracks a lock acquired by a thread. Each thread 60 // Replaces the given entry in the list with this entry. 95 for (AcquiredLockEntry& entry : acquired_locks_) { 96 if (entry.id() == lock_entry->id()) { 97 if (lock_entry->order() <= entry.order()) { 99 Report(lock_entry, &entry, LockResult::AlreadyAcquired); 101 Report(lock_entry, &entry, LockResult::InvalidNesting); 105 LockClassState::AddLockClass(lock_entry->id(), entry.id()); 112 Report(lock_entry, &entry, resul 137 Release(AcquiredLockEntry* entry) argument [all...] |
H A D | lock_dependency_set.h | 37 const auto& entry = GetEntry(id, i); local 38 const LockClassId entry_id = entry.load(fbl::memory_order_relaxed); 51 // 3. An entry may only change from empty to holding a lock class id. 52 // 4. To add an entry the set is probed linearly until either: 54 // b) The first empty entry is found. 56 // 5. Attempt to compare-exchange the empty entry with the lock class id: 61 // lock class id proceed to the next entry and continue the probe from 65 auto& entry = GetEntry(id, i); local 66 LockClassId entry_id = entry.load(fbl::memory_order_relaxed); 71 entry [all...] |
/fuchsia/zircon/third_party/ulib/musl/src/internal/ |
H A D | dynlink.h | 47 // values and jumps to the entry point with the argument in place for 53 void* entry; member in struct:__anon1754 55 #define DL_START_RETURN(entry, arg) \ 56 (dl_start_return_t) { (arg), (entry) }
|
/fuchsia/zircon/system/ulib/async-testutils/ |
H A D | test_loop.cpp | 63 for (auto& entry : table_) { 64 if (entry.dispatcher == dispatcher) { 65 entry.deadlines.push_back(deadline); 70 DeadlinesByDispatcher entry{}; 71 entry.dispatcher = dispatcher; 72 entry.deadlines.push_back(deadline); 73 table_.push_back(fbl::move(entry)); 90 for (auto& entry : table_) { 91 if (entry.deadlines.size() == 0) { 95 *fbl::min_element(entry [all...] |
/fuchsia/zircon/kernel/object/ |
H A D | vm_object_dispatcher.cpp | 100 zx_info_vmo_t entry = {}; local 101 entry.koid = vmo->user_id(); 102 vmo->get_name(entry.name, sizeof(entry.name)); 103 entry.size_bytes = vmo->size(); 104 entry.create_options = vmo->create_options(); 105 entry.parent_koid = vmo->parent_user_id(); 106 entry.num_children = vmo->num_children(); 107 entry.num_mappings = vmo->num_mappings(); 108 entry [all...] |
H A D | diagnostics.cpp | 470 zx_info_maps_t entry = {}; variable 471 strlcpy(entry.name, vmar->name(), sizeof(entry.name)); 472 entry.base = vmar->base(); 473 entry.size = vmar->size(); 474 entry.depth = depth + 1; // The root aspace is depth 0. 475 entry.type = ZX_INFO_MAPS_TYPE_VMAR; 476 if (maps_.copy_array_to_user(&entry, 1, nelem_) != ZX_OK) { 488 zx_info_maps_t entry = {}; variable 490 vmo->get_name(entry 533 zx_info_maps_t entry = {}; local 571 zx_info_vmo_t entry = VmoToInfoEntry(map->vmo().get(), variable [all...] |
/fuchsia/zircon/system/host/merkleroot/ |
H A D | merkleroot.cpp | 71 void handle_entry(FileEntry* entry) { argument 72 fbl::unique_fd fd{open(entry->filename.c_str(), O_RDONLY)}; 74 perror(entry->filename.c_str()); 113 entry->filename.c_str(), rc); 116 rc = digest.ToString(entry->digest, sizeof(entry->digest)); 119 entry->filename.c_str(), rc); 180 for (const auto& entry : entries) { 182 entry.digest, manifest ? "=" : " - ", entry [all...] |
/fuchsia/zircon/third_party/uapp/dash/src/ |
H A D | exec.c | 81 struct tblentry *next; /* next entry in hash chain */ 84 char rehash; /* if set, cd done since entry created */ 178 * a percent sign) appears in the path entry then the global variable 228 struct cmdentry entry; local 231 entry.cmdtype = cmdp->cmdtype; 232 entry.u = cmdp->param; 233 fn(&entry, token); 244 struct cmdentry entry; local 266 find_command(name, &entry, DO_ERR, pathval()); 267 if (entry 300 find_command(char *name, struct cmdentry *entry, int act, const char *path) argument 670 getcmdentry(char *name, struct cmdentry *entry) argument 691 addcmdentry(char *name, struct cmdentry *entry) argument 712 struct cmdentry entry; local 759 struct cmdentry entry; local [all...] |
/fuchsia/zircon/kernel/platform/pc/ |
H A D | memory.cpp | 194 e820entry_t* entry = &seq->map[seq->index]; local 195 range->base = entry->addr; 196 range->size = entry->size; 197 range->is_mem = (entry->type == E820_RAM) ? 1 : 0; 263 efi_memory_descriptor* entry = reinterpret_cast<efi_memory_descriptor*>(addr); local 264 efi_print("EFI: ", entry); 265 range->base = entry->PhysicalStart; 266 range->size = entry->NumberOfPages * PAGE_SIZE; 268 range->is_mem = efi_is_mem(entry->Type); 335 memory_map_t* entry local 456 e820entry_t entry = { local 515 struct addr_range* entry = &cached_e820_entries[cached_e820_entry_count++]; local 567 auto& entry = reserved_mmio_entries[i]; local [all...] |
/fuchsia/zircon/system/ulib/fs/include/fs/ |
H A D | pseudo-dir.h | 37 // Adds a directory entry associating the given |name| with |vn|. 44 // Removes a directory entry with the given |name|. 93 static uint64_t GetKey(const Entry& entry) { argument 94 return entry.id(); 101 static fbl::String GetKey(const Entry& entry) { argument 102 return entry.name(); 115 Entry& entry) { 116 return entry.id_tree_state_; 122 static fbl::WAVLTreeNodeState<Entry*>& node_state(Entry& entry) { argument 123 return entry 114 node_state( Entry& entry) argument [all...] |
/fuchsia/zircon/system/host/abigen/ |
H A D | abigen.cpp | 84 for (auto& entry : get_type_to_default_suffix()) { 85 if (type_to_filename.find(entry.first) == type_to_filename.end()) { 86 type_to_filename[entry.first] = output_prefix + entry.second;
|
/fuchsia/zircon/kernel/target/pc/multiboot/ |
H A D | trampoline.c | 32 // The entry point is an absolute physical address. 33 uint32_t kernel_entry = kernel->data_kernel.entry; 34 if (unlikely(kernel_entry != kernel->data_kernel.entry)) { 35 panic("ZBI kernel entry point %#llx truncated to %#"PRIx32, 36 kernel->data_kernel.entry, kernel_entry); 40 panic("ZBI kernel entry point %#"PRIx32" outside kernel [%p, %p)", 68 // then jumps to its entry point, as instructed here: 72 "a"(kernel_entry), // %rax: kernel entry point
|
/fuchsia/zircon/system/dev/bus/acpi/ |
H A D | debug.c | 211 ACPI_PCI_ROUTING_TABLE* entry; local 212 for (entry = (ACPI_PCI_ROUTING_TABLE*)entry_addr; 213 entry->Length != 0; 214 entry_addr += entry->Length, entry = (ACPI_PCI_ROUTING_TABLE*)entry_addr) { 220 if (entry->Pin > 3) { 221 INDENT_PRINTF("Pin: Invalid (%08x)\n", entry->Pin); 223 INDENT_PRINTF("Pin: INT%c\n", 'A' + entry->Pin); 225 INDENT_PRINTF("Address: %#016llx\n", entry->Address); 227 INDENT_PRINTF("Dev ID: %#04x\n", (uint16_t)(entry [all...] |
/fuchsia/zircon/kernel/kernel/ |
H A D | timer.cpp | 89 timer_t* entry; local 91 list_for_every_entry (&percpu[cpu].timer_queue, entry, timer_t, node) { 92 if (entry->scheduled_time > latest_deadline) { 99 list_add_before(&entry->node, &timer->node); 103 if (entry->scheduled_time >= timer->scheduled_time) { 109 timer->slack = zx_time_sub_time(entry->scheduled_time, timer->scheduled_time); 110 timer->scheduled_time = entry->scheduled_time; 111 list_add_after(&entry->node, &timer->node); 115 if (entry->scheduled_time < earliest_deadline) { 132 list_next_type(&percpu[cpu].timer_queue, &entry 452 timer_t *entry = NULL, *tmp_entry = NULL; local [all...] |
/fuchsia/zircon/system/utest/runtests-utils/ |
H A D | runtests-utils-test-utils.h | 96 struct dirent* entry; local 106 while ((entry = readdir(dp))) { 108 if (!strcmp(entry->d_name, ".") || !strcmp(entry->d_name, "..")) { 111 fbl::String sub_dir_name = JoinPath(dir_path, entry->d_name);
|
/fuchsia/zircon/system/public/zircon/ |
H A D | listnode.h | 49 #define list_add_after(entry, new_entry) list_add_head(entry, new_entry) 58 #define list_add_before(entry, new_entry) list_add_tail(entry, new_entry) 242 // iterates over the list, entry should be the container structure type * 243 #define list_for_every_entry(list, entry, type, member) \ 244 for ((entry) = containerof((list)->next, type, member); &(entry)->member != (list); \ 245 (entry) = containerof((entry) [all...] |
/fuchsia/zircon/kernel/include/kernel/ |
H A D | thread.h | 155 // entry point 156 thread_start_routine entry; member in struct:thread 236 thread_t* thread_create(const char* name, thread_start_routine entry, void* arg, int priority); 237 thread_t* thread_create_etc(thread_t* t, const char* name, thread_start_routine entry, void* arg, 348 static inline void* tls_get(uint entry) { argument 349 return get_current_thread()->tls[entry]; 352 static inline void* tls_set(uint entry, void* val) { argument 354 void* oldval = curr_thread->tls[entry]; 355 curr_thread->tls[entry] = val; 360 static inline void tls_set_callback(uint entry, thread_tls_callback_ argument [all...] |