mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-15 17:34:43 +00:00
efi_loader: correct function comment style
Replace @return and @param. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
ab37facd46
commit
3dd719d4fb
38 changed files with 86 additions and 86 deletions
|
@ -1084,7 +1084,7 @@ static const struct efi_file_handle efi_file_handle_protocol = {
|
|||
* efi_file_from_path() - open file via device path
|
||||
*
|
||||
* @fp: device path
|
||||
* @return: EFI_FILE_PROTOCOL for the file or NULL
|
||||
* Return: EFI_FILE_PROTOCOL for the file or NULL
|
||||
*/
|
||||
struct efi_file_handle *efi_file_from_path(struct efi_device_path *fp)
|
||||
{
|
||||
|
|
|
@ -97,8 +97,8 @@ void *memset(void *s, int c, size_t n)
|
|||
*
|
||||
* We do nothing here.
|
||||
*
|
||||
* @param func_ptr Pointer to function being entered
|
||||
* @param caller Pointer to function which called this function
|
||||
* func_ptr: Pointer to function being entered
|
||||
* caller: Pointer to function which called this function
|
||||
*/
|
||||
void __attribute__((no_instrument_function))
|
||||
__cyg_profile_func_enter(void *func_ptr, void *caller)
|
||||
|
@ -113,8 +113,8 @@ __cyg_profile_func_enter(void *func_ptr, void *caller)
|
|||
*
|
||||
* We do nothing here.
|
||||
*
|
||||
* @param func_ptr Pointer to function being entered
|
||||
* @param caller Pointer to function which called this function
|
||||
* func_ptr: Pointer to function being entered
|
||||
* caller: Pointer to function which called this function
|
||||
*/
|
||||
void __attribute__((no_instrument_function))
|
||||
__cyg_profile_func_exit(void *func_ptr, void *caller)
|
||||
|
|
|
@ -407,7 +407,7 @@ out:
|
|||
* @width: width of rectangle
|
||||
* @height: height of rectangle
|
||||
* @delta: length in bytes of a line in the pixel buffer (optional)
|
||||
* @return: status code
|
||||
* Return: status code
|
||||
*/
|
||||
efi_status_t EFIAPI gop_blt(struct efi_gop *this, struct efi_gop_pixel *buffer,
|
||||
u32 operation, efi_uintn_t sx,
|
||||
|
|
|
@ -133,7 +133,7 @@ efi_status_t print_device_path(struct efi_device_path *device_path,
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systab: system table
|
||||
* @return: status code
|
||||
* Return: status code
|
||||
*/
|
||||
efi_status_t EFIAPI efi_main(efi_handle_t handle,
|
||||
struct efi_system_table *systab)
|
||||
|
|
|
@ -495,7 +495,7 @@ efi_status_t do_save(u16 *filename)
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systab: system table
|
||||
* @return: status code
|
||||
* Return: status code
|
||||
*/
|
||||
efi_status_t EFIAPI efi_main(efi_handle_t image_handle,
|
||||
struct efi_system_table *systab)
|
||||
|
|
|
@ -149,7 +149,7 @@ static int teardown(struct efi_unit_test *test, unsigned int *failures)
|
|||
* Check that a test requiring reset exists.
|
||||
*
|
||||
* @testname: name of the test
|
||||
* @return: test, or NULL if not found
|
||||
* Return: test, or NULL if not found
|
||||
*/
|
||||
static bool need_reset(const u16 *testname)
|
||||
{
|
||||
|
@ -170,7 +170,7 @@ static bool need_reset(const u16 *testname)
|
|||
* Check that a test exists.
|
||||
*
|
||||
* @testname: name of the test
|
||||
* @return: test, or NULL if not found
|
||||
* Return: test, or NULL if not found
|
||||
*/
|
||||
static struct efi_unit_test *find_test(const u16 *testname)
|
||||
{
|
||||
|
|
|
@ -94,7 +94,7 @@ static void EFIAPI notify(struct efi_event *event, void *context)
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -198,7 +198,7 @@ static int setup(const efi_handle_t handle,
|
|||
/*
|
||||
* Tear down unit test.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int teardown(void)
|
||||
{
|
||||
|
@ -225,7 +225,7 @@ static int teardown(void)
|
|||
/*
|
||||
* Execute unit test.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -180,7 +180,7 @@ static efi_handle_t disk_handle;
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -240,7 +240,7 @@ static int setup(const efi_handle_t handle,
|
|||
/*
|
||||
* Tear down unit test.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int teardown(void)
|
||||
{
|
||||
|
@ -292,7 +292,7 @@ static efi_uintn_t dp_size(struct efi_device_path *dp)
|
|||
/*
|
||||
* Execute unit test.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -68,7 +68,7 @@ static int check_table(const void *table)
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -85,7 +85,7 @@ static int setup(const efi_handle_t handle,
|
|||
* A table is installed, updated, removed. The table entry and the
|
||||
* triggering of events is checked.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -274,7 +274,7 @@ void efi_st_printc(int color, const char *fmt, ...)
|
|||
/*
|
||||
* Reads an Unicode character from the input device.
|
||||
*
|
||||
* @return: Unicode character
|
||||
* Return: Unicode character
|
||||
*/
|
||||
u16 efi_st_get_key(void)
|
||||
{
|
||||
|
|
|
@ -68,7 +68,7 @@ static int check_table(const void *table)
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -112,7 +112,7 @@ static int setup(const efi_handle_t handle,
|
|||
*
|
||||
* Check tables after ExitBootServices()
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -49,7 +49,7 @@ static int setup(const efi_handle_t img_handle,
|
|||
*
|
||||
* @length: length of the media device node
|
||||
* @dp: device path
|
||||
* @return: status code
|
||||
* Return: status code
|
||||
*/
|
||||
static int create_single_node_device_path(unsigned int length,
|
||||
struct efi_device_path **dp)
|
||||
|
|
|
@ -108,7 +108,7 @@ static void *lib_test_get_esrt(void)
|
|||
* @esrt: pointer to the ESRT
|
||||
* @img_info: an image_info_descriptor output by the FMP get_image_info
|
||||
*
|
||||
* @return: true if matching ESRT entry is found and if all the ESRT entry fields match the
|
||||
* Return: true if matching ESRT entry is found and if all the ESRT entry fields match the
|
||||
* corresponding @img_info fields.
|
||||
*/
|
||||
static bool lib_test_check_uuid_entry(struct efi_system_resource_table *esrt,
|
||||
|
@ -168,7 +168,7 @@ static bool lib_test_check_uuid_entry(struct efi_system_resource_table *esrt,
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -185,7 +185,7 @@ static int setup(const efi_handle_t handle,
|
|||
*
|
||||
* Uninstall the test FMP.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int teardown(void)
|
||||
{
|
||||
|
|
|
@ -38,7 +38,7 @@ static void EFIAPI notify(struct efi_event *event, void *context)
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -54,7 +54,7 @@ static int setup(const efi_handle_t handle,
|
|||
* Create multiple events in an event group. Signal each event once and check
|
||||
* that all events are notified once in each round.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -39,7 +39,7 @@ static void EFIAPI notify(struct efi_event *event, void *context)
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -69,7 +69,7 @@ static int setup(const efi_handle_t handle,
|
|||
*
|
||||
* Close the events created in setup.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int teardown(void)
|
||||
{
|
||||
|
@ -103,7 +103,7 @@ static int teardown(void)
|
|||
* Run a 100 ms single shot timer and check that it is called once
|
||||
* while waiting for 100 ms periodic timer for two periods.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -99,7 +99,7 @@ static efi_status_t decompress(u8 **image)
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -118,7 +118,7 @@ static int setup(const efi_handle_t handle,
|
|||
*
|
||||
* Load and start the application image.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -63,7 +63,7 @@ static void EFIAPI ebs_notify(struct efi_event *event, void *context)
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -101,7 +101,7 @@ static int setup(const efi_handle_t handle,
|
|||
* Call ExitBootServices again and check that the notification function is
|
||||
* not called again.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -165,7 +165,7 @@ static void *efi_st_get_config_table(const efi_guid_t *guid)
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t img_handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -192,7 +192,7 @@ static int setup(const efi_handle_t img_handle,
|
|||
/*
|
||||
* Execute unit test.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -18,7 +18,7 @@ static struct efi_gop *gop;
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -39,7 +39,7 @@ static int setup(const efi_handle_t handle,
|
|||
/*
|
||||
* Tear down unit test.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int teardown(void)
|
||||
{
|
||||
|
@ -49,7 +49,7 @@ static int teardown(void)
|
|||
/*
|
||||
* Execute unit test.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -28,7 +28,7 @@ static struct efi_hii_string_protocol *hii_string_protocol;
|
|||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -1033,7 +1033,7 @@ static int test_hii_string_protocol(void)
|
|||
/*
|
||||
* Execute unit test.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success, EFI_ST_FAILURE for failure
|
||||
* Return: EFI_ST_SUCCESS for success, EFI_ST_FAILURE for failure
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -284,7 +284,7 @@ static struct efi_load_file_protocol lf2_prot = {load_file2};
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int efi_st_load_file_setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -326,7 +326,7 @@ static int efi_st_load_file_setup(const efi_handle_t handle,
|
|||
/*
|
||||
* Tear down unit test.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int efi_st_load_file_teardown(void)
|
||||
{
|
||||
|
@ -377,7 +377,7 @@ static int efi_st_load_file_teardown(void)
|
|||
* Try loading an image via the EFI_LOAD_FILE_PROTOCOL and the
|
||||
* EFI_LOAD_FILE2_PROTOCOL. Finally execute the image.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int efi_st_load_file_execute(void)
|
||||
{
|
||||
|
|
|
@ -411,7 +411,7 @@ static efi_status_t decompress(u8 **image)
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -447,7 +447,7 @@ static int setup(const efi_handle_t handle,
|
|||
*
|
||||
* Uninstall protocols and free memory.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int teardown(void)
|
||||
{
|
||||
|
@ -486,7 +486,7 @@ static int teardown(void)
|
|||
*
|
||||
* Load and start the application image.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -21,7 +21,7 @@ static efi_guid_t loaded_image_protocol_guid = EFI_LOADED_IMAGE_PROTOCOL_GUID;
|
|||
*
|
||||
* @image_handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: status code
|
||||
* Return: status code
|
||||
*/
|
||||
static efi_status_t EFIAPI check_loaded_image_protocol
|
||||
(efi_handle_t image_handle, struct efi_system_table *systable)
|
||||
|
@ -60,7 +60,7 @@ static efi_status_t EFIAPI check_loaded_image_protocol
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: status code
|
||||
* Return: status code
|
||||
*/
|
||||
efi_status_t EFIAPI efi_main(efi_handle_t handle,
|
||||
struct efi_system_table *systable)
|
||||
|
|
|
@ -17,7 +17,7 @@ static struct efi_runtime_services *runtime;
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -29,7 +29,7 @@ static int setup(const efi_handle_t handle,
|
|||
/*
|
||||
* Execute unit test.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -20,7 +20,7 @@ static efi_guid_t efi_rng_guid = EFI_RNG_PROTOCOL_GUID;
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -35,7 +35,7 @@ static int setup(const efi_handle_t handle,
|
|||
* Retrieve available RNG algorithms.
|
||||
* Retrieve two random values and compare them.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -19,7 +19,7 @@ static struct efi_runtime_services *runtime;
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -35,7 +35,7 @@ static int setup(const efi_handle_t handle,
|
|||
* Set a new value and read it back.
|
||||
* Set the real time clock back the current time.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -73,7 +73,7 @@ static void EFIAPI notify(struct efi_event *event, void *context)
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -176,7 +176,7 @@ static int setup(const efi_handle_t handle,
|
|||
* The triggering of the EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE event is checked via
|
||||
* the call count of the notification function.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -77,7 +77,7 @@ static unsigned int net_ip_id;
|
|||
*
|
||||
* @buf: IP header
|
||||
* @len: length of header in bytes
|
||||
* @return: checksum
|
||||
* Return: checksum
|
||||
*/
|
||||
static unsigned int efi_ip_checksum(const void *buf, size_t len)
|
||||
{
|
||||
|
@ -175,7 +175,7 @@ static efi_status_t send_dhcp_discover(void)
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -282,7 +282,7 @@ static int setup(const efi_handle_t handle,
|
|||
* A DHCP discover message is sent. The test is successful if a
|
||||
* DHCP reply is received within 10 seconds.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
@ -422,7 +422,7 @@ received:
|
|||
* Close the timer event created in setup.
|
||||
* Shut down the network adapter.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int teardown(void)
|
||||
{
|
||||
|
|
|
@ -79,7 +79,7 @@ static efi_status_t decompress(u8 **image)
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -96,7 +96,7 @@ static int setup(const efi_handle_t handle,
|
|||
/*
|
||||
* Tear down unit test.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int teardown(void)
|
||||
{
|
||||
|
@ -117,7 +117,7 @@ static int teardown(void)
|
|||
*
|
||||
* Load and start the application image.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -79,7 +79,7 @@ static efi_status_t decompress(u8 **image)
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -96,7 +96,7 @@ static int setup(const efi_handle_t handle,
|
|||
/*
|
||||
* Tear down unit test.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int teardown(void)
|
||||
{
|
||||
|
@ -117,7 +117,7 @@ static int teardown(void)
|
|||
*
|
||||
* Load and start the application image.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -612,7 +612,7 @@ static efi_status_t setup_smbios_table(const struct efi_system_table *systable)
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: status code
|
||||
* Return: status code
|
||||
*/
|
||||
static int efi_st_tcg2_setup(const efi_handle_t img_handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -949,7 +949,7 @@ static int efi_st_tcg2_execute(void)
|
|||
/*
|
||||
* efi_st_tcg2_teardown() - Tear down unit test
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int efi_st_tcg2_teardown(void)
|
||||
{
|
||||
|
|
|
@ -21,7 +21,7 @@ static struct efi_boot_services *boottime;
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -34,7 +34,7 @@ static int setup(const efi_handle_t handle,
|
|||
/*
|
||||
* Execute unit test.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -45,7 +45,7 @@ static efi_status_t EFIAPI efi_key_notify_function
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -93,7 +93,7 @@ static int setup(const efi_handle_t handle,
|
|||
*
|
||||
* Unregister notify function.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int teardown(void)
|
||||
{
|
||||
|
@ -112,7 +112,7 @@ static int teardown(void)
|
|||
/*
|
||||
* Execute unit test.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
/*
|
||||
* Execute unit test.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -37,7 +37,7 @@ static void EFIAPI notify(struct efi_event *event, void *context)
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -68,7 +68,7 @@ static int setup(const efi_handle_t handle,
|
|||
*
|
||||
* Close the events created in setup.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int teardown(void)
|
||||
{
|
||||
|
@ -106,7 +106,7 @@ static int teardown(void)
|
|||
* Lower the TPL level and check that the queued notification
|
||||
* function is called.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -19,7 +19,7 @@ struct aligned_buffer {
|
|||
* occurs.
|
||||
*
|
||||
* @addr: address to read
|
||||
* @return: value at the address
|
||||
* Return: value at the address
|
||||
*/
|
||||
static inline u32 deref(u32 *addr)
|
||||
{
|
||||
|
@ -37,7 +37,7 @@ static inline u32 deref(u32 *addr)
|
|||
* Execute unit test.
|
||||
* An unaligned memory access is executed. The result is checked.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -65,7 +65,7 @@ static void EFIAPI notify(struct efi_event *event, void *context)
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -98,7 +98,7 @@ static int setup(const efi_handle_t handle,
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup_timer(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -112,7 +112,7 @@ static int setup_timer(const efi_handle_t handle,
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systable: system table
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int setup_reboot(const efi_handle_t handle,
|
||||
const struct efi_system_table *systable)
|
||||
|
@ -126,7 +126,7 @@ static int setup_reboot(const efi_handle_t handle,
|
|||
*
|
||||
* Close the events created in setup.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int teardown(void)
|
||||
{
|
||||
|
@ -166,7 +166,7 @@ static int teardown(void)
|
|||
* Run a 1350 ms single shot timer and check that the 600ms timer has
|
||||
* been called 2 times.
|
||||
*
|
||||
* @return: EFI_ST_SUCCESS for success
|
||||
* Return: EFI_ST_SUCCESS for success
|
||||
*/
|
||||
static int execute(void)
|
||||
{
|
||||
|
|
|
@ -405,7 +405,7 @@ out:
|
|||
*
|
||||
* @handle: handle of the loaded image
|
||||
* @systab: system table
|
||||
* @return: status code
|
||||
* Return: status code
|
||||
*/
|
||||
efi_status_t EFIAPI efi_main(efi_handle_t image_handle,
|
||||
struct efi_system_table *systab)
|
||||
|
|
Loading…
Add table
Reference in a new issue