TwiceAsNice  2019-02-18
Classes | Macros | Functions | Variables
io.c File Reference
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "hpdi32_api.h"
#include "main.h"
#include "util_format.h"
#include "util_label.h"
#include "util_sleep.h"
Include dependency graph for io.c:

Classes

struct  set_get_t
 
struct  set_get_list_t
 
struct  io_t
 
struct  pipeline_t
 

Macros

#define _1K   (1024L)
 
#define _10K   (10L * _1K)
 
#define _200K   (200L * _1K)
 
#define XFER_BLOCK_SAMPLES   1024
 
#define XFER_INACTIVITY_SEC   3
 

Functions

static void _data_set_size (U32 size)
 
static void _format_value (long value)
 
static int _io_parm_list_test (void *handle, U32 which, const set_get_list_t *set)
 
static int _io_abort_tests (void *handle)
 
static int _io_buffer_pointer_test (void *handle, U32 which)
 
static int _io_buffer_pointer_tests (void *handle)
 
static int _io_data_size_tests (void *handle)
 
static int _io_dma_channel_select_tests (void *handle)
 
static int _io_dma_control_mode_tests (void *handle)
 
static int _io_dma_priority_tests (void *handle)
 
static int _io_buffer_size_list_test (void *handle, U32 which, const set_get_list_t *set)
 
static int _io_buffer_size_tests (void *handle)
 
static int _io_callback_arg_tests (void *handle)
 
static void _callback (U32 arg1, U32 arg2, U32 arg3)
 
static int _io_callback_func_tests (void *handle)
 
static int _io_mode_tests (void *handle)
 
static int _io_overlap_enable_tests (void *handle)
 
static int _io_single_cycle_tests (void *handle)
 
static int _io_status_which_tests (void *handle, U32 which)
 
static int _io_status_tests (void *handle)
 
static int _io_pio_threshold_tests (void *handle)
 
static int _io_timeout_tests (void *handle)
 
int io_config_tests (void *handle)
 
static void _io_callback (U32 arg1, U32 arg2, U32 arg3)
 
static int _io_callback_test (void *handle)
 
static int _io_wait_test (void *handle)
 
int io_notify_tests (void *handle)
 
static int _write_read_block_test (void *handle, long tx, long rx)
 
static U32 _data_size_config (void *handle, U32 mode, U32 size)
 
static int _data_size_io_test (void *handle, U32 mode, int api_buf)
 
int io_data_size_io_tests (void *handle)
 
int io_write_throughput_tests (void *handle)
 
int io_read_throughput_tests (void *handle)
 
int io_write_read_tests (void *handle)
 

Variables

static U32 _buffer [150L *1024]
 
static U32 _io_callback_status
 
long sub_test
 

Macro Definition Documentation

◆ _10K

#define _10K   (10L * _1K)

◆ _1K

#define _1K   (1024L)

◆ _200K

#define _200K   (200L * _1K)

◆ XFER_BLOCK_SAMPLES

#define XFER_BLOCK_SAMPLES   1024

◆ XFER_INACTIVITY_SEC

#define XFER_INACTIVITY_SEC   3

Function Documentation

◆ _callback()

static void _callback ( U32  arg1,
U32  arg2,
U32  arg3 
)
static

◆ _data_set_size()

static void _data_set_size ( U32  size)
static

◆ _data_size_config()

static U32 _data_size_config ( void *  handle,
U32  mode,
U32  size 
)
static

◆ _data_size_io_test()

static int _data_size_io_test ( void *  handle,
U32  mode,
int  api_buf 
)
static

◆ _format_value()

static void _format_value ( long  value)
static

◆ _io_abort_tests()

static int _io_abort_tests ( void *  handle)
static

◆ _io_buffer_pointer_test()

static int _io_buffer_pointer_test ( void *  handle,
U32  which 
)
static

◆ _io_buffer_pointer_tests()

static int _io_buffer_pointer_tests ( void *  handle)
static

◆ _io_buffer_size_list_test()

static int _io_buffer_size_list_test ( void *  handle,
U32  which,
const set_get_list_t set 
)
static

◆ _io_buffer_size_tests()

static int _io_buffer_size_tests ( void *  handle)
static

◆ _io_callback()

static void _io_callback ( U32  arg1,
U32  arg2,
U32  arg3 
)
static

◆ _io_callback_arg_tests()

static int _io_callback_arg_tests ( void *  handle)
static

◆ _io_callback_func_tests()

static int _io_callback_func_tests ( void *  handle)
static

◆ _io_callback_test()

static int _io_callback_test ( void *  handle)
static

◆ _io_data_size_tests()

static int _io_data_size_tests ( void *  handle)
static

◆ _io_dma_channel_select_tests()

static int _io_dma_channel_select_tests ( void *  handle)
static

◆ _io_dma_control_mode_tests()

static int _io_dma_control_mode_tests ( void *  handle)
static

◆ _io_dma_priority_tests()

static int _io_dma_priority_tests ( void *  handle)
static

◆ _io_mode_tests()

static int _io_mode_tests ( void *  handle)
static

◆ _io_overlap_enable_tests()

static int _io_overlap_enable_tests ( void *  handle)
static

◆ _io_parm_list_test()

static int _io_parm_list_test ( void *  handle,
U32  which,
const set_get_list_t set 
)
static

◆ _io_pio_threshold_tests()

static int _io_pio_threshold_tests ( void *  handle)
static

◆ _io_single_cycle_tests()

static int _io_single_cycle_tests ( void *  handle)
static

◆ _io_status_tests()

static int _io_status_tests ( void *  handle)
static

◆ _io_status_which_tests()

static int _io_status_which_tests ( void *  handle,
U32  which 
)
static

◆ _io_timeout_tests()

static int _io_timeout_tests ( void *  handle)
static

◆ _io_wait_test()

static int _io_wait_test ( void *  handle)
static

◆ _write_read_block_test()

static int _write_read_block_test ( void *  handle,
long  tx,
long  rx 
)
static

◆ io_config_tests()

int io_config_tests ( void *  handle)

◆ io_data_size_io_tests()

int io_data_size_io_tests ( void *  handle)

◆ io_notify_tests()

int io_notify_tests ( void *  handle)

◆ io_read_throughput_tests()

int io_read_throughput_tests ( void *  handle)

◆ io_write_read_tests()

int io_write_read_tests ( void *  handle)

◆ io_write_throughput_tests()

int io_write_throughput_tests ( void *  handle)

Variable Documentation

◆ _buffer

U32 _buffer[150L *1024]
static

◆ _io_callback_status

U32 _io_callback_status
static

◆ sub_test

long sub_test