NetworkPkg: Apply uncrustify changes

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737

Apply uncrustify changes to .c/.h files in the NetworkPkg package

Cc: Andrew Fish <afish@apple.com>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
This commit is contained in:
Michael Kubacki
2021-12-05 14:54:07 -08:00
committed by mergify[bot]
parent 2f88bd3a12
commit d1050b9dff
294 changed files with 29888 additions and 30440 deletions

View File

@@ -16,14 +16,13 @@
// the holes are filled in, then the download or upload has completed.
//
typedef struct {
LIST_ENTRY Link;
INTN Start;
INTN End;
INTN Round;
INTN Bound;
LIST_ENTRY Link;
INTN Start;
INTN End;
INTN Round;
INTN Bound;
} MTFTP6_BLOCK_RANGE;
/**
Initialize the block range for either RRQ or WRQ. RRQ and WRQ have
different requirements for Start and End. For example, during startup,
@@ -46,12 +45,11 @@ typedef struct {
**/
EFI_STATUS
Mtftp6InitBlockRange (
IN LIST_ENTRY *Head,
IN UINT16 Start,
IN UINT16 End
IN LIST_ENTRY *Head,
IN UINT16 Start,
IN UINT16 End
);
/**
Get the first valid block number on the range list.
@@ -63,10 +61,9 @@ Mtftp6InitBlockRange (
**/
INTN
Mtftp6GetNextBlockNum (
IN LIST_ENTRY *Head
IN LIST_ENTRY *Head
);
/**
Set the last block number of the block range list. It
removes all the blocks after the Last. MTFTP initialize the
@@ -80,11 +77,10 @@ Mtftp6GetNextBlockNum (
**/
VOID
Mtftp6SetLastBlockNum (
IN LIST_ENTRY *Head,
IN UINT16 Last
IN LIST_ENTRY *Head,
IN UINT16 Last
);
/**
Remove the block number from the block range list.
@@ -100,13 +96,12 @@ Mtftp6SetLastBlockNum (
**/
EFI_STATUS
Mtftp6RemoveBlockNum (
IN LIST_ENTRY *Head,
IN UINT16 Num,
IN BOOLEAN Completed,
OUT UINT64 *BlockCounter
IN LIST_ENTRY *Head,
IN UINT16 Num,
IN BOOLEAN Completed,
OUT UINT64 *BlockCounter
);
/**
Build and transmit the request packet for the Mtftp6 instance.
@@ -120,11 +115,10 @@ Mtftp6RemoveBlockNum (
**/
EFI_STATUS
Mtftp6SendRequest (
IN MTFTP6_INSTANCE *Instance,
IN UINT16 Operation
IN MTFTP6_INSTANCE *Instance,
IN UINT16 Operation
);
/**
Build and send an error packet.
@@ -139,12 +133,11 @@ Mtftp6SendRequest (
**/
EFI_STATUS
Mtftp6SendError (
IN MTFTP6_INSTANCE *Instance,
IN UINT16 ErrCode,
IN UINT8* ErrInfo
IN MTFTP6_INSTANCE *Instance,
IN UINT16 ErrCode,
IN UINT8 *ErrInfo
);
/**
Send the packet for the Mtftp6 instance.
@@ -157,11 +150,10 @@ Mtftp6SendError (
**/
EFI_STATUS
Mtftp6TransmitPacket (
IN MTFTP6_INSTANCE *Instance,
IN NET_BUF *Packet
IN MTFTP6_INSTANCE *Instance,
IN NET_BUF *Packet
);
/**
Check packet for GetInfo callback routine.
@@ -177,13 +169,12 @@ Mtftp6TransmitPacket (
EFI_STATUS
EFIAPI
Mtftp6CheckPacket (
IN EFI_MTFTP6_PROTOCOL *This,
IN EFI_MTFTP6_TOKEN *Token,
IN UINT16 PacketLen,
IN EFI_MTFTP6_PACKET *Packet
IN EFI_MTFTP6_PROTOCOL *This,
IN EFI_MTFTP6_TOKEN *Token,
IN UINT16 PacketLen,
IN EFI_MTFTP6_PACKET *Packet
);
/**
The dummy configure routine for create a new Udp6 Io.
@@ -196,11 +187,10 @@ Mtftp6CheckPacket (
EFI_STATUS
EFIAPI
Mtftp6ConfigDummyUdpIo (
IN UDP_IO *UdpIo,
IN VOID *Context
IN UDP_IO *UdpIo,
IN VOID *Context
);
/**
The configure routine for the Mtftp6 instance to transmit/receive.
@@ -217,14 +207,13 @@ Mtftp6ConfigDummyUdpIo (
**/
EFI_STATUS
Mtftp6ConfigUdpIo (
IN UDP_IO *UdpIo,
IN EFI_IPv6_ADDRESS *ServerIp,
IN UINT16 ServerPort,
IN EFI_IPv6_ADDRESS *LocalIp,
IN UINT16 LocalPort
IN UDP_IO *UdpIo,
IN EFI_IPv6_ADDRESS *ServerIp,
IN UINT16 ServerPort,
IN EFI_IPv6_ADDRESS *LocalIp,
IN UINT16 LocalPort
);
/**
Clean up the current Mtftp6 operation.
@@ -234,11 +223,10 @@ Mtftp6ConfigUdpIo (
**/
VOID
Mtftp6OperationClean (
IN MTFTP6_INSTANCE *Instance,
IN EFI_STATUS Result
IN MTFTP6_INSTANCE *Instance,
IN EFI_STATUS Result
);
/**
Start the Mtftp6 instance to perform the operation, such as read file,
write file, and read directory.
@@ -255,12 +243,11 @@ Mtftp6OperationClean (
**/
EFI_STATUS
Mtftp6OperationStart (
IN EFI_MTFTP6_PROTOCOL *This,
IN EFI_MTFTP6_TOKEN *Token,
IN UINT16 OpCode
IN EFI_MTFTP6_PROTOCOL *This,
IN EFI_MTFTP6_TOKEN *Token,
IN UINT16 OpCode
);
/**
The timer ticking routine for the Mtftp6 instance.
@@ -271,11 +258,10 @@ Mtftp6OperationStart (
VOID
EFIAPI
Mtftp6OnTimerTick (
IN EFI_EVENT Event,
IN VOID *Context
IN EFI_EVENT Event,
IN VOID *Context
);
/**
The packet process callback for Mtftp6 upload.
@@ -288,13 +274,12 @@ Mtftp6OnTimerTick (
VOID
EFIAPI
Mtftp6WrqInput (
IN NET_BUF *UdpPacket,
IN UDP_END_POINT *UdpEpt,
IN EFI_STATUS IoStatus,
IN VOID *Context
IN NET_BUF *UdpPacket,
IN UDP_END_POINT *UdpEpt,
IN EFI_STATUS IoStatus,
IN VOID *Context
);
/**
Start the Mtftp6 instance to upload. It will first init some states,
then send the WRQ request packet, and start to receive the packet.
@@ -308,11 +293,10 @@ Mtftp6WrqInput (
**/
EFI_STATUS
Mtftp6WrqStart (
IN MTFTP6_INSTANCE *Instance,
IN UINT16 Operation
IN MTFTP6_INSTANCE *Instance,
IN UINT16 Operation
);
/**
The packet process callback for Mtftp6 download.
@@ -325,13 +309,12 @@ Mtftp6WrqStart (
VOID
EFIAPI
Mtftp6RrqInput (
IN NET_BUF *UdpPacket,
IN UDP_END_POINT *UdpEpt,
IN EFI_STATUS IoStatus,
IN VOID *Context
IN NET_BUF *UdpPacket,
IN UDP_END_POINT *UdpEpt,
IN EFI_STATUS IoStatus,
IN VOID *Context
);
/**
Start the Mtftp6 instance to download. It first initializes some
of the internal states then builds and sends an RRQ request packet.
@@ -346,8 +329,8 @@ Mtftp6RrqInput (
**/
EFI_STATUS
Mtftp6RrqStart (
IN MTFTP6_INSTANCE *Instance,
IN UINT16 Operation
IN MTFTP6_INSTANCE *Instance,
IN UINT16 Operation
);
#endif