@@ -177,13 +177,13 @@ static void dbs_init_rx_queue(nthw_dbs_t *p_nthw_dbs, uint32_t queue, uint32_t s
177177 uint32_t dummy ;
178178
179179 do {
180- get_rx_init (p_nthw_dbs , & init , & dummy , & busy );
180+ nthw_get_rx_init (p_nthw_dbs , & init , & dummy , & busy );
181181 } while (busy != 0 );
182182
183- set_rx_init (p_nthw_dbs , start_idx , start_ptr , INIT_QUEUE , queue );
183+ nthw_set_rx_init (p_nthw_dbs , start_idx , start_ptr , INIT_QUEUE , queue );
184184
185185 do {
186- get_rx_init (p_nthw_dbs , & init , & dummy , & busy );
186+ nthw_get_rx_init (p_nthw_dbs , & init , & dummy , & busy );
187187 } while (busy != 0 );
188188}
189189
@@ -195,13 +195,13 @@ static void dbs_init_tx_queue(nthw_dbs_t *p_nthw_dbs, uint32_t queue, uint32_t s
195195 uint32_t dummy ;
196196
197197 do {
198- get_tx_init (p_nthw_dbs , & init , & dummy , & busy );
198+ nthw_get_tx_init (p_nthw_dbs , & init , & dummy , & busy );
199199 } while (busy != 0 );
200200
201201 set_tx_init (p_nthw_dbs , start_idx , start_ptr , INIT_QUEUE , queue );
202202
203203 do {
204- get_tx_init (p_nthw_dbs , & init , & dummy , & busy );
204+ nthw_get_tx_init (p_nthw_dbs , & init , & dummy , & busy );
205205 } while (busy != 0 );
206206}
207207
@@ -250,18 +250,18 @@ static int nthw_virt_queue_init(struct fpga_info_s *p_fpga_info)
250250 for (i = 0 ; i < NT_DBS_TX_QUEUES_MAX ; ++ i )
251251 dbs_init_tx_queue (p_nthw_dbs , i , 0 , 0 );
252252
253- set_rx_control (p_nthw_dbs , LAST_QUEUE , RX_AM_DISABLE , RX_AM_POLL_SPEED , RX_UW_DISABLE ,
253+ nthw_set_rx_control (p_nthw_dbs , LAST_QUEUE , RX_AM_DISABLE , RX_AM_POLL_SPEED , RX_UW_DISABLE ,
254254 RX_UW_POLL_SPEED , RX_Q_DISABLE );
255- set_rx_control (p_nthw_dbs , LAST_QUEUE , RX_AM_ENABLE , RX_AM_POLL_SPEED , RX_UW_ENABLE ,
255+ nthw_set_rx_control (p_nthw_dbs , LAST_QUEUE , RX_AM_ENABLE , RX_AM_POLL_SPEED , RX_UW_ENABLE ,
256256 RX_UW_POLL_SPEED , RX_Q_DISABLE );
257- set_rx_control (p_nthw_dbs , LAST_QUEUE , RX_AM_ENABLE , RX_AM_POLL_SPEED , RX_UW_ENABLE ,
257+ nthw_set_rx_control (p_nthw_dbs , LAST_QUEUE , RX_AM_ENABLE , RX_AM_POLL_SPEED , RX_UW_ENABLE ,
258258 RX_UW_POLL_SPEED , RX_Q_ENABLE );
259259
260- set_tx_control (p_nthw_dbs , LAST_QUEUE , TX_AM_DISABLE , TX_AM_POLL_SPEED , TX_UW_DISABLE ,
260+ nthw_set_tx_control (p_nthw_dbs , LAST_QUEUE , TX_AM_DISABLE , TX_AM_POLL_SPEED , TX_UW_DISABLE ,
261261 TX_UW_POLL_SPEED , TX_Q_DISABLE );
262- set_tx_control (p_nthw_dbs , LAST_QUEUE , TX_AM_ENABLE , TX_AM_POLL_SPEED , TX_UW_ENABLE ,
262+ nthw_set_tx_control (p_nthw_dbs , LAST_QUEUE , TX_AM_ENABLE , TX_AM_POLL_SPEED , TX_UW_ENABLE ,
263263 TX_UW_POLL_SPEED , TX_Q_DISABLE );
264- set_tx_control (p_nthw_dbs , LAST_QUEUE , TX_AM_ENABLE , TX_AM_POLL_SPEED , TX_UW_ENABLE ,
264+ nthw_set_tx_control (p_nthw_dbs , LAST_QUEUE , TX_AM_ENABLE , TX_AM_POLL_SPEED , TX_UW_ENABLE ,
265265 TX_UW_POLL_SPEED , TX_Q_ENABLE );
266266
267267 return 0 ;
@@ -464,10 +464,10 @@ static int dbs_wait_on_busy(struct nthw_virt_queue *vq, uint32_t *idle, int rx)
464464
465465 do {
466466 if (rx )
467- err = get_rx_idle (p_nthw_dbs , idle , & queue , & busy );
467+ err = nthw_get_rx_idle (p_nthw_dbs , idle , & queue , & busy );
468468
469469 else
470- err = get_tx_idle (p_nthw_dbs , idle , & queue , & busy );
470+ err = nthw_get_tx_idle (p_nthw_dbs , idle , & queue , & busy );
471471 } while (!err && busy );
472472
473473 return err ;
@@ -492,10 +492,10 @@ static int dbs_wait_hw_queue_shutdown(struct nthw_virt_queue *vq, int rx)
492492
493493 do {
494494 if (rx )
495- err = set_rx_idle (p_nthw_dbs , 1 , vq -> index );
495+ err = nthw_set_rx_idle (p_nthw_dbs , 1 , vq -> index );
496496
497497 else
498- err = set_tx_idle (p_nthw_dbs , 1 , vq -> index );
498+ err = nthw_set_tx_idle (p_nthw_dbs , 1 , vq -> index );
499499
500500 if (err )
501501 return -1 ;
@@ -1424,7 +1424,7 @@ static struct sg_ops_s sg_ops = {
14241424 .nthw_virt_queue_init = nthw_virt_queue_init
14251425};
14261426
1427- void sg_init (void )
1427+ void nthw_sg_init (void )
14281428{
14291429 NT_LOG (INF , NTNIC , "SG ops initialized" );
14301430 register_sg_ops (& sg_ops );
0 commit comments