linux/drivers/crypto/intel/qat/qat_common/adf_transport.c

// SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only)
/* Copyright(c) 2014 - 2020 Intel Corporation */
#include <linux/delay.h>
#include <linux/nospec.h>
#include "adf_accel_devices.h"
#include "adf_transport_internal.h"
#include "adf_transport_access_macros.h"
#include "adf_cfg.h"
#include "adf_common_drv.h"

#define ADF_MAX_RING_THRESHOLD
#define ADF_PERCENT(tot, percent)

static inline u32 adf_modulo(u32 data, u32 shift)
{}

static inline int adf_check_ring_alignment(u64 addr, u64 size)
{}

static int adf_verify_ring_size(u32 msg_size, u32 msg_num)
{}

static int adf_reserve_ring(struct adf_etr_bank_data *bank, u32 ring)
{}

static void adf_unreserve_ring(struct adf_etr_bank_data *bank, u32 ring)
{}

static void adf_enable_ring_irq(struct adf_etr_bank_data *bank, u32 ring)
{}

static void adf_disable_ring_irq(struct adf_etr_bank_data *bank, u32 ring)
{}

bool adf_ring_nearly_full(struct adf_etr_ring_data *ring)
{}

int adf_send_message(struct adf_etr_ring_data *ring, u32 *msg)
{}

static int adf_handle_response(struct adf_etr_ring_data *ring)
{}

static void adf_configure_tx_ring(struct adf_etr_ring_data *ring)
{}

static void adf_configure_rx_ring(struct adf_etr_ring_data *ring)
{}

static int adf_init_ring(struct adf_etr_ring_data *ring)
{}

static void adf_cleanup_ring(struct adf_etr_ring_data *ring)
{}

int adf_create_ring(struct adf_accel_dev *accel_dev, const char *section,
		    u32 bank_num, u32 num_msgs,
		    u32 msg_size, const char *ring_name,
		    adf_callback_fn callback, int poll_mode,
		    struct adf_etr_ring_data **ring_ptr)
{}

void adf_remove_ring(struct adf_etr_ring_data *ring)
{}

static void adf_ring_response_handler(struct adf_etr_bank_data *bank)
{}

void adf_response_handler(uintptr_t bank_addr)
{}

static inline int adf_get_cfg_int(struct adf_accel_dev *accel_dev,
				  const char *section, const char *format,
				  u32 key, u32 *value)
{}

static void adf_get_coalesc_timer(struct adf_etr_bank_data *bank,
				  const char *section,
				  u32 bank_num_in_accel)
{}

static int adf_init_bank(struct adf_accel_dev *accel_dev,
			 struct adf_etr_bank_data *bank,
			 u32 bank_num, void __iomem *csr_addr)
{}

/**
 * adf_init_etr_data() - Initialize transport rings for acceleration device
 * @accel_dev:  Pointer to acceleration device.
 *
 * Function is the initializes the communications channels (rings) to the
 * acceleration device accel_dev.
 * To be used by QAT device specific drivers.
 *
 * Return: 0 on success, error code otherwise.
 */
int adf_init_etr_data(struct adf_accel_dev *accel_dev)
{}
EXPORT_SYMBOL_GPL();

static void cleanup_bank(struct adf_etr_bank_data *bank)
{}

static void adf_cleanup_etr_handles(struct adf_accel_dev *accel_dev)
{}

/**
 * adf_cleanup_etr_data() - Clear transport rings for acceleration device
 * @accel_dev:  Pointer to acceleration device.
 *
 * Function is the clears the communications channels (rings) of the
 * acceleration device accel_dev.
 * To be used by QAT device specific drivers.
 *
 * Return: void
 */
void adf_cleanup_etr_data(struct adf_accel_dev *accel_dev)
{}
EXPORT_SYMBOL_GPL();