iPXE
Functions
mlx_utils_priv.h File Reference
#include "../../include/public/mlx_utils.h"

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER)
mlx_status mlx_utils_delay_in_ms_priv (IN mlx_uint32 msecs)
mlx_status mlx_utils_delay_in_us_priv (IN mlx_uint32 usecs)
mlx_status mlx_utils_ilog2_priv (IN mlx_uint32 i, OUT mlx_uint32 *log)
mlx_status mlx_utils_init_lock_priv (OUT void **lock)
mlx_status mlx_utils_free_lock_priv (IN void *lock)
mlx_status mlx_utils_acquire_lock_priv (IN void *lock)
mlx_status mlx_utils_release_lock_priv (IN void *lock)
mlx_status mlx_utils_rand_priv (IN mlx_utils *utils, OUT mlx_uint32 *rand_num)

Function Documentation

FILE_LICENCE ( GPL2_OR_LATER  )

Definition at line 14 of file mlx_utils_priv.c.

References mdelay(), and MLX_SUCCESS.

Referenced by mlx_utils_delay_in_ms().

{
        mdelay(msecs);
        return MLX_SUCCESS;
}

Definition at line 23 of file mlx_utils_priv.c.

References MLX_SUCCESS, and udelay().

Referenced by mlx_utils_delay_in_us().

{
        udelay(usecs);
        return MLX_SUCCESS;
}

Definition at line 32 of file mlx_utils_priv.c.

References fls, and MLX_SUCCESS.

Referenced by mlx_utils_ilog2().

{
        *log = ( fls ( i ) - 1 );
        return MLX_SUCCESS;
}

Referenced by mlx_utils_init_lock().

Referenced by mlx_utils_free_lock().

Referenced by mlx_utils_acquire_lock().

Referenced by mlx_utils_release_lock().

mlx_status mlx_utils_rand_priv ( IN mlx_utils utils,
OUT mlx_uint32 rand_num 
)

Referenced by mlx_utils_rand().