idxd.h (100c85421b52e41269ada88f7d71a6b8a06c7a11) idxd.h (d5638de827cff0fce77007e426ec0ffdedf68a44)
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>

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

288 int evl_cr_off;
289 int cr_status_off;
290 int cr_result_off;
291 load_device_defaults_fn_t load_device_defaults;
292};
293
294struct idxd_evl {
295 /* Lock to protect event log access. */
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>

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

288 int evl_cr_off;
289 int cr_status_off;
290 int cr_result_off;
291 load_device_defaults_fn_t load_device_defaults;
292};
293
294struct idxd_evl {
295 /* Lock to protect event log access. */
296 spinlock_t lock;
296 struct mutex lock;
297 void *log;
298 dma_addr_t dma;
299 /* Total size of event log = number of entries * entry size. */
300 unsigned int log_size;
301 /* The number of entries in the event log. */
302 u16 size;
303 unsigned long *bmap;
304 bool batch_fail[IDXD_MAX_BATCH_IDENT];

--- 515 unchanged lines hidden ---
297 void *log;
298 dma_addr_t dma;
299 /* Total size of event log = number of entries * entry size. */
300 unsigned int log_size;
301 /* The number of entries in the event log. */
302 u16 size;
303 unsigned long *bmap;
304 bool batch_fail[IDXD_MAX_BATCH_IDENT];

--- 515 unchanged lines hidden ---