Motr  M0
byteorder.h File Reference
#include "lib/types.h"
#include <asm/byteorder.h>
Include dependency graph for byteorder.h:

Go to the source code of this file.

Macros

#define __MOTR_LIB_BYTEORDER_H__
 

Functions

static uint16_t m0_byteorder_cpu_to_be16 (uint16_t cpu_16bits)
 
static uint16_t m0_byteorder_cpu_to_le16 (uint16_t cpu_16bits)
 
static uint16_t m0_byteorder_be16_to_cpu (uint16_t big_endian_16bits)
 
static uint16_t m0_byteorder_le16_to_cpu (uint16_t little_endian_16bits)
 
static uint32_t m0_byteorder_cpu_to_be32 (uint32_t cpu_32bits)
 
static uint32_t m0_byteorder_cpu_to_le32 (uint32_t cpu_32bits)
 
static uint32_t m0_byteorder_be32_to_cpu (uint32_t big_endian_32bits)
 
static uint32_t m0_byteorder_le32_to_cpu (uint32_t little_endian_32bits)
 
static uint64_t m0_byteorder_cpu_to_be64 (uint64_t cpu_64bits)
 
static uint64_t m0_byteorder_cpu_to_le64 (uint64_t cpu_64bits)
 
static uint64_t m0_byteorder_be64_to_cpu (uint64_t big_endian_64bits)
 
static uint64_t m0_byteorder_le64_to_cpu (uint64_t little_endian_64bits)
 

Macro Definition Documentation

◆ __MOTR_LIB_BYTEORDER_H__

#define __MOTR_LIB_BYTEORDER_H__

Definition at line 26 of file byteorder.h.

Function Documentation

◆ m0_byteorder_be16_to_cpu()

static uint16_t m0_byteorder_be16_to_cpu ( uint16_t  big_endian_16bits)
inlinestatic

Definition at line 59 of file byteorder.h.

◆ m0_byteorder_be32_to_cpu()

static uint32_t m0_byteorder_be32_to_cpu ( uint32_t  big_endian_32bits)
inlinestatic

Definition at line 79 of file byteorder.h.

◆ m0_byteorder_be64_to_cpu()

static uint64_t m0_byteorder_be64_to_cpu ( uint64_t  big_endian_64bits)
inlinestatic

Definition at line 99 of file byteorder.h.

Here is the caller graph for this function:

◆ m0_byteorder_cpu_to_be16()

static uint16_t m0_byteorder_cpu_to_be16 ( uint16_t  cpu_16bits)
inlinestatic

Definition at line 49 of file byteorder.h.

◆ m0_byteorder_cpu_to_be32()

static uint32_t m0_byteorder_cpu_to_be32 ( uint32_t  cpu_32bits)
inlinestatic

Definition at line 69 of file byteorder.h.

◆ m0_byteorder_cpu_to_be64()

static uint64_t m0_byteorder_cpu_to_be64 ( uint64_t  cpu_64bits)
inlinestatic

Definition at line 89 of file byteorder.h.

Here is the caller graph for this function:

◆ m0_byteorder_cpu_to_le16()

static uint16_t m0_byteorder_cpu_to_le16 ( uint16_t  cpu_16bits)
inlinestatic

Definition at line 54 of file byteorder.h.

Here is the caller graph for this function:

◆ m0_byteorder_cpu_to_le32()

static uint32_t m0_byteorder_cpu_to_le32 ( uint32_t  cpu_32bits)
inlinestatic

Definition at line 74 of file byteorder.h.

Here is the caller graph for this function:

◆ m0_byteorder_cpu_to_le64()

static uint64_t m0_byteorder_cpu_to_le64 ( uint64_t  cpu_64bits)
inlinestatic

Definition at line 94 of file byteorder.h.

Here is the caller graph for this function:

◆ m0_byteorder_le16_to_cpu()

static uint16_t m0_byteorder_le16_to_cpu ( uint16_t  little_endian_16bits)
inlinestatic

Definition at line 64 of file byteorder.h.

Here is the caller graph for this function:

◆ m0_byteorder_le32_to_cpu()

static uint32_t m0_byteorder_le32_to_cpu ( uint32_t  little_endian_32bits)
inlinestatic

Definition at line 84 of file byteorder.h.

Here is the caller graph for this function:

◆ m0_byteorder_le64_to_cpu()

static uint64_t m0_byteorder_le64_to_cpu ( uint64_t  little_endian_64bits)
inlinestatic

Definition at line 104 of file byteorder.h.

Here is the caller graph for this function: