/Zephyr-latest/tests/misc/iterable_sections/src/ |
D | main.c | 60 int out = 0; in ZTEST() local 63 out = (out << 8) | t->i; in ZTEST() 67 zassert_equal(out, RAM_EXPECT, "Check value incorrect (got: 0x%08x)", out); in ZTEST() 78 out = 0; in ZTEST() 80 out = (out << 8) | t->i; in ZTEST() 83 zassert_equal(out, RAM_EXPECT, "Check value incorrect (got: 0x%08x)", out); in ZTEST() 85 out = 0; in ZTEST() 87 out = (out << 8) | t->i; in ZTEST() 90 zassert_equal(out, RAM_EXPECT, "Check value incorrect (got: 0x%x)", out); in ZTEST() 92 out = 0; in ZTEST() [all …]
|
/Zephyr-latest/drivers/sensor/tdk/icm42688/ |
D | icm42688.h | 30 static inline void icm42688_accel_reg_to_fs(uint8_t fs, struct sensor_value *out) in icm42688_accel_reg_to_fs() argument 34 sensor_g_to_ms2(16, out); in icm42688_accel_reg_to_fs() 37 sensor_g_to_ms2(8, out); in icm42688_accel_reg_to_fs() 40 sensor_g_to_ms2(4, out); in icm42688_accel_reg_to_fs() 43 sensor_g_to_ms2(2, out); in icm42688_accel_reg_to_fs() 69 static inline void icm42688_gyro_reg_to_fs(uint8_t fs, struct sensor_value *out) in icm42688_gyro_reg_to_fs() argument 73 sensor_degrees_to_rad(2000, out); in icm42688_gyro_reg_to_fs() 76 sensor_degrees_to_rad(1000, out); in icm42688_gyro_reg_to_fs() 79 sensor_degrees_to_rad(500, out); in icm42688_gyro_reg_to_fs() 82 sensor_degrees_to_rad(250, out); in icm42688_gyro_reg_to_fs() [all …]
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_object.h | 488 struct lwm2m_output_context out; member 533 int (*put_begin)(struct lwm2m_output_context *out, 535 int (*put_end)(struct lwm2m_output_context *out, 537 int (*put_begin_oi)(struct lwm2m_output_context *out, 539 int (*put_end_oi)(struct lwm2m_output_context *out, 541 int (*put_begin_r)(struct lwm2m_output_context *out, 543 int (*put_end_r)(struct lwm2m_output_context *out, 545 int (*put_begin_ri)(struct lwm2m_output_context *out, 547 int (*put_end_ri)(struct lwm2m_output_context *out, 549 int (*put_data_timestamp)(struct lwm2m_output_context *out, [all …]
|
D | lwm2m_rw_link_format.c | 44 static int put_begin(struct lwm2m_output_context *out, in put_begin() argument 53 fd = engine_get_out_user_data(out); in put_begin() 77 ret = buf_append(CPKT_BUF_WRITE(out->out_cpkt), init_string, in put_begin() 88 static int put_corelink_separator(struct lwm2m_output_context *out) in put_corelink_separator() argument 93 ret = buf_append(CPKT_BUF_WRITE(out->out_cpkt), &comma, sizeof(comma)); in put_corelink_separator() 101 static int put_corelink_version(struct lwm2m_output_context *out, in put_corelink_version() argument 113 ret = buf_append(CPKT_BUF_WRITE(out->out_cpkt), buf, len); in put_corelink_version() 121 static int put_corelink_dimension(struct lwm2m_output_context *out, in put_corelink_dimension() argument 140 ret = buf_append(CPKT_BUF_WRITE(out->out_cpkt), buf, len); in put_corelink_dimension() 149 static int put_attribute(struct lwm2m_output_context *out, in put_attribute() argument [all …]
|
D | lwm2m_rw_cbor.c | 37 static int put_time(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, time_t value) in put_time() argument 69 ZCBOR_STATE_E(states, 0, CPKT_BUF_W_PTR(out->out_cpkt), CPKT_BUF_W_SIZE(out->out_cpkt), 1); in put_time() 79 tag_sz = CPKT_CBOR_W_SZ(states[0].payload, out->out_cpkt); in put_time() 81 out->out_cpkt->offset += tag_sz; in put_time() 89 str_sz = CPKT_CBOR_W_SZ(states[0].payload, out->out_cpkt); in put_time() 91 out->out_cpkt->offset += str_sz; in put_time() 96 static int put_s64(struct lwm2m_output_context *out, in put_s64() argument 102 ZCBOR_STATE_E(states, 0, CPKT_BUF_W_PTR(out->out_cpkt), CPKT_BUF_W_SIZE(out->out_cpkt), 1); in put_s64() 107 payload_len = CPKT_CBOR_W_SZ(states[0].payload, out->out_cpkt); in put_s64() 108 out->out_cpkt->offset += payload_len; in put_s64() [all …]
|
D | lwm2m_rw_json.c | 181 struct lwm2m_output_context *out; member 246 static int json_add_separator(struct lwm2m_output_context *out, struct json_out_formatter_data *fd) in json_add_separator() argument 254 len = buf_append(CPKT_BUF_WRITE(out->out_cpkt), &separator, sizeof(separator)); in json_add_separator() 268 static int json_float_object_write(struct lwm2m_output_context *out, in json_float_object_write() argument 277 len = json_add_separator(out, fd); in json_float_object_write() 297 CPKT_BUF_W_REGION(out->out_cpkt)); in json_float_object_write() 303 out->out_cpkt->offset += len; in json_float_object_write() 308 static int json_string_object_write(struct lwm2m_output_context *out, in json_string_object_write() argument 317 len = json_add_separator(out, fd); in json_string_object_write() 336 CPKT_BUF_W_REGION(out->out_cpkt)); in json_string_object_write() [all …]
|
D | lwm2m_rw_oma_tlv.c | 123 static int oma_tlv_put_u8(struct lwm2m_output_context *out, in oma_tlv_put_u8() argument 130 fd = engine_get_out_user_data(out); in oma_tlv_put_u8() 135 ret = buf_insert(CPKT_BUF_WRITE(out->out_cpkt), in oma_tlv_put_u8() 143 ret = buf_append(CPKT_BUF_WRITE(out->out_cpkt), &value, 1); in oma_tlv_put_u8() 153 struct lwm2m_output_context *out, uint8_t *value, in oma_tlv_put() argument 169 ret = oma_tlv_put_u8(out, tmp, insert); in oma_tlv_put() 178 ret = oma_tlv_put_u8(out, (tlv->id >> 8) & 0xff, insert); in oma_tlv_put() 186 ret = oma_tlv_put_u8(out, tlv->id & 0xff, insert); in oma_tlv_put() 195 ret = oma_tlv_put_u8(out, in oma_tlv_put() 208 ret = buf_append(CPKT_BUF_WRITE(out->out_cpkt), in oma_tlv_put() [all …]
|
D | lwm2m_rw_plain_text.c | 79 int plain_text_put_format(struct lwm2m_output_context *out, const char *format, in plain_text_put_format() argument 92 ret = buf_append(CPKT_BUF_WRITE(out->out_cpkt), pt_buffer, n); in plain_text_put_format() 100 static int put_s32(struct lwm2m_output_context *out, in put_s32() argument 103 return plain_text_put_format(out, "%d", value); in put_s32() 106 static int put_s8(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in put_s8() argument 109 return plain_text_put_format(out, "%d", value); in put_s8() 112 static int put_s16(struct lwm2m_output_context *out, in put_s16() argument 115 return plain_text_put_format(out, "%d", value); in put_s16() 118 static int put_s64(struct lwm2m_output_context *out, in put_s64() argument 121 return plain_text_put_format(out, "%lld", value); in put_s64() [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/ |
D | lsm6dsv16x_decoder.c | 319 struct sensor_three_axis_data *out = data_out; in lsm6dsv16x_decode_fifo() local 335 out->readings[count].timestamp_delta = in lsm6dsv16x_decode_fifo() 342 out->shift = accel_range[header->accel_fs]; in lsm6dsv16x_decode_fifo() 344 out->readings[count].x = Q31_SHIFT_MICROVAL(scale * x, out->shift); in lsm6dsv16x_decode_fifo() 345 out->readings[count].y = Q31_SHIFT_MICROVAL(scale * y, out->shift); in lsm6dsv16x_decode_fifo() 346 out->readings[count].z = Q31_SHIFT_MICROVAL(scale * z, out->shift); in lsm6dsv16x_decode_fifo() 350 struct sensor_three_axis_data *out = data_out; in lsm6dsv16x_decode_fifo() local 366 out->readings[count].timestamp_delta = in lsm6dsv16x_decode_fifo() 373 out->shift = gyro_range[header->gyro_fs]; in lsm6dsv16x_decode_fifo() 375 out->readings[count].x = Q31_SHIFT_MICROVAL(scale * x, out->shift); in lsm6dsv16x_decode_fifo() [all …]
|
/Zephyr-latest/drivers/sensor/memsic/mmc56x3/ |
D | mmc56x3_decoder.c | 80 struct sensor_q31_data *out = data_out; in mmc56x3_decoder_decode() local 82 out->header.base_timestamp_ns = edata->header.timestamp; in mmc56x3_decoder_decode() 83 out->header.reading_count = 1; in mmc56x3_decoder_decode() 84 out->readings[0].temperature = MMC56X3_TEMP_CONV_Q7_24_BASE + in mmc56x3_decoder_decode() 86 out->shift = MMC56X3_TEMP_SHIFT; in mmc56x3_decoder_decode() 93 struct sensor_q31_data *out = data_out; in mmc56x3_decoder_decode() local 95 out->header.base_timestamp_ns = edata->header.timestamp; in mmc56x3_decoder_decode() 96 out->header.reading_count = 1; in mmc56x3_decoder_decode() 97 out->readings[0].value = data->magn_x * MMC56X3_MAGN_CONV_Q5_26_20B; in mmc56x3_decoder_decode() 98 out->shift = MMC56X3_MAGN_SHIFT; in mmc56x3_decoder_decode() [all …]
|
/Zephyr-latest/modules/hostap/src/ |
D | supp_api.c | 180 goto out; in wait_for_disconnect_complete() 192 out: in wait_for_disconnect_complete() 208 goto out; in supp_shell_connect_status() 214 goto out; in supp_shell_connect_status() 221 goto out; in supp_shell_connect_status() 229 goto out; in supp_shell_connect_status() 238 out: in supp_shell_connect_status() 452 goto out; in supplicant_add_enterprise_creds() 458 out: in supplicant_add_enterprise_creds() 534 goto out; in process_cipher_config() [all …]
|
/Zephyr-latest/tests/crypto/tinycrypt/src/ |
D | ctr_mode.c | 96 uint8_t out[80]; in test_ctr_sp_800_38a_encrypt_decrypt() local 103 (void)memcpy(out, ctr, sizeof(ctr)); in test_ctr_sp_800_38a_encrypt_decrypt() 106 zassert_true(tc_ctr_mode(&out[TC_AES_BLOCK_SIZE], in test_ctr_sp_800_38a_encrypt_decrypt() 111 result = check_result(1, ciphertext, sizeof(out), out, sizeof(out), 1); in test_ctr_sp_800_38a_encrypt_decrypt() 114 (void)memcpy(ctr, out, sizeof(ctr)); in test_ctr_sp_800_38a_encrypt_decrypt() 118 &out[TC_AES_BLOCK_SIZE], sizeof(decrypted), in test_ctr_sp_800_38a_encrypt_decrypt()
|
/Zephyr-latest/tests/net/ip-addr/src/ |
D | main.c | 42 char out[3]; \ 43 net_byte_to_hex(out, value, 'A', true); \ 44 zassert_false(strcmp(out, expected), \ 50 char out[3]; \ 51 net_byte_to_hex(out, value, 'a', true); \ 52 zassert_false(strcmp(out, expected), \ 78 char out[2 * LL_ADDR_STR_SIZE + 1 + 1]; \ 79 snprintk(out, sizeof(out), "%s ", \ 81 snprintk(out + LL_ADDR_STR_SIZE, \ 82 sizeof(out) - LL_ADDR_STR_SIZE, "%s", \ [all …]
|
/Zephyr-latest/drivers/pinctrl/ |
D | pinctrl_gecko.c | 42 rxpin.out = 1; in pinctrl_configure_pins() 44 rxpin.out); in pinctrl_configure_pins() 51 txpin.out = 1; in pinctrl_configure_pins() 53 txpin.out); in pinctrl_configure_pins() 59 pin_config.out = 1; in pinctrl_configure_pins() 61 pin_config.out); in pinctrl_configure_pins() 66 pin_config.out = 1; in pinctrl_configure_pins() 68 pin_config.out); in pinctrl_configure_pins() 125 config->pin_rts.out); in pinctrl_configure_pins() 129 config->pin_cts.out); in pinctrl_configure_pins() [all …]
|
/Zephyr-latest/samples/boards/nxp/adsp/number_crunching/src/ |
D | cmsis_dsp_wrapper.c | 12 void vec_sum_int16(const int16_t *in_a, const int16_t *in_b, int16_t *out, uint32_t length) in vec_sum_int16() argument 15 arm_add_q15(in_a, in_b, out, length); in vec_sum_int16() 18 void vec_power_int16(const int16_t *in, int64_t *out, int rsh, uint32_t length) in vec_power_int16() argument 21 arm_power_q15(in, length, out); in vec_power_int16() 24 void vec_power_int32(const int32_t *in, int64_t *out, int rsh, uint32_t length) in vec_power_int32() argument 27 arm_power_q31(in, length, out); in vec_power_int32() 30 void fft_real32(int32_t *in, int32_t *out, int length) in fft_real32() argument 44 arm_rfft_q31(&rFFT, in, out); in fft_real32() 48 const int32_t *in, int32_t *out, int block_size) in real_block_iir_32() argument 67 arm_biquad_cascade_df1_q31(&handle, in, out, block_size); in real_block_iir_32()
|
D | nature_dsp_wrapper.c | 20 void vec_sum_int16(const int16_t *in_a, const int16_t *in_b, int16_t *out, uint32_t length) in vec_sum_int16() argument 23 vec_add16x16(out, in_a, in_b, length); in vec_sum_int16() 26 void vec_power_int16(const int16_t *in, int64_t *out, int rsh, uint32_t length) in vec_power_int16() argument 29 out[0] = vec_power16x16(in, rsh, length); in vec_power_int16() 32 void vec_power_int32(const int32_t *in, int64_t *out, int rsh, uint32_t length) in vec_power_int32() argument 35 out[0] = vec_power32x32(in, rsh, length); in vec_power_int32() 38 void fft_real32(int32_t *in, int32_t *out, int length) in fft_real32() argument 46 fft_real32x32(out, in, rfft32_32, FFT_SCALING_OPTION); in fft_real32() 50 const int32_t *in, int32_t *out, int block_size) in real_block_iir_32() argument 70 bqriir32x32_df1(handle, NULL, out, in, block_size); in real_block_iir_32()
|
/Zephyr-latest/tests/drivers/pwm/pwm_loopback/src/ |
D | test_pwm_loopback.c | 23 void get_test_pwms(struct test_pwm *out, struct test_pwm *in) in get_test_pwms() argument 26 out->dev = DEVICE_DT_GET(PWM_LOOPBACK_OUT_CTLR); in get_test_pwms() 27 out->pwm = PWM_LOOPBACK_OUT_CHANNEL; in get_test_pwms() 28 out->flags = PWM_LOOPBACK_OUT_FLAGS; in get_test_pwms() 29 zassert_true(device_is_ready(out->dev), "pwm loopback output device is not ready"); in get_test_pwms() 42 struct test_pwm out; in test_capture() local 47 get_test_pwms(&out, &in); in test_capture() 53 err = pwm_set(out.dev, out.pwm, period, pulse, out.flags ^= in test_capture() 60 err = pwm_set(out.dev, out.pwm, PWM_USEC(period), in test_capture() 61 PWM_USEC(pulse), out.flags ^= in test_capture() [all …]
|
D | main.c | 15 struct test_pwm out; in pwm_loopback_setup() local 17 get_test_pwms(&out, &in); in pwm_loopback_setup() 19 k_object_access_grant(out.dev, k_current_get()); in pwm_loopback_setup() 28 struct test_pwm out; in pwm_loopback_after() local 33 get_test_pwms(&out, &in); in pwm_loopback_after()
|
/Zephyr-latest/drivers/sensor/asahi_kasei/akm09918c/ |
D | akm09918c_decoder.c | 43 static int akm09918c_convert_raw_to_q31(int16_t reading, q31_t *out) in akm09918c_convert_raw_to_q31() argument 49 *out = CLAMP(intermediate, INT32_MIN, INT32_MAX); in akm09918c_convert_raw_to_q31() 67 struct sensor_three_axis_data *out = data_out; in akm09918c_decoder_decode() local 69 out->header.base_timestamp_ns = edata->header.timestamp; in akm09918c_decoder_decode() 70 out->header.reading_count = 1; in akm09918c_decoder_decode() 71 out->shift = AKM09918C_SHIFT; in akm09918c_decoder_decode() 73 akm09918c_convert_raw_to_q31(edata->readings[0], &out->readings[0].x); in akm09918c_decoder_decode() 74 akm09918c_convert_raw_to_q31(edata->readings[1], &out->readings[0].y); in akm09918c_decoder_decode() 75 akm09918c_convert_raw_to_q31(edata->readings[2], &out->readings[0].z); in akm09918c_decoder_decode()
|
/Zephyr-latest/tests/drivers/comparator/shell/src/ |
D | test.c | 172 const char *out; in ZTEST() local 181 out = shell_backend_dummy_get_output(test_sh, &out_size); in ZTEST() 182 zassert_str_equal(out, "\r\n1\r\n"); in ZTEST() 189 out = shell_backend_dummy_get_output(test_sh, &out_size); in ZTEST() 190 zassert_str_equal(out, "\r\n0\r\n"); in ZTEST() 197 out = shell_backend_dummy_get_output(test_sh, &out_size); in ZTEST() 198 zassert_str_equal(out, "\r\nfailed to get output\r\n"); in ZTEST() 204 const char *out; in ZTEST() local 245 out = shell_backend_dummy_get_output(test_sh, &out_size); in ZTEST() 246 zassert_str_equal(out, "\r\nfailed to set trigger\r\n"); in ZTEST() [all …]
|
/Zephyr-latest/subsys/net/lib/prometheus/ |
D | formatter.c | 61 goto out; in prometheus_format_one_metric() 72 goto out; in prometheus_format_one_metric() 82 goto out; in prometheus_format_one_metric() 92 goto out; in prometheus_format_one_metric() 102 goto out; in prometheus_format_one_metric() 112 goto out; in prometheus_format_one_metric() 133 goto out; in prometheus_format_one_metric() 153 goto out; in prometheus_format_one_metric() 174 goto out; in prometheus_format_one_metric() 182 goto out; in prometheus_format_one_metric() [all …]
|
/Zephyr-latest/subsys/logging/backends/ |
D | log_backend_adsp_mtrace.c | 82 size_t avail, out; in mtrace_out() local 93 out = 0; in mtrace_out() 94 goto out; in mtrace_out() 98 out = MIN(avail, len); in mtrace_out() 100 if (w + out >= MTRACE_LOG_BUF_SIZE) { in mtrace_out() 102 size_t head = out - tail; in mtrace_out() 108 memcpy(data + w, str, out); in mtrace_out() 109 w += out; in mtrace_out() 114 out: in mtrace_out() 119 return out; in mtrace_out() [all …]
|
/Zephyr-latest/lib/libc/picolibc/ |
D | cbprintf.c | 11 cbprintf_cb out; member 19 (*s->out) (c, s->ctx); in cbputc() 23 int cbvprintf(cbprintf_cb out, void *ctx, const char *fp, va_list ap) in cbvprintf() argument 27 .out = out, in cbvprintf()
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | keys.h | 18 int bt_mesh_key_import(enum bt_mesh_key_type type, const uint8_t in[16], struct bt_mesh_key *out); 19 int bt_mesh_key_export(uint8_t out[16], const struct bt_mesh_key *in); 27 struct bt_mesh_key *out) in bt_mesh_key_import() argument 29 memcpy(out, in, 16); in bt_mesh_key_import() 33 static inline int bt_mesh_key_export(uint8_t out[16], const struct bt_mesh_key *in) in bt_mesh_key_export() 35 memcpy(out, in, 16); in bt_mesh_key_export()
|
/Zephyr-latest/drivers/sensor/bosch/bme280/ |
D | bme280_decoder.c | 65 struct sensor_q31_data *out = data_out; in bme280_decoder_decode() local 67 out->header.base_timestamp_ns = edata->header.timestamp; in bme280_decoder_decode() 68 out->header.reading_count = 1; in bme280_decoder_decode() 76 out->readings[0].temperature = in bme280_decoder_decode() 79 out->shift = BME280_TEMP_SHIFT; in bme280_decoder_decode() 89 out->readings[0].pressure = in bme280_decoder_decode() 92 out->shift = BME280_PRESS_SHIFT; in bme280_decoder_decode() 99 out->readings[0].humidity = edata->reading.comp_humidity; in bme280_decoder_decode() 100 out->shift = BME280_HUM_SHIFT; in bme280_decoder_decode()
|