@@ -135,7 +135,8 @@ static int be_mcc_notify(struct be_adapter *adapter)
135
135
136
136
/* To check if valid bit is set, check the entire word as we don't know
137
137
* the endianness of the data (old entry is host endian while a new entry is
138
- * little endian) */
138
+ * little endian)
139
+ */
139
140
static inline bool be_mcc_compl_is_new (struct be_mcc_compl * compl )
140
141
{
141
142
u32 flags ;
@@ -248,7 +249,8 @@ static int be_mcc_compl_process(struct be_adapter *adapter,
248
249
u8 opcode = 0 , subsystem = 0 ;
249
250
250
251
/* Just swap the status to host endian; mcc tag is opaquely copied
251
- * from mcc_wrb */
252
+ * from mcc_wrb
253
+ */
252
254
be_dws_le_to_cpu (compl , 4 );
253
255
254
256
base_status = base_status (compl -> status );
@@ -657,8 +659,7 @@ static int be_mbox_db_ready_wait(struct be_adapter *adapter, void __iomem *db)
657
659
return 0 ;
658
660
}
659
661
660
- /*
661
- * Insert the mailbox address into the doorbell in two steps
662
+ /* Insert the mailbox address into the doorbell in two steps
662
663
* Polls on the mbox doorbell till a command completion (or a timeout) occurs
663
664
*/
664
665
static int be_mbox_notify_wait (struct be_adapter * adapter )
@@ -802,7 +803,7 @@ static void be_wrb_cmd_hdr_prepare(struct be_cmd_req_hdr *req_hdr,
802
803
req_hdr -> subsystem = subsystem ;
803
804
req_hdr -> request_length = cpu_to_le32 (cmd_len - sizeof (* req_hdr ));
804
805
req_hdr -> version = 0 ;
805
- fill_wrb_tags (wrb , (ulong ) req_hdr );
806
+ fill_wrb_tags (wrb , (ulong )req_hdr );
806
807
wrb -> payload_length = cmd_len ;
807
808
if (mem ) {
808
809
wrb -> embedded |= (1 & MCC_WRB_SGE_CNT_MASK ) <<
@@ -832,8 +833,8 @@ static void be_cmd_page_addrs_prepare(struct phys_addr *pages, u32 max_pages,
832
833
static inline struct be_mcc_wrb * wrb_from_mbox (struct be_adapter * adapter )
833
834
{
834
835
struct be_dma_mem * mbox_mem = & adapter -> mbox_mem ;
835
- struct be_mcc_wrb * wrb
836
- = & (( struct be_mcc_mailbox * )( mbox_mem -> va )) -> wrb ;
836
+ struct be_mcc_wrb * wrb = & (( struct be_mcc_mailbox * )( mbox_mem -> va )) -> wrb ;
837
+
837
838
memset (wrb , 0 , sizeof (* wrb ));
838
839
return wrb ;
839
840
}
@@ -896,7 +897,7 @@ static struct be_mcc_wrb *be_cmd_copy(struct be_adapter *adapter,
896
897
897
898
memcpy (dest_wrb , wrb , sizeof (* wrb ));
898
899
if (wrb -> embedded & cpu_to_le32 (MCC_WRB_EMBEDDED_MASK ))
899
- fill_wrb_tags (dest_wrb , (ulong ) embedded_payload (wrb ));
900
+ fill_wrb_tags (dest_wrb , (ulong )embedded_payload (wrb ));
900
901
901
902
return dest_wrb ;
902
903
}
@@ -1114,7 +1115,7 @@ int be_cmd_pmac_add(struct be_adapter *adapter, const u8 *mac_addr,
1114
1115
err :
1115
1116
mutex_unlock (& adapter -> mcc_lock );
1116
1117
1117
- if (base_status (status ) == MCC_STATUS_UNAUTHORIZED_REQUEST )
1118
+ if (base_status (status ) == MCC_STATUS_UNAUTHORIZED_REQUEST )
1118
1119
status = - EPERM ;
1119
1120
1120
1121
return status ;
@@ -1803,7 +1804,7 @@ int be_cmd_get_fat_dump(struct be_adapter *adapter, u32 buf_len, void *buf)
1803
1804
1804
1805
total_size = buf_len ;
1805
1806
1806
- get_fat_cmd .size = sizeof (struct be_cmd_req_get_fat ) + 60 * 1024 ;
1807
+ get_fat_cmd .size = sizeof (struct be_cmd_req_get_fat ) + 60 * 1024 ;
1807
1808
get_fat_cmd .va = dma_alloc_coherent (& adapter -> pdev -> dev ,
1808
1809
get_fat_cmd .size ,
1809
1810
& get_fat_cmd .dma , GFP_ATOMIC );
@@ -1813,7 +1814,7 @@ int be_cmd_get_fat_dump(struct be_adapter *adapter, u32 buf_len, void *buf)
1813
1814
mutex_lock (& adapter -> mcc_lock );
1814
1815
1815
1816
while (total_size ) {
1816
- buf_size = min (total_size , (u32 )60 * 1024 );
1817
+ buf_size = min (total_size , (u32 )60 * 1024 );
1817
1818
total_size -= buf_size ;
1818
1819
1819
1820
wrb = wrb_from_mccq (adapter );
@@ -3362,7 +3363,7 @@ int be_cmd_ddr_dma_test(struct be_adapter *adapter, u64 pattern,
3362
3363
req -> pattern = cpu_to_le64 (pattern );
3363
3364
req -> byte_count = cpu_to_le32 (byte_cnt );
3364
3365
for (i = 0 ; i < byte_cnt ; i ++ ) {
3365
- req -> snd_buff [i ] = (u8 )(pattern >> (j * 8 ));
3366
+ req -> snd_buff [i ] = (u8 )(pattern >> (j * 8 ));
3366
3367
j ++ ;
3367
3368
if (j > 7 )
3368
3369
j = 0 ;
@@ -3846,7 +3847,7 @@ int be_cmd_set_mac_list(struct be_adapter *adapter, u8 *mac_array,
3846
3847
req -> hdr .domain = domain ;
3847
3848
req -> mac_count = mac_count ;
3848
3849
if (mac_count )
3849
- memcpy (req -> mac , mac_array , ETH_ALEN * mac_count );
3850
+ memcpy (req -> mac , mac_array , ETH_ALEN * mac_count );
3850
3851
3851
3852
status = be_mcc_notify_wait (adapter );
3852
3853
0 commit comments