RetroArch
Classes | Functions | Variables
memp.c File Reference
#include "lwip/opt.h"
#include "lwip/memp.h"
#include "lwip/pbuf.h"
#include "lwip/udp.h"
#include "lwip/raw.h"
#include "lwip/tcp.h"
#include "lwip/api.h"
#include "lwip/api_msg.h"
#include "lwip/tcpip.h"
#include "lwip/sys.h"
#include "lwip/stats.h"
Include dependency graph for memp.c:

Classes

struct  memp
 

Functions

void memp_init (void)
 
voidmemp_malloc (memp_t type)
 
void memp_free (memp_t type, void *mem)
 

Variables

static struct mempmemp_tab [MEMP_MAX]
 
static const u16_t memp_sizes [MEMP_MAX]
 
static const u16_t memp_num [MEMP_MAX]
 
static u8_t memp_memory [(MEMP_NUM_PBUF *MEM_ALIGN_SIZE(sizeof(struct pbuf)+sizeof(struct memp))+MEMP_NUM_RAW_PCB *MEM_ALIGN_SIZE(sizeof(struct raw_pcb)+sizeof(struct memp))+MEMP_NUM_UDP_PCB *MEM_ALIGN_SIZE(sizeof(struct udp_pcb)+sizeof(struct memp))+MEMP_NUM_TCP_PCB *MEM_ALIGN_SIZE(sizeof(struct tcp_pcb)+sizeof(struct memp))+MEMP_NUM_TCP_PCB_LISTEN *MEM_ALIGN_SIZE(sizeof(struct tcp_pcb_listen)+sizeof(struct memp))+MEMP_NUM_TCP_SEG *MEM_ALIGN_SIZE(sizeof(struct tcp_seg)+sizeof(struct memp))+MEMP_NUM_NETBUF *MEM_ALIGN_SIZE(sizeof(struct netbuf)+sizeof(struct memp))+MEMP_NUM_NETCONN *MEM_ALIGN_SIZE(sizeof(struct netconn)+sizeof(struct memp))+MEMP_NUM_API_MSG *MEM_ALIGN_SIZE(sizeof(struct api_msg)+sizeof(struct memp))+MEMP_NUM_TCPIP_MSG *MEM_ALIGN_SIZE(sizeof(struct net_msg)+sizeof(struct memp))+MEMP_NUM_SYS_TIMEOUT *MEM_ALIGN_SIZE(sizeof(struct sys_timeout)+sizeof(struct memp)))]
 
static sys_sem mutex
 

Function Documentation

◆ memp_free()

void memp_free ( memp_t  type,
void mem 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ memp_init()

void memp_init ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ memp_malloc()

void* memp_malloc ( memp_t  type)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ memp_memory

u8_t memp_memory[(MEMP_NUM_PBUF * MEM_ALIGN_SIZE(sizeof(struct pbuf)+ sizeof(struct memp))+ MEMP_NUM_RAW_PCB * MEM_ALIGN_SIZE(sizeof(struct raw_pcb)+ sizeof(struct memp))+ MEMP_NUM_UDP_PCB * MEM_ALIGN_SIZE(sizeof(struct udp_pcb)+ sizeof(struct memp))+ MEMP_NUM_TCP_PCB * MEM_ALIGN_SIZE(sizeof(struct tcp_pcb)+ sizeof(struct memp))+ MEMP_NUM_TCP_PCB_LISTEN * MEM_ALIGN_SIZE(sizeof(struct tcp_pcb_listen)+ sizeof(struct memp))+ MEMP_NUM_TCP_SEG * MEM_ALIGN_SIZE(sizeof(struct tcp_seg)+ sizeof(struct memp))+ MEMP_NUM_NETBUF * MEM_ALIGN_SIZE(sizeof(struct netbuf)+ sizeof(struct memp))+ MEMP_NUM_NETCONN * MEM_ALIGN_SIZE(sizeof(struct netconn)+ sizeof(struct memp))+ MEMP_NUM_API_MSG * MEM_ALIGN_SIZE(sizeof(struct api_msg)+ sizeof(struct memp))+ MEMP_NUM_TCPIP_MSG * MEM_ALIGN_SIZE(sizeof(struct net_msg)+ sizeof(struct memp))+ MEMP_NUM_SYS_TIMEOUT * MEM_ALIGN_SIZE(sizeof(struct sys_timeout)+ sizeof(struct memp)))]
static

◆ memp_num

const u16_t memp_num[MEMP_MAX]
static
Initial value:
= {
}
#define MEMP_NUM_TCP_SEG
Definition: lwipopts.h:71
#define MEMP_NUM_API_MSG
Definition: lwipopts.h:82
#define MEMP_NUM_NETBUF
Definition: lwipopts.h:76
#define MEMP_NUM_TCPIP_MSG
Definition: lwipopts.h:86
#define MEMP_NUM_TCP_PCB_LISTEN
Definition: lwipopts.h:68
#define MEMP_NUM_RAW_PCB
Definition: opt.h:83
#define MEMP_NUM_TCP_PCB
Definition: lwipopts.h:65
#define MEMP_NUM_NETCONN
Definition: lwipopts.h:78
#define MEMP_NUM_PBUF
Definition: lwipopts.h:59
#define MEMP_NUM_SYS_TIMEOUT
Definition: lwipopts.h:89
#define MEMP_NUM_UDP_PCB
Definition: lwipopts.h:62

◆ memp_sizes

const u16_t memp_sizes[MEMP_MAX]
static
Initial value:
= {
sizeof(struct pbuf),
sizeof(struct raw_pcb),
sizeof(struct udp_pcb),
sizeof(struct tcp_pcb),
sizeof(struct tcp_pcb_listen),
sizeof(struct tcp_seg),
sizeof(struct netbuf),
sizeof(struct netconn),
sizeof(struct api_msg),
sizeof(struct net_msg),
sizeof(struct sys_timeout)
}
Definition: tcpip.h:44
Definition: api.h:74
Definition: tcp.h:315
Definition: udp.h:54
Definition: api_msg.h:80
Definition: sys.h:71
Definition: raw.h:41
Definition: tcp.h:217
Definition: api.h:81
Definition: tcp.h:391
Definition: pbuf.h:66

◆ memp_tab

struct memp* memp_tab[MEMP_MAX]
static

◆ mutex

sys_sem mutex
static