linux/drivers/crypto/cavium/nitrox/nitrox_lib.c

// SPDX-License-Identifier: GPL-2.0
#include <linux/cpumask.h>
#include <linux/dma-mapping.h>
#include <linux/dmapool.h>
#include <linux/delay.h>
#include <linux/gfp.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci_regs.h>
#include <linux/vmalloc.h>
#include <linux/pci.h>

#include "nitrox_dev.h"
#include "nitrox_common.h"
#include "nitrox_req.h"
#include "nitrox_csr.h"

#define CRYPTO_CTX_SIZE

/* packet inuput ring alignments */
#define PKTIN_Q_ALIGN_BYTES
/* AQM Queue input alignments */
#define AQM_Q_ALIGN_BYTES

static int nitrox_cmdq_init(struct nitrox_cmdq *cmdq, int align_bytes)
{}

static void nitrox_cmdq_reset(struct nitrox_cmdq *cmdq)
{}

static void nitrox_cmdq_cleanup(struct nitrox_cmdq *cmdq)
{}

static void nitrox_free_aqm_queues(struct nitrox_device *ndev)
{}

static int nitrox_alloc_aqm_queues(struct nitrox_device *ndev)
{}

static void nitrox_free_pktin_queues(struct nitrox_device *ndev)
{}

static int nitrox_alloc_pktin_queues(struct nitrox_device *ndev)
{}

static int create_crypto_dma_pool(struct nitrox_device *ndev)
{}

static void destroy_crypto_dma_pool(struct nitrox_device *ndev)
{}

/*
 * crypto_alloc_context - Allocate crypto context from pool
 * @ndev: NITROX Device
 */
void *crypto_alloc_context(struct nitrox_device *ndev)
{}

/**
 * crypto_free_context - Free crypto context to pool
 * @ctx: context to free
 */
void crypto_free_context(void *ctx)
{}

/**
 * nitrox_common_sw_init - allocate software resources.
 * @ndev: NITROX device
 *
 * Allocates crypto context pools and command queues etc.
 *
 * Return: 0 on success, or a negative error code on error.
 */
int nitrox_common_sw_init(struct nitrox_device *ndev)
{}

/**
 * nitrox_common_sw_cleanup - free software resources.
 * @ndev: NITROX device
 */
void nitrox_common_sw_cleanup(struct nitrox_device *ndev)
{}