Motr  M0
sw_xc.c File Reference
#include "lib/misc.h"
#include "lib/assert.h"
#include "xcode/xcode.h"
#include "cm/sw.h"
#include "cm/sw_xc.h"
Include dependency graph for sw_xc.c:

Go to the source code of this file.

Data Structures

struct  _m0_cm_sw_s
 
struct  _m0_cm_local_ep_s
 
struct  _m0_cm_sw_onwire_s
 
struct  _m0_cm_sw_onwire_rep_s
 

Functions

 M0_BASSERT (offsetof(struct _m0_cm_sw_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_cm_local_ep_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_cm_sw_onwire_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_cm_sw_onwire_rep_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (sizeof(struct m0_cm_sw)==64U)
 
 M0_BASSERT (sizeof((struct m0_cm_sw *) 0) ->sw_lo==32U)
 
 M0_BASSERT (offsetof(struct m0_cm_sw, sw_lo)==0U)
 
 M0_BASSERT (offsetof(struct m0_cm_sw, sw_hi)==32U)
 
 M0_BASSERT (sizeof(struct m0_cm_local_ep)==16U)
 
 M0_BASSERT (sizeof((struct m0_cm_local_ep *) 0) ->ep_size==4U)
 
 M0_BASSERT (offsetof(struct m0_cm_local_ep, ep_size)==0U)
 
 M0_BASSERT (offsetof(struct m0_cm_local_ep, ep)==8U)
 
 M0_BASSERT (sizeof(struct m0_cm_sw_onwire)==168U)
 
 M0_BASSERT (sizeof((struct m0_cm_sw_onwire *) 0) ->swo_cm_epoch==8U)
 
 M0_BASSERT (offsetof(struct m0_cm_sw_onwire, swo_cm_epoch)==0U)
 
 M0_BASSERT (offsetof(struct m0_cm_sw_onwire, swo_sender_id)==8U)
 
 M0_BASSERT (offsetof(struct m0_cm_sw_onwire, swo_cm_ep)==16U)
 
 M0_BASSERT (offsetof(struct m0_cm_sw_onwire, swo_in_interval)==32U)
 
 M0_BASSERT (offsetof(struct m0_cm_sw_onwire, swo_out_interval)==96U)
 
 M0_BASSERT (offsetof(struct m0_cm_sw_onwire, swo_cm_status)==160U)
 
 M0_BASSERT (sizeof(struct m0_cm_sw_onwire_rep)==4U)
 
 M0_BASSERT (sizeof((struct m0_cm_sw_onwire_rep *) 0) ->swr_rc==4U)
 
 M0_BASSERT (offsetof(struct m0_cm_sw_onwire_rep, swr_rc)==0U)
 
M0_INTERNAL void m0_xc_m0_cm_sw_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_cm_local_ep_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_cm_sw_onwire_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_cm_sw_onwire_rep_struct_init (void)
 
M0_INTERNAL void m0_xc_cm_sw_init (void)
 
M0_INTERNAL void m0_xc_cm_sw_fini (void)
 

Variables

struct m0_xcode_typem0_cm_sw_xc = &_m0_cm_sw._type
 
struct m0_xcode_typem0_cm_local_ep_xc = &_m0_cm_local_ep._type
 
struct m0_xcode_typem0_cm_sw_onwire_xc = &_m0_cm_sw_onwire._type
 
struct m0_xcode_typem0_cm_sw_onwire_rep_xc = &_m0_cm_sw_onwire_rep._type
 
static struct _m0_cm_sw_s _m0_cm_sw
 
static struct _m0_cm_local_ep_s _m0_cm_local_ep
 
static struct _m0_cm_sw_onwire_s _m0_cm_sw_onwire
 
static struct _m0_cm_sw_onwire_rep_s _m0_cm_sw_onwire_rep
 

Function Documentation

◆ M0_BASSERT() [1/23]

M0_BASSERT ( offsetof(struct _m0_cm_sw_s, _child[0])  = =offsetof(struct m0_xcode_type, xct_child[0]))

◆ M0_BASSERT() [2/23]

M0_BASSERT ( offsetof(struct _m0_cm_local_ep_s, _child[0])  = =offsetof(struct m0_xcode_type, xct_child[0]))

◆ M0_BASSERT() [3/23]

M0_BASSERT ( offsetof(struct _m0_cm_sw_onwire_s, _child[0])  = =offsetof(struct m0_xcode_type, xct_child[0]))

◆ M0_BASSERT() [4/23]

M0_BASSERT ( offsetof(struct _m0_cm_sw_onwire_rep_s, _child[0])  = =offsetof(struct m0_xcode_type, xct_child[0]))

◆ M0_BASSERT() [5/23]

M0_BASSERT ( sizeof(struct m0_cm_sw = =64U)

◆ M0_BASSERT() [6/23]

M0_BASSERT ( sizeof((struct m0_cm_sw *) 0) ->  sw_lo = =32U)

◆ M0_BASSERT() [7/23]

M0_BASSERT ( offsetof(struct m0_cm_sw, sw_lo = =0U)

◆ M0_BASSERT() [8/23]

M0_BASSERT ( offsetof(struct m0_cm_sw, sw_hi = =32U)

◆ M0_BASSERT() [9/23]

M0_BASSERT ( sizeof(struct m0_cm_local_ep = =16U)

◆ M0_BASSERT() [10/23]

M0_BASSERT ( sizeof((struct m0_cm_local_ep *) 0) ->  ep_size = =4U)

◆ M0_BASSERT() [11/23]

M0_BASSERT ( offsetof(struct m0_cm_local_ep, ep_size = =0U)

◆ M0_BASSERT() [12/23]

M0_BASSERT ( offsetof(struct m0_cm_local_ep, ep = =8U)

◆ M0_BASSERT() [13/23]

M0_BASSERT ( sizeof(struct m0_cm_sw_onwire = =168U)

◆ M0_BASSERT() [14/23]

M0_BASSERT ( sizeof((struct m0_cm_sw_onwire *) 0) ->  swo_cm_epoch = =8U)

◆ M0_BASSERT() [15/23]

M0_BASSERT ( offsetof(struct m0_cm_sw_onwire, swo_cm_epoch = =0U)

◆ M0_BASSERT() [16/23]

M0_BASSERT ( offsetof(struct m0_cm_sw_onwire, swo_sender_id = =8U)

◆ M0_BASSERT() [17/23]

M0_BASSERT ( offsetof(struct m0_cm_sw_onwire, swo_cm_ep = =16U)

◆ M0_BASSERT() [18/23]

M0_BASSERT ( offsetof(struct m0_cm_sw_onwire, swo_in_interval = =32U)

◆ M0_BASSERT() [19/23]

M0_BASSERT ( offsetof(struct m0_cm_sw_onwire, swo_out_interval = =96U)

◆ M0_BASSERT() [20/23]

M0_BASSERT ( offsetof(struct m0_cm_sw_onwire, swo_cm_status = =160U)

◆ M0_BASSERT() [21/23]

M0_BASSERT ( sizeof(struct m0_cm_sw_onwire_rep = =4U)

◆ M0_BASSERT() [22/23]

M0_BASSERT ( sizeof((struct m0_cm_sw_onwire_rep *) 0) ->  swr_rc = =4U)

◆ M0_BASSERT() [23/23]

M0_BASSERT ( offsetof(struct m0_cm_sw_onwire_rep, swr_rc = =0U)

◆ m0_xc_cm_sw_fini()

M0_INTERNAL void m0_xc_cm_sw_fini ( void  )

Definition at line 313 of file sw_xc.c.

◆ m0_xc_cm_sw_init()

M0_INTERNAL void m0_xc_cm_sw_init ( void  )

Definition at line 305 of file sw_xc.c.

Here is the call graph for this function:

◆ m0_xc_m0_cm_local_ep_struct_init()

M0_INTERNAL void m0_xc_m0_cm_local_ep_struct_init ( void  )

Definition at line 155 of file sw_xc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_xc_m0_cm_sw_onwire_rep_struct_init()

M0_INTERNAL void m0_xc_m0_cm_sw_onwire_rep_struct_init ( void  )

Definition at line 285 of file sw_xc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_xc_m0_cm_sw_onwire_struct_init()

M0_INTERNAL void m0_xc_m0_cm_sw_onwire_struct_init ( void  )

Definition at line 190 of file sw_xc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_xc_m0_cm_sw_struct_init()

M0_INTERNAL void m0_xc_m0_cm_sw_struct_init ( void  )

Definition at line 120 of file sw_xc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ _m0_cm_local_ep

struct _m0_cm_local_ep_s _m0_cm_local_ep
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_SEQUENCE,
.xct_name = "m0_cm_local_ep",
.xct_sizeof = sizeof (struct m0_cm_local_ep),
.xct_nr = 2,
}
}

◆ _m0_cm_sw

struct _m0_cm_sw_s _m0_cm_sw
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_cm_sw",
.xct_sizeof = sizeof (struct m0_cm_sw),
.xct_nr = 2,
}
}
Definition: sw.h:45

◆ _m0_cm_sw_onwire

struct _m0_cm_sw_onwire_s _m0_cm_sw_onwire
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_cm_sw_onwire",
.xct_sizeof = sizeof (struct m0_cm_sw_onwire),
.xct_nr = 6,
}
}

◆ _m0_cm_sw_onwire_rep

struct _m0_cm_sw_onwire_rep_s _m0_cm_sw_onwire_rep
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_cm_sw_onwire_rep",
.xct_sizeof = sizeof (struct m0_cm_sw_onwire_rep),
.xct_nr = 1,
}
}

◆ m0_cm_local_ep_xc

struct m0_xcode_type * m0_cm_local_ep_xc = &_m0_cm_local_ep._type

Definition at line 11 of file sw_xc.c.

◆ m0_cm_sw_onwire_rep_xc

struct m0_xcode_type * m0_cm_sw_onwire_rep_xc = &_m0_cm_sw_onwire_rep._type

Definition at line 13 of file sw_xc.c.

◆ m0_cm_sw_onwire_xc

struct m0_xcode_type * m0_cm_sw_onwire_xc = &_m0_cm_sw_onwire._type

Definition at line 12 of file sw_xc.c.

◆ m0_cm_sw_xc

struct m0_xcode_type * m0_cm_sw_xc = &_m0_cm_sw._type

Definition at line 10 of file sw_xc.c.