Home
last modified time | relevance | path

Searched +full:- +full:j (Results 1 – 25 of 651) sorted by relevance

12345678910>>...27

/Zephyr-latest/soc/sensry/ganymed/sy1xx/common/
Dcrt0.S1 # SPDX-License-Identifier: Apache-2.0
9 # abs 0x0000 - entry point after bootloader
16 # abs 0x0080 - will be checked by bootloader
20 # abs 0x0100 - text
47 j __no_irq_handler0
48 j __no_irq_handler1
49 j __no_irq_handler2
50 j __no_irq_handler3
51 j __no_irq_handler4
52 j __no_irq_handler5
[all …]
/Zephyr-latest/soc/openisa/rv32m1/
Dvector.S4 * SPDX-License-Identifier: Apache-2.0
17 * Interrupts work the same way for both the RI5CY and ZERO-RISCY cores
27 * Note: Per RV32I restrictions, "j SOME_HANDLER" can jump within a +/- 1MiB
29 * and ZERO-RISCY is allocated 256 KiB, and these flash banks contain the
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 */
[all …]
/Zephyr-latest/tests/drivers/console_switching/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
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()
39 /* skip testing non-emul uart */ in ZTEST()
46 /* write text[j] to dev[j] */ 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()
55 /* verify that text[j] was written to dev[j] */ in ZTEST()
[all …]
/Zephyr-latest/arch/xtensa/core/
Dwindow_vectors.S4 * SPDX-License-Identifier: Apache-2.0
42 * Invoked if a call[i] referenced a register (a4-a15)
43 * that contains data from ancestor call[j];
44 * call[j] had done a call4 to call[j+1].
46 * window rotated to call[j] start point;
47 * a0-a3 are registers to be saved;
48 * a4-a15 must be preserved;
49 * a5 is call[j+1]'s stack pointer.
56 s32e a0, a5, -16 /* save a0 to call[j+1]'s stack frame */
57 s32e a1, a5, -12 /* save a1 to call[j+1]'s stack frame */
[all …]
/Zephyr-latest/subsys/net/lib/lwm2m/
Ducifi_lpwan.c4 * SPDX-License-Identifier: Apache-2.0
9 * https://raw.githubusercontent.com/OpenMobileAlliance/lwm2m-registry/prod/3412.xml
30 /* clang-format off */
39 /* clang-format on */
57 (UCIFI_LPWAN_MAX_RID - NUMBER_EXEC_RESOURCES - NUMBER_MULTI_RESOURCES + IPV4_ADDRESS_MAX + \
98 int index, i = 0, j = 0; in lpwan_create() local
103 LOG_ERR("Can not create instance - already existing: %u", obj_inst_id); in lpwan_create()
115 LOG_ERR("Can not create instance - no more room: %u", obj_inst_id); in lpwan_create()
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()
[all …]
Dlwm2m_obj_location.c5 * SPDX-License-Identifier: Apache-2.0
62 int i = 0, j = 0; in location_create() local
72 INIT_OBJ_RES_DATA(LOCATION_LATITUDE_ID, res, i, res_inst, j, in location_create()
74 INIT_OBJ_RES_DATA(LOCATION_LONGITUDE_ID, res, i, res_inst, j, in location_create()
76 INIT_OBJ_RES_OPTDATA(LOCATION_ALTITUDE_ID, res, i, res_inst, j); in location_create()
77 INIT_OBJ_RES_OPTDATA(LOCATION_RADIUS_ID, res, i, res_inst, j); in location_create()
78 INIT_OBJ_RES_OPTDATA(LOCATION_VELOCITY_ID, res, i, res_inst, j); in location_create()
79 INIT_OBJ_RES_DATA(LOCATION_TIMESTAMP_ID, res, i, res_inst, j, in location_create()
81 INIT_OBJ_RES_OPTDATA(LOCATION_SPEED_ID, res, i, res_inst, j); in location_create()
Ducifi_battery.c3 * Copyright (c) 2018-2019 Foundries.io
6 * SPDX-License-Identifier: Apache-2.0
11 * https://raw.githubusercontent.com/OpenMobileAlliance/lwm2m-registry/prod/3411.xml
79 return -ENOENT; in supply_loss_counter_reset_cb()
84 int index, i = 0, j = 0; in battery_create() local
89 LOG_ERR("Can not create instance - " in battery_create()
103 LOG_ERR("Can not create instance - no more room: %u", obj_inst_id); in battery_create()
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()
[all …]
Dipso_accelerometer.c4 * SPDX-License-Identifier: Apache-2.0
78 int index, avail = -1, i = 0, j = 0; in accel_create() local
83 LOG_ERR("Can not create instance - " in accel_create()
95 LOG_ERR("Can not create instance - no more room: %u", in accel_create()
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()
[all …]
Dlwm2m_obj_connmon.c4 * SPDX-License-Identifier: Apache-2.0
87 #define RESOURCE_INSTANCE_COUNT (CONNMON_MAX_ID - 4 + \
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()
[all …]
Dlwm2m_obj_device.c3 * Copyright (c) 2018-2019 Foundries.io
6 * SPDX-License-Identifier: Apache-2.0
11 * - Configurable CURRENT_TIME notification delay
89 #define RESOURCE_INSTANCE_COUNT (DEVICE_MAX_ID - 3 - 5 + \
198 time_offset = *(uint32_t *)data - k_uptime_seconds(); in current_time_post_write_cb()
201 time_offset = *(time_t *)data - (time_t)k_uptime_seconds(); in current_time_post_write_cb()
206 return -EINVAL; in current_time_post_write_cb()
227 return -ENOMEM; in lwm2m_device_add_err()
266 return -EINVAL; in lwm2m_obj_device_settings_set()
293 return -ENOENT; in lwm2m_obj_device_settings_set()
[all …]
/Zephyr-latest/tests/bluetooth/audio/cap_commander/uut/
Dmicp.c1 /* csip.c - CAP Commander specific MICP mocks */
6 * SPDX-License-Identifier: Apache-2.0
31 *conn = mic_ctlr->conn; in bt_micp_mic_ctlr_conn_get()
38 if (micp_cb != NULL && micp_cb->mute_written != NULL) { in bt_micp_mic_ctlr_mute()
39 micp_cb->mute_written(mic_ctlr, 0); in bt_micp_mic_ctlr_mute()
47 if (micp_cb != NULL && micp_cb->unmute_written != NULL) { in bt_micp_mic_ctlr_unmute()
48 micp_cb->unmute_written(mic_ctlr, 0); in bt_micp_mic_ctlr_unmute()
58 for (size_t j = 0U; j < ARRAY_SIZE(mic_ctlrs[i].aics); j++) { in bt_micp_mic_ctlr_discover() local
59 const int err = bt_aics_discover(conn, mic_ctlrs[i].aics[j], NULL); in bt_micp_mic_ctlr_discover()
73 return -ENOMEM; in bt_micp_mic_ctlr_discover()
[all …]
Dvcp.c1 /* csip.c - CAP Commander specific VCP mocks */
6 * SPDX-License-Identifier: Apache-2.0
32 *conn = vol_ctlr->conn; in bt_vcp_vol_ctlr_conn_get()
39 if (vcp_cb != NULL && vcp_cb->vol_set != NULL) { in bt_vcp_vol_ctlr_set_vol()
40 vcp_cb->vol_set(vol_ctlr, 0); in bt_vcp_vol_ctlr_set_vol()
48 if (vcp_cb != NULL && vcp_cb->mute != NULL) { in bt_vcp_vol_ctlr_mute()
49 vcp_cb->mute(vol_ctlr, 0); in bt_vcp_vol_ctlr_mute()
57 if (vcp_cb != NULL && vcp_cb->unmute != NULL) { in bt_vcp_vol_ctlr_unmute()
58 vcp_cb->unmute(vol_ctlr, 0); in bt_vcp_vol_ctlr_unmute()
68 for (size_t j = 0U; j < ARRAY_SIZE(vol_ctlrs[i].vocs); j++) { in bt_vcp_vol_ctlr_discover() local
[all …]
/Zephyr-latest/lib/crc/
Dcrc4_sw.c4 * SPDX-License-Identifier: Apache-2.0
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()
48 seed = (lookup[index >> 1] >> (1 - (index & 1)) * 4) & 0xf; in crc4_ti()
Dcrc16_sw.c4 * SPDX-License-Identifier: Apache-2.0
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()
54 for (; len > 0; len--) { in crc16_ccitt()
68 for (; len > 0; len--) { in crc16_itu_t()
/Zephyr-latest/tests/net/lib/lwm2m/lwm2m_registry/src/
Dtest_obj.c4 * SPDX-License-Identifier: Apache-2.0
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()
[all …]
/Zephyr-latest/samples/shields/x_nucleo_iks02a1/microphone/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
55 printk("%s: device not ready.\n", mic_dev->name); in main()
88 printk("-- start\n"); in main()
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()
98 printk("-- end\n"); 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()
[all …]
/Zephyr-latest/subsys/bluetooth/host/
Daes_ccm.c5 * SPDX-License-Identifier: Apache-2.0
40 /* b field is assumed to have the nonce already present in bytes 1-13 */
45 int i, j, err; in ccm_calculate_X0() local
48 b[0] = (((mic_size - 2) / 2) << 3) | ((!!aad_len) << 6) | 0x01; in ccm_calculate_X0()
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()
73 aad_len -= 16; 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()
[all …]
/Zephyr-latest/subsys/pm/
Dpm_stats.c5 * SPDX-License-Identifier: Apache-2.0
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()
56 time_start[_current_cpu->id] = k_cycle_get_32(); in pm_stats_start()
61 time_stop[_current_cpu->id] = k_cycle_get_32(); in pm_stats_stop()
66 uint8_t cpu = _current_cpu->id; in pm_stats_update()
67 uint32_t time_total = time_stop[cpu] - time_start[cpu]; in pm_stats_update()
/Zephyr-latest/tests/arch/xtensa/save_restore_hifi/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
19 uint32_t j; in thread_entry() local
24 if (index < (NUM_THREADS - 1)) { in thread_entry()
49 for (j = 0; j < sizeof(value_regs); j++) { in thread_entry()
50 zassert_equal(value_regs[j], init_regs[j], in thread_entry()
52 init_regs[j], value_regs[j]); in thread_entry()
69 priority - 1, 0, K_FOREVER); in ZTEST()
/Zephyr-latest/tests/subsys/fs/fcb/src/
Dfcb_test_append.c2 * Copyright (c) 2017-2023 Nordic Semiconductor ASA
5 * SPDX-License-Identifier: Apache-2.0
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()
25 rc = flash_area_write(_fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), in test_fcb_append()
Dfcb_test_crc_disabled_after_enabled.c4 * SPDX-License-Identifier: Apache-2.0
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-latest/subsys/pm/policy/
Dpolicy_device_lock.c5 * SPDX-License-Identifier: Apache-2.0
95 for (size_t j = 0; j < _devices_constraints[i].pm_constraints_size; j++) { in pm_policy_device_power_lock_get() local
97 _devices_constraints[i].constraints[j].state, in pm_policy_device_power_lock_get()
98 _devices_constraints[i].constraints[j].substate_id); in pm_policy_device_power_lock_get()
111 for (size_t j = 0; j < _devices_constraints[i].pm_constraints_size; j++) { in pm_policy_device_power_lock_put() local
113 _devices_constraints[i].constraints[j].state, in pm_policy_device_power_lock_put()
114 _devices_constraints[i].constraints[j].substate_id); in pm_policy_device_power_lock_put()
/Zephyr-latest/samples/bluetooth/channel_sounding/src/
Ddistance_estimation.c4 * SPDX-License-Identifier: Apache-2.0
46 *z_out_real = z_a_real * z_b_real - z_a_imag * z_b_imag; in calc_complex_product()
62 y_mean += (y_values[i] - y_mean) / (i + 1); in linear_regression()
63 x_mean += (x_values[i] - x_mean) / (i + 1); in linear_regression()
70 b_est_upper += (x_values[i] - x_mean) * (y_values[i] - y_mean); in linear_regression()
71 b_est_lower += (x_values[i] - x_mean) * (x_values[i] - x_mean); in linear_regression()
82 for (uint16_t i = 0; i < len - 1; i++) { in bubblesort_2()
84 for (uint16_t j = 0; j < len - i - 1; j++) { in bubblesort_2() local
85 if (array1[j] > array1[j + 1]) { in bubblesort_2()
86 temp = array1[j]; in bubblesort_2()
[all …]
/Zephyr-latest/tests/kernel/ipi_optimize/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
16 #define NUM_THREADS (CONFIG_MP_MAX_NUM_CPUS - 1)
40 ipi_count[_current_cpu->id]++; in z_trace_sched_ipi()
68 id = _current_cpu->id; in busy_thread_entry()
141 id = _current_cpu->id; in busy_threads_create()
174 unsigned int j; in ZTEST() local
178 id = busy_threads_create(priority - 1); in ZTEST()
187 for (j = 0; j < CONFIG_MP_MAX_NUM_CPUS; j++) { in ZTEST()
188 if (id == j) { in ZTEST()
189 zassert_true(set[j] == 0, in ZTEST()
[all …]
/Zephyr-latest/samples/drivers/memc/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
33 uint32_t i, j; in dump_memory() local
35 for (i = 0, j = 0; j < (size / 16); i += 16, j++) { in dump_memory()
62 uint32_t i, j; in main() local
71 for (i = 0, j = 0; j < (MEMC_SIZE / BUF_SIZE); i += BUF_SIZE, j++) { in main()
79 for (i = 0, j = 0; j < (MEMC_SIZE / BUF_SIZE); i += BUF_SIZE, j++) { in main()
83 printk("Error: read data differs in range [0x%x- 0x%x]\n", in main()
84 i, i + (BUF_SIZE - 1)); in main()
89 printk("Check (%i/%i) passed!\n", j, (MEMC_SIZE / BUF_SIZE) - 1); in main()

12345678910>>...27