Home
last modified time | relevance | path

Searched refs:read_cb (Results 1 – 25 of 66) sorted by relevance

123

/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/
Dstorage.c116 settings_read_cb read_cb, void *cb_arg) in ps_set() argument
126 len = read_cb(cb_arg, &reset_counter, in ps_set()
131 len = read_cb(cb_arg, &ctl->tt, sizeof(ctl->tt)); in ps_set()
135 len = read_cb(cb_arg, &ctl->onpowerup, in ps_set()
140 len = read_cb(cb_arg, &ctl->light->def, in ps_set()
145 len = read_cb(cb_arg, &ctl->temp->def, in ps_set()
150 len = read_cb(cb_arg, &ctl->duv->def, in ps_set()
155 len = read_cb(cb_arg, &ctl->light->last, in ps_set()
160 len = read_cb(cb_arg, &ctl->light->target, in ps_set()
165 len = read_cb(cb_arg, &ctl->temp->target, in ps_set()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dll_settings.c45 settings_read_cb read_cb, void *store) in ctlr_set() argument
55 len = read_cb(store, &company_id, sizeof(company_id)); in ctlr_set()
65 len = read_cb(store, &subversion, sizeof(subversion)); in ctlr_set()
78 len = read_cb(store, &smi_tx, sizeof(smi_tx)); in ctlr_set()
/Zephyr-latest/subsys/bluetooth/services/
Ddis.c271 static void dis_update_udi_value(const char *new, char *old, settings_read_cb read_cb, in dis_update_udi_value() argument
294 int16_t len = read_cb((void *)new, (void *)old, CONFIG_BT_DIS_STR_MAX); in dis_update_udi_value()
306 static int dis_set(const char *name, size_t len_rd, settings_read_cb read_cb, void *store) in dis_set() argument
314 len = read_cb(store, &dis_manuf, sizeof(dis_manuf) - 1); in dis_set()
325 len = read_cb(store, &dis_model, sizeof(dis_model) - 1); in dis_set()
337 len = read_cb(store, &dis_serial_number, sizeof(dis_serial_number) - 1); in dis_set()
350 len = read_cb(store, &dis_fw_rev, sizeof(dis_fw_rev) - 1); in dis_set()
363 len = read_cb(store, &dis_hw_rev, sizeof(dis_hw_rev) - 1); in dis_set()
376 len = read_cb(store, &dis_sw_rev, sizeof(dis_sw_rev) - 1); in dis_set()
389 dis_update_udi_value(store, BT_DIS_UDI_LABEL_STR_REF, read_cb, "label"); in dis_set()
[all …]
/Zephyr-latest/samples/subsys/settings/src/
Dmain.c37 int alpha_handle_set(const char *name, size_t len, settings_read_cb read_cb,
43 int beta_handle_set(const char *name, size_t len, settings_read_cb read_cb,
64 int alpha_handle_set(const char *name, size_t len, settings_read_cb read_cb, in alpha_handle_set() argument
75 rc = read_cb(cb_arg, &angle_val, sizeof(angle_val)); in alpha_handle_set()
90 rc = read_cb(cb_arg, &length_val, sizeof(length_val)); in alpha_handle_set()
96 rc = read_cb(cb_arg, &length_1_val, in alpha_handle_set()
103 rc = read_cb(cb_arg, &length_2_val, in alpha_handle_set()
115 int beta_handle_set(const char *name, size_t len, settings_read_cb read_cb, in beta_handle_set() argument
126 rc = read_cb(cb_arg, &voltage_val, sizeof(voltage_val)); in beta_handle_set()
137 rc = read_cb(cb_arg, source_name_val, in beta_handle_set()
[all …]
/Zephyr-latest/tests/subsys/settings/nvs/src/
Dsettings_test_nvs.c23 int c1_handle_set(const char *name, size_t len, settings_read_cb read_cb,
60 int c1_handle_set(const char *name, size_t len, settings_read_cb read_cb, in c1_handle_set() argument
69 rc = read_cb(cb_arg, &val8, sizeof(val8)); in c1_handle_set()
75 rc = read_cb(cb_arg, &val64, sizeof(val64)); in c1_handle_set()
84 rc = read_cb(cb_arg, &val8_un, sizeof(val8_un)); in c1_handle_set()
/Zephyr-latest/subsys/bluetooth/mesh/
Dsettings.h31 static int pre_##_set(const char *name, size_t len_rd, settings_read_cb read_cb, \
37 return _set(name, len_rd, read_cb, cb_arg); \
56 int bt_mesh_settings_set(settings_read_cb read_cb, void *cb_arg,
Dsar_cfg_srv.c179 size_t len_rd, settings_read_cb read_cb, in sar_cfg_srv_settings_set() argument
183 return bt_mesh_settings_set(read_cb, cb_data, &bt_mesh.sar_rx, in sar_cfg_srv_settings_set()
188 return bt_mesh_settings_set(read_cb, cb_data, &bt_mesh.sar_tx, in sar_cfg_srv_settings_set()
Dcdb.c178 settings_read_cb read_cb, void *cb_arg) in cdb_net_set() argument
188 err = bt_mesh_settings_set(read_cb, cb_arg, &net, sizeof(net)); in cdb_net_set()
191 err = bt_mesh_settings_set(read_cb, cb_arg, &net, sizeof(net.iv)); in cdb_net_set()
214 settings_read_cb read_cb, void *cb_arg) in cdb_node_set() argument
241 err = bt_mesh_settings_set(read_cb, cb_arg, &val, sizeof(val)); in cdb_node_set()
276 settings_read_cb read_cb, void *cb_arg) in cdb_subnet_set() argument
304 err = bt_mesh_settings_set(read_cb, cb_arg, &key, sizeof(key)); in cdb_subnet_set()
342 settings_read_cb read_cb, void *cb_arg) in cdb_app_key_set() argument
369 err = bt_mesh_settings_set(read_cb, cb_arg, &key, sizeof(key)); in cdb_app_key_set()
400 settings_read_cb read_cb, void *cb_arg) in cdb_set() argument
[all …]
Dod_priv_proxy_srv.c119 size_t len_rd, settings_read_cb read_cb, void *cb_data) in od_priv_proxy_srv_settings_set() argument
128 err = bt_mesh_settings_set(read_cb, cb_data, &on_demand_state, sizeof(uint8_t)); in od_priv_proxy_srv_settings_set()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/settings_mgmt/src/
Dsettings.c20 static int val_handle_set(const char *name, size_t len, settings_read_cb read_cb, void *cb_arg);
28 static int val_handle_set(const char *name, size_t len, settings_read_cb read_cb, void *cb_arg) in val_handle_set() argument
40 rc = read_cb(cb_arg, val_aa, sizeof(val_aa)); in val_handle_set()
48 rc = read_cb(cb_arg, &val_bb, sizeof(val_bb)); in val_handle_set()
/Zephyr-latest/tests/subsys/settings/fcb/src/
Dsettings_test_fcb.c30 int c1_handle_set(const char *name, size_t len, settings_read_cb read_cb,
37 int c2_handle_set(const char *name, size_t len, settings_read_cb read_cb,
43 int c3_handle_set(const char *name, size_t len, settings_read_cb read_cb,
96 int c1_handle_set(const char *name, size_t len, settings_read_cb read_cb, in c1_handle_set() argument
105 rc = read_cb(cb_arg, &val8, sizeof(val8)); in c1_handle_set()
111 rc = read_cb(cb_arg, &val64, sizeof(val64)); in c1_handle_set()
120 rc = read_cb(cb_arg, &val8_un, sizeof(val8_un)); in c1_handle_set()
263 int c2_handle_set(const char *name, size_t len, settings_read_cb read_cb, in c2_handle_set() argument
281 rc = read_cb(cb_arg, valptr, sizeof(val_string[0])); in c2_handle_set()
319 int c3_handle_set(const char *name, size_t len, settings_read_cb read_cb, in c3_handle_set() argument
[all …]
Dsettings_test_compress_deleted.c31 int c4_handle_set(const char *name, size_t len, settings_read_cb read_cb,
42 int c4_handle_set(const char *name, size_t len, settings_read_cb read_cb, in c4_handle_set() argument
/Zephyr-latest/modules/openthread/platform/
Dsettings.c39 settings_read_cb read_cb, void *cb_arg, in ot_setting_delete_cb() argument
48 ARG_UNUSED(read_cb); in ot_setting_delete_cb()
117 settings_read_cb read_cb, void *cb_arg, in ot_setting_exists_cb() argument
123 ARG_UNUSED(read_cb); in ot_setting_exists_cb()
161 settings_read_cb read_cb, void *cb_arg, in ot_setting_read_cb() argument
168 ARG_UNUSED(read_cb); in ot_setting_read_cb()
186 ret = read_cb(cb_arg, ctx->value, len); in ot_setting_read_cb()
/Zephyr-latest/subsys/net/lib/wifi_credentials/
Dwifi_credentials_backend_settings.c33 settings_read_cb read_cb, void *cb_arg, void *param) in zephyr_settings_backend_load_val_cb() argument
48 size_t length_read = read_cb(cb_arg, arg->buf, arg->buf_len); in zephyr_settings_backend_load_val_cb()
63 settings_read_cb read_cb, void *cb_arg, void *param) in zephyr_settings_backend_load_key_cb() argument
86 size_t length_read = read_cb(cb_arg, buf, ARRAY_SIZE(buf)); in zephyr_settings_backend_load_key_cb()
/Zephyr-latest/include/zephyr/settings/
Dsettings.h88 int (*h_set)(const char *key, size_t len, settings_read_cb read_cb,
157 int (*h_set)(const char *key, size_t len, settings_read_cb read_cb,
299 settings_read_cb read_cb,
540 settings_read_cb read_cb,
/Zephyr-latest/tests/subsys/settings/file/src/
Dsettings_test_file.c23 int c1_handle_set(const char *name, size_t len, settings_read_cb read_cb,
67 int c1_handle_set(const char *name, size_t len, settings_read_cb read_cb, in c1_handle_set() argument
79 rc = read_cb(cb_arg, &val8, sizeof(val8)); in c1_handle_set()
88 rc = read_cb(cb_arg, &val16, sizeof(val16)); in c1_handle_set()
97 rc = read_cb(cb_arg, &val64, sizeof(val64)); in c1_handle_set()
/Zephyr-latest/subsys/lorawan/nvm/
Dlorawan_nvm_settings.c91 settings_read_cb read_cb, void *cb_arg) in load_setting() argument
105 if (read_cb(cb_arg, tgt, len) != len) { in load_setting()
115 settings_read_cb read_cb, in on_setting_loaded() argument
129 descr->size, key, len, read_cb, cb_arg); in on_setting_loaded()
/Zephyr-latest/tests/subsys/settings/functional/src/
Dsettings_basic_test.c180 int val1_set(const char *key, size_t len, settings_read_cb read_cb, in val1_set() argument
197 int val2_set(const char *key, size_t len, settings_read_cb read_cb, in val2_set() argument
214 int val3_set(const char *key, size_t len, settings_read_cb read_cb, in val3_set() argument
360 settings_read_cb read_cb, void *cb_arg) in val123_set() argument
367 rc = read_cb(cb_arg, &val, sizeof(val)); in val123_set()
402 settings_read_cb read_cb, in direct_loader() argument
416 rc = read_cb(cb_arg, &val, sizeof(val)); in direct_loader()
498 settings_read_cb read_cb, in filtered_loader() argument
519 rc = read_cb(cb_arg, buf, len); in filtered_loader()
539 settings_read_cb read_cb, in direct_filtered_loader() argument
[all …]
/Zephyr-latest/subsys/settings/src/
Dsettings_shell.c22 settings_read_cb read_cb, in settings_list_callback() argument
27 ARG_UNUSED(read_cb); in settings_list_callback()
72 settings_read_cb read_cb, in settings_read_callback() argument
86 num_read_bytes = read_cb(cb_arg, buffer, num_read_bytes); in settings_read_callback()
Dsettings_line.c18 int (*read_cb)(void *ctx, off_t off, char *buf, size_t *len); member
195 rc = settings_io_cb.read_cb(cb_arg, off, temp_buf, &read_size); in settings_line_raw_read_until()
285 rc = settings_io_cb.read_cb(src_ctx, src_off, buf, &chunk_size); in settings_line_entry_copy()
311 void settings_line_io_init(int (*read_cb)(void *ctx, off_t off, char *buf, in settings_line_io_init()
318 settings_io_cb.read_cb = read_cb; in settings_line_io_init()
Dsettings.c202 settings_read_cb read_cb, in settings_call_set_handler() argument
215 rc = load_arg->cb(name_key, len, read_cb, read_cb_arg, in settings_call_set_handler()
225 rc = ch->h_set(name_key, len, read_cb, read_cb_arg); in settings_call_set_handler()
/Zephyr-latest/modules/canopennode/
Dcanopen_storage.c126 settings_read_cb read_cb, void *cb_arg) in canopen_settings_set() argument
137 len = read_cb(cb_arg, &eeprom, sizeof(eeprom)); in canopen_settings_set()
160 len = read_cb(cb_arg, &rom, sizeof(rom)); in canopen_settings_set()
/Zephyr-latest/drivers/input/
Dinput_analog_axis_settings.c35 settings_read_cb read_cb, void *cb_arg) in analog_axis_calibration_load() argument
60 len = read_cb(cb_arg, cal, sizeof(cal)); in analog_axis_calibration_load()
/Zephyr-latest/subsys/retention/
Dblinfo_mcuboot.c81 static int blinfo_handle_set(const char *name, size_t len, settings_read_cb read_cb, void *cb_arg);
116 static int blinfo_handle_set(const char *name, size_t len, settings_read_cb read_cb, void *cb_arg) in blinfo_handle_set() argument
/Zephyr-latest/subsys/secure_storage/src/its/store/
Dsettings.c70 static int load_direct_setting(const char *key, size_t len, settings_read_cb read_cb, in load_direct_setting() argument
76 load_params->ret = read_cb(cb_arg, load_params->data, MIN(load_params->data_size, len)); in load_direct_setting()

123