Home
last modified time | relevance | path

Searched refs:val_len_max (Results 1 – 8 of 8) sorted by relevance

/Zephyr-latest/tests/subsys/mgmt/mcumgr/settings_mgmt/src/
Dsettings.c23 static int val_handle_get(const char *name, char *val, int val_len_max);
72 static int val_handle_get(const char *name, char *val, int val_len_max) in val_handle_get() argument
79 val_len_max = MIN(val_len_max, sizeof(val_aa)); in val_handle_get()
80 memcpy(val, val_aa, val_len_max); in val_handle_get()
81 return val_len_max; in val_handle_get()
83 val_len_max = MIN(val_len_max, sizeof(val_bb)); in val_handle_get()
84 memcpy(val, &val_bb, val_len_max); in val_handle_get()
85 return val_len_max; in val_handle_get()
/Zephyr-latest/tests/subsys/settings/nvs/src/
Dsettings_test_nvs.c22 int c1_handle_get(const char *name, char *val, int val_len_max);
39 int c1_handle_get(const char *name, char *val, int val_len_max) in c1_handle_get() argument
46 val_len_max = MIN(val_len_max, sizeof(val8)); in c1_handle_get()
47 memcpy(val, &val8, MIN(val_len_max, sizeof(val8))); in c1_handle_get()
48 return val_len_max; in c1_handle_get()
52 val_len_max = MIN(val_len_max, sizeof(val64)); in c1_handle_get()
53 memcpy(val, &val64, MIN(val_len_max, sizeof(val64))); in c1_handle_get()
54 return val_len_max; in c1_handle_get()
/Zephyr-latest/tests/subsys/settings/file/src/
Dsettings_test_file.c22 int c1_handle_get(const char *name, char *val, int val_len_max);
41 int c1_handle_get(const char *name, char *val, int val_len_max) in c1_handle_get() argument
47 val_len_max = MIN(val_len_max, sizeof(val8)); in c1_handle_get()
48 memcpy(val, &val8, MIN(val_len_max, sizeof(val8))); in c1_handle_get()
49 return val_len_max; in c1_handle_get()
53 val_len_max = MIN(val_len_max, sizeof(val16)); in c1_handle_get()
54 memcpy(val, &val16, MIN(val_len_max, sizeof(val16))); in c1_handle_get()
55 return val_len_max; in c1_handle_get()
59 val_len_max = MIN(val_len_max, sizeof(val64)); in c1_handle_get()
60 memcpy(val, &val64, MIN(val_len_max, sizeof(val64))); in c1_handle_get()
[all …]
/Zephyr-latest/tests/subsys/settings/fcb/src/
Dsettings_test_fcb.c29 int c1_handle_get(const char *name, char *val, int val_len_max);
36 int c2_handle_get(const char *name, char *val, int val_len_max);
42 int c3_handle_get(const char *name, char *val, int val_len_max);
75 int c1_handle_get(const char *name, char *val, int val_len_max) in c1_handle_get() argument
82 val_len_max = MIN(val_len_max, sizeof(val8)); in c1_handle_get()
83 memcpy(val, &val8, MIN(val_len_max, sizeof(val8))); in c1_handle_get()
84 return val_len_max; in c1_handle_get()
88 val_len_max = MIN(val_len_max, sizeof(val64)); in c1_handle_get()
89 memcpy(val, &val64, MIN(val_len_max, sizeof(val64))); in c1_handle_get()
90 return val_len_max; in c1_handle_get()
[all …]
/Zephyr-latest/subsys/retention/
Dblinfo_mcuboot.c25 int blinfo_lookup(uint16_t key, char *val, int val_len_max) in blinfo_lookup() argument
55 if (tlv_entry.tlv_len > val_len_max) { in blinfo_lookup()
80 static int blinfo_handle_get(const char *name, char *val, int val_len_max);
89 static int blinfo_handle_get(const char *name, char *val, int val_len_max) in blinfo_handle_get() argument
113 return blinfo_lookup(index, val, val_len_max); in blinfo_handle_get()
/Zephyr-latest/include/zephyr/retention/
Dblinfo.h49 int blinfo_lookup(uint16_t key, char *val, int val_len_max);
/Zephyr-latest/samples/subsys/settings/src/
Dmain.c48 int beta_handle_get(const char *name, char *val, int val_len_max);
187 int beta_handle_get(const char *name, char *val, int val_len_max) in beta_handle_get() argument
192 val_len_max = MIN(val_len_max, strlen(source_name_val)); in beta_handle_get()
193 memcpy(val, source_name_val, val_len_max); in beta_handle_get()
194 return val_len_max; in beta_handle_get()
/Zephyr-latest/include/zephyr/settings/
Dsettings.h76 int (*h_get)(const char *key, char *val, int val_len_max);
145 int (*h_get)(const char *key, char *val, int val_len_max);