@@ -254,7 +254,7 @@ static void dw_dma_channel_put(struct dma_chan_data *channel)
254254{
255255 k_spinlock_key_t key ;
256256
257- tr_info (& dwdma_tr , "dw_dma_channel_put(): dma %d channel %d put" ,
257+ tr_info (& dwdma_tr , "dma %d channel %d put" ,
258258 channel -> dma -> plat_data .id , channel -> index );
259259
260260 key = k_spin_lock (& channel -> dma -> lock );
@@ -273,7 +273,7 @@ static int dw_dma_start(struct dma_chan_data *channel)
273273 uint32_t words_per_tfr = 0 ;
274274#endif
275275
276- tr_dbg (& dwdma_tr , "dw_dma_start(): dma %d channel %d start" ,
276+ tr_dbg (& dwdma_tr , "dma %d channel %d start" ,
277277 channel -> dma -> plat_data .id , channel -> index );
278278
279279 irq_local_disable (flags );
@@ -282,7 +282,7 @@ static int dw_dma_start(struct dma_chan_data *channel)
282282 if ((channel -> status != COMP_STATE_PREPARE &&
283283 channel -> status != COMP_STATE_PAUSED ) ||
284284 (dma_reg_read (dma , DW_DMA_CHAN_EN ) & DW_CHAN (channel -> index ))) {
285- tr_err (& dwdma_tr , "dw_dma_start(): dma %d channel %d not ready ena 0x%x status 0x%x" ,
285+ tr_err (& dwdma_tr , "dma %d channel %d not ready ena 0x%x status 0x%x" ,
286286 dma -> plat_data .id , channel -> index ,
287287 dma_reg_read (dma , DW_DMA_CHAN_EN ),
288288 channel -> status );
@@ -292,7 +292,7 @@ static int dw_dma_start(struct dma_chan_data *channel)
292292
293293 /* is valid stream */
294294 if (!dw_chan -> lli ) {
295- tr_err (& dwdma_tr , "dw_dma_start(): dma %d channel %d invalid stream" ,
295+ tr_err (& dwdma_tr , "dma %d channel %d invalid stream" ,
296296 dma -> plat_data .id , channel -> index );
297297 ret = - EINVAL ;
298298 goto out ;
@@ -348,7 +348,7 @@ static int dw_dma_release(struct dma_chan_data *channel)
348348 struct dw_dma_chan_data * dw_chan = dma_chan_get_data (channel );
349349 uint32_t flags ;
350350
351- tr_info (& dwdma_tr , "dw_dma_release(): dma %d channel %d release" ,
351+ tr_info (& dwdma_tr , "dma %d channel %d release" ,
352352 channel -> dma -> plat_data .id , channel -> index );
353353
354354 irq_local_disable (flags );
@@ -370,7 +370,7 @@ static int dw_dma_pause(struct dma_chan_data *channel)
370370 struct dma * dma = channel -> dma ;
371371 uint32_t flags ;
372372
373- tr_info (& dwdma_tr , "dw_dma_pause(): dma %d channel %d pause" ,
373+ tr_info (& dwdma_tr , "dma %d channel %d pause" ,
374374 channel -> dma -> plat_data .id , channel -> index );
375375
376376 irq_local_disable (flags );
@@ -405,7 +405,7 @@ static int dw_dma_stop(struct dma_chan_data *channel)
405405 int i ;
406406#endif
407407
408- tr_info (& dwdma_tr , "dw_dma_stop(): dma %d channel %d stop" ,
408+ tr_info (& dwdma_tr , "dma %d channel %d stop" ,
409409 dma -> plat_data .id , channel -> index );
410410
411411 irq_local_disable (flags );
@@ -428,7 +428,7 @@ static int dw_dma_stop(struct dma_chan_data *channel)
428428 DW_CFGL_FIFO_EMPTY ,
429429 DW_DMA_TIMEOUT );
430430 if (ret < 0 )
431- tr_err (& dwdma_tr , "dw_dma_stop(): dma %d channel %d timeout" ,
431+ tr_err (& dwdma_tr , "dma %d channel %d timeout" ,
432432 dma -> plat_data .id , channel -> index );
433433#endif
434434
@@ -438,7 +438,7 @@ static int dw_dma_stop(struct dma_chan_data *channel)
438438 ret = poll_for_register_delay (dma_base (dma ) + DW_DMA_CHAN_EN ,
439439 DW_CHAN (channel -> index ), 0 , DW_DMA_TIMEOUT );
440440 if (ret < 0 ) {
441- tr_err (& dwdma_tr , "dw_dma_stop(): dma %d channel %d disable timeout" ,
441+ tr_err (& dwdma_tr , "dma %d channel %d disable timeout" ,
442442 dma -> plat_data .id , channel -> index );
443443 return - ETIMEDOUT ;
444444 }
@@ -499,7 +499,7 @@ static int dw_dma_set_config(struct dma_chan_data *channel,
499499 int ret = 0 ;
500500 int i ;
501501
502- tr_dbg (& dwdma_tr , "dw_dma_set_config(): dma %d channel %d config" ,
502+ tr_dbg (& dwdma_tr , "dma %d channel %d config" ,
503503 channel -> dma -> plat_data .id , channel -> index );
504504
505505 irq_local_disable (flags );
@@ -514,15 +514,15 @@ static int dw_dma_set_config(struct dma_chan_data *channel,
514514 dw_chan -> cfg_hi = DW_CFG_HIGH_DEF ;
515515
516516 if (!config -> elem_array .count ) {
517- tr_err (& dwdma_tr , "dw_dma_set_config(): dma %d channel %d no elems" ,
517+ tr_err (& dwdma_tr , "dma %d channel %d no elems" ,
518518 channel -> dma -> plat_data .id , channel -> index );
519519 ret = - EINVAL ;
520520 goto out ;
521521 }
522522
523523 if (config -> irq_disabled &&
524524 config -> elem_array .count < DW_DMA_CFG_NO_IRQ_MIN_ELEMS ) {
525- tr_err (& dwdma_tr , "dw_dma_set_config(): dma %d channel %d not enough elems for config with irq disabled %d" ,
525+ tr_err (& dwdma_tr , "dma %d channel %d not enough elems for config with irq disabled %d" ,
526526 channel -> dma -> plat_data .id ,
527527 channel -> index , config -> elem_array .count );
528528 ret = - EINVAL ;
@@ -548,7 +548,7 @@ static int dw_dma_set_config(struct dma_chan_data *channel,
548548 dw_chan -> lli = rmalloc (SOF_MEM_FLAG_KERNEL | SOF_MEM_FLAG_COHERENT | SOF_MEM_FLAG_DMA ,
549549 sizeof (struct dw_lli ) * channel -> desc_count );
550550 if (!dw_chan -> lli ) {
551- tr_err (& dwdma_tr , "dw_dma_set_config(): dma %d channel %d lli alloc failed" ,
551+ tr_err (& dwdma_tr , "dma %d channel %d lli alloc failed" ,
552552 channel -> dma -> plat_data .id ,
553553 channel -> index );
554554 ret = - ENOMEM ;
@@ -600,7 +600,7 @@ static int dw_dma_set_config(struct dma_chan_data *channel,
600600 lli_desc -> ctrl_lo |= DW_CTLL_SRC_WIDTH (2 );
601601 break ;
602602 default :
603- tr_err (& dwdma_tr , "dw_dma_set_config(): dma %d channel %d invalid src width %d" ,
603+ tr_err (& dwdma_tr , "dma %d channel %d invalid src width %d" ,
604604 channel -> dma -> plat_data .id ,
605605 channel -> index , config -> src_width );
606606 ret = - EINVAL ;
@@ -628,7 +628,7 @@ static int dw_dma_set_config(struct dma_chan_data *channel,
628628 lli_desc -> ctrl_lo |= DW_CTLL_DST_WIDTH (2 );
629629 break ;
630630 default :
631- tr_err (& dwdma_tr , "dw_dma_set_config(): dma %d channel %d invalid dest width %d" ,
631+ tr_err (& dwdma_tr , "dma %d channel %d invalid dest width %d" ,
632632 channel -> dma -> plat_data .id ,
633633 channel -> index , config -> dest_width );
634634 ret = - EINVAL ;
@@ -706,7 +706,7 @@ static int dw_dma_set_config(struct dma_chan_data *channel,
706706 DW_CFGH_DST (config -> dest_dev );
707707 break ;
708708 default :
709- tr_err (& dwdma_tr , "dw_dma_set_config(): dma %d channel %d invalid direction %d" ,
709+ tr_err (& dwdma_tr , "dma %d channel %d invalid direction %d" ,
710710 channel -> dma -> plat_data .id ,
711711 channel -> index , config -> direction );
712712 ret = - EINVAL ;
@@ -717,7 +717,7 @@ static int dw_dma_set_config(struct dma_chan_data *channel,
717717 lli_desc -> dar = sg_elem -> dest ;
718718
719719 if (sg_elem -> size > DW_CTLH_BLOCK_TS_MASK ) {
720- tr_err (& dwdma_tr , "dw_dma_set_config(): dma %d channel %d block size too big %d" ,
720+ tr_err (& dwdma_tr , "dma %d channel %d block size too big %d" ,
721721 channel -> dma -> plat_data .id ,
722722 channel -> index , sg_elem -> size );
723723 ret = - EINVAL ;
@@ -839,7 +839,7 @@ static int dw_dma_copy(struct dma_chan_data *channel, int bytes,
839839 };
840840 k_spinlock_key_t key ;
841841
842- tr_dbg (& dwdma_tr , "dw_dma_copy(): dma %d channel %d copy" ,
842+ tr_dbg (& dwdma_tr , "dma %d channel %d copy" ,
843843 channel -> dma -> plat_data .id , channel -> index );
844844
845845 notifier_event (channel , NOTIFIER_ID_DMA_COPY ,
@@ -859,7 +859,7 @@ static int dw_dma_copy(struct dma_chan_data *channel, int bytes,
859859 DW_CHAN (channel -> index ), 0 ,
860860 DW_DMA_TIMEOUT );
861861 if (ret < 0 ) {
862- tr_dbg (& dwdma_tr , "dw_dma_copy(): poll_for_register_delay timeout" );
862+ tr_dbg (& dwdma_tr , "poll_for_register_delay timeout" );
863863 return ret ;
864864 }
865865 }
@@ -888,7 +888,7 @@ static int dw_dma_setup(struct dma *dma)
888888 break ;
889889
890890 if (!i ) {
891- tr_err (& dwdma_tr , "dw_dma_setup(): dma %d setup failed" ,
891+ tr_err (& dwdma_tr , "dma %d setup failed" ,
892892 dma -> plat_data .id );
893893 return - EIO ;
894894 }
@@ -940,7 +940,7 @@ static int dw_dma_probe(struct dma *dma)
940940 sizeof (struct dma_chan_data ) * dma -> plat_data .channels );
941941
942942 if (!dma -> chan ) {
943- tr_err (& dwdma_tr , "dw_dma_probe(): dma %d allocaction of channels failed" ,
943+ tr_err (& dwdma_tr , "dma %d allocation of channels failed" ,
944944 dma -> plat_data .id );
945945 goto out ;
946946 }
@@ -961,7 +961,7 @@ static int dw_dma_probe(struct dma *dma)
961961 sizeof (* dw_chan ));
962962
963963 if (!dw_chan ) {
964- tr_err (& dwdma_tr , "dw_dma_probe(): dma %d allocaction of channel %d private data failed" ,
964+ tr_err (& dwdma_tr , "dma %d allocation of channel %d private data failed" ,
965965 dma -> plat_data .id , i );
966966 goto out ;
967967 }
@@ -989,7 +989,7 @@ static int dw_dma_remove(struct dma *dma)
989989{
990990 int i ;
991991
992- tr_dbg (& dwdma_tr , "dw_dma_remove(): dma %d remove" , dma -> plat_data .id );
992+ tr_dbg (& dwdma_tr , "dma %d remove" , dma -> plat_data .id );
993993
994994 pm_runtime_put_sync (DW_DMAC_CLK , dma -> plat_data .id );
995995
@@ -1024,7 +1024,7 @@ static int dw_dma_avail_data_size(struct dma_chan_data *channel)
10241024 if (delta )
10251025 size = dw_chan -> ptr_data .buffer_bytes ;
10261026 else
1027- tr_info (& dwdma_tr , "dw_dma_avail_data_size() size is 0!" );
1027+ tr_info (& dwdma_tr , "size is 0!" );
10281028 }
10291029
10301030 tr_dbg (& dwdma_tr , "DAR %x reader 0x%x free 0x%x avail 0x%x" , write_ptr ,
@@ -1055,7 +1055,7 @@ static int dw_dma_free_data_size(struct dma_chan_data *channel)
10551055 if (delta )
10561056 size = dw_chan -> ptr_data .buffer_bytes ;
10571057 else
1058- tr_info (& dwdma_tr , "dw_dma_free_data_size() size is 0!" );
1058+ tr_info (& dwdma_tr , "size is 0!" );
10591059 }
10601060
10611061 tr_dbg (& dwdma_tr , "SAR %x writer 0x%x free 0x%x avail 0x%x" , read_ptr ,
@@ -1071,7 +1071,7 @@ static int dw_dma_get_data_size(struct dma_chan_data *channel,
10711071 k_spinlock_key_t key ;
10721072 int ret = 0 ;
10731073
1074- tr_dbg (& dwdma_tr , "dw_dma_get_data_size(): dma %d channel %d get data size" ,
1074+ tr_dbg (& dwdma_tr , "dma %d channel %d get data size" ,
10751075 channel -> dma -> plat_data .id , channel -> index );
10761076
10771077 key = k_spin_lock (& channel -> dma -> lock );
@@ -1090,7 +1090,7 @@ static int dw_dma_get_data_size(struct dma_chan_data *channel,
10901090#if CONFIG_DMA_HW_LLI
10911091 if (!(dma_reg_read (channel -> dma , DW_DMA_CHAN_EN ) &
10921092 DW_CHAN (channel -> index ))) {
1093- tr_err (& dwdma_tr , "dw_dma_get_data_size(): xrun detected" );
1093+ tr_err (& dwdma_tr , "xrun detected" );
10941094 return - ENODATA ;
10951095 }
10961096#endif
0 commit comments