/Zephyr-latest/subsys/bluetooth/audio/ |
D | codec.c | 557 static void init_net_buf_simple_from_meta(struct net_buf_simple *buf, uint8_t meta[], in init_net_buf_simple_from_meta() argument 560 buf->__buf = meta; in init_net_buf_simple_from_meta() 561 buf->data = meta; in init_net_buf_simple_from_meta() 566 static int codec_meta_get_val(const uint8_t meta[], size_t meta_len, in codec_meta_get_val() argument 569 CHECKIF(meta == NULL) { in codec_meta_get_val() 579 return bt_audio_data_get_val(meta, meta_len, (uint8_t)type, data); in codec_meta_get_val() 582 static int codec_meta_set_val(uint8_t meta[], size_t meta_len, size_t meta_size, in codec_meta_set_val() argument 588 CHECKIF(meta == NULL) { in codec_meta_set_val() 603 init_net_buf_simple_from_meta(&buf, meta, meta_len, meta_size); in codec_meta_set_val() 608 static int codec_meta_unset_val(uint8_t meta[], size_t meta_len, size_t meta_size, in codec_meta_unset_val() argument [all …]
|
D | pbp.c | 24 int bt_pbp_get_announcement(const uint8_t meta[], size_t meta_len, in bt_pbp_get_announcement() argument 34 CHECKIF((meta == NULL && meta_len != 0) || (meta != NULL && meta_len == 0)) { in bt_pbp_get_announcement() 35 LOG_DBG("Invalid metadata combination: %p %zu", meta, meta_len); in bt_pbp_get_announcement() 50 net_buf_simple_add_mem(pba_data_buf, meta, meta_len); in bt_pbp_get_announcement() 56 uint8_t **meta) in bt_pbp_parse_announcement() argument 63 CHECKIF(!data || !features || !meta) { in bt_pbp_parse_announcement() 91 *meta = (uint8_t *)net_buf_simple_pull_mem(&buf, meta_len); in bt_pbp_parse_announcement()
|
D | bap_unicast_server.c | 148 int bt_bap_unicast_server_metadata(struct bt_bap_stream *stream, const uint8_t meta[], in bt_bap_unicast_server_metadata() argument 156 if (meta_len > sizeof(ep->codec_cfg.meta)) { in bt_bap_unicast_server_metadata() 161 err = unicast_server_cb->metadata(stream, meta, meta_len, &rsp); in bt_bap_unicast_server_metadata() 173 (void)memcpy(ep->codec_cfg.meta, meta, meta_len); in bt_bap_unicast_server_metadata()
|
D | bap_unicast_client_internal.h | 22 int bt_bap_unicast_client_enable(struct bt_bap_stream *stream, const uint8_t meta[], 25 int bt_bap_unicast_client_metadata(struct bt_bap_stream *stream, const uint8_t meta[],
|
D | ascs.c | 773 net_buf_simple_add_mem(buf, ep->codec_cfg.meta, ep->codec_cfg.meta_len); in ascs_ep_get_status_enable() 2268 static int ascs_verify_metadata(struct bt_bap_ep *ep, const struct bt_ascs_metadata *meta, in ascs_verify_metadata() argument 2280 if (meta->len > CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE) { in ascs_verify_metadata() 2281 LOG_WRN("Not enough space for Codec Config Metadata: %u > %d", meta->len, in ascs_verify_metadata() 2289 err = bt_audio_data_parse(meta->data, meta->len, ascs_parse_metadata, &result); in ascs_verify_metadata() 2304 static void ase_metadata(struct bt_ascs_ase *ase, struct bt_ascs_metadata *meta) in ase_metadata() argument 2313 LOG_DBG("ase %p meta->len %u", ase, meta->len); in ase_metadata() 2333 err = ascs_verify_metadata(ep, meta, &rsp); in ase_metadata() 2339 err = unicast_server_cb->metadata(stream, meta->data, meta->len, &rsp); in ase_metadata() 2359 ep->codec_cfg.meta_len = meta->len; in ase_metadata() [all …]
|
D | bap_unicast_server.h | 18 int bt_bap_unicast_server_metadata(struct bt_bap_stream *stream, const uint8_t meta[],
|
D | cap_initiator.c | 114 static bool cap_initiator_valid_metadata(const uint8_t meta[], size_t meta_len) in cap_initiator_valid_metadata() argument 122 LOG_DBG("meta %p len %zu", (void *)meta, meta_len); in cap_initiator_valid_metadata() 124 err = bt_audio_data_parse(meta, meta_len, data_func_cb, &metadata_param); in cap_initiator_valid_metadata() 161 cap_initiator_valid_metadata(codec_cfg->meta, codec_cfg->meta_len); in cap_initiator_broadcast_audio_start_valid_param() 337 const uint8_t meta[], size_t meta_len) in bt_cap_initiator_broadcast_audio_update() argument 344 CHECKIF(meta == NULL) { in bt_cap_initiator_broadcast_audio_update() 349 if (!cap_initiator_valid_metadata(meta, meta_len)) { in bt_cap_initiator_broadcast_audio_update() 354 return bt_bap_broadcast_source_update_metadata(broadcast_source->bap_broadcast, meta, in bt_cap_initiator_broadcast_audio_update() 808 CHECKIF(!cap_initiator_valid_metadata(codec_cfg->meta, codec_cfg->meta_len)) { in valid_unicast_audio_start_param() 1250 err = bt_bap_stream_enable(bap_stream, bap_stream->codec_cfg->meta, in bt_cap_initiator_qos_configured() [all …]
|
D | bap_base.c | 417 int bt_bap_base_get_subgroup_codec_meta(const struct bt_bap_base_subgroup *subgroup, uint8_t **meta) in bt_bap_base_get_subgroup_codec_meta() argument 427 CHECKIF(meta == NULL) { in bt_bap_base_get_subgroup_codec_meta() 441 return base_pull_ltv(&net_buf, meta); in bt_bap_base_get_subgroup_codec_meta() 488 if (ltv_len > ARRAY_SIZE(codec_cfg->meta)) { in bt_bap_base_subgroup_codec_to_codec_cfg() 490 ARRAY_SIZE(codec_cfg->meta)); in bt_bap_base_subgroup_codec_to_codec_cfg() 496 memcpy(codec_cfg->meta, ltv_data, ltv_len); in bt_bap_base_subgroup_codec_to_codec_cfg()
|
/Zephyr-latest/scripts/ |
D | zephyr_module.py | 210 meta = yaml.load(f.read(), Loader=SafeLoader) 213 pykwalify.core.Core(source_data=meta, schema_data=schema)\ 219 meta['name'] = meta.get('name', module_path.name) 220 meta['name-sanitized'] = re.sub('[^a-zA-Z0-9]', '_', meta['name']) 221 return meta 232 def process_cmake(module, meta): argument 233 section = meta.get('build', dict()) 240 .format(meta['name'], 242 "${ZEPHYR_" + meta['name-sanitized'].upper() + "_CMAKE_DIR}")) 254 .format(meta['name'], [all …]
|
/Zephyr-latest/tests/bluetooth/controller/ctrl_isoal/src/ |
D | isoal_test_common.c | 53 buf->pdu_meta.meta = &buf->meta; in isoal_test_init_rx_pdu_buffer() 85 zassert_not_null(pdu_meta->meta, ""); in isoal_test_create_unframed_pdu() 88 memset(pdu_meta->meta, 0, sizeof(*pdu_meta->meta)); in isoal_test_create_unframed_pdu() 91 pdu_meta->meta->payload_number = payload_number; in isoal_test_create_unframed_pdu() 92 pdu_meta->meta->timestamp = timestamp; in isoal_test_create_unframed_pdu() 93 pdu_meta->meta->status = status; in isoal_test_create_unframed_pdu() 160 zassert_not_null(pdu_meta->meta, ""); in isoal_test_create_framed_pdu_base() 163 memset(pdu_meta->meta, 0, sizeof(*pdu_meta->meta)); in isoal_test_create_framed_pdu_base() 166 pdu_meta->meta->payload_number = payload_number; in isoal_test_create_framed_pdu_base() 167 pdu_meta->meta->timestamp = timestamp; in isoal_test_create_framed_pdu_base() [all …]
|
D | isoal_test_debug.c | 58 (uint32_t) pdu_meta->meta->payload_number, in isoal_test_debug_print_rx_pdu() 59 (uint32_t) pdu_meta->meta->timestamp, in isoal_test_debug_print_rx_pdu() 61 DU_ERR_TO_STR(pdu_meta->meta->status), in isoal_test_debug_print_rx_pdu()
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | buf.c | 203 struct bt_buf_view_meta *meta) in bt_buf_make_view() argument 214 LOG_DBG("make-view %p viewsize %zu meta %p", view, len, meta); in bt_buf_make_view() 224 meta->backup.data = parent->data; in bt_buf_make_view() 227 meta->backup.size = parent->size; in bt_buf_make_view() 232 meta->parent = parent; in bt_buf_make_view() 238 void bt_buf_destroy_view(struct net_buf *view, struct bt_buf_view_meta *meta) in bt_buf_destroy_view() argument 240 LOG_DBG("destroy-view %p meta %p", view, meta); in bt_buf_destroy_view() 241 __ASSERT_NO_MSG(meta->parent); in bt_buf_destroy_view() 244 meta->parent->data = meta->backup.data; in bt_buf_destroy_view() 245 meta->parent->size = meta->backup.size; in bt_buf_destroy_view() [all …]
|
D | buf_view.h | 59 struct bt_buf_view_meta *meta); 83 void bt_buf_destroy_view(struct net_buf *view, struct bt_buf_view_meta *meta);
|
D | hci_ecc.c | 147 struct bt_hci_evt_le_meta_event *meta; in emulate_le_p256_public_key_cmd() local 160 hdr->len = sizeof(*meta) + sizeof(*evt); in emulate_le_p256_public_key_cmd() 162 meta = net_buf_add(buf, sizeof(*meta)); in emulate_le_p256_public_key_cmd() 163 meta->subevent = BT_HCI_EVT_LE_P256_PUBLIC_KEY_COMPLETE; in emulate_le_p256_public_key_cmd() 187 struct bt_hci_evt_le_meta_event *meta; in emulate_le_generate_dhkey() local 229 hdr->len = sizeof(*meta) + sizeof(*evt); in emulate_le_generate_dhkey() 231 meta = net_buf_add(buf, sizeof(*meta)); in emulate_le_generate_dhkey() 232 meta->subevent = BT_HCI_EVT_LE_GENERATE_DHKEY_COMPLETE; in emulate_le_generate_dhkey()
|
/Zephyr-latest/include/zephyr/bluetooth/audio/ |
D | pbp.h | 71 int bt_pbp_get_announcement(const uint8_t meta[], size_t meta_len, 91 uint8_t **meta);
|
/Zephyr-latest/tests/bluetooth/audio/ascs/uut/ |
D | bap_unicast_client.c | 27 int bt_bap_unicast_client_enable(struct bt_bap_stream *stream, uint8_t meta[], in bt_bap_unicast_client_enable() argument 34 int bt_bap_unicast_client_metadata(struct bt_bap_stream *stream, uint8_t meta[], in bt_bap_unicast_client_metadata() argument
|
/Zephyr-latest/subsys/net/lib/coap/ |
D | coap_link_format.c | 162 struct coap_core_metadata *meta = resource->user_data; in match_queries_resource() local 170 if (meta && meta->attributes) { in match_queries_resource() 171 attributes = meta->attributes; in match_queries_resource() 373 struct coap_core_metadata *meta = resource->user_data; in format_resource() local 388 if (meta && meta->attributes) { in format_resource() 389 attributes = meta->attributes; in format_resource() 621 struct coap_core_metadata *meta = resource->user_data; in format_resource() local 630 if (meta && meta->attributes) { in format_resource() 631 attributes = meta->attributes; in format_resource()
|
/Zephyr-latest/scripts/west_commands/ |
D | packages.py | 112 module_names = [m.meta.get("name") for m in self.zephyr_modules] 131 module_name = module.meta.get("name") 138 pip = module.meta.get("package-managers", {}).get("pip")
|
D | blobs.py | 84 all_names = [m.meta.get('name', None) for m in all_modules] 93 module_name = module.meta.get('name', None) 97 blobs += zephyr_module.process_blobs(module.project, module.meta)
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | friend.c | 378 struct unseg_app_sdu_meta *meta) in unseg_app_sdu_unpack() argument 390 meta->subnet = frnd->subnet; in unseg_app_sdu_unpack() 392 err = bt_mesh_keys_resolve(&net.ctx, &net.sub, &meta->key, &meta->aid); in unseg_app_sdu_unpack() 397 meta->crypto.src = net.ctx.addr; in unseg_app_sdu_unpack() 398 meta->crypto.dst = net.ctx.recv_dst; in unseg_app_sdu_unpack() 399 meta->crypto.iv_index = BT_MESH_NET_IVI_TX; in unseg_app_sdu_unpack() 400 meta->crypto.dev_key = BT_MESH_IS_DEV_KEY(app_idx); in unseg_app_sdu_unpack() 401 meta->crypto.seq_num = net.seq; in unseg_app_sdu_unpack() 402 meta->crypto.aszmic = 0; in unseg_app_sdu_unpack() 404 if (BT_MESH_ADDR_IS_VIRTUAL(meta->crypto.dst)) { in unseg_app_sdu_unpack() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | bap_common.c | 69 print_ltv_array("meta", codec_cap->meta, codec_cap->meta_len); in print_codec_cap() 85 print_ltv_array("meta", codec_cfg->meta, codec_cfg->meta_len); in print_codec_cfg()
|
D | gmap_ugt_test.c | 178 static int unicast_server_enable(struct bt_bap_stream *stream, const uint8_t meta[], in unicast_server_enable() argument 183 return bt_audio_data_parse(meta, meta_len, data_func_cb, rsp); in unicast_server_enable() 193 static int unicast_server_metadata(struct bt_bap_stream *stream, const uint8_t meta[], in unicast_server_metadata() argument 198 return bt_audio_data_parse(meta, meta_len, data_func_cb, rsp); in unicast_server_metadata()
|
/Zephyr-latest/samples/bluetooth/tmap_peripheral/src/ |
D | bap_unicast_sr.c | 111 bt_audio_data_parse(codec_cfg->meta, codec_cfg->meta_len, print_cb, "meta"); in print_codec_cfg() 184 static int lc3_enable(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, in lc3_enable() argument 239 static int lc3_metadata(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, in lc3_metadata() argument 250 err = bt_audio_data_parse(meta, meta_len, data_func_cb, &func_param); in lc3_metadata()
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/ |
D | isoal.c | 732 struct node_rx_iso_meta *meta; in isoal_rx_unframed_consume() local 746 meta = pdu_meta->meta; in isoal_rx_unframed_consume() 754 pdu_err = (pdu_meta->meta->status != ISOAL_PDU_STATUS_VALID); in isoal_rx_unframed_consume() 763 seq_err = (meta->payload_number != (sp->prev_pdu_id+1)); in isoal_rx_unframed_consume() 786 || (meta->payload_number % session->pdus_per_sdu == 0)) { in isoal_rx_unframed_consume() 821 anchorpoint = meta->timestamp; in isoal_rx_unframed_consume() 840 sdu_offset = (meta->payload_number % session->burst_number) / session->pdus_per_sdu; in isoal_rx_unframed_consume() 933 sp->sdu_status |= meta->status; in isoal_rx_unframed_consume() 957 sp->prev_pdu_id = meta->payload_number; in isoal_rx_unframed_consume() 1104 struct node_rx_iso_meta *meta; in isoal_rx_framed_consume() local [all …]
|
/Zephyr-latest/samples/bluetooth/cap_acceptor/src/ |
D | cap_acceptor_unicast.c | 99 bt_audio_data_parse(codec_cfg->meta, codec_cfg->meta_len, log_codec_cfg_cb, "meta"); in log_codec_cfg() 160 static int unicast_server_enable_cb(struct bt_bap_stream *bap_stream, const uint8_t meta[], in unicast_server_enable_cb() argument 191 static int unicast_server_metadata_cb(struct bt_bap_stream *bap_stream, const uint8_t meta[], in unicast_server_metadata_cb() argument 202 err = bt_audio_data_parse(meta, meta_len, data_func_cb, &func_param); in unicast_server_metadata_cb()
|