linux/drivers/net/ethernet/netronome/nfp/nfp_asm.c

// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/* Copyright (C) 2016-2018 Netronome Systems, Inc. */

#include <linux/bitops.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/types.h>

#include "nfp_asm.h"

const struct cmd_tgt_act cmd_tgt_act[__CMD_TGT_MAP_SIZE] =;

static bool unreg_is_imm(u16 reg)
{}

u16 br_get_offset(u64 instr)
{}

void br_set_offset(u64 *instr, u16 offset)
{}

void br_add_offset(u64 *instr, u16 offset)
{}

static bool immed_can_modify(u64 instr)
{}

u16 immed_get_value(u64 instr)
{}

void immed_set_value(u64 *instr, u16 immed)
{}

void immed_add_value(u64 *instr, u16 offset)
{}

static u16 nfp_swreg_to_unreg(swreg reg, bool is_dst)
{}

int swreg_to_unrestricted(swreg dst, swreg lreg, swreg rreg,
			  struct nfp_insn_ur_regs *reg)
{}

static u16 nfp_swreg_to_rereg(swreg reg, bool is_dst, bool has_imm8, bool *i8)
{}

int swreg_to_restricted(swreg dst, swreg lreg, swreg rreg,
			struct nfp_insn_re_regs *reg, bool has_imm8)
{}

#define NFP_USTORE_ECC_POLY_WORDS
#define NFP_USTORE_OP_BITS

static const u64 nfp_ustore_ecc_polynomials[NFP_USTORE_ECC_POLY_WORDS] =;

static bool parity(u64 value)
{}

int nfp_ustore_check_valid_no_ecc(u64 insn)
{}

u64 nfp_ustore_calc_ecc_insn(u64 insn)
{}