/lk-master/lib/ptable/ |
A D | ptable.c | 55 if (entry->offset > entry->offset + entry->length) in validate_entry() 115 const struct ptable_entry *entry = &mentry->entry; in ptable_write() local 209 if (it_mentry->entry.offset > mentry->entry.offset) { in ptable_push_entry() 252 if ((entry->offset + entry->length) <= entry->offset) { in ptable_publish() 420 const struct ptable_entry *entry = &mentry->entry; in ptable_allocate() local 539 const struct ptable_entry *entry = &mentry->entry; in ptable_allocate_at() local 613 hexdump(&entry, sizeof(entry)); in ptable_scan() 633 crc = crc32(crc, (void *)&entry, sizeof(entry)); in ptable_scan() 669 const struct ptable_entry *entry = &mentry->entry; in ptable_find() local 751 const struct ptable_entry *entry = &mentry->entry; in ptable_remove() local [all …]
|
/lk-master/platform/pc/ |
A D | platform.c | 231 const struct acpi_madt_local_apic_entry *entry = _entry; in local_apic_callback() local 234 entry->apic_id, entry->processor_id, entry->flags); in local_apic_callback() 238 const struct acpi_madt_io_apic_entry *entry = _entry; in io_apic_callback() local 241 entry->io_apic_id, entry->io_apic_address, entry->global_system_interrupt_base); in io_apic_callback() 245 const struct acpi_madt_int_source_override_entry *entry = _entry; in int_source_override_callback() local 248 entry->bus, entry->source, entry->global_sys_interrupt, entry->flags); in int_source_override_callback() 272 const struct acpi_mcfg_entry *entry = (const void *)(table + 1); in platform_init() local 274 entry->segment, entry->start_bus, entry->end_bus, entry->base_address); in platform_init() 277 …status_t err = pci_init_ecam(entry->base_address, entry->segment, entry->start_bus, entry->end_bus… in platform_init()
|
/lk-master/tools/ |
A D | bootimage.c | 22 bootentry entry[64]; member 39 memset(img->entry, 0, 4096); in bootimage_init() 40 img->entry[0].file.kind = KIND_FILE; in bootimage_init() 42 img->entry[0].file.offset = 0; in bootimage_init() 43 img->entry[0].file.length = 4096; in bootimage_init() 57 img->entry[n].data.kind = kind; in bootimage_add_string() 59 return &(img->entry[n].data); in bootimage_add_string() 71 img->entry[n].file.type = type; in bootimage_add_filedata() 73 img->entry[n].file.length = len; in bootimage_add_filedata() 82 return &(img->entry[n].file); in bootimage_add_filedata() [all …]
|
/lk-master/external/lib/lwip/core/ |
A D | dns.c | 328 if (entry != NULL) { in dns_init_local() 329 entry->name = (char*)entry + sizeof(struct local_hostlist_entry); in dns_init_local() 352 while(entry != NULL) { in dns_lookup_local() 356 entry = entry->next; in dns_lookup_local() 384 while (entry != NULL) { in dns_local_removehost() 393 free_entry = entry; in dns_local_removehost() 394 entry = entry->next; in dns_local_removehost() 398 last_entry = entry; in dns_local_removehost() 399 entry = entry->next; in dns_local_removehost() 422 if (entry == NULL) { in dns_local_addhost() [all …]
|
/lk-master/top/include/lk/ |
A D | list.h | 49 #define list_add_after(entry, new_entry) list_add_head(entry, new_entry) argument 58 #define list_add_before(entry, new_entry) list_add_tail(entry, new_entry) argument 226 #define list_for_every_entry(list, entry, type, member) \ argument 227 for((entry) = containerof((list)->next, type, member);\ 228 &(entry)->member != (list);\ 229 (entry) = containerof((entry)->member.next, type, member)) 233 #define list_for_every_entry_safe(list, entry, temp_entry, type, member) \ argument 234 for(entry = containerof((list)->next, type, member),\ 235 temp_entry = containerof((entry)->member.next, type, member);\ 236 &(entry)->member != (list);\ [all …]
|
/lk-master/app/lkboot/ |
A D | commands.c | 205 struct ptable_entry entry; in do_flash_boot() local 206 err = ptable_find("system", &entry); in do_flash_boot() 229 if (bootimage_open((char *)ptr + entry.offset, entry.length, &bi) >= 0) { in do_flash_boot() 243 … bootargs_add_bootimage_pointer(args, bootargs_size, bdev->name, entry.offset, bootimage_size); in do_flash_boot() 273 struct ptable_entry entry; in lkb_handle_command() local 276 if (ptable_find(arg, &entry) < 0) { in lkb_handle_command() 284 if (ptable_find(arg, &entry) < 0) { in lkb_handle_command() 289 if (len > entry.length) { in lkb_handle_command() 299 printf("lkboot: erasing partition of size %llu\n", entry.length); in lkb_handle_command() 300 if (bio_erase(bdev, entry.offset, entry.length) != (ssize_t)entry.length) { in lkb_handle_command() [all …]
|
/lk-master/lib/minip/ |
A D | udp.c | 48 struct udp_listener *entry, *temp; in udp_listen() local 50 list_for_every_entry_safe(&udp_list, entry, temp, struct udp_listener, list) { in udp_listen() 51 if (entry->port == port) { in udp_listen() 53 list_delete(&entry->list); in udp_listen() 60 if ((entry = malloc(sizeof(struct udp_listener))) == NULL) { in udp_listen() 64 entry->port = port; in udp_listen() 65 entry->callback = cb; in udp_listen() 66 entry->arg = arg; in udp_listen() 68 list_add_tail(&udp_list, &entry->list); in udp_listen()
|
A D | pktbuf.c | 37 pool_t *entry; in get_pool_object() local 42 entry = pool_alloc(&pktbuf_pool); in get_pool_object() 45 return (pktbuf_pool_object_t *) entry; in get_pool_object() 50 static void free_pool_object(pktbuf_pool_object_t *entry, bool reschedule) { in free_pool_object() argument 51 DEBUG_ASSERT(entry); in free_pool_object() 55 pool_free(&pktbuf_pool, entry); in free_pool_object()
|
A D | arp.c | 38 static inline void mru_update(struct list_node *entry) { in mru_update() argument 39 if (arp_list.next == entry) in mru_update() 42 list_delete(entry); in mru_update() 43 list_add_head(&arp_list, entry); in mru_update()
|
/lk-master/kernel/include/kernel/ |
A D | thread.h | 102 thread_start_routine entry; member 152 thread_t *thread_create(const char *name, thread_start_routine entry, void *arg, int priority, size… 153 thread_t *thread_create_etc(thread_t *t, const char *name, thread_start_routine entry, void *arg, i… 201 static inline __ALWAYS_INLINE uintptr_t tls_get(uint entry) { in tls_get() argument 202 return get_current_thread()->tls[entry]; in tls_get() 205 static inline __ALWAYS_INLINE uintptr_t __tls_set(uint entry, uintptr_t val) { in __tls_set() argument 206 uintptr_t oldval = get_current_thread()->tls[entry]; in __tls_set() 207 get_current_thread()->tls[entry] = val; in __tls_set()
|
/lk-master/app/zynq-common/ |
A D | init.c | 45 struct ptable_entry entry = { 0 }; in zynq_common_target_init() local 48 if (ptable_find("sysparam", &entry) < 0) { in zynq_common_target_init() 51 ptable_find("sysparam", &entry); in zynq_common_target_init() 54 if (entry.length > 0) { in zynq_common_target_init() 55 sysparam_scan(spi, entry.offset, entry.length); in zynq_common_target_init()
|
/lk-master/external/platform/pico/rp2_common/pico_multicore/ |
A D | multicore.c | 82 int core1_wrapper(int (*entry)(void), void *stack_base) { in core1_wrapper() 88 return (*entry)(); in core1_wrapper() 117 void multicore_launch_core1_with_stack(void (*entry)(void), uint32_t *stack_bottom, size_t stack_si… in multicore_launch_core1_with_stack() 122 stack_ptr[0] = (uintptr_t) entry; in multicore_launch_core1_with_stack() 128 void multicore_launch_core1(void (*entry)(void)) { in multicore_launch_core1() 133 multicore_launch_core1_with_stack(entry, stack, sizeof(core1_stack)); in multicore_launch_core1() 136 void multicore_launch_core1_raw(void (*entry)(void), uint32_t *sp, uint32_t vector_table) { in multicore_launch_core1_raw() 137 … uint32_t cmd_sequence[] = {0, 0, 1, (uintptr_t) vector_table, (uintptr_t) sp, (uintptr_t) entry}; in multicore_launch_core1_raw()
|
/lk-master/external/platform/pico/rp2_common/pico_multicore/include/pico/ |
A D | multicore.h | 48 void multicore_launch_core1(void (*entry)(void)); 55 void multicore_launch_core1_with_stack(void (*entry)(void), uint32_t *stack_bottom, size_t stack_si… 70 void multicore_launch_core1_raw(void (*entry)(void), uint32_t *sp, uint32_t vector_table);
|
/lk-master/lib/bio/ |
A D | bio.c | 337 bdev_t *entry; in bio_open() local 339 list_for_every_entry(&bdevs.list, entry, bdev_t, node) { in bio_open() 340 DEBUG_ASSERT(entry->ref > 0); in bio_open() 341 if (!strcmp(entry->name, name)) { in bio_open() 342 bdev = entry; in bio_open() 539 bdev_t *entry; in bio_dump_devices() local 541 list_for_every_entry(&bdevs.list, entry, bdev_t, node) { in bio_dump_devices() 544 entry->name, entry->total_size, entry->block_size, entry->ref); in bio_dump_devices() 546 if (!entry->geometry_count || !entry->geometry) { in bio_dump_devices() 549 for (size_t i = 0; i < entry->geometry_count; ++i) { in bio_dump_devices() [all …]
|
/lk-master/arch/arm/arm/ |
A D | arch.c | 306 void arch_chain_load(void *entry, ulong arg0, ulong arg1, ulong arg2, ulong arg3) { in arch_chain_load() argument 307 LTRACEF("entry %p, args 0x%lx 0x%lx 0x%lx 0x%lx\n", entry, arg0, arg1, arg2, arg3); in arch_chain_load() 323 if (arm_vtop((addr_t)entry, &entry_pa) < 0) { in arch_chain_load() 328 entry_pa |= ((addr_t)entry & 0xfff); in arch_chain_load() 363 entry_pa = (paddr_t)entry; in arch_chain_load() 382 void (*loader)(paddr_t entry, ulong, ulong, ulong, ulong) __NO_RETURN = (void *)loader_pa; in arch_chain_load() 439 [entry]"r"(entry_point), in arch_enter_uspace()
|
/lk-master/external/platform/pico/common/pico_time/ |
A D | time.c | 87 alarm_pool_entry_t *entry = get_entry(pool, id); in add_alarm_under_lock() local 88 entry->target = time; in add_alarm_under_lock() 89 entry->callback = callback; in add_alarm_under_lock() 90 entry->user_data = user_data; in add_alarm_under_lock() 116 alarm_pool_entry_t *entry = get_entry(pool, next_id); in alarm_pool_alarm_callback() local 117 if (absolute_time_diff_us(now, entry->target) <= 0) { in alarm_pool_alarm_callback() 121 target = entry->target; in alarm_pool_alarm_callback() 122 callback = entry->callback; in alarm_pool_alarm_callback() 123 user_data = entry->user_data; in alarm_pool_alarm_callback() 128 if (hardware_alarm_set_target(alarm_num, entry->target)) { in alarm_pool_alarm_callback()
|
/lk-master/arch/riscv/ |
A D | thread.c | 28 LTRACEF("thread %p calling %p with arg %p\n", ct, ct->entry, ct->arg); in initial_thread_func() 36 int ret = ct->entry(ct->arg); in initial_thread_func() 53 LTRACEF("t %p (%s) stack top %#lx entry %p arg %p\n", t, t->name, stack_top, t->entry, t->arg); in arch_thread_initialize()
|
/lk-master/lib/io/ |
A D | console.c | 54 list_for_every_entry(&print_callbacks, cb, print_callback_t, entry) { in out_count() 72 list_add_head(&print_callbacks, &cb->entry); in register_print_callback() 81 list_delete(&cb->entry); in unregister_print_callback()
|
/lk-master/arch/arm/arm-m/ |
A D | arch.c | 168 void arch_chain_load(void *entry, ulong arg0, ulong arg1, ulong arg2, ulong arg3) { in arch_chain_load() argument 171 uint32_t *entry_vector = (uint32_t *)entry; in arch_chain_load() 186 [entry]"r"(entry_vector[1]) in arch_chain_load()
|
/lk-master/lib/tftp/ |
A D | tftp.c | 151 tftp_job_t *entry; in get_job_by_name() local 152 list_for_every_entry(&tftp_list, entry, tftp_job_t, list) { in get_job_by_name() 153 if (strcmp(entry->file_name, file_name) == 0) { in get_job_by_name() 154 return entry; in get_job_by_name()
|
/lk-master/arch/mips/ |
A D | thread.c | 25 LTRACEF("thread %p calling %p with arg %p\n", ct, ct->entry, ct->arg); in initial_thread_func() 33 int ret = ct->entry(ct->arg); in initial_thread_func()
|
/lk-master/arch/x86/ |
A D | arch.c | 62 void arch_chain_load(void *entry, ulong arg0, ulong arg1, ulong arg2, ulong arg3) { in arch_chain_load() argument 95 [entry]"r"(entry_point), in arch_enter_uspace()
|
/lk-master/arch/m68k/ |
A D | thread.c | 25 LTRACEF("thread %p calling %p with arg %p\n", ct, ct->entry, ct->arg); in initial_thread_func() 33 int ret = ct->entry(ct->arg); in initial_thread_func()
|
/lk-master/arch/or1k/ |
A D | thread.c | 26 LTRACEF("thread %p calling %p with arg %p\n", ct, ct->entry, ct->arg); in initial_thread_func() 34 int ret = ct->entry(ct->arg); in initial_thread_func()
|
/lk-master/arch/microblaze/ |
A D | thread.c | 25 LTRACEF("thread %p calling %p with arg %p\n", ct, ct->entry, ct->arg); in initial_thread_func() 33 int ret = ct->entry(ct->arg); in initial_thread_func()
|