Home
last modified time | relevance | path

Searched refs:uri_len (Results 1 – 13 of 13) sorted by relevance

/Zephyr-latest/tests/bluetooth/tester/src/audio/btp/
Dbtp_tbs.h46 uint8_t uri_len; member
65 uint8_t uri_len; member
Dbtp_ccp.h39 uint8_t uri_len; member
/Zephyr-latest/subsys/bluetooth/audio/
Dtbs_internal.h189 static inline bool bt_tbs_valid_uri(const uint8_t *uri, size_t uri_len) in bt_tbs_valid_uri() argument
195 if (uri_len > CONFIG_BT_TBS_MAX_URI_LENGTH || uri_len < BT_TBS_MIN_URI_LEN) { in bt_tbs_valid_uri()
202 for (size_t i = 1; i < uri_len; i++) { in bt_tbs_valid_uri()
Dtbs.c269 static struct tbs_inst *lookup_inst_by_uri_scheme(const uint8_t *uri, uint8_t uri_len) in lookup_inst_by_uri_scheme() argument
273 if (uri_len == 0) { in lookup_inst_by_uri_scheme()
278 for (uint8_t i = 1U; i < uri_len - 1U; i++) { in lookup_inst_by_uri_scheme()
354 uint16_t uri_len) in call_alloc() argument
369 __ASSERT_NO_MSG(uri_len < sizeof(free_call->remote_uri)); in call_alloc()
378 (void)memcpy(free_call->remote_uri, uri, uri_len); in call_alloc()
379 free_call->remote_uri[uri_len] = '\0'; in call_alloc()
598 size_t uri_len = strlen(svc_insts[i].uri_scheme_list); in read_uri_scheme_list() local
600 if (read_buf.len + uri_len >= read_buf.size) { in read_uri_scheme_list()
606 net_buf_simple_add_mem(&read_buf, svc_insts[i].uri_scheme_list, uri_len); in read_uri_scheme_list()
[all …]
Dtbs_client.c211 uint8_t uri_len; in net_buf_pull_call() local
224 uri_len = item_len - sizeof(call->call_info); in net_buf_pull_call()
236 uri = net_buf_simple_pull_mem(buf, uri_len); in net_buf_pull_call()
237 if (uri_len > CONFIG_BT_TBS_MAX_URI_LENGTH) { in net_buf_pull_call()
239 call->call_info.index, uri_len, CONFIG_BT_TBS_MAX_URI_LENGTH); in net_buf_pull_call()
243 (void)memcpy(call->remote_uri, uri, uri_len); in net_buf_pull_call()
244 call->remote_uri[uri_len] = '\0'; in net_buf_pull_call()
1944 size_t uri_len; in bt_tbs_client_originate_call() local
1965 uri_len = strlen(uri); in bt_tbs_client_originate_call()
1967 if (uri_len > max_uri_len) { in bt_tbs_client_originate_call()
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/
Dpb_gatt_srv.c223 size_t uri_len; in gatt_prov_adv_create() local
232 uri_len = strlen(prov->uri); in gatt_prov_adv_create()
233 if (uri_len > 29) { in gatt_prov_adv_create()
240 prov_sd[prov_sd_len].data_len = uri_len; in gatt_prov_adv_create()
Ddfd_srv.c567 uint8_t uri_len; in handle_upload_start_oob() local
572 uri_len = net_buf_simple_pull_u8(buf); in handle_upload_start_oob()
574 if (uri_len > buf->len) { in handle_upload_start_oob()
578 uri = net_buf_simple_pull_mem(buf, uri_len); in handle_upload_start_oob()
583 LOG_HEXDUMP_DBG(uri, uri_len, "URI"); in handle_upload_start_oob()
589 uri_len == srv->upload.oob.uri_len && in handle_upload_start_oob()
591 !memcmp(uri, srv->upload.oob.uri, uri_len) && in handle_upload_start_oob()
608 if (uri_len > CONFIG_BT_MESH_DFU_URI_MAXLEN || in handle_upload_start_oob()
630 memcpy(srv->upload.oob.uri, uri, uri_len); in handle_upload_start_oob()
631 srv->upload.oob.uri_len = uri_len; in handle_upload_start_oob()
[all …]
Ddfu_cli.c858 size_t uri_len; in handle_info_status() local
868 uri_len = net_buf_simple_pull_u8(buf); in handle_info_status()
869 if (buf->len < uri_len) { in handle_info_status()
876 if (uri_len) { in handle_info_status()
878 MIN(CONFIG_BT_MESH_DFU_URI_MAXLEN, uri_len); in handle_info_status()
880 memcpy(uri_buf, net_buf_simple_pull_mem(buf, uri_len), in handle_info_status()
Drpr_srv.c683 uint8_t uri_len = strlen(prov->uri); in handle_extended_scan_start() local
685 if (uri_len < CONFIG_BT_MESH_RPR_SRV_AD_DATA_MAX - 2) { in handle_extended_scan_start()
686 net_buf_simple_add_u8(&rsp, uri_len + 1); in handle_extended_scan_start()
689 uri_len); in handle_extended_scan_start()
/Zephyr-latest/include/zephyr/bluetooth/mesh/
Ddfd_srv.h142 const char *uri, uint8_t uri_len,
233 uint8_t uri_len; member
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_ccp.c947 if (cp->uri_len >= sizeof(uri)) { in tbs_originate()
951 memcpy(uri, cp->uri, cp->uri_len); in tbs_originate()
952 uri[cp->uri_len] = '\0'; in tbs_originate()
1041 if (cp->uri_len >= sizeof(uri_list)) { in tbs_set_uri_scheme_list()
1045 memcpy(uri_list, cp->uri_list, cp->uri_len); in tbs_set_uri_scheme_list()
1046 uri_list[cp->uri_len] = '\0'; in tbs_set_uri_scheme_list()
/Zephyr-latest/subsys/net/lib/coap/
Dcoap_link_format.c182 uint16_t uri_len = query->len - (href_len + 1); in match_queries_resource() local
184 return match_path_uri(resource->path, uri, uri_len); in match_queries_resource()
/Zephyr-latest/tests/bluetooth/tester/src/
Dbtp_mesh.c168 uint8_t uri_len; member
183 const char *uri, uint8_t uri_len, in dfd_srv_start_oob_upload() argument
188 memcpy(dfd_srv_oob_ctx.uri, uri, uri_len); in dfd_srv_start_oob_upload()
189 dfd_srv_oob_ctx.uri_len = uri_len; in dfd_srv_start_oob_upload()
255 for (i = 0; i < MIN(dfd_srv_oob_ctx.uri_len, sizeof(scheme)); i++) { in oob_check_handler()
268 if (i == dfd_srv_oob_ctx.uri_len || dfd_srv_oob_ctx.uri[i] != ':') { in oob_check_handler()