/Zephyr-latest/modules/nrf_wifi/os/ |
D | work.c | 55 struct zep_work_item *item = CONTAINER_OF(work, struct zep_work_item, work); in workqueue_callback() local 57 item->callback(item->data); in workqueue_callback() 123 void work_init(struct zep_work_item *item, void (*callback)(unsigned long), in work_init() argument 126 item->callback = callback; in work_init() 127 item->data = data; in work_init() 129 k_work_init(&item->work, workqueue_callback); in work_init() 132 void work_schedule(struct zep_work_item *item) in work_schedule() argument 134 if (item->type == ZEP_WORK_TYPE_IRQ) { in work_schedule() 135 k_work_submit_to_queue(&zep_wifi_intr_q, &item->work); in work_schedule() 136 } else if (item->type == ZEP_WORK_TYPE_BH) { in work_schedule() [all …]
|
/Zephyr-latest/tests/lib/p4workq/src/ |
D | main.c | 24 struct k_p4wq_work item; member 35 static void stress_handler(struct k_p4wq_work *item); 37 static void stress_sub(struct test_item *item) in stress_sub() argument 43 item->item.priority = sys_rand32_get() % (K_LOWEST_THREAD_PRIO - 1); in stress_sub() 44 item->item.deadline = sys_rand32_get() % k_ms_to_cyc_ceil32(2); in stress_sub() 45 item->item.handler = stress_handler; in stress_sub() 46 item->running = false; in stress_sub() 47 item->active = true; in stress_sub() 49 k_p4wq_submit(&wq, &item->item); in stress_sub() 52 static void stress_handler(struct k_p4wq_work *item) in stress_handler() argument [all …]
|
/Zephyr-latest/lib/os/ |
D | mpsc_pbuf.c | 118 static inline bool is_valid(union mpsc_pbuf_generic *item) in is_valid() argument 120 return item->hdr.valid; in is_valid() 123 static inline bool is_invalid(union mpsc_pbuf_generic *item) in is_invalid() argument 125 return !item->hdr.valid && !item->hdr.busy; in is_invalid() 140 static inline uint32_t get_skip(union mpsc_pbuf_generic *item) in get_skip() argument 142 if (item->hdr.busy && !item->hdr.valid) { in get_skip() 143 return item->skip.len; in get_skip() 180 union mpsc_pbuf_generic *item; in drop_item_locked() local 183 item = (union mpsc_pbuf_generic *)&buffer->buf[buffer->rd_idx]; in drop_item_locked() 184 skip_wlen = get_skip(item); in drop_item_locked() [all …]
|
D | p4wq.c | 19 static void set_prio(struct k_thread *th, struct k_p4wq_work *item) in set_prio() argument 22 th->base.prio = item->priority; in set_prio() 23 th->base.prio_deadline = item->deadline; in set_prio() 215 void k_p4wq_submit(struct k_p4wq *queue, struct k_p4wq_work *item) in k_p4wq_submit() argument 223 item->deadline += k_cycle_get_32(); in k_p4wq_submit() 226 if (item->thread == arch_current_thread()) { in k_p4wq_submit() 227 sys_dlist_remove(&item->dlnode); in k_p4wq_submit() 229 item->thread = NULL; in k_p4wq_submit() 231 k_sem_init(&item->done_sem, 0, 1); in k_p4wq_submit() 233 __ASSERT_NO_MSG(item->thread == NULL); in k_p4wq_submit() [all …]
|
/Zephyr-latest/scripts/ci/ |
D | version_mgr.py | 55 def handle_compat(item): argument 57 if isinstance(item, str): 58 item_compat['version'] = item 62 item_compat = item 68 for item in data: 69 item_compat = handle_compat(item) 120 found = list(filter(lambda item: (isinstance(item, dict) and 121 item.get('version') == version) or item == version, data)) 130 item = {} 131 item['version'] = version [all …]
|
/Zephyr-latest/scripts/kconfig/ |
D | guiconfig.py | 581 item = node.item 583 values=item.name if item.__class__ is Symbol_ else "") 690 if node.list and not isinstance(node.item, Symbol): 691 if _tree.item(id(node), "open"): 713 if node.list and isinstance(node.item, Symbol): 717 elif node.list and isinstance(node.item, Symbol): 754 elif node.list and isinstance(node.item, Symbol): 774 (node.item == MENU and not expr_value(node.visibility)) 784 _tree.item( 799 if node.item == COMMENT: [all …]
|
D | menuconfig.py | 1117 if isinstance(menu.item, Choice): 1130 choice = _cur_menu.item 1156 jump_into = (isinstance(node.item, Choice) or node.item == MENU) and \ 1186 if jump_into and isinstance(_cur_menu.item, Choice): 1420 if isinstance(node.item, (Symbol, Choice)) and node.help: 1453 standard_sc_expr_str(menu.item)) 1504 elif node.list and isinstance(node.item, Symbol): 1519 if isinstance(menu.item, Choice): 1543 seen_syms = {node.item for node in rec(menu.list) 1544 if isinstance(node.item, Symbol)} [all …]
|
D | kconfiglib.py | 1048 self.top_node.item = MENU 1619 if node.item is MENU and expr_value(node.dep) and \ 1634 item = node.item 1636 if item.__class__ is Symbol: 1637 if item._visited: 1639 item._visited = True 1641 conf_string = item.config_string 1653 ((item is MENU and expr_value(node.visibility)) or 1654 item is COMMENT): 1952 if unique_syms and node.item.__class__ is Symbol: [all …]
|
/Zephyr-latest/drivers/clock_control/ |
D | clock_control_renesas_cpg_mssr.c | 76 struct cpg_clk_info_table *item; in rcar_cpg_find_clk_info_by_module_id() local 81 item = bsearch((void *)uintptr_id, table, table_size, sizeof(*item), in rcar_cpg_find_clk_info_by_module_id() 83 if (!item) { in rcar_cpg_find_clk_info_by_module_id() 87 return item; in rcar_cpg_find_clk_info_by_module_id() 354 struct cpg_clk_info_table *item = data->clk_info_table[domain]; in rcar_cpg_build_clock_relationship() local 356 for (idx = 0; idx < data->clk_info_table_size[domain]; idx++, item++) { in rcar_cpg_build_clock_relationship() 360 if (prev_mod_id >= item->module) { in rcar_cpg_build_clock_relationship() 364 dev->name, item->domain, item->module); in rcar_cpg_build_clock_relationship() 368 prev_mod_id = item->module; in rcar_cpg_build_clock_relationship() 370 if (item->parent_id == RCAR_CPG_NONE) { in rcar_cpg_build_clock_relationship() [all …]
|
/Zephyr-latest/samples/modules/tflite-micro/magic_wand/train/ |
D | data_split.py | 57 for idx, item in enumerate(data): # pylint: disable=unused-variable 59 if item["gesture"] == i: 69 for idx, item in enumerate(data): 71 if item["gesture"] == i: 73 train_data.append(item) 76 valid_data.append(item) 79 test_data.append(item)
|
/Zephyr-latest/tests/kernel/workq/work_queue/ |
D | README.txt | 37 - Running test item 1 41 - Running test item 2 45 - Running test item 3 46 - Running test item 4 47 - Running test item 5 48 - Running test item 6 69 - Running delayed test item 1 70 - Running delayed test item 2 71 - Running delayed test item 3 72 - Running delayed test item 4 [all …]
|
D | Kconfig | 7 int "Test item working time, msec." 11 int "Test item submission interval, msec."
|
/Zephyr-latest/doc/kernel/services/data_passing/ |
D | message_queues.rst | 24 * A **data item size**, measured in bytes. 31 A data item can be **sent** to a message queue by a thread or an ISR. 32 The data item pointed at by the sending thread is copied to a waiting thread, 33 if one exists; otherwise the item is copied to the message queue's ring buffer, 35 *must* equal the message queue's data item size. 37 If a thread attempts to send a data item when the ring buffer is full, 43 A data item can be **received** from a message queue by a thread. 44 The data item is copied to the area specified by the receiving thread; 45 the size of the receiving area *must* equal the message queue's data item size. 47 If a thread attempts to receive a data item when the ring buffer is empty, [all …]
|
D | lifos.rst | 28 the first word of an item for use as a pointer to the next data item in the 29 queue. Consequently, a data item that holds N bytes of application data 37 data queues. Any attempt to re-add a LIFO data item to a queue before 41 A data item may be **added** to a LIFO by a thread or an ISR. 42 The item is given directly to a waiting thread, if one exists; 43 otherwise the item is added to the LIFO's queue. 46 A data item may be **removed** from a LIFO by a thread. If the LIFO's queue 47 is empty a thread may choose to wait for a data item to be given. 49 When a data item is added, it is given to the highest priority thread 53 The kernel does allow an ISR to remove an item from a LIFO, however [all …]
|
D | fifos.rst | 28 the first word of an item for use as a pointer to the next data item in 29 the queue. Consequently, a data item that holds N bytes of application 37 data queues. Any attempt to re-add a FIFO data item to a queue before 41 A data item may be **added** to a FIFO by a thread or an ISR. 42 The item is given directly to a waiting thread, if one exists; 43 otherwise the item is added to the FIFO's queue. 46 A data item may be **removed** from a FIFO by a thread. If the FIFO's queue 47 is empty a thread may choose to wait for a data item to be given. 49 When a data item is added, it is given to the highest priority thread 53 The kernel does allow an ISR to remove an item from a FIFO, however [all …]
|
/Zephyr-latest/scripts/dts/ |
D | gen_dts_cmake.py | 122 for item in node.props: 124 if "phandle" not in node.props[item].type: 125 if "array" in node.props[item].type: 128 for val in node.props[item].val: 131 cmake_value = node.props[item].val 138 if item == 'compatible': 140 for comp in node.props[item].val:
|
/Zephyr-latest/subsys/modem/backends/ |
D | modem_backend_uart.c | 14 static void modem_backend_uart_receive_ready_handler(struct k_work *item) in modem_backend_uart_receive_ready_handler() argument 17 k_work_delayable_from_work(item), struct modem_backend_uart, receive_ready_work); in modem_backend_uart_receive_ready_handler() 22 static void modem_backend_uart_transmit_idle_handler(struct k_work *item) in modem_backend_uart_transmit_idle_handler() argument 25 CONTAINER_OF(item, struct modem_backend_uart, transmit_idle_work); in modem_backend_uart_transmit_idle_handler()
|
/Zephyr-latest/tests/lib/mpsc_pbuf/src/ |
D | main.c | 44 union mpsc_pbuf_generic item; member 47 static uint32_t get_wlen(const union mpsc_pbuf_generic *item) in get_wlen() argument 49 union test_item *t_item = (union test_item *)item; in get_wlen() 59 static void drop(const struct mpsc_pbuf_buffer *buffer, const union mpsc_pbuf_generic *item) in drop() argument 61 struct test_data_var *packet = (struct test_data_var *)item; in drop() 127 mpsc_pbuf_put_word(&buffer, test_1word.item); in item_put_no_overwrite() 132 mpsc_pbuf_free(&buffer, &t->item); in item_put_no_overwrite() 159 mpsc_pbuf_put_word(&buffer, test_1word.item); in item_put_overwrite() 186 mpsc_pbuf_put_word(&buffer, test_1word.item); in item_put_saturate() 193 mpsc_pbuf_free(&buffer, &t->item); in item_put_saturate() [all …]
|
/Zephyr-latest/doc/kernel/services/threads/ |
D | workqueue.rst | 11 work items in a first in, first out manner. Each work item is processed by 12 calling the function specified by the work item. A workqueue is typically 28 between each submitted work item, to prevent a cooperative workqueue from 40 caller need not be concerned that an item may be processing when the 46 * The ability to wait until a work item has completed or a queue has been 48 * Finer control of behavior when scheduling a delayable work item, 50 item is scheduled again. 51 * Safe handling of work item resubmission when the item is being processed 63 Any number of **work items** can be defined. Each work item is referenced 66 A work item is assigned a **handler function**, which is the function [all …]
|
/Zephyr-latest/subsys/bluetooth/services/ots/ |
D | ots_obj_manager.c | 204 struct bt_gatt_ots_pool_item *item; in bt_gatt_ots_obj_manager_obj_delete() local 206 item = CONTAINER_OF(obj, struct bt_gatt_ots_pool_item, val); in bt_gatt_ots_obj_manager_obj_delete() 208 if (!item->is_allocated) { in bt_gatt_ots_obj_manager_obj_delete() 217 item->is_allocated = false; in bt_gatt_ots_obj_manager_obj_delete() 218 sys_dlist_remove(&item->dnode); in bt_gatt_ots_obj_manager_obj_delete() 227 struct bt_gatt_ots_pool_item *item; in bt_gatt_ots_obj_manager_obj_contains() local 229 item = CONTAINER_OF(obj, struct bt_gatt_ots_pool_item, val); in bt_gatt_ots_obj_manager_obj_contains() 231 return PART_OF_ARRAY(obj_manager->pool, item); in bt_gatt_ots_obj_manager_obj_contains()
|
/Zephyr-latest/doc/_extensions/zephyr/domain/static/js/ |
D | codesample-livesearch.js | 55 items.forEach((item) => { 56 const nameElement = item.querySelector(".code-sample-name"); 57 const descElement = item.querySelector(".code-sample-description"); 74 item.style.display = ""; 78 item.style.display = "none";
|
/Zephyr-latest/scripts/ci/coverage/ |
D | coverage_analysis.py | 65 for item in features: 66 if component_name == item['name']: 67 component = item 215 for item in self.maintainers_file: 218 tests = self.maintainers_file[item].get('tests', []) 224 for path in self.maintainers_file[item]['files']: 363 for item in json_report['components']: 364 worksheet.write(row, col, item['name'],cell_format) 365 … testsuites,runnable,build_only,sim_only,hw_only, mixed= self._component_calculate_stats(item) 377 for i_file in item['files']: [all …]
|
/Zephyr-latest/doc/ |
D | index.rst | 28 <li class="grid-item"> 35 <li class="grid-item"> 42 <li class="grid-item"> 49 <li class="grid-item"> 56 <li class="grid-item"> 63 <li class="grid-item"> 70 <li class="grid-item"> 77 <li class="grid-item">
|
/Zephyr-latest/subsys/shell/ |
D | shell_history.c | 96 struct shell_history_item *item, in add_to_head() argument 99 item->len = len; in add_to_head() 100 item->padding = padding; in add_to_head() 101 memcpy(item->data, src, len); in add_to_head() 102 sys_dlist_prepend(&history->list, &item->dnode); in add_to_head()
|
/Zephyr-latest/scripts/build/ |
D | gen_syscalls.py | 203 def typename_split(item): argument 204 item = item.strip().replace("\n", " ") 205 if "[" in item: 208 item) 210 if "(" in item: 214 mo = typename_regex.match(item) 543 for i, item in enumerate(ids_emit): 544 ids_as_defines += "#define {} {}\n".format(item, i) 553 for i, item in enumerate(ids_not_emit): 554 ids_as_defines += "#define {} {}\n".format(item, i + num_emitted_ids)
|