Lines Matching refs:dp
170 struct ll_iso_datapath *dp = NULL; in ll_read_iso_tx_sync() local
176 dp = cis->hdr.datapath_in; in ll_read_iso_tx_sync()
179 if (dp && in ll_read_iso_tx_sync()
180 isoal_tx_get_sync_info(dp->source_hdl, seq, in ll_read_iso_tx_sync()
193 if (!adv_stream || !adv_stream->dp || in ll_read_iso_tx_sync()
194 isoal_tx_get_sync_info(adv_stream->dp->source_hdl, seq, in ll_read_iso_tx_sync()
222 struct ll_iso_datapath *dp; in ll_setup_iso_path() local
320 if (!adv_stream || adv_stream->dp) { in ll_setup_iso_path()
349 if (!sync_stream || sync_stream->dp) { in ll_setup_iso_path()
392 dp = mem_acquire(&datapath_free); in ll_setup_iso_path()
393 if (!dp) { in ll_setup_iso_path()
397 dp->path_dir = path_dir; in ll_setup_iso_path()
398 dp->path_id = path_id; in ll_setup_iso_path()
399 dp->coding_format = coding_format; in ll_setup_iso_path()
400 dp->company_id = company_id; in ll_setup_iso_path()
433 ll_data_path_sink_create(handle, dp, &sdu_alloc, in ll_setup_iso_path()
446 ull_iso_datapath_release(dp); in ll_setup_iso_path()
454 cis->hdr.datapath_out = dp; in ll_setup_iso_path()
458 sync_stream->dp = dp; in ll_setup_iso_path()
461 dp->sink_hdl = sink_handle; in ll_setup_iso_path()
464 ull_iso_datapath_release(dp); in ll_setup_iso_path()
486 !ll_data_path_source_create(handle, dp, in ll_setup_iso_path()
490 ull_iso_datapath_release(dp); in ll_setup_iso_path()
513 cis->hdr.datapath_in = dp; in ll_setup_iso_path()
517 adv_stream->dp = dp; in ll_setup_iso_path()
520 dp->source_hdl = source_handle; in ll_setup_iso_path()
523 ull_iso_datapath_release(dp); in ll_setup_iso_path()
551 struct ll_iso_datapath *dp; in ll_remove_iso_path() local
557 dp = hdr->datapath_in; in ll_remove_iso_path()
558 if (dp) { in ll_remove_iso_path()
559 isoal_source_destroy(dp->source_hdl); in ll_remove_iso_path()
562 ull_iso_datapath_release(dp); in ll_remove_iso_path()
570 dp = hdr->datapath_out; in ll_remove_iso_path()
571 if (dp) { in ll_remove_iso_path()
572 isoal_sink_destroy(dp->sink_hdl); in ll_remove_iso_path()
575 ull_iso_datapath_release(dp); in ll_remove_iso_path()
586 struct ll_iso_datapath *dp; in ll_remove_iso_path() local
599 dp = adv_stream->dp; in ll_remove_iso_path()
600 if (dp) { in ll_remove_iso_path()
601 adv_stream->dp = NULL; in ll_remove_iso_path()
602 isoal_source_destroy(dp->source_hdl); in ll_remove_iso_path()
603 ull_iso_datapath_release(dp); in ll_remove_iso_path()
613 struct ll_iso_datapath *dp; in ll_remove_iso_path() local
626 dp = sync_stream->dp; in ll_remove_iso_path()
627 if (dp) { in ll_remove_iso_path()
628 sync_stream->dp = NULL; in ll_remove_iso_path()
629 isoal_sink_destroy(dp->sink_hdl); in ll_remove_iso_path()
630 ull_iso_datapath_release(dp); in ll_remove_iso_path()
819 struct ll_iso_datapath *dp; in ll_iso_receive_test() local
883 if (sync_stream->dp) { in ll_iso_receive_test()
892 stream_dp = &sync_stream->dp; in ll_iso_receive_test()
926 dp = mem_acquire(&datapath_free); in ll_iso_receive_test()
927 if (!dp) { in ll_iso_receive_test()
931 dp->path_dir = BT_HCI_DATAPATH_DIR_CTLR_TO_HOST; in ll_iso_receive_test()
932 dp->path_id = BT_HCI_DATAPATH_ID_HCI; in ll_iso_receive_test()
934 *stream_dp = dp; in ll_iso_receive_test()
948 ull_iso_datapath_release(dp); in ll_iso_receive_test()
954 dp->sink_hdl = sink_handle; in ll_iso_receive_test()
1229 struct ll_iso_datapath *dp; in ll_iso_transmit_test() local
1261 dp = mem_acquire(&datapath_free); in ll_iso_transmit_test()
1262 if (!dp) { in ll_iso_transmit_test()
1266 dp->path_dir = BT_HCI_DATAPATH_DIR_HOST_TO_CTLR; in ll_iso_transmit_test()
1267 dp->path_id = BT_HCI_DATAPATH_ID_HCI; in ll_iso_transmit_test()
1269 cis->hdr.datapath_in = dp; in ll_iso_transmit_test()
1287 ull_iso_datapath_release(dp); in ll_iso_transmit_test()
1293 dp->source_hdl = source_handle; in ll_iso_transmit_test()
1379 if (!sync_stream->test_mode->enabled || !sync_stream->dp) { in ll_iso_test_end()
1384 isoal_sink_destroy(sync_stream->dp->sink_hdl); in ll_iso_test_end()
1385 ull_iso_datapath_release(sync_stream->dp); in ll_iso_test_end()
1386 sync_stream->dp = NULL; in ll_iso_test_end()
1469 struct ll_iso_datapath *dp; in ull_iso_lll_ack_enqueue() local
1472 dp = cis->hdr.datapath_in; in ull_iso_lll_ack_enqueue()
1474 if (dp) { in ull_iso_lll_ack_enqueue()
1475 isoal_tx_pdu_release(dp->source_hdl, node_tx); in ull_iso_lll_ack_enqueue()
1509 struct ll_iso_datapath *dp = NULL; in ull_iso_lll_event_prepare() local
1515 dp = cis->hdr.datapath_in; in ull_iso_lll_event_prepare()
1518 if (dp) { in ull_iso_lll_event_prepare()
1519 isoal_tx_event_prepare(dp->source_hdl, event_count); in ull_iso_lll_event_prepare()
1522 struct ll_iso_datapath *dp = NULL; in ull_iso_lll_event_prepare() local
1530 dp = stream->dp; in ull_iso_lll_event_prepare()
1533 if (dp) { in ull_iso_lll_event_prepare()
1534 isoal_tx_event_prepare(dp->source_hdl, event_count); in ull_iso_lll_event_prepare()
1623 struct ll_iso_datapath *dp; in iso_rx_demux() local
1650 dp = NULL; in iso_rx_demux()
1660 dp = cis->hdr.datapath_out; in iso_rx_demux()
1672 dp = sync_stream ? sync_stream->dp : NULL; in iso_rx_demux()
1677 if (dp && dp->path_id != BT_HCI_DATAPATH_ID_HCI) { in iso_rx_demux()
1689 isoal_rx_pdu_recombine(dp->sink_hdl, &pckt_meta); in iso_rx_demux()
1796 void ull_iso_datapath_release(struct ll_iso_datapath *dp) in ull_iso_datapath_release() argument
1798 mem_release(dp, &datapath_free); in ull_iso_datapath_release()