iPXE
|
Go to the source code of this file.
Data Structures | |
struct | mlx_pci_gw |
struct | mlx_icmd |
struct | mlx_utils |
Macros | |
#define | IN |
#define | OUT |
Typedefs | |
typedef mlx_uint16 | mlx_pci_gw_space |
Functions | |
FILE_LICENCE (GPL2_OR_LATER) | |
mlx_status | mlx_utils_init (IN mlx_utils *utils, IN mlx_pci *pci) |
mlx_status | mlx_utils_teardown (IN mlx_utils *utils) |
mlx_status | mlx_utils_delay_in_ms (IN mlx_uint32 msecs) |
mlx_status | mlx_utils_delay_in_us (IN mlx_uint32 usecs) |
mlx_status | mlx_utils_ilog2 (IN mlx_uint32 i, OUT mlx_uint32 *log) |
mlx_status | mlx_utils_init_lock (IN OUT mlx_utils *utils) |
mlx_status | mlx_utils_free_lock (IN OUT mlx_utils *utils) |
mlx_status | mlx_utils_acquire_lock (IN OUT mlx_utils *utils) |
mlx_status | mlx_utils_release_lock (IN OUT mlx_utils *utils) |
mlx_status | mlx_utils_rand (IN mlx_utils *utils, OUT mlx_uint32 *rand_num) |
#define IN |
Definition at line 28 of file mlx_utils.h.
#define OUT |
Definition at line 29 of file mlx_utils.h.
typedef mlx_uint16 mlx_pci_gw_space |
Definition at line 31 of file mlx_utils.h.
FILE_LICENCE | ( | GPL2_OR_LATER | ) |
mlx_status mlx_utils_init | ( | IN mlx_utils * | utils, |
IN mlx_pci * | pci | ||
) |
Definition at line 28 of file mlx_utils.c.
References MLX_INVALID_PARAMETER, mlx_pci_init(), MLX_SUCCESS, mlx_utils_init_lock(), NULL, and status.
Referenced by flexboot_nodnic_is_supported(), and init_mlx_utils().
mlx_status mlx_utils_teardown | ( | IN mlx_utils * | utils | ) |
Definition at line 46 of file mlx_utils.c.
References mlx_pci_teardown(), MLX_SUCCESS, mlx_utils_free_lock(), and status.
Referenced by flexboot_nodnic_is_supported(), free_mlx_utils(), and init_mlx_utils().
mlx_status mlx_utils_delay_in_ms | ( | IN mlx_uint32 | msecs | ) |
Definition at line 57 of file mlx_utils.c.
References MLX_SUCCESS, and mlx_utils_delay_in_ms_priv().
Referenced by mlx_icmd_get_semaphore(), mlx_icmd_go(), and wait_for_device_initialization().
mlx_status mlx_utils_delay_in_us | ( | IN mlx_uint32 | usecs | ) |
Definition at line 65 of file mlx_utils.c.
References MLX_SUCCESS, and mlx_utils_delay_in_us_priv().
Referenced by mlx_pci_gw_get_ownership(), mlx_pci_gw_read(), and mlx_pci_gw_wait_for_flag_value().
mlx_status mlx_utils_ilog2 | ( | IN mlx_uint32 | i, |
OUT mlx_uint32 * | log | ||
) |
Definition at line 73 of file mlx_utils.c.
References MLX_SUCCESS, and mlx_utils_ilog2_priv().
Referenced by nodnic_port_create_qp().
mlx_status mlx_utils_init_lock | ( | IN OUT mlx_utils * | utils | ) |
Definition at line 83 of file mlx_utils.c.
References mlx_utils_init_lock_priv().
Referenced by mlx_utils_init().
mlx_status mlx_utils_free_lock | ( | IN OUT mlx_utils * | utils | ) |
Definition at line 92 of file mlx_utils.c.
References mlx_utils_free_lock_priv().
Referenced by mlx_utils_teardown().
mlx_status mlx_utils_acquire_lock | ( | IN OUT mlx_utils * | utils | ) |
Definition at line 100 of file mlx_utils.c.
References mlx_utils_acquire_lock_priv().
Referenced by mlx_pci_gw_read(), and mlx_pci_gw_write().
mlx_status mlx_utils_release_lock | ( | IN OUT mlx_utils * | utils | ) |
Definition at line 108 of file mlx_utils.c.
References mlx_utils_release_lock_priv().
Referenced by mlx_pci_gw_read(), and mlx_pci_gw_write().
mlx_status mlx_utils_rand | ( | IN mlx_utils * | utils, |
OUT mlx_uint32 * | rand_num | ||
) |
Definition at line 116 of file mlx_utils.c.
References mlx_utils_rand_priv().
Referenced by mlx_icmd_get_semaphore().