Lines Matching full:tx

88 			      "Preferred TX PHY mismatch %d (actual) != %d (expected)", \
98 "Current TX PHY mismatch %d (actual) != %d (expected)", \
118 struct node_tx *tx; in ZTEST() local
135 /* 'Trigger' DLE ntf on PHY update, as this forces change to eff tx/rx times */ in ZTEST()
148 /* Steal all ntf buffers, to trigger TX stall on non avail of NTF buffer for DLE */ in ZTEST()
158 /* Tx Queue should have one LL Control PDU */ in ZTEST()
159 lt_rx(LL_PHY_REQ, &conn, &tx, &req); in ZTEST()
162 /* Check that data tx was paused */ in ZTEST()
163 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
168 /* TX Ack */ in ZTEST()
169 event_tx_ack(&conn, tx); in ZTEST()
174 /* Check that data tx was paused */ in ZTEST()
175 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
177 /* Release Tx */ in ZTEST()
178 ull_cp_release_tx(&conn, tx); in ZTEST()
183 /* No TX yet as unable to pre-allocate NTF buffer for DLE */ in ZTEST()
195 /* Tx Queue should have one LL Control PDU */ in ZTEST()
196 lt_rx(LL_PHY_UPDATE_IND, &conn, &tx, &ind); in ZTEST()
199 /* TX Ack */ in ZTEST()
200 event_tx_ack(&conn, tx); in ZTEST()
202 /* Check that data tx is no longer paused */ in ZTEST()
203 zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); in ZTEST()
209 pdu = (struct pdu_data *)tx->pdu; in ZTEST()
212 /* Release Tx */ in ZTEST()
213 ull_cp_release_tx(&conn, tx); in ZTEST()
220 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
235 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
263 struct node_tx *tx; in ZTEST() local
281 /* Tx Queue should have one LL Control PDU */ in ZTEST()
282 lt_rx(LL_PHY_REQ, &conn, &tx, &req); in ZTEST()
285 /* Check that data tx was paused */ in ZTEST()
286 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
291 /* TX Ack */ in ZTEST()
292 event_tx_ack(&conn, tx); in ZTEST()
297 /* Check that data tx was paused */ in ZTEST()
298 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
300 /* Release Tx */ in ZTEST()
301 ull_cp_release_tx(&conn, tx); in ZTEST()
317 struct node_tx *tx; in ZTEST() local
338 /* Tx Queue should have one LL Control PDU */ in ZTEST()
339 lt_rx(LL_PHY_REQ, &conn, &tx, &req); in ZTEST()
342 /* Check that data tx was paused */ in ZTEST()
343 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
348 /* TX Ack */ in ZTEST()
349 event_tx_ack(&conn, tx); in ZTEST()
354 /* Check that data tx is no longer paused */ in ZTEST()
355 zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); in ZTEST()
357 /* Release Tx */ in ZTEST()
358 ull_cp_release_tx(&conn, tx); in ZTEST()
379 struct node_tx *tx; in ZTEST() local
396 /* Steal all ntf buffers, to trigger TX stall on non avail of NTF buffer for DLE */ in ZTEST()
409 /* TX Ack */ in ZTEST()
410 event_tx_ack(&conn, tx); in ZTEST()
418 /* No TX yet as unable to pre-allocate NTF buffer for DLE */ in ZTEST()
427 /* Check that data tx was paused */ in ZTEST()
428 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
433 /* Tx Queue should have one LL Control PDU */ in ZTEST()
434 lt_rx(LL_PHY_UPDATE_IND, &conn, &tx, &ind); in ZTEST()
437 /* TX Ack */ in ZTEST()
438 event_tx_ack(&conn, tx); in ZTEST()
443 /* Check that data tx is no longer paused */ in ZTEST()
444 zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); in ZTEST()
447 pdu = (struct pdu_data *)tx->pdu; in ZTEST()
450 /* Release Tx */ in ZTEST()
451 ull_cp_release_tx(&conn, tx); in ZTEST()
458 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
471 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
493 struct node_tx *tx; in ZTEST() local
516 /* Tx Queue should have one LL Control PDU */ in ZTEST()
517 lt_rx(LL_PHY_REQ, &conn, &tx, &req); in ZTEST()
520 /* Check that data tx was paused */ in ZTEST()
521 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
523 /* TX Ack */ in ZTEST()
524 event_tx_ack(&conn, tx); in ZTEST()
526 /* Check that data tx is no longer paused */ in ZTEST()
527 zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); in ZTEST()
532 /* Release Tx */ in ZTEST()
533 ull_cp_release_tx(&conn, tx); in ZTEST()
538 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
548 /* Check that data tx is no longer paused */ in ZTEST()
549 zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); in ZTEST()
556 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
569 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
591 struct node_tx *tx; in ZTEST() local
612 /* Tx Queue should have one LL Control PDU */ in ZTEST()
613 lt_rx(LL_PHY_REQ, &conn, &tx, &req); in ZTEST()
616 /* Check that data tx was paused */ in ZTEST()
617 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
619 /* TX Ack */ in ZTEST()
620 event_tx_ack(&conn, tx); in ZTEST()
622 /* Check that data tx is no longer paused */ in ZTEST()
623 zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); in ZTEST()
628 /* Release Tx */ in ZTEST()
629 ull_cp_release_tx(&conn, tx); in ZTEST()
634 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
644 /* Check that data tx is no longer paused */ in ZTEST()
645 zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); in ZTEST()
651 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
676 struct node_tx *tx; in ZTEST() local
697 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
706 /* We received a REQ, so data tx should be paused */ in ZTEST()
707 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
712 /* Tx Queue should have one LL Control PDU */ in ZTEST()
713 lt_rx(LL_PHY_RSP, &conn, &tx, &rsp); in ZTEST()
720 /* We are sending RSP, so data tx should be paused until after tx ack */ in ZTEST()
721 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
723 /* TX Ack */ in ZTEST()
724 event_tx_ack(&conn, tx); in ZTEST()
726 /* Check that data tx is no longer paused */ in ZTEST()
727 zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); in ZTEST()
732 /* Release Tx */ in ZTEST()
733 ull_cp_release_tx(&conn, tx); in ZTEST()
740 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
753 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
776 struct node_tx *tx; in ZTEST() local
797 /* Tx Queue should have one LL Control PDU */ in ZTEST()
798 lt_rx(LL_PHY_REQ, &conn, &tx, &req); in ZTEST()
804 /* Check that data tx was paused */ in ZTEST()
805 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
807 /* TX Ack */ in ZTEST()
808 event_tx_ack(&conn, tx); in ZTEST()
810 /* Check that data tx is no longer paused */ in ZTEST()
811 zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); in ZTEST()
816 /* Check that data tx is no longer paused */ in ZTEST()
817 zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); in ZTEST()
819 /* Release Tx */ in ZTEST()
820 ull_cp_release_tx(&conn, tx); in ZTEST()
841 struct node_tx *tx; in ZTEST() local
856 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
865 /* We received a REQ, so data tx should be paused */ in ZTEST()
866 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
871 /* Tx Queue should have one LL Control PDU */ in ZTEST()
872 lt_rx(LL_PHY_RSP, &conn, &tx, &rsp); in ZTEST()
878 /* TX Ack */ in ZTEST()
879 event_tx_ack(&conn, tx); in ZTEST()
888 /* Release Tx */ in ZTEST()
889 ull_cp_release_tx(&conn, tx); in ZTEST()
898 struct node_tx *tx; in ZTEST() local
934 /* Tx Queue should have one LL Control PDU */ in ZTEST()
935 lt_rx(LL_PHY_REQ, &conn, &tx, &req); in ZTEST()
941 /* Check that data tx is paused */ in ZTEST()
942 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
944 /* TX Ack */ in ZTEST()
945 event_tx_ack(&conn, tx); in ZTEST()
947 /* Check that data tx is paused */ in ZTEST()
948 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
953 /* Check that data tx is paused */ in ZTEST()
954 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
956 /* Release Tx */ in ZTEST()
957 ull_cp_release_tx(&conn, tx); in ZTEST()
964 /* Tx Queue should have one LL Control PDU */ in ZTEST()
965 printf("Tx REJECT\n"); in ZTEST()
966 lt_rx(LL_REJECT_EXT_IND, &conn, &tx, &reject_ext_ind); in ZTEST()
969 /* TX Ack */ in ZTEST()
970 event_tx_ack(&conn, tx); in ZTEST()
976 /* Release Tx */ in ZTEST()
977 ull_cp_release_tx(&conn, tx); in ZTEST()
984 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
989 printf("Tx again\n"); in ZTEST()
992 /* TX Ack */ in ZTEST()
993 event_tx_ack(&conn, tx); in ZTEST()
998 /* Check that data tx is paused */ in ZTEST()
999 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
1006 /* Tx Queue should have one LL Control PDU */ in ZTEST()
1008 lt_rx(LL_PHY_UPDATE_IND, &conn, &tx, &ind); in ZTEST()
1011 /* TX Ack */ in ZTEST()
1012 event_tx_ack(&conn, tx); in ZTEST()
1017 /* Check that data tx is not paused */ in ZTEST()
1018 zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); in ZTEST()
1021 pdu = (struct pdu_data *)tx->pdu; in ZTEST()
1024 /* Release Tx */ in ZTEST()
1025 ull_cp_release_tx(&conn, tx); in ZTEST()
1032 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
1047 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
1067 struct node_tx *tx; in ZTEST() local
1100 /* Check that data tx was paused */ in ZTEST()
1101 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
1114 /* Tx Queue should have one LL Control PDU */ in ZTEST()
1115 lt_rx(LL_PHY_UPDATE_IND, &conn, &tx, &ind_1); in ZTEST()
1118 /* TX Ack */ in ZTEST()
1119 event_tx_ack(&conn, tx); in ZTEST()
1124 /* Check that data tx is no longer paused */ in ZTEST()
1125 zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); in ZTEST()
1128 pdu = (struct pdu_data *)tx->pdu; in ZTEST()
1131 /* Release Tx */ in ZTEST()
1132 ull_cp_release_tx(&conn, tx); in ZTEST()
1139 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
1156 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
1166 /* Check that data tx is no longer paused */ in ZTEST()
1167 zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); in ZTEST()
1172 /* Tx Queue should have one LL Control PDU */ in ZTEST()
1173 lt_rx(LL_PHY_REQ, &conn, &tx, &req_central); in ZTEST()
1179 /* TX Ack */ in ZTEST()
1180 event_tx_ack(&conn, tx); in ZTEST()
1185 /* Check that data tx was paused */ in ZTEST()
1186 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
1188 /* Release Tx */ in ZTEST()
1189 ull_cp_release_tx(&conn, tx); in ZTEST()
1201 /* Tx Queue should have one LL Control PDU */ in ZTEST()
1202 lt_rx(LL_PHY_UPDATE_IND, &conn, &tx, &ind_2); in ZTEST()
1205 /* TX Ack */ in ZTEST()
1206 event_tx_ack(&conn, tx); in ZTEST()
1211 /* Check that data tx is no longer paused */ in ZTEST()
1212 zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); in ZTEST()
1215 pdu = (struct pdu_data *)tx->pdu; in ZTEST()
1218 /* Release Tx */ in ZTEST()
1219 ull_cp_release_tx(&conn, tx); in ZTEST()
1226 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
1239 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
1259 struct node_tx *tx; in ZTEST() local
1291 /* Tx Queue should have one LL Control PDU */ in ZTEST()
1292 lt_rx(LL_PHY_REQ, &conn, &tx, &req_peripheral); in ZTEST()
1298 /* Check that data tx was paused */ in ZTEST()
1299 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
1301 /* TX Ack */ in ZTEST()
1302 event_tx_ack(&conn, tx); in ZTEST()
1304 /* Check that data tx is no longer paused */ in ZTEST()
1305 zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); in ZTEST()
1310 /* Release Tx */ in ZTEST()
1311 ull_cp_release_tx(&conn, tx); in ZTEST()
1316 /* Tx Queue should have one LL Control PDU */ in ZTEST()
1317 lt_rx(LL_PHY_RSP, &conn, &tx, &rsp); in ZTEST()
1347 /* TX Ack */ in ZTEST()
1348 event_tx_ack(&conn, tx); in ZTEST()
1353 /* Release Tx */ in ZTEST()
1354 ull_cp_release_tx(&conn, tx); in ZTEST()
1356 /* Check that data tx is no longer paused */ in ZTEST()
1357 zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); in ZTEST()
1364 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
1377 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
1398 struct node_tx *tx; in ZTEST() local
1422 /* Tx Queue should have one LL Control PDU */ in ZTEST()
1423 lt_rx(LL_PHY_REQ, &conn, &tx, &req); in ZTEST()
1429 /* TX Ack */ in ZTEST()
1430 event_tx_ack(&conn, tx); in ZTEST()
1435 /* Check that data tx was paused */ in ZTEST()
1436 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
1438 /* Release Tx */ in ZTEST()
1439 ull_cp_release_tx(&conn, tx); in ZTEST()
1444 /* Tx Queue should have one LL Control PDU */ in ZTEST()
1445 lt_rx(LL_PHY_UPDATE_IND, &conn, &tx, &ind); in ZTEST()
1448 /* TX Ack */ in ZTEST()
1449 event_tx_ack(&conn, tx); in ZTEST()
1451 /* Check that data tx is no longer paused */ in ZTEST()
1452 zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); in ZTEST()
1458 pdu = (struct pdu_data *)tx->pdu; in ZTEST()
1464 /* Release Tx */ in ZTEST()
1465 ull_cp_release_tx(&conn, tx); in ZTEST()
1483 struct node_tx *tx; in ZTEST() local
1501 /* TX Ack */ in ZTEST()
1502 event_tx_ack(&conn, tx); in ZTEST()
1507 /* Check that data tx was paused */ in ZTEST()
1508 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
1513 /* Tx Queue should have one LL Control PDU */ in ZTEST()
1514 lt_rx(LL_PHY_UPDATE_IND, &conn, &tx, &ind); in ZTEST()
1517 /* TX Ack */ in ZTEST()
1518 event_tx_ack(&conn, tx); in ZTEST()
1523 /* Check that data tx is no longer paused */ in ZTEST()
1524 zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); in ZTEST()
1527 pdu = (struct pdu_data *)tx->pdu; in ZTEST()
1533 /* Release Tx */ in ZTEST()
1534 ull_cp_release_tx(&conn, tx); in ZTEST()
1549 struct node_tx *tx; in ZTEST() local
1570 /* Tx Queue should have one LL Control PDU */ in ZTEST()
1571 lt_rx(LL_PHY_REQ, &conn, &tx, &req); in ZTEST()
1574 /* Check that data tx was paused */ in ZTEST()
1575 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
1577 /* TX Ack */ in ZTEST()
1578 event_tx_ack(&conn, tx); in ZTEST()
1580 /* Check that data tx is no longer paused */ in ZTEST()
1581 zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); in ZTEST()
1586 /* Release Tx */ in ZTEST()
1587 ull_cp_release_tx(&conn, tx); in ZTEST()
1592 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
1607 /* Check that data tx is no longer paused */ in ZTEST()
1608 zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); in ZTEST()
1626 struct node_tx *tx; in ZTEST() local
1641 /* Tx Queue should NOT have a LL Control PDU */ in ZTEST()
1650 /* We received a REQ, so data tx should be paused */ in ZTEST()
1651 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
1656 /* Tx Queue should have one LL Control PDU */ in ZTEST()
1657 lt_rx(LL_PHY_RSP, &conn, &tx, &rsp); in ZTEST()
1663 /* We are sending RSP, so data tx should be paused until after tx ack */ in ZTEST()
1664 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
1666 /* TX Ack */ in ZTEST()
1667 event_tx_ack(&conn, tx); in ZTEST()
1669 /* Check that data tx is no longer paused */ in ZTEST()
1670 zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); in ZTEST()
1675 /* Release Tx */ in ZTEST()
1676 ull_cp_release_tx(&conn, tx); in ZTEST()