Lines Matching refs:path_size
26 void bt_settings_encode_key(char *path, size_t path_size, const char *subsys, in bt_settings_encode_key() argument
30 snprintk(path, path_size, in bt_settings_encode_key()
36 snprintk(path, path_size, in bt_settings_encode_key()
46 void bt_settings_encode_key(char *path, size_t path_size, const char *subsys, in bt_settings_encode_key() argument
52 if (len < path_size) { in bt_settings_encode_key()
57 strncpy(&path[len], subsys, path_size - len); in bt_settings_encode_key()
59 if (len < path_size) { in bt_settings_encode_key()
64 for (int8_t i = 5; i >= 0 && len < path_size; i--) { in bt_settings_encode_key()
66 path_size - len); in bt_settings_encode_key()
69 if (len < path_size) { in bt_settings_encode_key()
77 if (key && len < path_size) { in bt_settings_encode_key()
80 strncpy(&path[len], key, path_size - len); in bt_settings_encode_key()
84 if (len >= path_size) { in bt_settings_encode_key()
86 path[path_size - 1] = '\0'; in bt_settings_encode_key()
88 } else if (path_size > 0) { in bt_settings_encode_key()