Lines Matching refs:tx_sdu
1734 const struct isoal_sdu_tx *tx_sdu) in isoal_tx_allocate_pdu() argument
1736 ARG_UNUSED(tx_sdu); in isoal_tx_allocate_pdu()
1830 const struct isoal_sdu_tx *tx_sdu, in isoal_tx_unframed_get_next_payload_number() argument
1848 if (tx_sdu->sdu_state == BT_ISO_START || in isoal_tx_unframed_get_next_payload_number()
1849 tx_sdu->sdu_state == BT_ISO_SINGLE) { in isoal_tx_unframed_get_next_payload_number()
1868 tx_sdu->time_stamp, in isoal_tx_unframed_get_next_payload_number()
1877 if (tx_sdu->packet_sn > session->last_input_sn + 1) { in isoal_tx_unframed_get_next_payload_number()
1882 sdus_skipped = (tx_sdu->packet_sn - session->last_input_sn) - 1; in isoal_tx_unframed_get_next_payload_number()
1886 } else if (tx_sdu->packet_sn == session->last_input_sn && in isoal_tx_unframed_get_next_payload_number()
1907 (tx_sdu->target_event * session->burst_number)); in isoal_tx_unframed_get_next_payload_number()
1965 const struct isoal_sdu_tx *tx_sdu) in isoal_tx_unframed_produce() argument
1983 packet_available = tx_sdu->size; in isoal_tx_unframed_produce()
1984 sdu_payload = tx_sdu->dbuf; in isoal_tx_unframed_produce()
1988 tx_sdu->sdu_state == BT_ISO_SINGLE); in isoal_tx_unframed_produce()
1990 if (tx_sdu->sdu_state == BT_ISO_START || in isoal_tx_unframed_produce()
1991 tx_sdu->sdu_state == BT_ISO_SINGLE) { in isoal_tx_unframed_produce()
2000 actual_grp_ref_point = tx_sdu->grp_ref_point; in isoal_tx_unframed_produce()
2006 tx_sdu->time_stamp, in isoal_tx_unframed_produce()
2009 sdus_skipped = isoal_tx_unframed_get_next_payload_number(source_hdl, tx_sdu, in isoal_tx_unframed_produce()
2036 if (actual_event != tx_sdu->target_event) { in isoal_tx_unframed_produce()
2038 isoal_get_wrapped_time_us(tx_sdu->grp_ref_point, in isoal_tx_unframed_produce()
2039 (actual_event - tx_sdu->target_event) * in isoal_tx_unframed_produce()
2062 session->last_input_sn = tx_sdu->packet_sn; in isoal_tx_unframed_produce()
2076 session->last_input_time_stamp = tx_sdu->time_stamp; in isoal_tx_unframed_produce()
2086 const isoal_status_t err_alloc = isoal_tx_allocate_pdu(source, tx_sdu); in isoal_tx_unframed_produce()
2129 ((tx_sdu->sdu_state == BT_ISO_SINGLE) || in isoal_tx_unframed_produce()
2130 (tx_sdu->sdu_state == BT_ISO_END)); in isoal_tx_unframed_produce()
2295 const struct isoal_sdu_tx *tx_sdu, in isoal_tx_framed_find_correct_tx_event() argument
2329 if (actual_event != tx_sdu->target_event) { in isoal_tx_framed_find_correct_tx_event()
2330 actual_grp_ref_point = isoal_get_wrapped_time_us(tx_sdu->grp_ref_point, in isoal_tx_framed_find_correct_tx_event()
2331 ((actual_event - tx_sdu->target_event) * session->iso_interval * in isoal_tx_framed_find_correct_tx_event()
2334 actual_grp_ref_point = tx_sdu->grp_ref_point; in isoal_tx_framed_find_correct_tx_event()
2340 if (tx_sdu->sdu_state == BT_ISO_START || in isoal_tx_framed_find_correct_tx_event()
2341 tx_sdu->sdu_state == BT_ISO_SINGLE) { in isoal_tx_framed_find_correct_tx_event()
2345 tx_sdu->cntr_time_stamp, in isoal_tx_framed_find_correct_tx_event()
2346 tx_sdu->time_stamp); in isoal_tx_framed_find_correct_tx_event()
2358 tx_sdu->time_stamp, in isoal_tx_framed_find_correct_tx_event()
2362 if (tx_sdu->packet_sn > session->last_input_sn + 1) { in isoal_tx_framed_find_correct_tx_event()
2364 sdus_skipped = (tx_sdu->packet_sn - session->last_input_sn) - 1; in isoal_tx_framed_find_correct_tx_event()
2366 } else if (tx_sdu->packet_sn == session->last_input_sn && in isoal_tx_framed_find_correct_tx_event()
2381 time_stamp_selected = tx_sdu->time_stamp; in isoal_tx_framed_find_correct_tx_event()
2407 if (actual_event < tx_sdu->target_event) { in isoal_tx_framed_find_correct_tx_event()
2408 actual_event = tx_sdu->target_event; in isoal_tx_framed_find_correct_tx_event()
2409 actual_grp_ref_point = tx_sdu->grp_ref_point; in isoal_tx_framed_find_correct_tx_event()
2418 time_stamp_selected = tx_sdu->time_stamp; in isoal_tx_framed_find_correct_tx_event()
2425 time_stamp_selected = tx_sdu->cntr_time_stamp; in isoal_tx_framed_find_correct_tx_event()
2496 const struct isoal_sdu_tx *tx_sdu) in isoal_tx_framed_produce() argument
2515 packet_available = tx_sdu->size; in isoal_tx_framed_produce()
2516 sdu_payload = tx_sdu->dbuf; in isoal_tx_framed_produce()
2520 tx_sdu->sdu_state == BT_ISO_SINGLE); in isoal_tx_framed_produce()
2523 source, tx_sdu->packet_sn, tx_sdu->iso_sdu_length, tx_sdu->time_stamp, in isoal_tx_framed_produce()
2524 tx_sdu->grp_ref_point, tx_sdu->target_event, tx_sdu->sdu_state); in isoal_tx_framed_produce()
2526 if (tx_sdu->sdu_state == BT_ISO_START || in isoal_tx_framed_produce()
2527 tx_sdu->sdu_state == BT_ISO_SINGLE) { in isoal_tx_framed_produce()
2536 tx_sdu->time_stamp, in isoal_tx_framed_produce()
2540 sdus_skipped = isoal_tx_framed_find_correct_tx_event(source, tx_sdu, in isoal_tx_framed_produce()
2547 source, tx_sdu->packet_sn, pp->payload_number, next_payload_number, in isoal_tx_framed_produce()
2564 err |= isoal_tx_allocate_pdu(source, tx_sdu); in isoal_tx_framed_produce()
2598 session->last_input_sn = tx_sdu->packet_sn; in isoal_tx_framed_produce()
2600 if (pp->initialized && tx_sdu->time_stamp == tx_sdu->cntr_time_stamp && in isoal_tx_framed_produce()
2613 session->last_input_time_stamp = tx_sdu->time_stamp; in isoal_tx_framed_produce()
2623 const isoal_status_t err_alloc = isoal_tx_allocate_pdu(source, tx_sdu); in isoal_tx_framed_produce()
2685 ((tx_sdu->sdu_state == BT_ISO_SINGLE) || in isoal_tx_framed_produce()
2686 (tx_sdu->sdu_state == BT_ISO_END)); in isoal_tx_framed_produce()
2813 struct isoal_sdu_tx *tx_sdu) in isoal_tx_sdu_fragment() argument
2840 err = isoal_tx_framed_produce(source_hdl, tx_sdu); in isoal_tx_sdu_fragment()
2842 err = isoal_tx_unframed_produce(source_hdl, tx_sdu); in isoal_tx_sdu_fragment()