photon  1.1
Macros | Functions
photon_event.h File Reference
#include "photon_backend.h"

Go to the source code of this file.

Macros

#define PHOTON_EVENT_OK   0x00
 
#define PHOTON_EVENT_ERROR   0x01
 
#define PHOTON_EVENT_NONE   0x02
 
#define PHOTON_EVENT_REQCOMP   0x04
 
#define PHOTON_EVENT_REQFOUND   0x05
 
#define PHOTON_EVENT_NOTIMPL   0x06
 
#define PHOTON_EFLAG_LEDG   0x00
 
#define PHOTON_EFLAG_PACK   0x01
 
#define PHOTON_EFLAG_ONE   0x00
 
#define PHOTON_EFLAG_TWO   0x01
 
#define PHOTON_ETYPE_DATA   0x00
 
#define PHOTON_ETYPE_NTFY   0x01
 
#define ENCODE_RCQ_32(t, l, f, c, p)
 
#define DECODE_RCQ_32_PROC(v)   ((uint32_t)v<<16>>16)
 
#define DECODE_RCQ_32_CURR(v)   ((uint32_t)v<<3>>19)
 
#define DECODE_RCQ_32_FLAG(v)   ((uint32_t)v<<2>>31)
 
#define DECODE_RCQ_32_LEAD(v)   ((uint32_t)v<<1>>31)
 
#define DECODE_RCQ_32_TYPE(v)   ((uint32_t)v>>31)
 
#define ENCODE_RCQ_64_CURR(v)   ((uint64_t)v<<32)
 
#define DECODE_RCQ_64_CURR(v)   ((uint64_t)v>>32)
 

Functions

PHOTON_INTERNAL int __photon_get_event (int proc, photon_rid *id)
 
PHOTON_INTERNAL int __photon_get_nevents (int proc, int max, photon_rid **id, int *n)
 
PHOTON_INTERNAL int __photon_get_revent (int proc, photon_rid *id, uint64_t *imm)
 
PHOTON_INTERNAL int __photon_get_nrevents (int proc, int max, photon_rid **id, uint64_t **imms, int *n)
 
PHOTON_INTERNAL int __photon_nbpop_event (photonRequest req)
 
PHOTON_INTERNAL int __photon_nbpop_sr (photonRequest req)
 
PHOTON_INTERNAL int __photon_nbpop_ledger (photonRequest req)
 
PHOTON_INTERNAL int __photon_wait_ledger (photonRequest req)
 
PHOTON_INTERNAL int __photon_wait_event (photonRequest req)
 
PHOTON_INTERNAL int __photon_try_one_event (photonRequest *rreq)
 
PHOTON_INTERNAL int __photon_handle_cq_special (photon_rid rid)
 
PHOTON_INTERNAL int __photon_handle_cq_event (photonRequest req, photon_rid rid, photonRequest *rreq)
 
PHOTON_INTERNAL int __photon_handle_send_event (photonRequest req, photon_rid rid)
 
PHOTON_INTERNAL int __photon_handle_recv_event (photon_rid id)
 

Macro Definition Documentation

◆ DECODE_RCQ_32_CURR

#define DECODE_RCQ_32_CURR (   v)    ((uint32_t)v<<3>>19)

Definition at line 45 of file photon_event.h.

◆ DECODE_RCQ_32_FLAG

#define DECODE_RCQ_32_FLAG (   v)    ((uint32_t)v<<2>>31)

Definition at line 46 of file photon_event.h.

◆ DECODE_RCQ_32_LEAD

#define DECODE_RCQ_32_LEAD (   v)    ((uint32_t)v<<1>>31)

Definition at line 47 of file photon_event.h.

◆ DECODE_RCQ_32_PROC

#define DECODE_RCQ_32_PROC (   v)    ((uint32_t)v<<16>>16)

Definition at line 44 of file photon_event.h.

◆ DECODE_RCQ_32_TYPE

#define DECODE_RCQ_32_TYPE (   v)    ((uint32_t)v>>31)

Definition at line 48 of file photon_event.h.

◆ DECODE_RCQ_64_CURR

#define DECODE_RCQ_64_CURR (   v)    ((uint64_t)v>>32)

Definition at line 51 of file photon_event.h.

◆ ENCODE_RCQ_32

#define ENCODE_RCQ_32 (   t,
  l,
  f,
  c,
 
)
Value:
((((((uint32_t)t)<<15) | \
(((uint16_t)l)<<14) | \
(((uint16_t)f)<<13) | \
((uint16_t)c)) << 16) | \
(uint16_t)p )

Definition at line 39 of file photon_event.h.

◆ ENCODE_RCQ_64_CURR

#define ENCODE_RCQ_64_CURR (   v)    ((uint64_t)v<<32)

Definition at line 50 of file photon_event.h.

◆ PHOTON_EFLAG_LEDG

#define PHOTON_EFLAG_LEDG   0x00

Definition at line 30 of file photon_event.h.

◆ PHOTON_EFLAG_ONE

#define PHOTON_EFLAG_ONE   0x00

Definition at line 33 of file photon_event.h.

◆ PHOTON_EFLAG_PACK

#define PHOTON_EFLAG_PACK   0x01

Definition at line 31 of file photon_event.h.

◆ PHOTON_EFLAG_TWO

#define PHOTON_EFLAG_TWO   0x01

Definition at line 34 of file photon_event.h.

◆ PHOTON_ETYPE_DATA

#define PHOTON_ETYPE_DATA   0x00

Definition at line 36 of file photon_event.h.

◆ PHOTON_ETYPE_NTFY

#define PHOTON_ETYPE_NTFY   0x01

Definition at line 37 of file photon_event.h.

◆ PHOTON_EVENT_ERROR

#define PHOTON_EVENT_ERROR   0x01

Definition at line 24 of file photon_event.h.

◆ PHOTON_EVENT_NONE

#define PHOTON_EVENT_NONE   0x02

Definition at line 25 of file photon_event.h.

◆ PHOTON_EVENT_NOTIMPL

#define PHOTON_EVENT_NOTIMPL   0x06

Definition at line 28 of file photon_event.h.

◆ PHOTON_EVENT_OK

#define PHOTON_EVENT_OK   0x00

Definition at line 23 of file photon_event.h.

◆ PHOTON_EVENT_REQCOMP

#define PHOTON_EVENT_REQCOMP   0x04

Definition at line 26 of file photon_event.h.

◆ PHOTON_EVENT_REQFOUND

#define PHOTON_EVENT_REQFOUND   0x05

Definition at line 27 of file photon_event.h.

Function Documentation

◆ __photon_get_event()

PHOTON_INTERNAL int __photon_get_event ( int  proc,
photon_rid id 
)

Definition at line 87 of file photon_event.c.

◆ __photon_get_nevents()

PHOTON_INTERNAL int __photon_get_nevents ( int  proc,
int  max,
photon_rid **  id,
int *  n 
)

Definition at line 113 of file photon_event.c.

◆ __photon_get_nrevents()

PHOTON_INTERNAL int __photon_get_nrevents ( int  proc,
int  max,
photon_rid **  id,
uint64_t **  imms,
int *  n 
)

◆ __photon_get_revent()

PHOTON_INTERNAL int __photon_get_revent ( int  proc,
photon_rid id,
uint64_t *  imm 
)

Definition at line 139 of file photon_event.c.

◆ __photon_handle_cq_event()

PHOTON_INTERNAL int __photon_handle_cq_event ( photonRequest  req,
photon_rid  rid,
photonRequest rreq 
)

Definition at line 173 of file photon_event.c.

◆ __photon_handle_cq_special()

PHOTON_INTERNAL int __photon_handle_cq_special ( photon_rid  rid)

Definition at line 19 of file photon_event.c.

◆ __photon_handle_recv_event()

PHOTON_INTERNAL int __photon_handle_recv_event ( photon_rid  id)

◆ __photon_handle_send_event()

PHOTON_INTERNAL int __photon_handle_send_event ( photonRequest  req,
photon_rid  rid 
)

◆ __photon_nbpop_event()

PHOTON_INTERNAL int __photon_nbpop_event ( photonRequest  req)

Definition at line 233 of file photon_event.c.

◆ __photon_nbpop_ledger()

PHOTON_INTERNAL int __photon_nbpop_ledger ( photonRequest  req)

Definition at line 285 of file photon_event.c.

◆ __photon_nbpop_sr()

PHOTON_INTERNAL int __photon_nbpop_sr ( photonRequest  req)

Definition at line 272 of file photon_event.c.

◆ __photon_try_one_event()

PHOTON_INTERNAL int __photon_try_one_event ( photonRequest rreq)

Definition at line 387 of file photon_event.c.

◆ __photon_wait_event()

PHOTON_INTERNAL int __photon_wait_event ( photonRequest  req)

Definition at line 418 of file photon_event.c.

◆ __photon_wait_ledger()

PHOTON_INTERNAL int __photon_wait_ledger ( photonRequest  req)

Definition at line 337 of file photon_event.c.