#include <asm/unaligned.h>
#include "mcp251xfd.h"
#include "mcp251xfd-ram.h"
static inline u8
mcp251xfd_cmd_prepare_write_reg(const struct mcp251xfd_priv *priv,
union mcp251xfd_write_reg_buf *write_reg_buf,
const u16 reg, const u32 mask, const u32 val)
{ … }
static void
mcp251xfd_ring_init_tef(struct mcp251xfd_priv *priv, u16 *base)
{ … }
static void
mcp251xfd_tx_ring_init_tx_obj(const struct mcp251xfd_priv *priv,
const struct mcp251xfd_tx_ring *ring,
struct mcp251xfd_tx_obj *tx_obj,
const u8 rts_buf_len,
const u8 n)
{ … }
static void
mcp251xfd_ring_init_tx(struct mcp251xfd_priv *priv, u16 *base, u8 *fifo_nr)
{ … }
static void
mcp251xfd_ring_init_rx(struct mcp251xfd_priv *priv, u16 *base, u8 *fifo_nr)
{ … }
int mcp251xfd_ring_init(struct mcp251xfd_priv *priv)
{ … }
void mcp251xfd_ring_free(struct mcp251xfd_priv *priv)
{ … }
static enum hrtimer_restart mcp251xfd_rx_irq_timer(struct hrtimer *t)
{ … }
static enum hrtimer_restart mcp251xfd_tx_irq_timer(struct hrtimer *t)
{ … }
const struct can_ram_config mcp251xfd_ram_config = …;
int mcp251xfd_ring_alloc(struct mcp251xfd_priv *priv)
{ … }