@@ -143,8 +143,7 @@ DEVICE_ATTR(beiscsi_##_name, S_IRUGO | S_IWUSR,\
143143 beiscsi_##_name##_disp, beiscsi_##_name##_store)
144144
145145/*
146- * When new log level added update the
147- * the MAX allowed value for log_enable
146+ * When new log level added update MAX allowed value for log_enable
148147 */
149148BEISCSI_RW_ATTR (log_enable , 0x00 ,
150149 0xFF , 0x00 , "Enable logging Bit Mask\n"
@@ -825,9 +824,8 @@ static int beiscsi_init_irqs(struct beiscsi_hba *phba)
825824 & phwi_context -> be_eq [i ]);
826825 if (ret ) {
827826 beiscsi_log (phba , KERN_ERR , BEISCSI_LOG_INIT ,
828- "BM_%d : beiscsi_init_irqs-Failed to"
829- "register msix for i = %d\n" ,
830- i );
827+ "BM_%d : %s-Failed to register msix for i = %d\n" ,
828+ __func__ , i );
831829 kfree (phba -> msi_name [i ]);
832830 goto free_msix_irqs ;
833831 }
@@ -841,9 +839,9 @@ static int beiscsi_init_irqs(struct beiscsi_hba *phba)
841839 ret = request_irq (pci_irq_vector (pcidev , i ), be_isr_mcc , 0 ,
842840 phba -> msi_name [i ], & phwi_context -> be_eq [i ]);
843841 if (ret ) {
844- beiscsi_log (phba , KERN_ERR , BEISCSI_LOG_INIT ,
845- "BM_%d : beiscsi_init_irqs-"
846- "Failed to register beiscsi_msix_mcc\n" );
842+ beiscsi_log (phba , KERN_ERR , BEISCSI_LOG_INIT ,
843+ "BM_%d : %s-Failed to register beiscsi_msix_mcc\n" ,
844+ __func__ );
847845 kfree (phba -> msi_name [i ]);
848846 goto free_msix_irqs ;
849847 }
@@ -853,8 +851,8 @@ static int beiscsi_init_irqs(struct beiscsi_hba *phba)
853851 "beiscsi" , phba );
854852 if (ret ) {
855853 beiscsi_log (phba , KERN_ERR , BEISCSI_LOG_INIT ,
856- "BM_%d : beiscsi_init_irqs-"
857- "Failed to register irq\\n" );
854+ "BM_%d : %s-Failed to register irq\n" ,
855+ __func__ );
858856 return ret ;
859857 }
860858 }
@@ -1030,7 +1028,7 @@ free_wrb_handle(struct beiscsi_hba *phba, struct hwi_wrb_context *pwrb_context,
10301028 phba -> params .wrbs_per_cxn );
10311029 beiscsi_log (phba , KERN_INFO ,
10321030 BEISCSI_LOG_IO | BEISCSI_LOG_CONFIG ,
1033- "BM_%d : FREE WRB: pwrb_handle=%p free_index=0x%x"
1031+ "BM_%d : FREE WRB: pwrb_handle=%p free_index=0x%x "
10341032 "wrb_handles_available=%d\n" ,
10351033 pwrb_handle , pwrb_context -> free_index ,
10361034 pwrb_context -> wrb_handles_available );
@@ -1374,7 +1372,7 @@ static void hwi_complete_cmd(struct beiscsi_conn *beiscsi_conn,
13741372 beiscsi_log (phba , KERN_ERR ,
13751373 BEISCSI_LOG_CONFIG | BEISCSI_LOG_IO ,
13761374 "BM_%d :\t\t No HWH_TYPE_LOGIN Expected in"
1377- " hwi_complete_cmd - Solicited path\n" );
1375+ " %s - Solicited path\n" , __func__ );
13781376 break ;
13791377
13801378 case HWH_TYPE_NOP :
@@ -1384,8 +1382,8 @@ static void hwi_complete_cmd(struct beiscsi_conn *beiscsi_conn,
13841382 default :
13851383 beiscsi_log (phba , KERN_WARNING ,
13861384 BEISCSI_LOG_CONFIG | BEISCSI_LOG_IO ,
1387- "BM_%d : In hwi_complete_cmd , unknown type = %d"
1388- "wrb_index 0x%x CID 0x%x\n" , type ,
1385+ "BM_%d : In %s , unknown type = %d "
1386+ "wrb_index 0x%x CID 0x%x\n" , __func__ , type ,
13891387 csol_cqe .wrb_index ,
13901388 csol_cqe .cid );
13911389 break ;
@@ -1883,9 +1881,9 @@ unsigned int beiscsi_process_cq(struct be_eq_obj *pbe_eq, int budget)
18831881 cid = AMAP_GET_BITS (
18841882 struct amap_i_t_dpdu_cqe_v2 ,
18851883 cid , sol );
1886- else
1887- cid = AMAP_GET_BITS (struct amap_sol_cqe_v2 ,
1888- cid , sol );
1884+ else
1885+ cid = AMAP_GET_BITS (struct amap_sol_cqe_v2 ,
1886+ cid , sol );
18891887 }
18901888
18911889 cri_index = BE_GET_CRI_FROM_CID (cid );
@@ -2010,8 +2008,7 @@ unsigned int beiscsi_process_cq(struct be_eq_obj *pbe_eq, int budget)
20102008 default :
20112009 beiscsi_log (phba , KERN_ERR ,
20122010 BEISCSI_LOG_IO | BEISCSI_LOG_CONFIG ,
2013- "BM_%d : Invalid CQE Event Received Code : %d"
2014- "CID 0x%x...\n" ,
2011+ "BM_%d : Invalid CQE Event Received Code : %d CID 0x%x...\n" ,
20152012 code , cid );
20162013 break ;
20172014 }
@@ -3001,7 +2998,7 @@ static int beiscsi_create_eqs(struct beiscsi_hba *phba,
30012998 void * eq_vaddress ;
30022999 dma_addr_t paddr ;
30033000
3004- num_eq_pages = PAGES_REQUIRED (phba -> params .num_eq_entries * \
3001+ num_eq_pages = PAGES_REQUIRED (phba -> params .num_eq_entries *
30053002 sizeof (struct be_eq_entry ));
30063003
30073004 if (phba -> pcidev -> msix_enabled )
@@ -3034,8 +3031,7 @@ static int beiscsi_create_eqs(struct beiscsi_hba *phba,
30343031 BEISCSI_EQ_DELAY_DEF );
30353032 if (ret ) {
30363033 beiscsi_log (phba , KERN_ERR , BEISCSI_LOG_INIT ,
3037- "BM_%d : beiscsi_cmd_eq_create"
3038- "Failed for EQ\n" );
3034+ "BM_%d : beiscsi_cmd_eq_create Failed for EQ\n" );
30393035 goto create_eq_error ;
30403036 }
30413037
@@ -3068,7 +3064,7 @@ static int beiscsi_create_cqs(struct beiscsi_hba *phba,
30683064 int ret = - ENOMEM ;
30693065 dma_addr_t paddr ;
30703066
3071- num_cq_pages = PAGES_REQUIRED (phba -> params .num_cq_entries * \
3067+ num_cq_pages = PAGES_REQUIRED (phba -> params .num_cq_entries *
30723068 sizeof (struct sol_cqe ));
30733069
30743070 for (i = 0 ; i < phba -> num_cpus ; i ++ ) {
@@ -3090,8 +3086,7 @@ static int beiscsi_create_cqs(struct beiscsi_hba *phba,
30903086 sizeof (struct sol_cqe ), cq_vaddress );
30913087 if (ret ) {
30923088 beiscsi_log (phba , KERN_ERR , BEISCSI_LOG_INIT ,
3093- "BM_%d : be_fill_queue Failed "
3094- "for ISCSI CQ\n" );
3089+ "BM_%d : be_fill_queue Failed for ISCSI CQ\n" );
30953090 goto create_cq_error ;
30963091 }
30973092
@@ -3100,8 +3095,7 @@ static int beiscsi_create_cqs(struct beiscsi_hba *phba,
31003095 false, 0 );
31013096 if (ret ) {
31023097 beiscsi_log (phba , KERN_ERR , BEISCSI_LOG_INIT ,
3103- "BM_%d : beiscsi_cmd_eq_create"
3104- "Failed for ISCSI CQ\n" );
3098+ "BM_%d : beiscsi_cmd_eq_create Failed for ISCSI CQ\n" );
31053099 goto create_cq_error ;
31063100 }
31073101 beiscsi_log (phba , KERN_INFO , BEISCSI_LOG_INIT ,
@@ -3226,8 +3220,8 @@ beiscsi_create_def_data(struct beiscsi_hba *phba,
32263220 phwi_context -> be_def_dataq [ulp_num ].id );
32273221
32283222 beiscsi_log (phba , KERN_INFO , BEISCSI_LOG_INIT ,
3229- "BM_%d : DEFAULT PDU DATA RING CREATED"
3230- "on ULP : %d\n" , ulp_num );
3223+ "BM_%d : DEFAULT PDU DATA RING CREATED on ULP : %d\n" ,
3224+ ulp_num );
32313225 return 0 ;
32323226}
32333227
@@ -3253,13 +3247,13 @@ beiscsi_post_template_hdr(struct beiscsi_hba *phba)
32533247
32543248 if (status != 0 ) {
32553249 beiscsi_log (phba , KERN_ERR , BEISCSI_LOG_INIT ,
3256- "BM_%d : Post Template HDR Failed for"
3250+ "BM_%d : Post Template HDR Failed for "
32573251 "ULP_%d\n" , ulp_num );
32583252 return status ;
32593253 }
32603254
32613255 beiscsi_log (phba , KERN_INFO , BEISCSI_LOG_INIT ,
3262- "BM_%d : Template HDR Pages Posted for"
3256+ "BM_%d : Template HDR Pages Posted for "
32633257 "ULP_%d\n" , ulp_num );
32643258 }
32653259 }
@@ -3374,18 +3368,17 @@ beiscsi_create_wrb_rings(struct beiscsi_hba *phba,
33743368 } else {
33753369 idx ++ ;
33763370 wrb_vaddr = mem_descr -> mem_array [idx ].virtual_address ;
3377- pa_addr_lo = mem_descr -> mem_array [idx ].\
3371+ pa_addr_lo = mem_descr -> mem_array [idx ].
33783372 bus_address .u .a64 .address ;
33793373 num_wrb_rings = mem_descr -> mem_array [idx ].size /
33803374 (phba -> params .wrbs_per_cxn *
33813375 sizeof (struct iscsi_wrb ));
33823376 pwrb_arr [num ].virtual_address = wrb_vaddr ;
3383- pwrb_arr [num ].bus_address .u .a64 .address \
3384- = pa_addr_lo ;
3377+ pwrb_arr [num ].bus_address .u .a64 .address = pa_addr_lo ;
33853378 pwrb_arr [num ].size = phba -> params .wrbs_per_cxn *
33863379 sizeof (struct iscsi_wrb );
33873380 wrb_vaddr += pwrb_arr [num ].size ;
3388- pa_addr_lo += pwrb_arr [num ].size ;
3381+ pa_addr_lo += pwrb_arr [num ].size ;
33893382 num_wrb_rings -- ;
33903383 }
33913384 }
@@ -3937,7 +3930,7 @@ static int beiscsi_init_sgl_handle(struct beiscsi_hba *phba)
39373930 idx ++ ;
39383931 }
39393932 beiscsi_log (phba , KERN_INFO , BEISCSI_LOG_INIT ,
3940- "BM_%d : phba->io_sgl_hndl_avbl=%d"
3933+ "BM_%d : phba->io_sgl_hndl_avbl=%d "
39413934 "phba->eh_sgl_hndl_avbl=%d\n" ,
39423935 phba -> io_sgl_hndl_avbl ,
39433936 phba -> eh_sgl_hndl_avbl );
@@ -3995,13 +3988,8 @@ static int hba_setup_cid_tbls(struct beiscsi_hba *phba)
39953988 GFP_KERNEL );
39963989
39973990 if (!ptr_cid_info ) {
3998- beiscsi_log (phba , KERN_ERR , BEISCSI_LOG_INIT ,
3999- "BM_%d : Failed to allocate memory"
4000- "for ULP_CID_INFO for ULP : %d\n" ,
4001- ulp_num );
40023991 ret = - ENOMEM ;
40033992 goto free_memory ;
4004-
40053993 }
40063994
40073995 /* Allocate memory for CID array */
@@ -4010,10 +3998,6 @@ static int hba_setup_cid_tbls(struct beiscsi_hba *phba)
40103998 sizeof (* ptr_cid_info -> cid_array ),
40113999 GFP_KERNEL );
40124000 if (!ptr_cid_info -> cid_array ) {
4013- beiscsi_log (phba , KERN_ERR , BEISCSI_LOG_INIT ,
4014- "BM_%d : Failed to allocate memory"
4015- "for CID_ARRAY for ULP : %d\n" ,
4016- ulp_num );
40174001 kfree (ptr_cid_info );
40184002 ptr_cid_info = NULL ;
40194003 ret = - ENOMEM ;
@@ -4031,9 +4015,6 @@ static int hba_setup_cid_tbls(struct beiscsi_hba *phba)
40314015 sizeof (struct iscsi_endpoint * ),
40324016 GFP_KERNEL );
40334017 if (!phba -> ep_array ) {
4034- beiscsi_log (phba , KERN_ERR , BEISCSI_LOG_INIT ,
4035- "BM_%d : Failed to allocate memory in "
4036- "hba_setup_cid_tbls\n" );
40374018 ret = - ENOMEM ;
40384019
40394020 goto free_memory ;
@@ -4043,10 +4024,6 @@ static int hba_setup_cid_tbls(struct beiscsi_hba *phba)
40434024 sizeof (struct beiscsi_conn * ),
40444025 GFP_KERNEL );
40454026 if (!phba -> conn_table ) {
4046- beiscsi_log (phba , KERN_ERR , BEISCSI_LOG_INIT ,
4047- "BM_%d : Failed to allocate memory in"
4048- "hba_setup_cid_tbls\n" );
4049-
40504027 kfree (phba -> ep_array );
40514028 phba -> ep_array = NULL ;
40524029 ret = - ENOMEM ;
@@ -4399,7 +4376,7 @@ static int beiscsi_alloc_pdu(struct iscsi_task *task, uint8_t opcode)
43994376 if (!io_task -> psgl_handle ) {
44004377 beiscsi_log (phba , KERN_ERR ,
44014378 BEISCSI_LOG_IO | BEISCSI_LOG_CONFIG ,
4402- "BM_%d : Alloc of IO_SGL_ICD Failed"
4379+ "BM_%d : Alloc of IO_SGL_ICD Failed "
44034380 "for the CID : %d\n" ,
44044381 beiscsi_conn -> beiscsi_conn_cid );
44054382 goto free_hndls ;
@@ -4410,7 +4387,7 @@ static int beiscsi_alloc_pdu(struct iscsi_task *task, uint8_t opcode)
44104387 if (!io_task -> pwrb_handle ) {
44114388 beiscsi_log (phba , KERN_ERR ,
44124389 BEISCSI_LOG_IO | BEISCSI_LOG_CONFIG ,
4413- "BM_%d : Alloc of WRB_HANDLE Failed"
4390+ "BM_%d : Alloc of WRB_HANDLE Failed "
44144391 "for the CID : %d\n" ,
44154392 beiscsi_conn -> beiscsi_conn_cid );
44164393 goto free_io_hndls ;
@@ -4426,10 +4403,9 @@ static int beiscsi_alloc_pdu(struct iscsi_task *task, uint8_t opcode)
44264403 beiscsi_log (phba , KERN_ERR ,
44274404 BEISCSI_LOG_IO |
44284405 BEISCSI_LOG_CONFIG ,
4429- "BM_%d : Alloc of MGMT_SGL_ICD Failed"
4406+ "BM_%d : Alloc of MGMT_SGL_ICD Failed "
44304407 "for the CID : %d\n" ,
4431- beiscsi_conn ->
4432- beiscsi_conn_cid );
4408+ beiscsi_conn -> beiscsi_conn_cid );
44334409 goto free_hndls ;
44344410 }
44354411
@@ -4444,10 +4420,9 @@ static int beiscsi_alloc_pdu(struct iscsi_task *task, uint8_t opcode)
44444420 beiscsi_log (phba , KERN_ERR ,
44454421 BEISCSI_LOG_IO |
44464422 BEISCSI_LOG_CONFIG ,
4447- "BM_%d : Alloc of WRB_HANDLE Failed"
4423+ "BM_%d : Alloc of WRB_HANDLE Failed "
44484424 "for the CID : %d\n" ,
4449- beiscsi_conn ->
4450- beiscsi_conn_cid );
4425+ beiscsi_conn -> beiscsi_conn_cid );
44514426 goto free_mgmt_hndls ;
44524427 }
44534428 beiscsi_conn -> plogin_wrb_handle =
@@ -4465,10 +4440,9 @@ static int beiscsi_alloc_pdu(struct iscsi_task *task, uint8_t opcode)
44654440 beiscsi_log (phba , KERN_ERR ,
44664441 BEISCSI_LOG_IO |
44674442 BEISCSI_LOG_CONFIG ,
4468- "BM_%d : Alloc of MGMT_SGL_ICD Failed"
4443+ "BM_%d : Alloc of MGMT_SGL_ICD Failed "
44694444 "for the CID : %d\n" ,
4470- beiscsi_conn ->
4471- beiscsi_conn_cid );
4445+ beiscsi_conn -> beiscsi_conn_cid );
44724446 goto free_hndls ;
44734447 }
44744448 io_task -> pwrb_handle =
@@ -4478,7 +4452,7 @@ static int beiscsi_alloc_pdu(struct iscsi_task *task, uint8_t opcode)
44784452 if (!io_task -> pwrb_handle ) {
44794453 beiscsi_log (phba , KERN_ERR ,
44804454 BEISCSI_LOG_IO | BEISCSI_LOG_CONFIG ,
4481- "BM_%d : Alloc of WRB_HANDLE Failed"
4455+ "BM_%d : Alloc of WRB_HANDLE Failed "
44824456 "for the CID : %d\n" ,
44834457 beiscsi_conn -> beiscsi_conn_cid );
44844458 goto free_mgmt_hndls ;
0 commit comments