idxd.h (93a40a6d7428921897bb7fed5ffb4ce83df05432) idxd.h (8c66bbdc4fbf3c297ebc8edf71f359e4a132c9db)
1/* SPDX-License-Identifier: GPL-2.0 */
2/* Copyright(c) 2019 Intel Corporation. All rights rsvd. */
3#ifndef _IDXD_H_
4#define _IDXD_H_
5
6#include <linux/sbitmap.h>
7#include <linux/dmaengine.h>
8#include <linux/percpu-rwsem.h>

--- 370 unchanged lines hidden (view full) ---

379int idxd_device_init_reset(struct idxd_device *idxd);
380int idxd_device_enable(struct idxd_device *idxd);
381int idxd_device_disable(struct idxd_device *idxd);
382void idxd_device_reset(struct idxd_device *idxd);
383void idxd_device_cleanup(struct idxd_device *idxd);
384int idxd_device_config(struct idxd_device *idxd);
385void idxd_device_wqs_clear_state(struct idxd_device *idxd);
386void idxd_device_drain_pasid(struct idxd_device *idxd, int pasid);
1/* SPDX-License-Identifier: GPL-2.0 */
2/* Copyright(c) 2019 Intel Corporation. All rights rsvd. */
3#ifndef _IDXD_H_
4#define _IDXD_H_
5
6#include <linux/sbitmap.h>
7#include <linux/dmaengine.h>
8#include <linux/percpu-rwsem.h>

--- 370 unchanged lines hidden (view full) ---

379int idxd_device_init_reset(struct idxd_device *idxd);
380int idxd_device_enable(struct idxd_device *idxd);
381int idxd_device_disable(struct idxd_device *idxd);
382void idxd_device_reset(struct idxd_device *idxd);
383void idxd_device_cleanup(struct idxd_device *idxd);
384int idxd_device_config(struct idxd_device *idxd);
385void idxd_device_wqs_clear_state(struct idxd_device *idxd);
386void idxd_device_drain_pasid(struct idxd_device *idxd, int pasid);
387int idxd_device_load_config(struct idxd_device *idxd);
387
388/* work queue control */
389int idxd_wq_alloc_resources(struct idxd_wq *wq);
390void idxd_wq_free_resources(struct idxd_wq *wq);
391int idxd_wq_enable(struct idxd_wq *wq);
392int idxd_wq_disable(struct idxd_wq *wq);
393void idxd_wq_drain(struct idxd_wq *wq);
394void idxd_wq_reset(struct idxd_wq *wq);

--- 30 unchanged lines hidden ---
388
389/* work queue control */
390int idxd_wq_alloc_resources(struct idxd_wq *wq);
391void idxd_wq_free_resources(struct idxd_wq *wq);
392int idxd_wq_enable(struct idxd_wq *wq);
393int idxd_wq_disable(struct idxd_wq *wq);
394void idxd_wq_drain(struct idxd_wq *wq);
395void idxd_wq_reset(struct idxd_wq *wq);

--- 30 unchanged lines hidden ---