Lines Matching full:cp

325 	const struct btp_bap_broadcast_source_setup_cmd *cp = cmd;  in btp_bap_broadcast_source_setup()  local
345 codec_cfg.id = cp->coding_format; in btp_bap_broadcast_source_setup()
346 codec_cfg.vid = cp->vid; in btp_bap_broadcast_source_setup()
347 codec_cfg.cid = cp->cid; in btp_bap_broadcast_source_setup()
348 codec_cfg.data_len = cp->cc_ltvs_len; in btp_bap_broadcast_source_setup()
349 memcpy(codec_cfg.data, cp->cc_ltvs, cp->cc_ltvs_len); in btp_bap_broadcast_source_setup()
352 source->qos.framing = cp->framing; in btp_bap_broadcast_source_setup()
353 source->qos.rtn = cp->retransmission_num; in btp_bap_broadcast_source_setup()
354 source->qos.latency = sys_le16_to_cpu(cp->max_transport_latency); in btp_bap_broadcast_source_setup()
355 source->qos.interval = sys_get_le24(cp->sdu_interval); in btp_bap_broadcast_source_setup()
356 source->qos.pd = sys_get_le24(cp->presentation_delay); in btp_bap_broadcast_source_setup()
357 source->qos.sdu = sys_le16_to_cpu(cp->max_sdu); in btp_bap_broadcast_source_setup()
359 source->stream_count = cp->subgroups * cp->streams_per_subgroup; in btp_bap_broadcast_source_setup()
361 err = setup_broadcast_source(cp->streams_per_subgroup, cp->subgroups, source, &codec_cfg); in btp_bap_broadcast_source_setup()
1142 const struct btp_bap_broadcast_sink_sync_cmd *cp = cmd; in btp_bap_broadcast_sink_sync() local
1144 uint32_t broadcast_id = sys_get_le24(cp->broadcast_id); in btp_bap_broadcast_sink_sync()
1148 broadcaster = remote_broadcaster_find(&cp->address, broadcast_id); in btp_bap_broadcast_sink_sync()
1157 bt_addr_le_copy(&broadcaster->address, &cp->address); in btp_bap_broadcast_sink_sync()
1162 if (IS_ENABLED(CONFIG_BT_PER_ADV_SYNC_TRANSFER_RECEIVER) && cp->past_avail) { in btp_bap_broadcast_sink_sync()
1167 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in btp_bap_broadcast_sink_sync()
1174 err = bt_bap_scan_delegator_set_pa_state(cp->src_id, BT_BAP_PA_STATE_INFO_REQ); in btp_bap_broadcast_sink_sync()
1179 err = pa_sync_past(conn, cp->sync_timeout); in btp_bap_broadcast_sink_sync()
1184 bt_addr_le_copy(&create_params.addr, &cp->address); in btp_bap_broadcast_sink_sync()
1186 create_params.sid = cp->advertiser_sid; in btp_bap_broadcast_sink_sync()
1187 create_params.skip = cp->skip; in btp_bap_broadcast_sink_sync()
1188 create_params.timeout = cp->sync_timeout; in btp_bap_broadcast_sink_sync()
1206 const struct btp_bap_broadcast_sink_stop_cmd *cp = cmd; in btp_bap_broadcast_sink_stop() local
1207 uint32_t broadcast_id = sys_get_le24(cp->broadcast_id); in btp_bap_broadcast_sink_stop()
1211 broadcaster = remote_broadcaster_find(&cp->address, broadcast_id); in btp_bap_broadcast_sink_stop()
1242 const struct btp_bap_broadcast_sink_bis_sync_cmd *cp = cmd; in btp_bap_broadcast_sink_bis_sync() local
1246 broadcaster = remote_broadcaster_find(&cp->address, sys_get_le24(cp->broadcast_id)); in btp_bap_broadcast_sink_bis_sync()
1253 broadcaster->requested_bis_sync = sys_le32_to_cpu(cp->requested_bis_sync); in btp_bap_broadcast_sink_bis_sync()
1358 const struct btp_bap_discover_scan_delegators_cmd *cp = cmd; in btp_bap_broadcast_discover_scan_delegators() local
1362 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in btp_bap_broadcast_discover_scan_delegators()
1377 const struct btp_bap_broadcast_assistant_scan_start_cmd *cp = cmd; in btp_bap_broadcast_assistant_scan_start() local
1381 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in btp_bap_broadcast_assistant_scan_start()
1396 const struct btp_bap_broadcast_assistant_scan_stop_cmd *cp = cmd; in btp_bap_broadcast_assistant_scan_stop() local
1400 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in btp_bap_broadcast_assistant_scan_stop()
1416 const struct btp_bap_add_broadcast_src_cmd *cp = cmd; in btp_bap_broadcast_assistant_add_src() local
1421 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in btp_bap_broadcast_assistant_add_src()
1427 bt_addr_le_copy(&param.addr, &cp->broadcaster_address); in btp_bap_broadcast_assistant_add_src()
1428 param.adv_sid = cp->advertiser_sid; in btp_bap_broadcast_assistant_add_src()
1429 param.pa_sync = cp->padv_sync > 0 ? true : false; in btp_bap_broadcast_assistant_add_src()
1430 param.broadcast_id = sys_get_le24(cp->broadcast_id); in btp_bap_broadcast_assistant_add_src()
1431 param.pa_interval = sys_le16_to_cpu(cp->padv_interval); in btp_bap_broadcast_assistant_add_src()
1432 param.num_subgroups = MIN(cp->num_subgroups, CONFIG_BT_BAP_BASS_MAX_SUBGROUPS); in btp_bap_broadcast_assistant_add_src()
1435 ptr = cp->subgroups; in btp_bap_broadcast_assistant_add_src()
1469 const struct btp_bap_remove_broadcast_src_cmd *cp = cmd; in btp_bap_broadcast_assistant_remove_src() local
1473 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in btp_bap_broadcast_assistant_remove_src()
1478 err = bt_bap_broadcast_assistant_rem_src(conn, cp->src_id); in btp_bap_broadcast_assistant_remove_src()
1489 const struct btp_bap_modify_broadcast_src_cmd *cp = cmd; in btp_bap_broadcast_assistant_modify_src() local
1494 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in btp_bap_broadcast_assistant_modify_src()
1500 param.src_id = cp->src_id; in btp_bap_broadcast_assistant_modify_src()
1501 param.pa_sync = cp->padv_sync > 0 ? true : false; in btp_bap_broadcast_assistant_modify_src()
1502 param.pa_interval = sys_le16_to_cpu(cp->padv_interval); in btp_bap_broadcast_assistant_modify_src()
1503 param.num_subgroups = MIN(cp->num_subgroups, CONFIG_BT_BAP_BASS_MAX_SUBGROUPS); in btp_bap_broadcast_assistant_modify_src()
1506 ptr = cp->subgroups; in btp_bap_broadcast_assistant_modify_src()
1535 const struct btp_bap_set_broadcast_code_cmd *cp = cmd; in btp_bap_broadcast_assistant_set_broadcast_code() local
1539 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in btp_bap_broadcast_assistant_set_broadcast_code()
1544 err = bt_bap_broadcast_assistant_set_broadcast_code(conn, cp->src_id, cp->broadcast_code); in btp_bap_broadcast_assistant_set_broadcast_code()
1560 const struct btp_bap_send_past_cmd *cp = cmd; in btp_bap_broadcast_assistant_send_past() local
1564 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in btp_bap_broadcast_assistant_send_past()
1581 service_data = cp->src_id << 8; in btp_bap_broadcast_assistant_send_past()