Home
last modified time | relevance | path

Searched refs:descr (Results 1 – 14 of 14) sorted by relevance

/Zephyr-latest/subsys/lorawan/nvm/
Dlorawan_nvm_settings.c66 const struct lorawan_nvm_setting_descr *descr = in lorawan_nvm_save_settings() local
69 if ((nvm_notify_flag & descr->flag) == descr->flag) { in lorawan_nvm_save_settings()
70 LOG_DBG("Saving configuration %s", descr->setting_name); in lorawan_nvm_save_settings()
71 int err = settings_save_one(descr->setting_name, in lorawan_nvm_save_settings()
72 (char *)nvm + descr->offset, in lorawan_nvm_save_settings()
73 descr->size); in lorawan_nvm_save_settings()
76 descr->name, err); in lorawan_nvm_save_settings()
124 const struct lorawan_nvm_setting_descr *descr = in on_setting_loaded() local
127 if (strcmp(descr->name, key) == 0) { in on_setting_loaded()
128 err = load_setting((char *)nvm + descr->offset, in on_setting_loaded()
[all …]
/Zephyr-latest/lib/utils/
Djson.c527 const struct json_obj_descr *descr, size_t descr_len,
536 const struct json_obj_descr *descr, in decode_value() argument
540 if (!equivalent_types(value->type, descr->type)) { in decode_value()
544 switch (descr->type) { in decode_value()
546 return obj_parse(obj, descr->object.sub_descr, in decode_value()
547 descr->object.sub_descr_len, in decode_value()
550 return arr_parse(obj, descr->array.element_descr, in decode_value()
551 descr->array.n_elements, field, val); in decode_value()
603 static ptrdiff_t get_elem_size(const struct json_obj_descr *descr) in get_elem_size() argument
605 switch (descr->type) { in get_elem_size()
[all …]
/Zephyr-latest/drivers/spi/
Dspi_xec_qmspi.c251 uint32_t descr, ifm, qstatus; in qmspi_tx_dummy_clocks() local
254 descr = ifm | MCHP_QMSPI_C_TX_DIS | MCHP_QMSPI_C_XFR_UNITS_BITS in qmspi_tx_dummy_clocks()
262 descr |= (nclocks << MCHP_QMSPI_C_XFR_NUNITS_POS); in qmspi_tx_dummy_clocks()
264 descr_wr(regs, 0, descr); in qmspi_tx_dummy_clocks()
330 uint32_t descr, qshift, n, nu; in qmspi_descr_alloc() local
342 descr = (regs->CTRL & MCHP_QMSPI_C_IFM_MASK); in qmspi_descr_alloc()
344 descr |= MCHP_QMSPI_C_TX_DATA; in qmspi_descr_alloc()
346 descr |= MCHP_QMSPI_C_RX_EN; in qmspi_descr_alloc()
352 descr |= get_qunits(qshift); in qmspi_descr_alloc()
355 descr &= 0x0FFFul; in qmspi_descr_alloc()
[all …]
/Zephyr-latest/include/zephyr/data/
Djson.h602 const struct json_obj_descr *descr, size_t descr_len,
638 const struct json_obj_descr *descr, void *val);
672 int json_arr_separate_parse_object(struct json_obj *json, const struct json_obj_descr *descr,
709 ssize_t json_calc_encoded_len(const struct json_obj_descr *descr,
721 ssize_t json_calc_encoded_arr_len(const struct json_obj_descr *descr,
737 int json_obj_encode_buf(const struct json_obj_descr *descr, size_t descr_len,
752 int json_arr_encode_buf(const struct json_obj_descr *descr, const void *val,
768 int json_obj_encode(const struct json_obj_descr *descr, size_t descr_len,
784 int json_arr_encode(const struct json_obj_descr *descr, const void *val,
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_rw_json.c273 const struct json_obj_descr *descr; in json_float_object_write() local
282 descr = json_float_descr; in json_float_object_write()
290 o_len = json_calc_encoded_len(descr, descr_len, obj_payload); in json_float_object_write()
296 res = json_obj_encode_buf(descr, descr_len, obj_payload, in json_float_object_write()
313 const struct json_obj_descr *descr; in json_string_object_write() local
322 descr = json_string_descr; in json_string_object_write()
329 o_len = json_calc_encoded_len(descr, descr_len, obj_payload); in json_string_object_write()
335 res = json_obj_encode_buf(descr, descr_len, obj_payload, in json_string_object_write()
352 const struct json_obj_descr *descr; in json_boolean_object_write() local
361 descr = json_boolean_descr; in json_boolean_object_write()
[all …]
Dlwm2m_rw_senml_json.c501 const struct json_obj_descr *descr; in json_float_object_write() local
512 descr = senml_float_bn_t_descr; in json_float_object_write()
522 descr = senml_float_bn_descr; in json_float_object_write()
533 descr = senml_float_t_descr; in json_float_object_write()
542 descr = senml_float_descr; in json_float_object_write()
552 o_len = json_calc_encoded_len(descr, descr_len, obj_payload); in json_float_object_write()
558 res = json_obj_encode_buf(descr, descr_len, obj_payload, in json_float_object_write()
575 const struct json_obj_descr *descr; in json_string_object_write() local
585 descr = senml_string_bn_descr; in json_string_object_write()
593 descr = senml_string_descr; in json_string_object_write()
[all …]
/Zephyr-latest/soc/microchip/mec/mec172x/reg/
Dmec172x_qspi.h241 #define MCHP_QMSPI_C_XFR_NUNITS_GET(descr) ((uint32_t)(descr) >> 17) argument
/Zephyr-latest/tests/lib/json/src/
Dmain.c1194 const struct json_obj_descr descr[] = { in ZTEST() local
1199 ssize_t ret = json_obj_encode_buf(descr, ARRAY_SIZE(descr), in ZTEST()
1204 ret = json_obj_encode_buf(descr, ARRAY_SIZE(descr), in ZTEST()
/Zephyr-latest/soc/microchip/mec/mec15xx/
Dsoc_espi_saf_v1.h337 uint32_t descr[MCHP_SAF_QMSPI_NUM_FLASH_DESCR]; member
/Zephyr-latest/soc/microchip/mec/mec172x/
Dsoc_espi_saf_v2.h446 uint32_t descr[MCHP_SAF_QMSPI_NUM_FLASH_DESCR]; member
/Zephyr-latest/drivers/espi/
Despi_saf_mchp_xec.c413 d = fcfg->descr[i] & ~(MCHP_QMSPI_C_NEXT_DESCR_MASK); in saf_flash_cfg()
Despi_saf_mchp_xec_v2.c533 d = fcfg->descr[i] & ~(MCHP_QMSPI_C_NEXT_DESCR_MASK); in saf_flash_cfg()
/Zephyr-latest/scripts/footprint/
Dsize_report185 def print_section_info(section, descr=""): argument
/Zephyr-latest/samples/drivers/espi/src/
Dmain.c121 .descr = {MCHP_W25Q128_CM_RD_D0, MCHP_W25Q128_CM_RD_D1, MCHP_W25Q128_CM_RD_D2,