/Zephyr-Core-3.6.0/soc/riscv/openisa_rv32m1/ |
D | vector.S | 36 j _isr_wrapper /* IRQ 0 */ 37 j _isr_wrapper /* IRQ 1 */ 38 j _isr_wrapper /* IRQ 2 */ 39 j _isr_wrapper /* IRQ 3 */ 40 j _isr_wrapper /* IRQ 4 */ 41 j _isr_wrapper /* IRQ 5 */ 42 j _isr_wrapper /* IRQ 6 */ 43 j _isr_wrapper /* IRQ 7 */ 44 j _isr_wrapper /* IRQ 8 */ 45 j _isr_wrapper /* IRQ 9 */ [all …]
|
/Zephyr-Core-3.6.0/tests/drivers/console_switching/src/ |
D | main.c | 37 for (size_t i = 0, j = 0, N = ARRAY_SIZE(devs); i < 2 * N; i++, j++, j %= N) { in ZTEST() local 38 if (j == normal_uart) { in ZTEST() 47 ret[0] = devmux_select_set(devmux_dev, j); in ZTEST() 48 printk("%s", text[j]); in ZTEST() 49 ret[1] = uart_emul_get_tx_data(devs[j], buf, ARRAY_SIZE(buf)); in ZTEST() 52 zassert_ok(ret[0], "Failed to select devmux %zu", j); in ZTEST() 56 TC_PRINT("wrote '%s' to %s\n", buf, name[j]); in ZTEST() 58 zassert_equal(ret[1], strlen(text[j]), "Only wrote %zu/%zu bytes of '%s'", in ZTEST() 59 ret[1], strlen(text[j]), text[j]); in ZTEST() 60 zassert_equal(0, strcmp(text[j], buf), "Strings '%s' and '%s' do not match", in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/lib/crc/ |
D | crc4_sw.c | 13 size_t i, j, k; in crc4() local 16 for (j = 0; j < 2; j++) { in crc4() 17 crc ^= ((src[i] >> (4 * (1 - j))) & 0xf); in crc4() 46 for (size_t j = 0U; j < 2U; j++) { in crc4_ti() local 47 index = seed ^ ((src[i] >> (4*(1-j))) & 0xf); in crc4_ti()
|
D | crc16_sw.c | 12 size_t i, j; in crc16() local 17 for (j = 0; j < 8; j++) { in crc16() 33 size_t i, j; in crc16_reflect() local 38 for (j = 0; j < 8; j++) { in crc16_reflect()
|
/Zephyr-Core-3.6.0/samples/shields/x_nucleo_iks02a1/microphone/src/ |
D | main.c | 89 int j; in main() local 94 for (j = 0; j < rx_size/2; j++) { in main() 95 printk("0x%04x,\n", pcm_out[j]); in main() 101 int j; in main() local 106 for (j = 0; j < rx_size/2; j++) { in main() 107 pcm_l = (char)(pcm_out[j] & 0xFF); in main() 108 pcm_h = (char)((pcm_out[j] >> 8) & 0xFF); in main()
|
/Zephyr-Core-3.6.0/tests/bluetooth/audio/cap_commander/uut/ |
D | vcp.c | 50 for (size_t j = 0U; j < ARRAY_SIZE(vol_ctlrs[i].vocs); j++) { in bt_vcp_vol_ctlr_discover() local 51 const int err = bt_vocs_discover(conn, vol_ctlrs[i].vocs[j], NULL); in bt_vcp_vol_ctlr_discover() 74 for (size_t j = 0U; j < ARRAY_SIZE(vol_ctlrs[i].vocs); j++) { in bt_vcp_vol_ctlr_cb_register() local 75 bt_vocs_client_cb_register(vol_ctlrs[i].vocs[j], &cb->vocs_cb); in bt_vcp_vol_ctlr_cb_register() 98 for (size_t j = 0U; j < ARRAY_SIZE(vol_ctlrs[i].vocs); j++) { in mock_bt_vcp_init() local 99 vol_ctlrs[i].vocs[j] = bt_vocs_client_free_instance_get(); in mock_bt_vcp_init() 101 __ASSERT(vol_ctlrs[i].vocs[j], in mock_bt_vcp_init()
|
/Zephyr-Core-3.6.0/subsys/net/lib/lwm2m/ |
D | ucifi_lpwan.c | 98 int index, i = 0, j = 0; in lpwan_create() local 126 INIT_OBJ_RES_OPTDATA(UCIFI_LPWAN_NETWORK_TYPE_RID, res[index], i, res_inst[index], j); in lpwan_create() 127 INIT_OBJ_RES_MULTI_OPTDATA(UCIFI_LPWAN_IPV4_ADDRESS_RID, res[index], i, res_inst[index], j, in lpwan_create() 129 INIT_OBJ_RES_MULTI_OPTDATA(UCIFI_LPWAN_IPV6_ADDRESS_RID, res[index], i, res_inst[index], j, in lpwan_create() 132 j, NETWORK_ADDRESS_MAX, false); in lpwan_create() 134 res_inst[index], j, SECONDARY_NETWORK_ADDRESS_MAX, false); in lpwan_create() 135 INIT_OBJ_RES_DATA_LEN(UCIFI_LPWAN_MAC_ADDRESS_RID, res[index], i, res_inst[index], j, in lpwan_create() 137 INIT_OBJ_RES_MULTI_OPTDATA(UCIFI_LPWAN_PEER_ADDRESS_RID, res[index], i, res_inst[index], j, in lpwan_create() 140 res_inst[index], j, MULTICAST_GRP_ADDRESS_MAX, false); in lpwan_create() 142 res_inst[index], j, MULTICAST_GRP_KEY_MAX, false); in lpwan_create() [all …]
|
D | lwm2m_obj_connmon.c | 141 int i = 0, j = 0; in connmon_create() local 162 INIT_OBJ_RES_DATA(CONNMON_NETWORK_BEARER_ID, res, i, res_inst, j, in connmon_create() 165 res_inst, j, CONNMON_AVAIL_BEARER_MAX, in connmon_create() 167 INIT_OBJ_RES_DATA(CONNMON_RADIO_SIGNAL_STRENGTH, res, i, res_inst, j, in connmon_create() 169 INIT_OBJ_RES_DATA(CONNMON_LINK_QUALITY, res, i, res_inst, j, in connmon_create() 172 res_inst, j, CONNMON_IP_ADDRESS_MAX, false); in connmon_create() 174 res_inst, j, CONNMON_ROUTER_IP_ADDRESS_MAX, in connmon_create() 176 INIT_OBJ_RES_MULTI_OPTDATA(CONNMON_APN, res, i, res_inst, j, in connmon_create() 178 INIT_OBJ_RES_DATA(CONNMON_CELLID, res, i, res_inst, j, &cellid, in connmon_create() 180 INIT_OBJ_RES_DATA(CONNMON_SMNC, res, i, res_inst, j, &mnc, sizeof(mnc)); in connmon_create() [all …]
|
D | ipso_accelerometer.c | 78 int index, avail = -1, i = 0, j = 0; in accel_create() local 108 INIT_OBJ_RES_DATA(X_VALUE_RID, res[avail], i, res_inst[avail], j, in accel_create() 111 INIT_OBJ_RES_DATA(Y_VALUE_RID, res[avail], i, res_inst[avail], j, in accel_create() 114 INIT_OBJ_RES_DATA(Z_VALUE_RID, res[avail], i, res_inst[avail], j, in accel_create() 118 res_inst[avail], j); in accel_create() 120 j, &accel_data[avail].min_range, in accel_create() 123 j, &accel_data[avail].max_range, in accel_create() 127 res_inst[avail], j); in accel_create() 128 INIT_OBJ_RES_OPTDATA(TIMESTAMP_RID, res[avail], i, res_inst[avail], j); in accel_create() 130 res_inst[avail], j); in accel_create() [all …]
|
D | ucifi_battery.c | 84 int index, i = 0, j = 0; in battery_create() local 115 INIT_OBJ_RES_DATA(UCIFI_BATTERY_LEVEL_RID, res[index], i, res_inst[index], j, in battery_create() 117 INIT_OBJ_RES_OPTDATA(UCIFI_BATTERY_CAPACITY_RID, res[index], i, res_inst[index], j); in battery_create() 118 INIT_OBJ_RES_OPTDATA(UCIFI_BATTERY_VOLTAGE_RID, res[index], i, res_inst[index], j); in battery_create() 119 INIT_OBJ_RES_OPTDATA(UCIFI_BATTERY_TYPE_RID, res[index], i, res_inst[index], j); in battery_create() 120 INIT_OBJ_RES_OPTDATA(UCIFI_BATTERY_LOW_THESHOLD_RID, res[index], i, res_inst[index], j); in battery_create() 121 INIT_OBJ_RES_OPTDATA(UCIFI_BATTERY_LEVEL_TOO_LOW_RID, res[index], i, res_inst[index], j); in battery_create() 122 INIT_OBJ_RES_OPTDATA(UCIFI_BATTERY_SHUTDOWN_RID, res[index], i, res_inst[index], j); in battery_create() 123 INIT_OBJ_RES_OPTDATA(UCIFI_BATTERY_NUM_CYCLES_RID, res[index], i, res_inst[index], j); in battery_create() 124 INIT_OBJ_RES_OPTDATA(UCIFI_BATTERY_SUPPLY_LOSS_RID, res[index], i, res_inst[index], j); in battery_create() [all …]
|
D | lwm2m_obj_device.c | 300 int i = 0, j = 0; in device_create() local 305 INIT_OBJ_RES_OPTDATA(DEVICE_MANUFACTURER_ID, res, i, res_inst, j); in device_create() 306 INIT_OBJ_RES_OPTDATA(DEVICE_MODEL_NUMBER_ID, res, i, res_inst, j); in device_create() 307 INIT_OBJ_RES_OPTDATA(DEVICE_SERIAL_NUMBER_ID, res, i, res_inst, j); in device_create() 308 INIT_OBJ_RES_OPTDATA(DEVICE_FIRMWARE_VERSION_ID, res, i, res_inst, j); in device_create() 312 res_inst, j, DEVICE_PWRSRC_MAX, false); in device_create() 314 res_inst, j, DEVICE_PWRSRC_MAX, false); in device_create() 316 res_inst, j, DEVICE_PWRSRC_MAX, false); in device_create() 317 INIT_OBJ_RES_OPTDATA(DEVICE_BATTERY_LEVEL_ID, res, i, res_inst, j); in device_create() 318 INIT_OBJ_RES_OPTDATA(DEVICE_MEMORY_FREE_ID, res, i, res_inst, j); in device_create() [all …]
|
D | lwm2m_obj_location.c | 64 int i = 0, j = 0; in location_create() local 74 INIT_OBJ_RES_DATA(LOCATION_LATITUDE_ID, res, i, res_inst, j, in location_create() 76 INIT_OBJ_RES_DATA(LOCATION_LONGITUDE_ID, res, i, res_inst, j, in location_create() 78 INIT_OBJ_RES_DATA(LOCATION_ALTITUDE_ID, res, i, res_inst, j, in location_create() 80 INIT_OBJ_RES_DATA(LOCATION_RADIUS_ID, res, i, res_inst, j, in location_create() 82 INIT_OBJ_RES_OPTDATA(LOCATION_VELOCITY_ID, res, i, res_inst, j); in location_create() 83 INIT_OBJ_RES_DATA(LOCATION_TIMESTAMP_ID, res, i, res_inst, j, in location_create() 85 INIT_OBJ_RES_DATA(LOCATION_SPEED_ID, res, i, res_inst, j, in location_create()
|
/Zephyr-Core-3.6.0/subsys/bluetooth/host/ |
D | aes_ccm.c | 45 int i, j, err; in ccm_calculate_X0() local 65 j = 0; in ccm_calculate_X0() 69 b[i] = X0[i] ^ aad[j]; in ccm_calculate_X0() 70 i++, j++; in ccm_calculate_X0() 82 for (; i < aad_len; i++, j++) { in ccm_calculate_X0() 83 b[i] = X0[i] ^ aad[j]; in ccm_calculate_X0() 105 int err, j, i; in ccm_auth() local 126 for (j = 0; j < blk_cnt; j++) { in ccm_auth() 128 if (j + 1 == blk_cnt) { in ccm_auth() 130 b[i] = Xn[i] ^ cleartext_msg[(j * 16) + i]; in ccm_auth() [all …]
|
/Zephyr-Core-3.6.0/samples/drivers/memc/src/ |
D | main.c | 20 uint32_t i, j; in dump_memory() local 22 for (i = 0, j = 0; j < (size / 16); i += 16, j++) { in dump_memory() 49 uint32_t i, j; in main() local 58 for (i = 0, j = 0; j < (MEMC_SIZE / BUF_SIZE); i += BUF_SIZE, j++) { in main() 66 for (i = 0, j = 0; j < (MEMC_SIZE / BUF_SIZE); i += BUF_SIZE, j++) { in main()
|
/Zephyr-Core-3.6.0/tests/subsys/testsuite/fff_fake_contexts/src/ |
D | main.c | 298 for (int j = 0; j < fff.call_history_idx; ++j) { in ZTEST() local 299 zassert_equal(fff.call_history[j], in ZTEST() 300 tc->expected_call_history[j], NULL); in ZTEST() 315 for (int j = 0; j < called_API_open_fake_call_count_expected; ++j) { in ZTEST() local 316 zassert_not_null(called_API_open_fake.arg0_history[j], NULL); in ZTEST() 326 for (int j = 0; j < called_API_close_fake_call_count_expected; ++j) { in ZTEST() local 328 zassert_equal(called_API_close_fake.arg0_history[j], in ZTEST() 329 tc->called_API_open_custom_fake_contexts[j] in ZTEST()
|
/Zephyr-Core-3.6.0/tests/net/lib/lwm2m/lwm2m_registry/src/ |
D | test_obj.c | 57 int i = 0, j = 0; in obj_create() local 69 INIT_OBJ_RES_DATA_LEN(LWM2M_RES_TYPE_OPAQUE, res, i, res_inst, j, opaque, sizeof(opaque), in obj_create() 71 INIT_OBJ_RES_DATA_LEN(LWM2M_RES_TYPE_STRING, res, i, res_inst, j, string, sizeof(string), in obj_create() 73 INIT_OBJ_RES_DATA(LWM2M_RES_TYPE_U32, res, i, res_inst, j, &u32, sizeof(u32)); in obj_create() 74 INIT_OBJ_RES_DATA(LWM2M_RES_TYPE_U16, res, i, res_inst, j, &u16, sizeof(u16)); in obj_create() 75 INIT_OBJ_RES_DATA(LWM2M_RES_TYPE_U8, res, i, res_inst, j, &u8, sizeof(u8)); in obj_create() 76 INIT_OBJ_RES_DATA(LWM2M_RES_TYPE_S64, res, i, res_inst, j, &s64, sizeof(s64)); in obj_create() 77 INIT_OBJ_RES_DATA(LWM2M_RES_TYPE_S32, res, i, res_inst, j, &s32, sizeof(s32)); in obj_create() 78 INIT_OBJ_RES_DATA(LWM2M_RES_TYPE_S16, res, i, res_inst, j, &s16, sizeof(s16)); in obj_create() 79 INIT_OBJ_RES_DATA(LWM2M_RES_TYPE_S8, res, i, res_inst, j, &s8, sizeof(s8)); in obj_create() [all …]
|
/Zephyr-Core-3.6.0/tests/bluetooth/controller/ctrl_tx_buffer_alloc/src/ |
D | main.c | 72 for (int j = 1; j < CONFIG_BT_CTLR_LLCP_CONN; j++) { in ZTEST() local 73 conn[j].llcp.tx_buffer_alloc = 0; in ZTEST() 99 for (int j = 1; j < CONFIG_BT_CTLR_LLCP_CONN; j++) { in ZTEST() local 102 zassert_true(llcp_tx_alloc_peek(&conn[j], ctxs[j])); in ZTEST() 103 tx[tx_alloc_idx] = llcp_tx_alloc(&conn[j], ctxs[j]); in ZTEST() 107 zassert_equal(conn[j].llcp.tx_buffer_alloc, i + 1); in ZTEST() 111 zassert_false(llcp_tx_alloc_peek(&conn[j], ctxs[j])); in ZTEST() 112 zassert_equal(ctxs[j]->wait_reason, WAITING_FOR_TX_BUFFER); in ZTEST()
|
/Zephyr-Core-3.6.0/samples/boards/96b_argonkey/microphone/src/ |
D | main.c | 155 int j; in main() local 160 for (j = 0; j < rx_size/2; j++) { in main() 161 printk("0x%04x,\n", pcm_out[j]); in main() 167 int j; in main() local 172 for (j = 0; j < rx_size/2; j++) { in main() 173 pcm_l = (char)(pcm_out[j] & 0xFF); in main() 174 pcm_h = (char)((pcm_out[j] >> 8) & 0xFF); in main()
|
/Zephyr-Core-3.6.0/samples/arch/smp/pi/src/ |
D | main.c | 54 int i, j; in test_thread() local 63 for (j = i; j > 0; --j) { in test_thread() 64 sum = sum * j + NEW_BASE * array[j]; in test_thread() 65 array[j] = sum % (j * 2 - 1); in test_thread() 66 sum /= j * 2 - 1; in test_thread()
|
/Zephyr-Core-3.6.0/subsys/pm/ |
D | pm_stats.c | 40 for (uint8_t j = 0U; j < PM_STATE_COUNT; j++) { in pm_stats_init() local 41 snprintk(names[i][j], PM_STAT_NAME_LEN, in pm_stats_init() 42 "pm_cpu_%03d_state_%1d_stats", i, j); in pm_stats_init() 43 stats_init(&(stats[i][j].s_hdr), STATS_SIZE_32, 3U, in pm_stats_init() 45 stats_register(names[i][j], &(stats[i][j].s_hdr)); in pm_stats_init()
|
/Zephyr-Core-3.6.0/tests/subsys/fs/fcb/src/ |
D | fcb_test_append.c | 16 int j; in test_fcb_append() local 20 for (j = 0; j < i; j++) { in test_fcb_append() 21 test_data[j] = fcb_test_append_data(i, j); in test_fcb_append()
|
D | fcb_test_crc_disabled_after_enabled.c | 15 int j; in fcb_pretest_crc_disabled_after_enabled() local 19 for (j = 0; j < i; j++) { in fcb_pretest_crc_disabled_after_enabled() 20 test_data[j] = fcb_test_append_data(i, j); in fcb_pretest_crc_disabled_after_enabled()
|
/Zephyr-Core-3.6.0/samples/modules/tflite-micro/magic_wand/train/ |
D | data_augmentation.py | 33 for j in range((int(len(data) / molecule) - 1) * denominator)] 35 for j in range(len(data[i])): 38 k][j] = (data[molecule * i + k][j] * (denominator - k) + 39 data[molecule * i + k + 1][j] * k) / denominator 57 tmp_data = [[0 for i in range(len(data[0]))] for j in range(len(data))] 60 for j in range(len(tmp_data[i])): 61 tmp_data[i][j] = data[i][j] + 5 * random.random()
|
/Zephyr-Core-3.6.0/samples/posix/eventfd/src/ |
D | main.c | 27 int j; in writer() local 31 for (j = 1; j < g_argc; j++) { in writer() 32 printf("Writing %s to efd\n", g_argv[j]); in writer() 33 u = strtoull(g_argv[j], NULL, 0); in writer()
|
/Zephyr-Core-3.6.0/lib/utils/ |
D | base64.c | 128 uint32_t j, x; in base64_decode() local 132 for (i = n = j = 0U; i < slen; i++) { in base64_decode() 158 if (src[i] == '=' && ++j > 2) { in base64_decode() 166 if (base64_dec_map[src[i]] < 64 && j != 0U) { in base64_decode() 183 n -= j; in base64_decode() 190 for (j = 3U, n = x = 0U, p = dst; i > 0; i--, src++) { in base64_decode() 196 j -= (base64_dec_map[*src] == 64U); in base64_decode() 201 if (j > 0) { in base64_decode() 204 if (j > 1) { in base64_decode() 207 if (j > 2) { in base64_decode()
|