FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gap8/pmsis/drivers/udma/cpi/cpi_internal.c File Reference

Macros

#define UDMA_DATA_MAX_SIZE
 

Functions

static void __pi_cpi_handle_end_of_task (struct pi_task *task)
 
static void __pi_cpi_handler (void *arg)
 
static int32_t __pi_cpi_hw_fifo_empty (struct cpi_itf_data_s *driver_data)
 
static void __pi_cpi_hw_fifo_task_enqueue (struct cpi_itf_data_s *driver_data, struct pi_task *task, uint8_t hw_buff_idx)
 
static void __pi_cpi_hw_fifo_task_switch (struct cpi_itf_data_s *driver_data)
 
static struct pi_task * __pi_cpi_hw_fifo_task_pop (struct cpi_itf_data_s *driver_data)
 
static void __pi_cpi_sw_fifo_task_enqueue (struct cpi_itf_data_s *driver_data, struct pi_task *task)
 
static struct pi_task * __pi_cpi_sw_fifo_task_pop (struct cpi_itf_data_s *driver_data)
 
static void __pi_cpi_copy_exec (struct cpi_itf_data_s *driver_data, struct pi_task *task, uint8_t hw_buff_idx)
 
void __pi_cpi_conf_init (struct pi_cpi_conf *conf)
 
int32_t __pi_cpi_open (struct pi_cpi_conf *conf, struct cpi_itf_data_s **device_data)
 
void __pi_cpi_close (struct cpi_itf_data_s *device_data)
 
void __pi_cpi_copy (struct cpi_itf_data_s *device_data, void *l2_buf, uint32_t size, struct pi_task *task)
 

Variables

struct cpi_itf_data_sg_cpi_itf_data [UDMA_NB_CPI]
 

Macro Definition Documentation

#define UDMA_DATA_MAX_SIZE

Function Documentation

void __pi_cpi_close ( struct cpi_itf_data_s device_data)

Referenced by pi_cpi_close().

void __pi_cpi_conf_init ( struct pi_cpi_conf *  conf)

Referenced by pi_cpi_conf_init().

void __pi_cpi_copy ( struct cpi_itf_data_s device_data,
void *  l2_buf,
uint32_t  size,
struct pi_task *  task 
)

Referenced by pi_cpi_capture_async().

static void __pi_cpi_copy_exec ( struct cpi_itf_data_s driver_data,
struct pi_task *  task,
uint8_t  hw_buff_idx 
)
static
static void __pi_cpi_handle_end_of_task ( struct pi_task *  task)
static
static int32_t __pi_cpi_hw_fifo_empty ( struct cpi_itf_data_s driver_data)
static
static void __pi_cpi_hw_fifo_task_enqueue ( struct cpi_itf_data_s driver_data,
struct pi_task *  task,
uint8_t  hw_buff_idx 
)
static
static struct pi_task * __pi_cpi_hw_fifo_task_pop ( struct cpi_itf_data_s driver_data)
static

References cpi_itf_data_s::hw_buffer.

Referenced by __pi_cpi_handler().

static void __pi_cpi_hw_fifo_task_switch ( struct cpi_itf_data_s driver_data)
static

References cpi_itf_data_s::hw_buffer.

Referenced by __pi_cpi_handler().

int32_t __pi_cpi_open ( struct pi_cpi_conf *  conf,
struct cpi_itf_data_s **  device_data 
)

Referenced by pi_cpi_open().

static void __pi_cpi_sw_fifo_task_enqueue ( struct cpi_itf_data_s driver_data,
struct pi_task *  task 
)
static
static struct pi_task * __pi_cpi_sw_fifo_task_pop ( struct cpi_itf_data_s driver_data)
static

Variable Documentation

struct cpi_itf_data_s* g_cpi_itf_data[UDMA_NB_CPI]