[PATCH] osmocom-bb[master]: host/trxcon/scheduler: use 'tn' instead of 'ts_num'

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu Feb 22 15:33:15 UTC 2018


Review at  https://gerrit.osmocom.org/6756

host/trxcon/scheduler: use 'tn' instead of 'ts_num'

The new timeslot index designation is more generic for
Osmocom projects, so let's use one.

Change-Id: I8c0118aad439816148490e57938d7e32b6e20877
---
M src/host/trxcon/sched_mframe.c
M src/host/trxcon/sched_trx.h
2 files changed, 8 insertions(+), 8 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/56/6756/1

diff --git a/src/host/trxcon/sched_mframe.c b/src/host/trxcon/sched_mframe.c
index 5f9d78f..25e7c29 100644
--- a/src/host/trxcon/sched_mframe.c
+++ b/src/host/trxcon/sched_mframe.c
@@ -1800,12 +1800,12 @@
 };
 
 const struct trx_multiframe *sched_mframe_layout(
-	enum gsm_phys_chan_config config, int ts_num)
+	enum gsm_phys_chan_config config, int tn)
 {
 	int i, ts_allowed;
 
 	for (i = 0; i < ARRAY_SIZE(layouts); i++) {
-		ts_allowed = layouts[i].slotmask & (0x01 << ts_num);
+		ts_allowed = layouts[i].slotmask & (0x01 << tn);
 		if (layouts[i].chan_config == config && ts_allowed)
 			return &layouts[i];
 	}
diff --git a/src/host/trxcon/sched_trx.h b/src/host/trxcon/sched_trx.h
index ad2c569..e733de8 100644
--- a/src/host/trxcon/sched_trx.h
+++ b/src/host/trxcon/sched_trx.h
@@ -242,7 +242,7 @@
 
 extern const struct trx_lchan_desc trx_lchan_desc[_TRX_CHAN_MAX];
 const struct trx_multiframe *sched_mframe_layout(
-	enum gsm_phys_chan_config config, int ts_num);
+	enum gsm_phys_chan_config config, int tn);
 
 /* Scheduler management functions */
 int sched_trx_init(struct trx_instance *trx);
@@ -250,10 +250,10 @@
 int sched_trx_shutdown(struct trx_instance *trx);
 
 /* Timeslot management functions */
-struct trx_ts *sched_trx_add_ts(struct trx_instance *trx, int ts_num);
-void sched_trx_del_ts(struct trx_instance *trx, int ts_num);
-int sched_trx_reset_ts(struct trx_instance *trx, int ts_num);
-int sched_trx_configure_ts(struct trx_instance *trx, int ts_num,
+struct trx_ts *sched_trx_add_ts(struct trx_instance *trx, int tn);
+void sched_trx_del_ts(struct trx_instance *trx, int tn);
+int sched_trx_reset_ts(struct trx_instance *trx, int tn);
+int sched_trx_configure_ts(struct trx_instance *trx, int tn,
 	enum gsm_phys_chan_config config);
 
 /* Logical channel management functions */
@@ -265,5 +265,5 @@
 struct trx_lchan_state *sched_trx_find_lchan(struct trx_ts *ts,
 	enum trx_lchan_type chan);
 
-int sched_trx_handle_rx_burst(struct trx_instance *trx, uint8_t ts_num,
+int sched_trx_handle_rx_burst(struct trx_instance *trx, uint8_t tn,
 	uint32_t burst_fn, sbit_t *bits, uint16_t nbits, int8_t rssi, float toa);

-- 
To view, visit https://gerrit.osmocom.org/6756
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8c0118aad439816148490e57938d7e32b6e20877
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list