/Zephyr-latest/samples/posix/uname/src/ |
D | main.c | 12 struct utsname info; in main() local 14 uname(&info); in main() 17 printf("sysname[%zu]: %s\n", sizeof(info.sysname), info.sysname); in main() 18 printf("nodename[%zu]: %s\n", sizeof(info.nodename), info.nodename); in main() 19 printf("release[%zu]: %s\n", sizeof(info.release), info.release); in main() 20 printf("version[%zu]: %s\n", sizeof(info.version), info.version); in main() 21 printf("machine[%zu]: %s\n", sizeof(info.machine), info.machine); in main()
|
/Zephyr-latest/subsys/debug/ |
D | thread_analyzer.c | 39 static void thread_print_cb(struct thread_analyzer_info *info) in thread_print_cb() argument 41 size_t pcnt = (info->stack_used * 100U) / info->stack_size; in thread_print_cb() 46 THREAD_ANALYZER_VSTR(info->name), in thread_print_cb() 47 info->stack_size - info->stack_used, info->stack_used, in thread_print_cb() 48 info->stack_size, pcnt, in thread_print_cb() 49 info->utilization); in thread_print_cb() 52 if (info->priv_stack_size > 0) { in thread_print_cb() 53 pcnt = (info->priv_stack_used * 100U) / info->priv_stack_size; in thread_print_cb() 58 " ", info->priv_stack_size - info->priv_stack_used, info->priv_stack_used, in thread_print_cb() 59 info->priv_stack_size, pcnt); in thread_print_cb() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | bap_stream_rx.c | 18 static void log_stream_rx(struct bt_bap_stream *stream, const struct bt_iso_recv_info *info, in log_stream_rx() argument 24 test_stream->rx_cnt, stream, buf->len, info->flags, info->seq_num, info->ts); in log_stream_rx() 27 void bap_stream_rx_recv_cb(struct bt_bap_stream *stream, const struct bt_iso_recv_info *info, in bap_stream_rx_recv_cb() argument 33 log_stream_rx(stream, info, buf); in bap_stream_rx_recv_cb() 36 if (test_stream->rx_cnt > 0U && info->ts == test_stream->last_info.ts) { in bap_stream_rx_recv_cb() 37 log_stream_rx(stream, info, buf); in bap_stream_rx_recv_cb() 42 if (test_stream->rx_cnt > 0U && info->seq_num == test_stream->last_info.seq_num) { in bap_stream_rx_recv_cb() 43 log_stream_rx(stream, info, buf); in bap_stream_rx_recv_cb() 48 if (info->flags & BT_ISO_FLAGS_ERROR) { in bap_stream_rx_recv_cb() 51 log_stream_rx(stream, info, buf); in bap_stream_rx_recv_cb() [all …]
|
/Zephyr-latest/samples/bluetooth/central_past/src/ |
D | main.c | 58 static void scan_recv(const struct bt_le_scan_recv_info *info, in scan_recv() argument 66 if (info->rssi < -70) { in scan_recv() 74 bt_addr_le_to_str(info->addr, le_addr, sizeof(le_addr)); in scan_recv() 79 le_addr, info->adv_type, info->tx_power, info->rssi, name, in scan_recv() 80 (info->adv_props & BT_GAP_ADV_PROP_CONNECTABLE) != 0, in scan_recv() 81 (info->adv_props & BT_GAP_ADV_PROP_SCANNABLE) != 0, in scan_recv() 82 (info->adv_props & BT_GAP_ADV_PROP_DIRECTED) != 0, in scan_recv() 83 (info->adv_props & BT_GAP_ADV_PROP_SCAN_RESPONSE) != 0, in scan_recv() 84 (info->adv_props & BT_GAP_ADV_PROP_EXT_ADV) != 0, in scan_recv() 85 phy2str(info->primary_phy), phy2str(info->secondary_phy), in scan_recv() [all …]
|
/Zephyr-latest/samples/bluetooth/observer/src/ |
D | observer.c | 53 static void scan_recv(const struct bt_le_scan_recv_info *info, in scan_recv() argument 66 data_status = BT_HCI_LE_ADV_EVT_TYPE_DATA_STATUS(info->adv_props); in scan_recv() 68 bt_addr_le_to_str(info->addr, le_addr, sizeof(le_addr)); in scan_recv() 73 le_addr, info->adv_type, info->tx_power, info->rssi, in scan_recv() 75 (info->adv_props & BT_GAP_ADV_PROP_CONNECTABLE) != 0, in scan_recv() 76 (info->adv_props & BT_GAP_ADV_PROP_SCANNABLE) != 0, in scan_recv() 77 (info->adv_props & BT_GAP_ADV_PROP_DIRECTED) != 0, in scan_recv() 78 (info->adv_props & BT_GAP_ADV_PROP_SCAN_RESPONSE) != 0, in scan_recv() 79 (info->adv_props & BT_GAP_ADV_PROP_EXT_ADV) != 0, in scan_recv() 80 phy2str(info->primary_phy), phy2str(info->secondary_phy), in scan_recv() [all …]
|
/Zephyr-latest/samples/bluetooth/periodic_sync/src/ |
D | main.c | 74 static void scan_recv(const struct bt_le_scan_recv_info *info, in scan_recv() argument 88 bt_addr_le_to_str(info->addr, le_addr, sizeof(le_addr)); in scan_recv() 92 le_addr, info->adv_type, info->tx_power, info->rssi, name, in scan_recv() 93 (info->adv_props & BT_GAP_ADV_PROP_CONNECTABLE) != 0, in scan_recv() 94 (info->adv_props & BT_GAP_ADV_PROP_SCANNABLE) != 0, in scan_recv() 95 (info->adv_props & BT_GAP_ADV_PROP_DIRECTED) != 0, in scan_recv() 96 (info->adv_props & BT_GAP_ADV_PROP_SCAN_RESPONSE) != 0, in scan_recv() 97 (info->adv_props & BT_GAP_ADV_PROP_EXT_ADV) != 0, in scan_recv() 98 phy2str(info->primary_phy), phy2str(info->secondary_phy), in scan_recv() 99 info->interval, info->interval * 5 / 4, info->sid); in scan_recv() [all …]
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | mem.c | 22 static bool slab_pool_found_already(struct ctx_info *info, in slab_pool_found_already() argument 30 if (info->tx_slabs[i] == slab) { in slab_pool_found_already() 34 if (info->data_pools[i] == pool) { in slab_pool_found_already() 49 struct ctx_info *info = data->user_data; in context_info() local 60 if (slab_pool_found_already(info, slab, NULL)) { in context_info() 66 slab, slab->info.num_blocks, k_mem_slab_num_free_get(slab)); in context_info() 68 PR("%p\t%d\tETX\n", slab, slab->info.num_blocks); in context_info() 70 info->are_external_pools = true; in context_info() 71 info->tx_slabs[info->pos] = slab; in context_info() 77 if (slab_pool_found_already(info, NULL, pool)) { in context_info() [all …]
|
D | events.c | 59 memcpy(msg.data, cb->info, msg.len); in event_handler() 89 char *info = NULL; in get_l3_desc() local 102 info = net_addr_ntop(AF_INET6, msg->data, extra_info, in get_l3_desc() 108 info = net_addr_ntop(AF_INET6, msg->data, extra_info, in get_l3_desc() 114 info = net_addr_ntop(AF_INET6, msg->data, extra_info, in get_l3_desc() 120 info = net_addr_ntop(AF_INET6, msg->data, extra_info, in get_l3_desc() 126 info = net_addr_ntop(AF_INET6, msg->data, extra_info, in get_l3_desc() 132 info = net_addr_ntop(AF_INET6, msg->data, extra_info, in get_l3_desc() 138 info = net_addr_ntop(AF_INET6, msg->data, extra_info, in get_l3_desc() 144 info = net_addr_ntop(AF_INET6, msg->data, extra_info, in get_l3_desc() [all …]
|
/Zephyr-latest/kernel/ |
D | mem_slab.c | 35 memcpy(stats, &slab->info, sizeof(slab->info)); in k_mem_slab_stats_raw() 51 ptr->free_bytes = (slab->info.num_blocks - slab->info.num_used) * in k_mem_slab_stats_query() 52 slab->info.block_size; in k_mem_slab_stats_query() 53 ptr->allocated_bytes = slab->info.num_used * slab->info.block_size; in k_mem_slab_stats_query() 55 ptr->max_allocated_bytes = slab->info.max_used * slab->info.block_size; in k_mem_slab_stats_query() 75 slab->info.max_used = slab->info.num_used; in k_mem_slab_stats_reset() 109 CHECKIF(((slab->info.block_size | (uintptr_t)slab->buffer) & in create_free_list() 115 p = slab->buffer + slab->info.block_size * (slab->info.num_blocks - 1); in create_free_list() 120 p -= slab->info.block_size; in create_free_list() 158 k_obj_core_stats_register(K_OBJ_CORE(slab), &slab->info, in init_mem_slab_obj_core_list() [all …]
|
/Zephyr-latest/drivers/counter/ |
D | counter_mcux_lpc_rtc.c | 24 struct counter_config_info info; member 38 const struct counter_config_info *info = dev->config; in mcux_lpc_rtc_isr() local 40 CONTAINER_OF(info, struct mcux_lpc_rtc_config, info); in mcux_lpc_rtc_isr() 85 const struct counter_config_info *info = dev->config; in mcux_lpc_rtc_start() local 87 CONTAINER_OF(info, struct mcux_lpc_rtc_config, info); in mcux_lpc_rtc_start() 96 const struct counter_config_info *info = dev->config; in mcux_lpc_rtc_stop() local 98 CONTAINER_OF(info, struct mcux_lpc_rtc_config, info); in mcux_lpc_rtc_stop() 110 const struct counter_config_info *info = dev->config; in mcux_lpc_rtc_read() local 112 CONTAINER_OF(info, struct mcux_lpc_rtc_config, info); in mcux_lpc_rtc_read() 128 const struct counter_config_info *info = dev->config; in mcux_lpc_rtc_set_alarm() local [all …]
|
D | counter_mcux_rtc.c | 27 struct counter_config_info info; member 34 const struct counter_config_info *info = dev->config; in mcux_rtc_start() local 36 CONTAINER_OF(info, struct mcux_rtc_config, info); in mcux_rtc_start() 49 const struct counter_config_info *info = dev->config; in mcux_rtc_stop() local 51 CONTAINER_OF(info, struct mcux_rtc_config, info); in mcux_rtc_stop() 67 const struct counter_config_info *info = dev->config; in mcux_rtc_read() local 69 CONTAINER_OF(info, struct mcux_rtc_config, info); in mcux_rtc_read() 96 const struct counter_config_info *info = dev->config; in mcux_rtc_set_alarm() local 98 CONTAINER_OF(info, struct mcux_rtc_config, info); in mcux_rtc_set_alarm() 150 const struct counter_config_info *info = dev->config; in mcux_rtc_set_top_value() local [all …]
|
/Zephyr-latest/arch/x86/core/ |
D | multiboot.c | 40 struct multiboot_info *info; in z_multiboot_init() local 51 info = info_pa; in z_multiboot_init() 53 k_mem_map_phys_bare((uint8_t **)&info, POINTER_TO_UINT(info_pa), in z_multiboot_init() 57 if (info == NULL) { in z_multiboot_init() 61 memcpy(&multiboot_info, info, sizeof(*info)); in z_multiboot_init() 69 if ((info->flags & MULTIBOOT_INFO_FLAGS_MMAP) && in z_multiboot_init() 78 address = info->mmap_addr; in z_multiboot_init() 82 k_mem_map_phys_bare(&address_va, info->mmap_addr, info->mmap_length, in z_multiboot_init() 88 address_end = address + info->mmap_length; in z_multiboot_init() 125 if ((info->flags & MULTIBOOT_INFO_FLAGS_MEM) && in z_multiboot_init() [all …]
|
/Zephyr-latest/drivers/flash/ |
D | flash_page_layout.c | 12 uint32_t index, struct flash_pages_info *info) in flash_get_page_info() argument 19 info->start_offset = 0; in flash_get_page_info() 20 info->index = 0U; in flash_get_page_info() 25 info->size = layout->pages_size; in flash_get_page_info() 27 index_jmp = index - info->index; in flash_get_page_info() 29 index_jmp = (offs - info->start_offset) / info->size; in flash_get_page_info() 33 info->start_offset += (index_jmp * info->size); in flash_get_page_info() 34 info->index += index_jmp; in flash_get_page_info() 46 struct flash_pages_info *info) in z_impl_flash_get_page_info_by_offs() argument 48 return flash_get_page_info(dev, offs, 0U, info); in z_impl_flash_get_page_info_by_offs() [all …]
|
/Zephyr-latest/lib/mem_blocks/ |
D | mem_blocks.c | 37 mem_block->info.used_blocks += (uint32_t)num_blocks; in alloc_blocks() 39 if (mem_block->info.max_used_blocks < mem_block->info.used_blocks) { in alloc_blocks() 40 mem_block->info.max_used_blocks = mem_block->info.used_blocks; in alloc_blocks() 48 blk = mem_block->buffer + (offset << mem_block->info.blk_sz_shift); in alloc_blocks() 66 offset = (blk - mem_block->buffer) >> mem_block->info.blk_sz_shift; in free_blocks() 67 if (offset >= mem_block->info.num_blocks) { in free_blocks() 79 mem_block->info.used_blocks -= (uint32_t)num_blocks; in free_blocks() 103 if (count > mem_block->info.num_blocks) { in sys_mem_blocks_alloc_contiguous() 119 ptr, count << mem_block->info.blk_sz_shift); in sys_mem_blocks_alloc_contiguous() 142 if (count > mem_block->info.num_blocks) { in sys_mem_blocks_alloc() [all …]
|
/Zephyr-latest/samples/bluetooth/direction_finding_connectionless_rx/src/ |
D | main.c | 54 static void scan_recv(const struct bt_le_scan_recv_info *info, 58 struct bt_le_per_adv_sync_synced_info *info); 60 const struct bt_le_per_adv_sync_term_info *info); 62 const struct bt_le_per_adv_sync_recv_info *info, 64 static void scan_recv(const struct bt_le_scan_recv_info *info, 159 struct bt_le_per_adv_sync_synced_info *info) in sync_cb() argument 163 bt_addr_le_to_str(info->addr, le_addr, sizeof(le_addr)); in sync_cb() 168 info->interval, info->interval * 5 / 4, phy2str(info->phy)); in sync_cb() 174 const struct bt_le_per_adv_sync_term_info *info) in term_cb() argument 178 bt_addr_le_to_str(info->addr, le_addr, sizeof(le_addr)); in term_cb() [all …]
|
/Zephyr-latest/tests/posix/single_process/src/ |
D | uname.c | 13 struct utsname info; in ZTEST() local 15 zassert_ok(uname(&info)); in ZTEST() 16 zassert_ok(strncmp(info.sysname, "Zephyr", sizeof(info.sysname))); in ZTEST() 17 zassert_ok(strncmp(info.machine, CONFIG_ARCH, sizeof(info.machine))); in ZTEST()
|
/Zephyr-latest/tests/subsys/sensing/src/ |
D | main.c | 44 static bool check_sensor_type(const struct sensing_sensor_info *info, in check_sensor_type() argument 48 if (info->type == sensor->sensor_types[i]) { in check_sensor_type() 62 const struct sensing_sensor_info *info; in ZTEST() local 66 ret = sensing_get_sensors(&num, &info); in ZTEST() 70 zassert_not_null(info, "Expected sensor info to be not null"); in ZTEST() 76 if (strcmp(info[i].name, sensors[j].name) == 0) { in ZTEST() 77 zassert_true(strcmp(info[i].friendly_name, in ZTEST() 80 info[i].name); in ZTEST() 81 zassert_true(check_sensor_type(&info[i], &sensors[j]), in ZTEST() 83 info[i].name); in ZTEST() [all …]
|
/Zephyr-latest/samples/bluetooth/iso_receive/src/ |
D | main.c | 94 static void scan_recv(const struct bt_le_scan_recv_info *info, in scan_recv() argument 104 bt_addr_le_to_str(info->addr, le_addr, sizeof(le_addr)); in scan_recv() 108 le_addr, info->adv_type, info->tx_power, info->rssi, name, in scan_recv() 109 (info->adv_props & BT_GAP_ADV_PROP_CONNECTABLE) != 0, in scan_recv() 110 (info->adv_props & BT_GAP_ADV_PROP_SCANNABLE) != 0, in scan_recv() 111 (info->adv_props & BT_GAP_ADV_PROP_DIRECTED) != 0, in scan_recv() 112 (info->adv_props & BT_GAP_ADV_PROP_SCAN_RESPONSE) != 0, in scan_recv() 113 (info->adv_props & BT_GAP_ADV_PROP_EXT_ADV) != 0, in scan_recv() 114 phy2str(info->primary_phy), phy2str(info->secondary_phy), in scan_recv() 115 info->interval, BT_CONN_INTERVAL_TO_US(info->interval), info->sid); in scan_recv() [all …]
|
/Zephyr-latest/samples/sensor/sensor_shell/pytest/ |
D | test_sensor_shell.py | 12 logger.info('send "sensor info" command') 18 logger.info('response is valid') 22 logger.info('send "sensor get" command') 35 logger.info('response is valid') 39 logger.info('send "sensor attr_get" command') 47 logger.info('response is valid') 51 logger.info('send "sensor attr_set" command') 61 logger.info('response is valid') 65 logger.info('send "sensor trig" command') 75 logger.info('response is valid')
|
/Zephyr-latest/drivers/spi/ |
D | spi_oc_simple.c | 34 static int spi_oc_simple_configure(const struct spi_oc_simple_cfg *info, in spi_oc_simple_configure() argument 82 sys_write8((DIVIDERS[i] >> 4) & 0x3, SPI_OC_SIMPLE_SPER(info)); in spi_oc_simple_configure() 86 sys_write8(spcr | SPI_OC_SIMPLE_SPCR_SPE, SPI_OC_SIMPLE_SPCR(info)); in spi_oc_simple_configure() 98 const struct spi_oc_simple_cfg *info = dev->config; in spi_oc_simple_transceive() local 110 spi_oc_simple_configure(info, spi, config); in spi_oc_simple_transceive() 116 sys_write8(1 << config->slave, SPI_OC_SIMPLE_SPSS(info)); in spi_oc_simple_transceive() 129 SPI_OC_SIMPLE_SPDR(info)); in spi_oc_simple_transceive() 132 sys_write8(0, SPI_OC_SIMPLE_SPDR(info)); in spi_oc_simple_transceive() 136 while (sys_read8(SPI_OC_SIMPLE_SPSR(info)) & 0x1) { in spi_oc_simple_transceive() 140 rx_byte = sys_read8(SPI_OC_SIMPLE_SPDR(info)); in spi_oc_simple_transceive() [all …]
|
/Zephyr-latest/tests/bluetooth/audio/cap_commander/src/ |
D | test_common.c | 37 conn->info.type = BT_CONN_TYPE_LE; in test_conn_init() 38 conn->info.role = BT_CONN_ROLE_PERIPHERAL; in test_conn_init() 39 conn->info.state = BT_CONN_STATE_CONNECTED; in test_conn_init() 40 conn->info.security.level = BT_SECURITY_L2; in test_conn_init() 41 conn->info.security.enc_key_size = BT_ENC_KEY_SIZE_MAX; in test_conn_init() 42 conn->info.security.flags = BT_SECURITY_FLAG_OOB | BT_SECURITY_FLAG_SC; in test_conn_init()
|
/Zephyr-latest/tests/drivers/flash/erase_blocks/src/ |
D | main.c | 130 static void test_flash_write_across_page_boundary(const struct flash_pages_info *info, in test_flash_write_across_page_boundary() argument 133 off_t page_boundary = info->start_offset; in test_flash_write_across_page_boundary() 134 uint32_t page0_index = info->index - 1; in test_flash_write_across_page_boundary() 135 uint32_t page1_index = info->index; in test_flash_write_across_page_boundary() 147 static bool test_flash_write_across_page_boundaries(const struct flash_pages_info *info, in test_flash_write_across_page_boundaries() argument 152 if (info->start_offset <= TEST_FLASH_PART_OFFSET) { in test_flash_write_across_page_boundaries() 157 if (info->start_offset >= TEST_FLASH_PART_END_OFFSET) { in test_flash_write_across_page_boundaries() 162 test_flash_write_across_page_boundary(info, write_block_size); in test_flash_write_across_page_boundaries() 175 static void test_flash_erase_page(const struct flash_pages_info *info) in test_flash_erase_page() argument 177 off_t page_offset = info->start_offset; in test_flash_erase_page() [all …]
|
/Zephyr-latest/samples/bluetooth/peripheral_past/src/ |
D | main.c | 19 struct bt_le_per_adv_sync_synced_info *info) in sync_cb() argument 24 if (!info->conn) { in sync_cb() 29 bt_addr_le_to_str(info->addr, le_addr, sizeof(le_addr)); in sync_cb() 31 bt_addr_le_to_str(bt_conn_get_dst(info->conn), past_peer_addr, in sync_cb() 35 bt_le_per_adv_sync_get_index(sync), le_addr, info->interval, in sync_cb() 36 info->interval * 5 / 4, past_peer_addr); in sync_cb() 42 const struct bt_le_per_adv_sync_term_info *info) in term_cb() argument 46 bt_addr_le_to_str(info->addr, le_addr, sizeof(le_addr)); in term_cb() 55 const struct bt_le_per_adv_sync_recv_info *info, in recv_cb() argument 61 bt_addr_le_to_str(info->addr, le_addr, sizeof(le_addr)); in recv_cb() [all …]
|
/Zephyr-latest/drivers/usb_c/tcpc/ |
D | ucpd_stm32.c | 667 static void ucpd_notify_handler(struct alert_info *info, enum tcpc_alert alert) in ucpd_notify_handler() argument 669 if (info->handler) { in ucpd_notify_handler() 670 info->handler(info->dev, info->data, alert); in ucpd_notify_handler() 677 static void ucpd_manage_tx(struct alert_info *info) in ucpd_manage_tx() argument 679 struct tcpc_data *data = info->dev->data; in ucpd_manage_tx() 683 if (atomic_test_and_clear_bit(&info->evt, UCPD_EVT_HR_REQ)) { in ucpd_manage_tx() 691 ucpd_set_tx_state(info->dev, STATE_HARD_RESET); in ucpd_manage_tx() 699 ucpd_set_tx_state(info->dev, STATE_ACTIVE_CRC); in ucpd_manage_tx() 702 if (atomic_test_and_clear_bit(&info->evt, UCPD_EVT_RX_MSG)) { in ucpd_manage_tx() 712 ucpd_notify_handler(info, TCPC_ALERT_TRANSMIT_MSG_DISCARDED); in ucpd_manage_tx() [all …]
|
/Zephyr-latest/tests/boot/with_mcumgr/pytest/ |
D | test_upgrade.py | 57 logger.info('Prepare upgrade image') 62 logger.info('Upload image with mcumgr') 66 logger.info('Test uploaded APP image') 78 logger.info('Verify new APP is booted') 83 logger.info('Confirm the image') 92 logger.info('Verify new APP is still booted') 112 logger.info('Prepare upgrade image') 117 logger.info('Upload image with mcumgr') 121 logger.info('Test uploaded APP image') 133 logger.info('Verify new APP is booted') [all …]
|