Skip to content

Commit ceeb6fe

Browse files
JoePerchesgregkh
authored andcommitted
staging: Fix recieve/receive typos
Just spelling fixes. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent d9b42c0 commit ceeb6fe

7 files changed

Lines changed: 20 additions & 20 deletions

File tree

‎drivers/staging/bcm/Debug.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ DriverEntry.c, bcmfwup.c, ChipDetectTask.c, HaltnReset.c, InterfaceDDR.c */
131131

132132
// TODO - put PHS_SEND in Tx PHS_RECEIVE in Rx path ?
133133
#define PHS_SEND (OTHERS<<16)
134-
#define PHS_RECIEVE (OTHERS<<17)
134+
#define PHS_RECEIVE (OTHERS<<17)
135135
#define PHS_MODULE (OTHERS<<18)
136136

137137
#define INTF_INIT (OTHERS<<19)

‎drivers/staging/bcm/InterfaceRx.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ static void read_bulk_callback(struct urb *urb)
157157
{
158158
/* Moving ahead by ETH_HLEN to the data ptr as received from FW */
159159
skb_pull(skb, ETH_HLEN);
160-
PHSRecieve(Adapter, pLeader->Vcid, skb, &skb->len,
160+
PHSReceive(Adapter, pLeader->Vcid, skb, &skb->len,
161161
NULL,bHeaderSupressionEnabled);
162162

163163
if(!Adapter->PackInfo[QueueIndex].bEthCSSupport)
@@ -229,7 +229,7 @@ static int ReceiveRcb(PS_INTERFACE_ADAPTER psIntfAdapter, PUSB_RCB pRcb)
229229
/*
230230
Function: InterfaceRx
231231
232-
Description: This is the hardware specific Function for Recieveing
232+
Description: This is the hardware specific Function for Receiving
233233
data packet/control packets from the device.
234234
235235
Input parameters: IN PMINI_ADAPTER Adapter - Miniport Adapter Context

‎drivers/staging/bcm/Macros.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ enum enLinkStatus {
176176
PHY_SYNC_ACHIVED = 2,
177177
LINKUP_IN_PROGRESS = 3,
178178
LINKUP_DONE = 4,
179-
DREG_RECIEVED = 5,
180-
LINK_STATUS_RESET_RECIEVED = 6,
179+
DREG_RECEIVED = 5,
180+
LINK_STATUS_RESET_RECEIVED = 6,
181181
PERIODIC_WAKE_UP_NOTIFICATION_FRM_FW = 7,
182182
LINK_SHUTDOWN_REQ_FROM_FIRMWARE = 8,
183183
COMPLETE_WAKE_UP_NOTIFICATION_FRM_FW =9

‎drivers/staging/bcm/PHSModule.c‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ int PHSTransmit(PMINI_ADAPTER Adapter,
209209
return STATUS_SUCCESS;
210210
}
211211

212-
int PHSRecieve(PMINI_ADAPTER Adapter,
212+
int PHSReceive(PMINI_ADAPTER Adapter,
213213
USHORT usVcid,
214214
struct sk_buff *packet,
215215
UINT *punPacketLen,
@@ -223,7 +223,7 @@ int PHSRecieve(PMINI_ADAPTER Adapter,
223223
UINT TotalBytesAdded = 0;
224224
if(!bHeaderSuppressionEnabled)
225225
{
226-
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECIEVE,DBG_LVL_ALL,"\nPhs Disabled for incoming packet");
226+
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECEIVE,DBG_LVL_ALL,"\nPhs Disabled for incoming packet");
227227
return ulPhsStatus;
228228
}
229229

@@ -238,7 +238,7 @@ int PHSRecieve(PMINI_ADAPTER Adapter,
238238
&nTotalsupressedPktHdrBytes,
239239
&nStandardPktHdrLen);
240240

241-
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECIEVE,DBG_LVL_ALL,"\nSupressed PktHdrLen : 0x%x Restored PktHdrLen : 0x%x",
241+
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECEIVE,DBG_LVL_ALL,"\nSupressed PktHdrLen : 0x%x Restored PktHdrLen : 0x%x",
242242
nTotalsupressedPktHdrBytes,nStandardPktHdrLen);
243243

244244
if(ulPhsStatus != STATUS_PHS_COMPRESSED)
@@ -786,14 +786,14 @@ ULONG PhsDeCompress(IN void* pvContext,
786786

787787
if(pDeviceExtension == NULL)
788788
{
789-
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECIEVE,DBG_LVL_ALL,"Invalid Device Extension\n");
789+
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECEIVE,DBG_LVL_ALL,"Invalid Device Extension\n");
790790
return ERR_PHS_INVALID_DEVICE_EXETENSION;
791791
}
792792

793-
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECIEVE,DBG_LVL_ALL,"Restoring header \n");
793+
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECEIVE,DBG_LVL_ALL,"Restoring header\n");
794794

795795
phsi = *((unsigned char *)(pvInputBuffer));
796-
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECIEVE,DBG_LVL_ALL,"PHSI To Be Used For restore : %x \n",phsi);
796+
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECEIVE,DBG_LVL_ALL,"PHSI To Be Used For restore : %x\n",phsi);
797797
if(phsi == UNCOMPRESSED_PACKET )
798798
{
799799
return STATUS_PHS_NOCOMPRESSION;
@@ -804,7 +804,7 @@ ULONG PhsDeCompress(IN void* pvContext,
804804
uiVcid,&pstServiceFlowEntry);
805805
if(nSFIndex == PHS_INVALID_TABLE_INDEX)
806806
{
807-
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECIEVE,DBG_LVL_ALL,"SFID Match Failed During Lookup\n");
807+
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECEIVE,DBG_LVL_ALL,"SFID Match Failed During Lookup\n");
808808
return ERR_SF_MATCH_FAIL;
809809
}
810810

@@ -1417,37 +1417,37 @@ int phs_decompress(unsigned char *in_buf,unsigned char *out_buf,
14171417
int in_buf_len = *header_size-1;
14181418
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev);
14191419
in_buf++;
1420-
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECIEVE,DBG_LVL_ALL,"====>\n");
1420+
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECEIVE,DBG_LVL_ALL,"====>\n");
14211421
*header_size = 0;
14221422

14231423
if((decomp_phs_rules == NULL ))
14241424
return 0;
14251425

14261426

14271427
tmp_memb = decomp_phs_rules;
1428-
//BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECIEVE,DBG_LVL_ALL,"\nDECOMP:In phs_decompress PHSI 1 %d",phsi));
1428+
//BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECEIVE,DBG_LVL_ALL,"\nDECOMP:In phs_decompress PHSI 1 %d",phsi));
14291429
//*header_size = tmp_memb->u8PHSFLength;
14301430
phss = tmp_memb->u8PHSS;
14311431
phsf = tmp_memb->u8PHSF;
14321432
phsm = tmp_memb->u8PHSM;
14331433

14341434
if(phss > MAX_PHS_LENGTHS)
14351435
phss = MAX_PHS_LENGTHS;
1436-
//BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECIEVE,DBG_LVL_ALL,"\nDECOMP:In phs_decompress PHSI %d phss %d index %d",phsi,phss,index));
1436+
//BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECEIVE,DBG_LVL_ALL,"\nDECOMP:In phs_decompress PHSI %d phss %d index %d",phsi,phss,index));
14371437
while((phss > 0) && (size < in_buf_len))
14381438
{
14391439
bit = ((*phsm << i)& SUPPRESS);
14401440

14411441
if(bit == SUPPRESS)
14421442
{
14431443
*out_buf = *phsf;
1444-
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECIEVE,DBG_LVL_ALL,"\nDECOMP:In phss %d phsf %d ouput %d",
1444+
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECEIVE,DBG_LVL_ALL,"\nDECOMP:In phss %d phsf %d ouput %d",
14451445
phss,*phsf,*out_buf);
14461446
}
14471447
else
14481448
{
14491449
*out_buf = *in_buf;
1450-
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECIEVE,DBG_LVL_ALL,"\nDECOMP:In phss %d input %d ouput %d",
1450+
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECEIVE,DBG_LVL_ALL,"\nDECOMP:In phss %d input %d ouput %d",
14511451
phss,*in_buf,*out_buf);
14521452
in_buf++;
14531453
size++;

‎drivers/staging/bcm/PHSModule.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ int PHSTransmit(PMINI_ADAPTER Adapter,
99
PUINT PacketLen,
1010
UCHAR bEthCSSupport);
1111

12-
int PHSRecieve(PMINI_ADAPTER Adapter,
12+
int PHSReceive(PMINI_ADAPTER Adapter,
1313
USHORT usVcid,
1414
struct sk_buff *packet,
1515
UINT *punPacketLen,

‎drivers/staging/usbip/userspace/src/usbip_attach.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static int query_import_device(int sockfd, char *busid)
131131
return -1;
132132
}
133133

134-
/* recieve a reply */
134+
/* receive a reply */
135135
rc = usbip_recv_op_common(sockfd, &code);
136136
if (rc < 0) {
137137
err("recv op_common");

‎drivers/staging/usbip/userspace/src/usbipd.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ gboolean process_comming_request(GIOChannel *gio, GIOCondition condition,
409409

410410
ret = recv_pdu(csock);
411411
if (ret < 0)
412-
err("process recieved pdu");
412+
err("process received pdu");
413413

414414
close(csock);
415415
}

0 commit comments

Comments
 (0)