/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/ |
D | serial_util.c | 177 uint8_t raw[3]; in mcumgr_serial_tx_pkt() local 214 memcpy(raw, &u16, sizeof(u16)); in mcumgr_serial_tx_pkt() 215 raw[2] = data[0]; in mcumgr_serial_tx_pkt() 217 rc = mcumgr_serial_tx_small(raw, 3, cb); in mcumgr_serial_tx_pkt() 256 memcpy(raw, data + src_off, 3); in mcumgr_serial_tx_pkt() 257 rc = mcumgr_serial_tx_small(raw, 3, cb); in mcumgr_serial_tx_pkt() 272 raw[0] = (crc & 0xff00) >> 8; in mcumgr_serial_tx_pkt() 273 raw[1] = crc & 0x00ff; in mcumgr_serial_tx_pkt() 274 rc = mcumgr_serial_tx_small(raw, 2, cb); in mcumgr_serial_tx_pkt() 278 raw[0] = data[src_off++]; in mcumgr_serial_tx_pkt() [all …]
|
D | smp_dummy.c | 553 uint8_t raw[3]; in mcumgr_dummy_tx_frame() local 578 memcpy(raw, &u16, sizeof(u16)); in mcumgr_dummy_tx_frame() 579 raw[2] = data[0]; in mcumgr_dummy_tx_frame() 581 rc = mcumgr_dummy_tx_small(raw, 3, cb); in mcumgr_dummy_tx_frame() 601 raw[0] = (crc & 0xff00) >> 8; in mcumgr_dummy_tx_frame() 602 raw[1] = crc & 0x00ff; in mcumgr_dummy_tx_frame() 603 rc = mcumgr_dummy_tx_small(raw, 2, cb); in mcumgr_dummy_tx_frame() 611 raw[0] = data[src_off]; in mcumgr_dummy_tx_frame() 614 raw[1] = (crc & 0xff00) >> 8; in mcumgr_dummy_tx_frame() 615 raw[2] = crc & 0x00ff; in mcumgr_dummy_tx_frame() [all …]
|
/Zephyr-latest/tests/kernel/obj_core/obj_core_stats/src/ |
D | main.c | 408 struct sys_mem_blocks_info raw; in test_mem_block_raw() local 410 status = k_obj_core_stats_raw(K_OBJ_CORE(&mem_block), &raw, in test_mem_block_raw() 411 sizeof(raw)); in test_mem_block_raw() 415 zassert_equal(raw.num_blocks, expected->num_blocks, in test_mem_block_raw() 417 str, expected->num_blocks, raw.num_blocks); in test_mem_block_raw() 418 zassert_equal(raw.blk_sz_shift, expected->blk_sz_shift, in test_mem_block_raw() 420 str, expected->blk_sz_shift, raw.blk_sz_shift); in test_mem_block_raw() 422 zassert_equal(raw.used_blocks, expected->used_blocks, in test_mem_block_raw() 424 str, expected->used_blocks, raw.used_blocks); in test_mem_block_raw() 425 zassert_equal(raw.max_used_blocks, expected->max_used_blocks, in test_mem_block_raw() [all …]
|
/Zephyr-latest/tests/subsys/logging/log_cache/src/ |
D | main.c | 32 uintptr_t raw; member 37 union test_ids t0 = { .raw = id0 }; in cmp() 38 union test_ids t1 = { .raw = id1 }; in cmp() 109 cache_get(&cache, id0.raw, &buf, false, __LINE__); in ZTEST() 116 cache_get(&cache, id0.raw, &buf, true, __LINE__); in ZTEST() 120 cache_get(&cache, id1.raw, &buf, false, __LINE__); in ZTEST() 125 cache_get(&cache, id2.raw, &buf, false, __LINE__); in ZTEST() 133 cache_get(&cache, id0.raw, &buf, true, __LINE__); in ZTEST() 134 cache_get(&cache, id1.raw, &buf, true, __LINE__); in ZTEST() 135 cache_get(&cache, id2.raw, &buf, true, __LINE__); in ZTEST() [all …]
|
/Zephyr-latest/scripts/dts/python-devicetree/src/devicetree/ |
D | _private.py | 22 raw = node.props[prop_name].value 23 if len(raw) % size: 30 return [raw[i:i + size] for i in range(0, len(raw), size)]
|
D | edtlib.py | 165 raw: Any = None, require_compatible: bool = True, 198 if raw is None: 202 raw = yaml.load(f, Loader=_BindingLoader) 207 self.raw: dict = self._merge_includes(raw, self.path) 212 if "child-binding" in raw: 213 if not isinstance(raw["child-binding"], dict): 218 raw=raw["child-binding"], 229 for prop_name in self.raw.get("properties", {}).keys(): 232 for key, val in self.raw.items(): 247 return self.raw.get('description') [all …]
|
/Zephyr-latest/drivers/pcie/host/ |
D | vc.h | 30 uint32_t raw; member 41 uint32_t raw; member 55 uint32_t raw; member 86 uint32_t raw; member 105 uint32_t raw; member 117 uint32_t raw; member
|
D | vc.c | 26 regs->cap_reg_1.raw = pcie_conf_read(bdf, base + in pcie_vc_cap_lookup() 28 regs->cap_reg_2.raw = pcie_conf_read(bdf, base + in pcie_vc_cap_lookup() 30 regs->ctrl_reg.raw = pcie_conf_read(bdf, base + in pcie_vc_cap_lookup() 44 regs->cap_reg.raw = in pcie_vc_load_resources_regs() 47 regs->ctrl_reg.raw = in pcie_vc_load_resources_regs() 50 regs->status_reg.raw = in pcie_vc_load_resources_regs()
|
D | ptm.c | 30 cap.raw = pcie_conf_read(config->pcie->bdf, base + PTM_CAP_REG_OFFSET); in pcie_ptm_root_setup() 39 pcie_conf_write(config->pcie->bdf, base + PTM_CTRL_REG_OFFSET, ctrl.raw); in pcie_ptm_root_setup() 84 cap.raw = pcie_conf_read(bdf, base + PTM_CAP_REG_OFFSET); in DT_INST_FOREACH_STATUS_OKAY() 92 pcie_conf_write(bdf, base + PTM_CTRL_REG_OFFSET, ctrl.raw); in DT_INST_FOREACH_STATUS_OKAY()
|
D | ptm.h | 24 uint32_t raw; member 37 uint32_t raw; member
|
/Zephyr-latest/drivers/sensor/nxp/fxls8974/ |
D | fxls8974.c | 243 int16_t *raw; in fxls8974_sample_fetch() local 266 __ASSERT(FXLS8974_MAX_NUM_CHANNELS <= ARRAY_SIZE(data->raw), in fxls8974_sample_fetch() 269 raw = &data->raw[FXLS8974_CHANNEL_ACCEL_X]; in fxls8974_sample_fetch() 272 *raw++ = (buf[i+1] << 8) | (buf[i]); in fxls8974_sample_fetch() 275 *raw = *(buf+FXLS8974_MAX_ACCEL_BYTES); in fxls8974_sample_fetch() 283 static void fxls8974_accel_convert(struct sensor_value *val, int16_t raw, in fxls8974_accel_convert() argument 289 micro_ms2 = (raw * SENSOR_G) >> fsr; in fxls8974_accel_convert() 304 int16_t *raw; in fxls8974_get_accel_data() local 331 raw = &data->raw[FXLS8974_CHANNEL_ACCEL_X]; in fxls8974_get_accel_data() 333 fxls8974_accel_convert(val++, *raw++, fsr); in fxls8974_get_accel_data() [all …]
|
/Zephyr-latest/subsys/sd/ |
D | mmc.c | 84 static inline void mmc_decode_ext_csd(struct mmc_ext_csd *ext_csd, uint8_t *raw); 600 static inline void mmc_decode_ext_csd(struct mmc_ext_csd *ext, uint8_t *raw) in mmc_decode_ext_csd() argument 603 (raw[215U] << 24U) + (raw[214U] << 16U) + (raw[213U] << 8U) + (raw[212U] << 0U); in mmc_decode_ext_csd() 604 ext->bus_width = raw[183U]; in mmc_decode_ext_csd() 605 ext->hs_timing = raw[185U]; in mmc_decode_ext_csd() 606 ext->device_type.MMC_HS400_DDR_1200MV = ((1 << 7U) & raw[196U]); in mmc_decode_ext_csd() 607 ext->device_type.MMC_HS400_DDR_1800MV = ((1 << 6U) & raw[196U]); in mmc_decode_ext_csd() 608 ext->device_type.MMC_HS200_SDR_1200MV = ((1 << 5U) & raw[196U]); in mmc_decode_ext_csd() 609 ext->device_type.MMC_HS200_SDR_1800MV = ((1 << 4U) & raw[196U]); in mmc_decode_ext_csd() 610 ext->device_type.MMC_HS_DDR_1200MV = ((1 << 3U) & raw[196U]); in mmc_decode_ext_csd() [all …]
|
/Zephyr-latest/drivers/sensor/microchip/mcp970x/ |
D | mcp970x.c | 36 int16_t raw; member 61 int32_t raw_val = data->raw; in get() 88 LOG_DBG("%d of %d, %dmV, %dmC", data->raw, (1 << data->sequence.resolution) - 1, raw_val, in get() 122 data->sequence.buffer = &data->raw; in init() 123 data->sequence.buffer_size = sizeof(data->raw); in init()
|
/Zephyr-latest/scripts/dts/ |
D | gen_driver_kconfig_dts.py | 78 raw = yaml.load(contents, Loader=SafeLoader) 83 if raw is None or 'compatible' not in raw: 86 compat_list.append(raw['compatible'])
|
/Zephyr-latest/subsys/logging/frontends/ |
D | log_frontend_stmesp.c | 96 uint32_t raw; member 371 STM_D32(stm_esp, hdr.raw, false, false); in log_frontend_msg() 373 STM_D32(stm_esp, hdr.raw, use_timestamp, true); in log_frontend_msg() 424 STM_D32(stm_esp, dict_desc.raw, false, false); in log_frontend_msg() 426 STM_D32(stm_esp, dict_desc.raw, true, true); in log_frontend_msg() 440 early_package_cb(&dict_desc.raw, sizeof(dict_desc.raw), NULL); in log_frontend_msg() 461 early_package_cb(&dict_desc.raw, sizeof(dict_desc.raw), NULL); in early_msg_start() 476 STM_D32(stm_esp, dict_desc.raw, false, false); in msg_start() 478 STM_D32(stm_esp, dict_desc.raw, true, true); in msg_start() 497 msg_start(stm_esp, level, source, (uint32_t)package_hdr.raw, fmt); in log_frontend_simple_0() [all …]
|
/Zephyr-latest/drivers/sensor/lm35/ |
D | lm35.c | 22 uint16_t raw; member 53 int32_t mv = data->raw; in lm35_channel_get() 95 .buffer = &lm35_data_##inst.raw, \ 96 .buffer_size = sizeof(lm35_data_##inst.raw), \
|
/Zephyr-latest/drivers/sensor/voltage_divider/ |
D | voltage.c | 27 uint16_t raw; member 66 raw_val = (int16_t)data->raw; in get() 68 raw_val = data->raw; in get() 82 LOG_DBG("%d of %d, %dmV, voltage:%dmV", data->raw, in get() 171 data->sequence.buffer = &data->raw; in voltage_init() 172 data->sequence.buffer_size = sizeof(data->raw); in voltage_init()
|
/Zephyr-latest/samples/boards/nordic/battery/src/ |
D | battery.c | 72 int16_t raw; member 112 .buffer = &ddp->raw, in divider_setup() 113 .buffer_size = sizeof(ddp->raw), in divider_setup() 183 int32_t val = ddp->raw; in battery_sample() 194 ddp->raw, val, rc); in battery_sample() 197 LOG_INF("raw %u ~ %u mV\n", ddp->raw, val); in battery_sample()
|
/Zephyr-latest/drivers/sensor/st/lis2dh/ |
D | lis2dh.c | 56 uint8_t raw[sizeof(uint16_t)]; in lis2dh_sample_fetch_temp() local 58 ret = lis2dh->hw_tf->read_data(dev, cfg->temperature.dout_addr, raw, in lis2dh_sample_fetch_temp() 59 sizeof(raw)); in lis2dh_sample_fetch_temp() 72 lis2dh->temperature.val1 = (int32_t)((int8_t)raw[1]); in lis2dh_sample_fetch_temp() 77 (raw[0] >> (8 - cfg->temperature.fractional_bits)); in lis2dh_sample_fetch_temp() 142 lis2dh->sample.raw, in lis2dh_fetch_xyz() 143 sizeof(lis2dh->sample.raw)); in lis2dh_fetch_xyz() 151 (int16_t *)&lis2dh->sample.raw[1 + i]; in lis2dh_fetch_xyz() 338 uint8_t raw[6]; in lis2dh_init() local 379 (void)memset(raw, 0, sizeof(raw)); in lis2dh_init() [all …]
|
/Zephyr-latest/drivers/sensor/nxp/fxos8700/ |
D | fxos8700.c | 269 int16_t *raw; in fxos8700_sample_fetch() local 299 <= ARRAY_SIZE(data->raw), in fxos8700_sample_fetch() 302 raw = &data->raw[config->start_channel]; in fxos8700_sample_fetch() 305 *raw++ = (buffer[i] << 8) | (buffer[i+1]); in fxos8700_sample_fetch() 323 static void fxos8700_accel_convert(struct sensor_value *val, int16_t raw, in fxos8700_accel_convert() argument 340 micro_ms2 = (raw * SENSOR_G) >> frac_bits; in fxos8700_accel_convert() 350 static void fxos8700_magn_convert(struct sensor_value *val, int16_t raw) in fxos8700_magn_convert() argument 357 micro_g = raw * 1000; in fxos8700_magn_convert() 364 static void fxos8700_temp_convert(struct sensor_value *val, int8_t raw) in fxos8700_temp_convert() argument 371 micro_c = raw * 960 * 1000; in fxos8700_temp_convert() [all …]
|
/Zephyr-latest/drivers/sensor/seeed/grove/ |
D | light_sensor.c | 34 uint16_t raw; member 64 uint16_t analog_val = drv_data->raw; in gls_channel_get() 106 adc_table.buffer = &drv_data->raw; in gls_init() 107 adc_table.buffer_size = sizeof(drv_data->raw); in gls_init()
|
D | temperature_sensor.c | 32 uint16_t raw; member 72 / drv_data->raw in gts_channel_get() 108 adc_table.buffer = &drv_data->raw; in gts_init() 109 adc_table.buffer_size = sizeof(drv_data->raw); in gts_init()
|
/Zephyr-latest/drivers/sensor/current_amp/ |
D | current_amp.c | 21 int16_t raw; member 46 int32_t raw_val = data->raw; in get() 65 LOG_DBG("%d/%d, %dmV, current:%dmA", data->raw, in get() 153 data->sequence.buffer = &data->raw; in current_init() 154 data->sequence.buffer_size = sizeof(data->raw); in current_init()
|
/Zephyr-latest/drivers/sensor/st/stm32_vref/ |
D | stm32_vref.c | 29 int16_t raw; /* raw adc Sensor value */ member 67 data->raw = data->sample_buffer; in stm32_vref_sample_fetch() 93 if (data->raw == 0) { in stm32_vref_channel_get() 112 vref = (cfg->cal_mv * (*cfg->cal_addr) >> 2) / data->raw; in stm32_vref_channel_get() 114 vref = cfg->cal_mv * (*cfg->cal_addr) / data->raw; in stm32_vref_channel_get()
|
/Zephyr-latest/soc/nordic/nrf53/ |
D | sync_rtc.c | 28 uint32_t raw; member 137 channels.raw = (uint32_t)user_data; in rtc_cb() 162 channels.raw = (uint32_t)user_data; in remote_callback() 176 rtc_cb, (void *)channels.raw); in remote_callback() 251 rv = mbox_rx_init((void *)channels.raw); in sync_rtc_setup() 266 z_nrf_rtc_timer_set(channels.ch.rtc, sync_cc, rtc_cb, (void *)channels.raw); in sync_rtc_setup()
|