#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)
{ … }
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)
{ … }
void adf_cleanup_etr_data(struct adf_accel_dev *accel_dev)
{ … }
EXPORT_SYMBOL_GPL(…);