Skip to content

Commit 6dfb866

Browse files
committed
Rename vNetworkInterfaceAllocateRAMToBuffers to uxNetworkInterfaceAllocateRAMToBuffers
1 parent d4ffb9b commit 6dfb866

File tree

28 files changed

+37
-37
lines changed

28 files changed

+37
-37
lines changed

source/include/NetworkInterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
*/
4949

5050
/* The following function is defined only when BufferAllocation_1.c is linked in the project. */
51-
size_t vNetworkInterfaceAllocateRAMToBuffers( NetworkBufferDescriptor_t pxNetworkBuffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ] );
51+
size_t uxNetworkInterfaceAllocateRAMToBuffers( NetworkBufferDescriptor_t pxNetworkBuffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ] );
5252

5353
BaseType_t xGetPhyLinkStatus( struct xNetworkInterface * pxInterface );
5454

source/portable/BufferManagement/BufferAllocation_1.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static NetworkBufferDescriptor_t xNetworkBuffers[ ipconfigNUM_NETWORK_BUFFER_DES
7070
* packet. No resizing will be done. */
7171
const BaseType_t xBufferAllocFixedSize = pdTRUE;
7272

73-
static size_t xMaxNetworkInterfaceAllocatedSizeBytes;
73+
static size_t uxMaxNetworkInterfaceAllocatedSizeBytes;
7474

7575
/* The semaphore used to obtain network buffers. */
7676
static SemaphoreHandle_t xNetworkBufferSemaphore = NULL;
@@ -203,7 +203,7 @@ BaseType_t xNetworkBuffersInitialise( void )
203203
/* Initialise all the network buffers. The buffer storage comes
204204
* from the network interface, and different hardware has different
205205
* requirements. */
206-
xMaxNetworkInterfaceAllocatedSizeBytes = vNetworkInterfaceAllocateRAMToBuffers( xNetworkBuffers );
206+
uxMaxNetworkInterfaceAllocatedSizeBytes = uxNetworkInterfaceAllocateRAMToBuffers( xNetworkBuffers );
207207

208208
for( x = 0U; x < ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS; x++ )
209209
{
@@ -240,7 +240,7 @@ NetworkBufferDescriptor_t * pxGetNetworkBufferWithDescriptor( size_t xRequestedS
240240
UBaseType_t uxCount;
241241

242242
if( ( xNetworkBufferSemaphore != NULL ) &&
243-
( xRequestedSizeBytes <= xMaxNetworkInterfaceAllocatedSizeBytes ) )
243+
( xRequestedSizeBytes <= uxMaxNetworkInterfaceAllocatedSizeBytes ) )
244244
{
245245
/* If there is a semaphore available, there is a network buffer
246246
* available. */
@@ -431,7 +431,7 @@ UBaseType_t uxGetNumberOfFreeNetworkBuffers( void )
431431
NetworkBufferDescriptor_t * pxResizeNetworkBufferWithDescriptor( NetworkBufferDescriptor_t * pxNetworkBuffer,
432432
size_t xNewSizeBytes )
433433
{
434-
if( xNewSizeBytes <= xMaxNetworkInterfaceAllocatedSizeBytes )
434+
if( xNewSizeBytes <= uxMaxNetworkInterfaceAllocatedSizeBytes )
435435
{
436436
/* In BufferAllocation_1.c all network buffer are allocated with a
437437
* maximum size of 'ipTOTAL_ETHERNET_FRAME_SIZE'.No need to resize the

source/portable/NetworkInterface/ATSAME5x/NetworkInterface.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,10 +499,10 @@ void xRxCallback( void )
499499

500500
#if ( ipUSE_STATIC_ALLOCATION == 1 )
501501

502-
/* Next provide the vNetworkInterfaceAllocateRAMToBuffers() function, which
502+
/* Next provide the uxNetworkInterfaceAllocateRAMToBuffers() function, which
503503
* simply fills in the pucEthernetBuffer member of each descriptor and returns
504504
* the allocated buffer size. */
505-
size_t vNetworkInterfaceAllocateRAMToBuffers( NetworkBufferDescriptor_t pxNetworkBuffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ] )
505+
size_t uxNetworkInterfaceAllocateRAMToBuffers( NetworkBufferDescriptor_t pxNetworkBuffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ] )
506506
{
507507
BaseType_t x;
508508

source/portable/NetworkInterface/DriverSAM/NetworkInterface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ static void vCheckBuffersAndQueue( void )
14091409
/*-----------------------------------------------------------*/
14101410

14111411
extern uint8_t ucNetworkPackets[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS * NETWORK_BUFFER_SIZE ];
1412-
size_t vNetworkInterfaceAllocateRAMToBuffers( NetworkBufferDescriptor_t pxNetworkBuffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ] )
1412+
size_t uxNetworkInterfaceAllocateRAMToBuffers( NetworkBufferDescriptor_t pxNetworkBuffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ] )
14131413
{
14141414
uint8_t * ucRAMBuffer = ucNetworkPackets;
14151415
uint32_t ulIndex;

source/portable/NetworkInterface/LPC18xx/NetworkInterface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ BaseType_t xNetworkInterfaceInitialise( void )
332332

333333
static __attribute__( ( section( "._ramAHB32" ) ) ) uint8_t ucNetworkPackets[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS * niBUFFER_1_PACKET_SIZE ] __attribute__( ( aligned( 32 ) ) );
334334

335-
size_t vNetworkInterfaceAllocateRAMToBuffers( NetworkBufferDescriptor_t pxNetworkBuffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ] )
335+
size_t uxNetworkInterfaceAllocateRAMToBuffers( NetworkBufferDescriptor_t pxNetworkBuffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ] )
336336
{
337337
uint8_t * ucRAMBuffer = ucNetworkPackets;
338338
uint32_t ul;

source/portable/NetworkInterface/LPC54018/NetworkInterface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ BaseType_t xNetworkInterfaceOutput( NetworkBufferDescriptor_t * const pxNetworkB
372372
/* statically allocate the buffers */
373373
/* allocating them as uint32_t's to force them into word alignment, a requirement of the DMA. */
374374
__ALIGN_BEGIN static uint32_t buffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ][ ( ipBUFFER_PADDING + ENET_RXBUFF_SIZE ) / sizeof( uint32_t ) + 1 ] __ALIGN_END;
375-
size_t vNetworkInterfaceAllocateRAMToBuffers( NetworkBufferDescriptor_t pxNetworkBuffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ] )
375+
size_t uxNetworkInterfaceAllocateRAMToBuffers( NetworkBufferDescriptor_t pxNetworkBuffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ] )
376376
{
377377
for( int x = 0; x < ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS; x++ )
378378
{

source/portable/NetworkInterface/M487/NetworkInterface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ BaseType_t xNetworkInterfaceOutput( NetworkBufferDescriptor_t * const pxDescript
180180
}
181181

182182

183-
size_t vNetworkInterfaceAllocateRAMToBuffers( NetworkBufferDescriptor_t pxNetworkBuffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ] )
183+
size_t uxNetworkInterfaceAllocateRAMToBuffers( NetworkBufferDescriptor_t pxNetworkBuffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ] )
184184
{
185185
uint8_t * ucRAMBuffer = ucNetworkPackets;
186186
uint32_t ul;

source/portable/NetworkInterface/MPS2_AN385/NetworkInterface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ static BaseType_t xMPS2_NetworkInterfaceOutput( NetworkInterface_t * pxInterface
368368
}
369369
/*-----------------------------------------------------------*/
370370

371-
size_t vNetworkInterfaceAllocateRAMToBuffers( NetworkBufferDescriptor_t pxNetworkBuffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ] )
371+
size_t uxNetworkInterfaceAllocateRAMToBuffers( NetworkBufferDescriptor_t pxNetworkBuffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ] )
372372
{
373373
/* FIX ME if you want to use BufferAllocation_1.c, which uses statically
374374
* allocated network buffers. */

source/portable/NetworkInterface/MPS3_AN552/NetworkInterface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ static BaseType_t xLAN91C111_NetworkInterfaceOutput( NetworkInterface_t * pxInte
485485
}
486486
/*-----------------------------------------------------------*/
487487

488-
size_t vNetworkInterfaceAllocateRAMToBuffers( NetworkBufferDescriptor_t pxNetworkBuffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ] )
488+
size_t uxNetworkInterfaceAllocateRAMToBuffers( NetworkBufferDescriptor_t pxNetworkBuffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ] )
489489
{
490490
/* FIX ME if you want to use BufferAllocation_1.c, which uses statically
491491
* allocated network buffers. */

source/portable/NetworkInterface/MPS4_CS315/NetworkInterface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ static BaseType_t xLAN91C111_NetworkInterfaceOutput( NetworkInterface_t * pxInte
485485
}
486486
/*-----------------------------------------------------------*/
487487

488-
size_t vNetworkInterfaceAllocateRAMToBuffers( NetworkBufferDescriptor_t pxNetworkBuffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ] )
488+
size_t uxNetworkInterfaceAllocateRAMToBuffers( NetworkBufferDescriptor_t pxNetworkBuffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ] )
489489
{
490490
/* FIX ME if you want to use BufferAllocation_1.c, which uses statically
491491
* allocated network buffers. */

0 commit comments

Comments
 (0)