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

// SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only)
/* Copyright(c) 2014 - 2020 Intel Corporation */
#include <linux/mutex.h>
#include <linux/list.h>
#include <linux/bitops.h>
#include <linux/delay.h>
#include "adf_accel_devices.h"
#include "adf_cfg.h"
#include "adf_common_drv.h"
#include "adf_dbgfs.h"
#include "adf_heartbeat.h"
#include "adf_rl.h"
#include "adf_sysfs_ras_counters.h"
#include "adf_telemetry.h"

static LIST_HEAD(service_table);
static DEFINE_MUTEX(service_lock);

static void adf_service_add(struct service_hndl *service)
{}

int adf_service_register(struct service_hndl *service)
{}

static void adf_service_remove(struct service_hndl *service)
{}

int adf_service_unregister(struct service_hndl *service)
{}

/**
 * adf_dev_init() - Init data structures and services for the given accel device
 * @accel_dev: Pointer to acceleration device.
 *
 * Initialize the ring data structures and the admin comms and arbitration
 * services.
 *
 * Return: 0 on success, error code otherwise.
 */
static int adf_dev_init(struct adf_accel_dev *accel_dev)
{}

/**
 * adf_dev_start() - Start acceleration service for the given accel device
 * @accel_dev:    Pointer to acceleration device.
 *
 * Function notifies all the registered services that the acceleration device
 * is ready to be used.
 * To be used by QAT device specific drivers.
 *
 * Return: 0 on success, error code otherwise.
 */
static int adf_dev_start(struct adf_accel_dev *accel_dev)
{}

/**
 * adf_dev_stop() - Stop acceleration service for the given accel device
 * @accel_dev:    Pointer to acceleration device.
 *
 * Function notifies all the registered services that the acceleration device
 * is shuting down.
 * To be used by QAT device specific drivers.
 *
 * Return: void
 */
static void adf_dev_stop(struct adf_accel_dev *accel_dev)
{}

/**
 * adf_dev_shutdown() - shutdown acceleration services and data strucutures
 * @accel_dev: Pointer to acceleration device
 *
 * Cleanup the ring data structures and the admin comms and arbitration
 * services.
 */
static void adf_dev_shutdown(struct adf_accel_dev *accel_dev)
{}

int adf_dev_restarting_notify(struct adf_accel_dev *accel_dev)
{}

int adf_dev_restarted_notify(struct adf_accel_dev *accel_dev)
{}

void adf_error_notifier(struct adf_accel_dev *accel_dev)
{}

static int adf_dev_shutdown_cache_cfg(struct adf_accel_dev *accel_dev)
{}

int adf_dev_down(struct adf_accel_dev *accel_dev, bool reconfig)
{}
EXPORT_SYMBOL_GPL();

int adf_dev_up(struct adf_accel_dev *accel_dev, bool config)
{}
EXPORT_SYMBOL_GPL();

int adf_dev_restart(struct adf_accel_dev *accel_dev)
{}
EXPORT_SYMBOL_GPL();