Home
last modified time | relevance | path

Searched refs:vdpasim (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/vdpa/vdpa_sim/
H A Dvdpa_sim.c49 struct vdpasim *vdpasim; member
58 struct vdpasim *vdpasim = mm_work->vdpasim; in vdpasim_mm_work_fn() local
63 vdpasim->mm_bound = mm_work->mm_to_bind; in vdpasim_mm_work_fn()
66 static void vdpasim_worker_change_mm_sync(struct vdpasim *vdpasim, in vdpasim_worker_change_mm_sync() argument
72 kthread_queue_work(vdpasim->worker, work); in vdpasim_worker_change_mm_sync()
77 static struct vdpasim *vdpa_to_sim(struct vdpa_device *vdpa) in vdpa_to_sim()
79 return container_of(vdpa, struct vdpasim, vdpa); in vdpa_to_sim()
93 static void vdpasim_queue_ready(struct vdpasim *vdpasim, unsigned int idx) in vdpasim_queue_ready() argument
95 struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx]; in vdpasim_queue_ready()
104 if (use_va && vdpasim->mm_bound) { in vdpasim_queue_ready()
[all …]
H A Dvdpa_sim.h20 struct vdpasim;
47 void (*work_fn)(struct vdpasim *vdpasim);
48 void (*get_config)(struct vdpasim *vdpasim, void *config);
49 void (*set_config)(struct vdpasim *vdpasim, const void *config);
50 int (*get_stats)(struct vdpasim *vdpasim, u16 idx,
53 void (*free)(struct vdpasim *vdpasim);
57 struct vdpasim { struct
80 struct vdpasim *vdpasim_create(struct vdpasim_dev_attr *attr, argument
82 void vdpasim_schedule_work(struct vdpasim *vdpasim);
85 static inline bool vdpasim_is_little_endian(struct vdpasim *vdpasim) in vdpasim_is_little_endian() argument
[all …]