/Zephyr-latest/subsys/net/ip/ |
D | pmtu.c | 40 struct net_pmtu_entry *entry = NULL; in get_pmtu_entry() local 52 entry = &pmtu_entries[i]; in get_pmtu_entry() 62 entry = &pmtu_entries[i]; in get_pmtu_entry() 75 return entry; in get_pmtu_entry() 80 struct net_pmtu_entry *entry = NULL; in get_free_pmtu_entry() local 91 entry = &pmtu_entries[i]; in get_free_pmtu_entry() 97 entry = &pmtu_entries[i]; in get_free_pmtu_entry() 104 return entry; in get_free_pmtu_entry() 107 static void update_pmtu_entry(struct net_pmtu_entry *entry, uint16_t mtu) in update_pmtu_entry() argument 111 if (entry->mtu != mtu) { in update_pmtu_entry() [all …]
|
/Zephyr-latest/subsys/logging/ |
D | log_cache.c | 16 #define LOG_CACHE_DBG_ENTRY(str, entry) \ argument 17 printk(str " entry(%p) id %p\n", entry, (void *)entry->id) 32 struct log_cache_entry *entry = config->buf; in log_cache_init() local 41 sys_slist_append(&cache->idle, &entry->node); in log_cache_init() 42 entry = (struct log_cache_entry *)((uintptr_t)entry + entry_size); in log_cache_init() 56 struct log_cache_entry *entry; in log_cache_get() local 60 SYS_SLIST_FOR_EACH_CONTAINER(&cache->active, entry, node) { in log_cache_get() 61 LOG_CACHE_DBG_ENTRY("checking", entry); in log_cache_get() 62 if (cache->cmp(entry->id, id)) { in log_cache_get() 68 if (&entry->node == sys_slist_peek_tail(&cache->active)) { in log_cache_get() [all …]
|
/Zephyr-latest/tests/net/lib/lwm2m/observation/src/ |
D | lwm2m_observation.c | 50 struct lwm2m_obj_path_list *entry, *tmp; in assert_path_list_order() local 61 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(lwm2m_path_list, entry, tmp, node) { in assert_path_list_order() 63 if (entry->path.level > prev->path.level) { in assert_path_list_order() 68 is_after = entry->path.obj_id >= prev->path.obj_id; in assert_path_list_order() 71 entry->path.obj_id == prev->path.obj_id) { in assert_path_list_order() 73 entry->path.obj_inst_id >= prev->path.obj_inst_id; in assert_path_list_order() 77 entry->path.obj_inst_id == prev->path.obj_inst_id) { in assert_path_list_order() 78 is_after = entry->path.res_id >= prev->path.res_id; in assert_path_list_order() 83 entry->path.res_id == prev->path.res_id) { in assert_path_list_order() 85 entry->path.res_inst_id >= prev->path.res_inst_id; in assert_path_list_order() [all …]
|
/Zephyr-latest/arch/xtensa/include/ |
D | xtensa_mpu_priv.h | 199 uintptr_t xtensa_mpu_entry_start_address_get(const struct xtensa_mpu_entry *entry) in xtensa_mpu_entry_start_address_get() argument 201 return (entry->as.p.start_addr << XTENSA_MPU_ENTRY_REG_START_ADDR_SHIFT); in xtensa_mpu_entry_start_address_get() 211 void xtensa_mpu_entry_start_address_set(struct xtensa_mpu_entry *entry, uintptr_t addr) in xtensa_mpu_entry_start_address_set() argument 213 entry->as.p.start_addr = addr >> XTENSA_MPU_ENTRY_REG_START_ADDR_SHIFT; in xtensa_mpu_entry_start_address_set() 225 bool xtensa_mpu_entry_lock_get(const struct xtensa_mpu_entry *entry) in xtensa_mpu_entry_lock_get() argument 227 return entry->as.p.lock != 0; in xtensa_mpu_entry_lock_get() 237 void xtensa_mpu_entry_lock_set(struct xtensa_mpu_entry *entry, bool lock) in xtensa_mpu_entry_lock_set() argument 239 entry->as.p.lock = lock ? 1 : 0; in xtensa_mpu_entry_lock_set() 251 bool xtensa_mpu_entry_enable_get(const struct xtensa_mpu_entry *entry) in xtensa_mpu_entry_enable_get() argument 253 return entry->as.p.enable != 0; in xtensa_mpu_entry_enable_get() [all …]
|
D | xtensa_mmu_priv.h | 246 static ALWAYS_INLINE void xtensa_itlb_entry_invalidate(uint32_t entry) in xtensa_itlb_entry_invalidate() argument 249 : : "a" (entry)); in xtensa_itlb_entry_invalidate() 257 static ALWAYS_INLINE void xtensa_itlb_entry_invalidate_sync(uint32_t entry) in xtensa_itlb_entry_invalidate_sync() argument 261 : : "a" (entry)); in xtensa_itlb_entry_invalidate_sync() 269 static ALWAYS_INLINE void xtensa_dtlb_entry_invalidate_sync(uint32_t entry) in xtensa_dtlb_entry_invalidate_sync() argument 273 : : "a" (entry)); in xtensa_dtlb_entry_invalidate_sync() 281 static ALWAYS_INLINE void xtensa_dtlb_entry_invalidate(uint32_t entry) in xtensa_dtlb_entry_invalidate() argument 284 : : "a" (entry)); in xtensa_dtlb_entry_invalidate() 293 static ALWAYS_INLINE void xtensa_dtlb_entry_write_sync(uint32_t pte, uint32_t entry) in xtensa_dtlb_entry_write_sync() argument 297 : : "a" (pte), "a"(entry)); in xtensa_dtlb_entry_write_sync() [all …]
|
/Zephyr-latest/lib/hash/ |
D | hash_map_sc.c | 25 static void sys_hashmap_sc_entry_init(struct sys_hashmap_sc_entry *entry, uint64_t key, in sys_hashmap_sc_entry_init() argument 28 entry->key = key; in sys_hashmap_sc_entry_init() 29 entry->value = value; in sys_hashmap_sc_entry_init() 30 sys_dnode_init(&entry->node); in sys_hashmap_sc_entry_init() 33 static void sys_hashmap_sc_insert_entry(struct sys_hashmap *map, struct sys_hashmap_sc_entry *entry) in sys_hashmap_sc_insert_entry() argument 36 uint32_t hash = map->hash_func(&entry->key, sizeof(entry->key)); in sys_hashmap_sc_insert_entry() 38 sys_dlist_append(&buckets[hash % map->data->n_buckets], &entry->node); in sys_hashmap_sc_insert_entry() 45 struct sys_hashmap_sc_entry *entry; in sys_hashmap_sc_insert_all() local 48 entry = CONTAINER_OF(sys_dlist_get(list), struct sys_hashmap_sc_entry, node); in sys_hashmap_sc_insert_all() 49 sys_hashmap_sc_insert_entry(map, entry); in sys_hashmap_sc_insert_all() [all …]
|
D | hash_map_oa_lp.c | 40 struct oalp_entry *entry = NULL; in sys_hashmap_oa_lp_find() local 49 entry = &buckets[j]; in sys_hashmap_oa_lp_find() 51 switch (entry->state) { in sys_hashmap_oa_lp_find() 53 if (used_ok && entry->key == key) { in sys_hashmap_oa_lp_find() 54 return entry; in sys_hashmap_oa_lp_find() 59 return entry; in sys_hashmap_oa_lp_find() 64 return entry; in sys_hashmap_oa_lp_find() 80 struct oalp_entry *entry = NULL; in sys_hashmap_oa_lp_insert_no_rehash() local 83 entry = sys_hashmap_oa_lp_find(map, key, true, true, true); in sys_hashmap_oa_lp_insert_no_rehash() 84 __ASSERT_NO_MSG(entry != NULL); in sys_hashmap_oa_lp_insert_no_rehash() [all …]
|
/Zephyr-latest/subsys/net/l2/ethernet/ |
D | arp.c | 44 static void arp_entry_cleanup(struct arp_entry *entry, bool pending) in arp_entry_cleanup() argument 46 NET_DBG("entry %p", entry); in arp_entry_cleanup() 51 while (!k_fifo_is_empty(&entry->pending_queue)) { in arp_entry_cleanup() 52 pkt = k_fifo_get(&entry->pending_queue, K_FOREVER); in arp_entry_cleanup() 60 entry->iface = NULL; in arp_entry_cleanup() 62 (void)memset(&entry->ip, 0, sizeof(struct in_addr)); in arp_entry_cleanup() 63 (void)memset(&entry->eth, 0, sizeof(struct net_eth_addr)); in arp_entry_cleanup() 71 struct arp_entry *entry; in arp_entry_find() local 73 SYS_SLIST_FOR_EACH_CONTAINER(list, entry, node) { in arp_entry_find() 76 net_sprint_ipv4_addr(&entry->ip)); in arp_entry_find() [all …]
|
/Zephyr-latest/tests/bluetooth/mesh/rpl/src/ |
D | main.c | 160 static void call_rpl_check_on(int func, int cnt, struct test_rpl_entry *entry) in call_rpl_check_on() argument 166 recv_msg.ctx.addr = entry->src; in call_rpl_check_on() 167 recv_msg.seq = entry->seq; in call_rpl_check_on() 168 recv_msg.old_iv = entry->old_iv; in call_rpl_check_on() 269 struct test_rpl_entry *entry = &test_vector[1]; in ZTEST() local 271 zassert_true(entry->old_iv); in ZTEST() 272 entry->old_iv = false; in ZTEST() 273 call_rpl_check_on(SETTINGS_DELETE, 1, entry); in ZTEST() 279 ztest_expect_data(settings_save_one, name, entry->name); in ZTEST() 296 struct test_rpl_entry *entry = &test_vector[0]; in ZTEST() local [all …]
|
/Zephyr-latest/subsys/net/lib/prometheus/ |
D | collector.c | 50 STRUCT_SECTION_FOREACH(prometheus_counter, entry) { in prometheus_get_counter_metric() 51 LOG_DBG("entry->name: %s", entry->base.name); in prometheus_get_counter_metric() 53 if (strncmp(entry->base.name, name, strlen(entry->base.name)) == 0) { in prometheus_get_counter_metric() 54 LOG_DBG("Counter found %s", entry->base.name); in prometheus_get_counter_metric() 55 return entry; in prometheus_get_counter_metric() 66 STRUCT_SECTION_FOREACH(prometheus_gauge, entry) { in prometheus_get_gauge_metric() 67 LOG_DBG("entry->name: %s", entry->base.name); in prometheus_get_gauge_metric() 69 if (strncmp(entry->base.name, name, strlen(entry->base.name)) == 0) { in prometheus_get_gauge_metric() 70 LOG_DBG("Counter found %s", entry->base.name); in prometheus_get_gauge_metric() 71 return entry; in prometheus_get_gauge_metric() [all …]
|
/Zephyr-latest/doc/_extensions/zephyr/ |
D | manifest_projects_table.py | 101 entry = nodes.entry() 102 entry += nodes.paragraph(text="Project") 103 row += entry 104 entry = nodes.entry() 105 entry += nodes.paragraph(text="Revision") 106 row += entry 113 entry = nodes.entry() 114 entry += nodes.paragraph(text=project.name) 115 row += entry 116 entry = nodes.entry() [all …]
|
/Zephyr-latest/lib/posix/options/ |
D | file_system_r.c | 21 int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result) in readdir_r() argument 31 if (entry == NULL) { in readdir_r() 47 strncpy(entry->d_name, de.name, MIN(sizeof(entry->d_name), sizeof(de.name))); in readdir_r() 48 entry->d_name[sizeof(entry->d_name) - 1] = '\0'; in readdir_r() 50 if (entry->d_name[0] == '\0') { in readdir_r() 55 *result = entry; in readdir_r()
|
/Zephyr-latest/arch/common/ |
D | shared_irq.c | 22 const struct z_shared_isr_table_entry *entry; in z_shared_isr() local 25 entry = data; in z_shared_isr() 27 for (i = 0; i < entry->client_num; i++) { in z_shared_isr() 28 client = &entry->clients[i]; in z_shared_isr() 44 struct _isr_table_entry *entry; in z_isr_install() local 58 entry = &_sw_isr_table[table_idx]; in z_isr_install() 66 if (entry->isr == z_irq_spurious) { in z_isr_install() 70 entry->isr = routine; in z_isr_install() 71 entry->arg = param; in z_isr_install() 76 } else if (entry->isr != z_shared_isr) { in z_isr_install() [all …]
|
D | isr_tables_shell.c | 11 static void dump_isr_table_entry(const struct shell *sh, int idx, struct _isr_table_entry *entry) in dump_isr_table_entry() argument 14 if ((entry->isr == z_irq_spurious) || (entry->isr == NULL)) { in dump_isr_table_entry() 18 const char *name = symtab_find_symbol_name((uintptr_t)entry->isr, NULL); in dump_isr_table_entry() 20 shell_print(sh, "%4d: %s(%p)", idx, name, entry->arg); in dump_isr_table_entry() 22 shell_print(sh, "%4d: %p(%p)", idx, entry->isr, entry->arg); in dump_isr_table_entry()
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | brg_cfg_srv.c | 55 struct bt_mesh_brg_cfg_table_entry *entry) in bridging_table_status_send() argument 61 net_buf_simple_add_u8(&msg, entry->directions); in bridging_table_status_send() 62 key_idx_pack_pair(&msg, entry->net_idx1, entry->net_idx2); in bridging_table_status_send() 63 net_buf_simple_add_le16(&msg, entry->addr1); in bridging_table_status_send() 64 net_buf_simple_add_le16(&msg, entry->addr2); in bridging_table_status_send() 79 struct bt_mesh_brg_cfg_table_entry entry; in bridging_table_add() local 83 entry.directions = net_buf_simple_pull_u8(buf); in bridging_table_add() 84 key_idx_unpack_pair(buf, &entry.net_idx1, &entry.net_idx2); in bridging_table_add() 85 entry.addr1 = net_buf_simple_pull_le16(buf); in bridging_table_add() 86 entry.addr2 = net_buf_simple_pull_le16(buf); in bridging_table_add() [all …]
|
D | solicitation.c | 59 struct srpl_entry *entry; in srpl_entry_save() local 66 entry = srpl_find_by_addr(ssrc); in srpl_entry_save() 67 if (entry) { in srpl_entry_save() 68 if (entry->sseq >= sseq) { in srpl_entry_save() 74 entry = srpl_find_by_addr(BT_MESH_ADDR_UNASSIGNED); in srpl_entry_save() 75 if (!entry) { in srpl_entry_save() 83 entry->sseq = sseq; in srpl_entry_save() 84 entry->ssrc = ssrc; in srpl_entry_save() 86 LOG_DBG("Added: SSRC %d SSEQ %d to SRPL", entry->ssrc, entry->sseq); in srpl_entry_save() 89 atomic_set_bit(store, entry - &sol_pdu_rpl[0]); in srpl_entry_save() [all …]
|
D | rpl.c | 72 static void schedule_rpl_store(struct bt_mesh_rpl *entry, bool force) in schedule_rpl_store() argument 74 atomic_set_bit(store, rpl_idx(entry)); in schedule_rpl_store() 270 struct bt_mesh_rpl *entry; in rpl_set() local 281 entry = bt_mesh_rpl_find(src); in rpl_set() 285 if (entry) { in rpl_set() 286 (void)memset(entry, 0, sizeof(*entry)); in rpl_set() 294 if (!entry) { in rpl_set() 295 entry = bt_mesh_rpl_alloc(src); in rpl_set() 296 if (!entry) { in rpl_set() 308 entry->seq = rpl.seq; in rpl_set() [all …]
|
/Zephyr-latest/subsys/shell/modules/kernel_service/thread/ |
D | thread.c | 22 struct thread_entry *entry = user_data; in thread_valid_cb() local 24 if (cthread == entry->thread) { in thread_valid_cb() 25 entry->valid = true; in thread_valid_cb() 31 struct thread_entry entry = { in z_thread_is_valid() local 36 k_thread_foreach(thread_valid_cb, &entry); in z_thread_is_valid() 38 return entry.valid; in z_thread_is_valid()
|
/Zephyr-latest/subsys/input/ |
D | input_double_tap.c | 35 struct double_tap_data_entry *entry = in double_tap_deferred() local 38 entry->first_tap = false; in double_tap_deferred() 45 struct double_tap_data_entry *entry; in double_tap_cb() local 62 entry = &cfg->entries[i]; in double_tap_cb() 65 if (entry->first_tap) { in double_tap_cb() 66 k_work_cancel_delayable(&entry->work); in double_tap_cb() 69 entry->first_tap = false; in double_tap_cb() 71 entry->first_tap = true; in double_tap_cb() 72 k_work_schedule(&entry->work, K_MSEC(cfg->double_tap_delay_ms)); in double_tap_cb() 87 struct double_tap_data_entry *entry = &cfg->entries[i]; in double_tap_init() local [all …]
|
/Zephyr-latest/scripts/pylib/twister/twisterlib/ |
D | cmakecache.py | 120 entry = CMakeCacheEntry.from_line(line, line_no) 121 if entry: 122 entries.append(entry) 126 entry = self._entries.get(name) 127 if entry is not None: 128 return entry.value 135 entry = self._entries.get(name) 136 if entry is not None: 137 value = entry.value 154 def __setitem__(self, name, entry): argument [all …]
|
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/ |
D | test_fat_dir.c | 64 struct fs_dirent entry; in test_lsdir() local 80 res = fs_readdir(&dirp, &entry); in test_lsdir() 83 if (res || entry.name[0] == 0) { in test_lsdir() 87 if (entry.type == FS_DIR_ENTRY_DIR) { in test_lsdir() 88 TC_PRINT("[DIR ] %s\n", entry.name); in test_lsdir() 91 entry.name, entry.size); in test_lsdir() 105 static struct fs_dirent entry; in test_rmdir() local 125 res = fs_readdir(&dirp, &entry); in test_rmdir() 128 if (res || entry.name[0] == 0) { in test_rmdir() 133 sprintf(file_path, "%s/%s", TEST_DIR, entry.name); in test_rmdir()
|
/Zephyr-latest/tests/subsys/fs/multi-fs/src/ |
D | test_common_dir.c | 75 struct fs_dirent entry; in test_lsdir() local 91 res = fs_readdir(&dirp, &entry); in test_lsdir() 94 if (res || entry.name[0] == 0) { in test_lsdir() 98 if (entry.type == FS_DIR_ENTRY_DIR) { in test_lsdir() 99 TC_PRINT("[DIR ] %s\n", entry.name); in test_lsdir() 102 entry.name, entry.size); in test_lsdir() 116 static struct fs_dirent entry; in test_rmdir() local 135 res = fs_readdir(&dirp, &entry); in test_rmdir() 138 if (res || entry.name[0] == 0) { in test_rmdir() 143 sprintf(file_path, "%s/%s", dir_path, entry.name); in test_rmdir()
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/fs_mgmt_hash_supported/src/ |
D | main.c | 95 int8_t entry = 0; in ZTEST() local 119 entry = 0; in ZTEST() 120 while (entry < ARRAY_SIZE(expected_types)) { in ZTEST() 121 if (memcmp(key.value, expected_types[entry].name, MIN(key.len, in ZTEST() 122 strlen(expected_types[entry].name))) == 0) { in ZTEST() 123 zassert_equal(expected_types[entry].found, false, in ZTEST() 125 expected_types[entry].found = true; in ZTEST() 129 ++entry; in ZTEST() 132 zassert_equal(entry < ARRAY_SIZE(expected_types), true, in ZTEST() 160 zassert_equal(expected_types[entry].format, format_value, in ZTEST() [all …]
|
/Zephyr-latest/drivers/sensor/ |
D | sensor_shell.c | 736 static void channel_name_get(size_t idx, struct shell_static_entry *entry); 739 static void attribute_name_get(size_t idx, struct shell_static_entry *entry); 742 static void channel_name_get(size_t idx, struct shell_static_entry *entry) in channel_name_get() argument 746 entry->syntax = NULL; in channel_name_get() 747 entry->handler = NULL; in channel_name_get() 748 entry->help = NULL; in channel_name_get() 750 entry->subcmd = &dsub_channel_name; in channel_name_get() 752 entry->subcmd = &dsub_attribute_name; in channel_name_get() 754 entry->subcmd = NULL; in channel_name_get() 760 entry->syntax = sensor_channel_name[i]; in channel_name_get() [all …]
|
/Zephyr-latest/tests/arch/x86/info/src/ |
D | memmap.c | 33 struct x86_memmap_entry *entry = x86_memmap + i; in memmap() local 36 switch (entry->type) { in memmap() 56 entry->base, entry->base + entry->length - 1, in memmap() 58 entry->length / 1024); in memmap()
|