Lines Matching refs:path
36 void bt_settings_encode_key(char *path, size_t path_size, const char *subsys, in bt_settings_encode_key() argument
40 snprintk(path, path_size, in bt_settings_encode_key()
46 snprintk(path, path_size, in bt_settings_encode_key()
53 LOG_DBG("Encoded path %s", path); in bt_settings_encode_key()
56 void bt_settings_encode_key(char *path, size_t path_size, const char *subsys, in bt_settings_encode_key() argument
66 strcpy(path, "bt/"); in bt_settings_encode_key()
67 strncpy(&path[len], subsys, path_size - len); in bt_settings_encode_key()
68 len = strlen(path); in bt_settings_encode_key()
70 path[len] = '/'; in bt_settings_encode_key()
75 len += bin2hex(&addr->a.val[i], 1, &path[len], in bt_settings_encode_key()
83 path[len] = '0' + addr->type; in bt_settings_encode_key()
88 path[len] = '/'; in bt_settings_encode_key()
90 strncpy(&path[len], key, path_size - len); in bt_settings_encode_key()
91 len += strlen(&path[len]); in bt_settings_encode_key()
96 path[path_size - 1] = '\0'; in bt_settings_encode_key()
99 *path = '\0'; in bt_settings_encode_key()
102 LOG_DBG("Encoded path %s", path); in bt_settings_encode_key()