diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-10-26 20:23:45 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-10-27 13:53:03 +0200 |
commit | 8757384aec269ec48c558b0f2488e7c83c1d3974 (patch) | |
tree | 9cd0791d94dab9b6313be990513b99502209bd78 /tests/alloc/AllocTest.cpp | |
parent | bf2842e64b10cb7f85e1a4d003a059ee1483e11c (diff) |
Rename tbf_alloc_dl_tbf() -> dl_tbf_alloc()
Rename it so that it follows the usual prefix for the type it allocates.
Change-Id: I7d30a85fefaa61d100fbd51af4601a3cf7de2159
Diffstat (limited to 'tests/alloc/AllocTest.cpp')
-rw-r--r-- | tests/alloc/AllocTest.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/alloc/AllocTest.cpp b/tests/alloc/AllocTest.cpp index b5d4b954..5e1f06d3 100644 --- a/tests/alloc/AllocTest.cpp +++ b/tests/alloc/AllocTest.cpp @@ -48,7 +48,7 @@ static gprs_rlcmac_tbf *tbf_alloc(struct gprs_rlcmac_bts *bts, if (dir == GPRS_RLCMAC_UL_TBF) return tbf_alloc_ul_tbf(bts, ms, use_trx, single_slot); else - return tbf_alloc_dl_tbf(bts, ms, use_trx, single_slot); + return dl_tbf_alloc(bts, ms, use_trx, single_slot); } static void check_tfi_usage(struct gprs_rlcmac_bts *bts) @@ -231,7 +231,7 @@ static inline bool test_alloc_b_ul_dl(bool ts0, bool ts1, bool ts2, bool ts3, bo dump_assignment(ul_tbf, "UL", verbose); /* assume final ack has not been sent */ - dl_tbf = tbf_alloc_dl_tbf(bts, ms, ms_current_trx(ms)->trx_no, false); + dl_tbf = dl_tbf_alloc(bts, ms, ms_current_trx(ms)->trx_no, false); if (!dl_tbf) return false; @@ -265,7 +265,7 @@ static inline bool test_alloc_b_dl_ul(bool ts0, bool ts1, bool ts2, bool ts3, bo ms = bts_alloc_ms(bts, ms_class, 0); /* Avoid delaying free to avoid tons of to-be-freed ms objects queuing */ ms_set_timeout(ms, 0); - dl_tbf = tbf_alloc_dl_tbf(bts, ms, -1, true); + dl_tbf = dl_tbf_alloc(bts, ms, -1, true); if (!dl_tbf) return false; @@ -328,7 +328,7 @@ static inline bool test_alloc_b_jolly(uint8_t ms_class) dump_assignment(ul_tbf, "UL", true); /* assume final ack has not been sent */ - dl_tbf = tbf_alloc_dl_tbf(bts, ms, trx_no, false); + dl_tbf = dl_tbf_alloc(bts, ms, trx_no, false); if (!dl_tbf) return false; @@ -487,7 +487,7 @@ static GprsMs *alloc_tbfs(struct gprs_rlcmac_bts *bts, struct GprsMs *old_ms, en case TEST_MODE_DL_AND_UL: if (ms_dl_tbf(old_ms)) tbf_free(ms_dl_tbf(old_ms)); - tbf = tbf_alloc_dl_tbf(bts, old_ms, trx_no, false); + tbf = dl_tbf_alloc(bts, old_ms, trx_no, false); if (tbf == NULL) { OSMO_ASSERT(trx_no != -1 || bts_all_pdch_allocated(bts)); ms_unref(old_ms); @@ -772,7 +772,7 @@ static void test_2_consecutive_dl_tbfs() trx->pdch[7].enable(); ms = bts_alloc_ms(bts, ms_class, egprs_ms_class); - dl_tbf1 = tbf_alloc_dl_tbf(bts, ms, 0, false); + dl_tbf1 = dl_tbf_alloc(bts, ms, 0, false); OSMO_ASSERT(dl_tbf1); for (int i = 0; i < 8; i++) { @@ -783,7 +783,7 @@ static void test_2_consecutive_dl_tbfs() printf("TBF1: numTs(%d)\n", numTs1); ms = bts_alloc_ms(bts, ms_class, egprs_ms_class); - dl_tbf2 = tbf_alloc_dl_tbf(bts, ms, 0, false); + dl_tbf2 = dl_tbf_alloc(bts, ms, 0, false); OSMO_ASSERT(dl_tbf2); for (int i = 0; i < 8; i++) { |