Home
last modified time | relevance | path

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

/linux/drivers/vdpa/vdpa_sim/
A Dvdpa_sim.c100 vdpasim_vq_reset(vdpasim, &vdpasim->vqs[i]); in vdpasim_do_reset()
176 struct vdpasim *vdpasim = dev_to_sim(dev); in vdpasim_map_page() local
190 struct vdpasim *vdpasim = dev_to_sim(dev); in vdpasim_unmap_page() local
199 struct vdpasim *vdpasim = dev_to_sim(dev); in vdpasim_alloc_coherent() local
224 struct vdpasim *vdpasim = dev_to_sim(dev); in vdpasim_free_coherent() local
244 struct vdpasim *vdpasim; in vdpasim_create() local
315 struct vdpasim *vdpasim = vdpa_to_sim(vdpa); in vdpasim_set_vq_address() local
327 struct vdpasim *vdpasim = vdpa_to_sim(vdpa); in vdpasim_set_vq_num() local
335 struct vdpasim *vdpasim = vdpa_to_sim(vdpa); in vdpasim_kick_vq() local
494 vdpasim->dev_attr.get_config(vdpasim, vdpasim->config); in vdpasim_get_config()
[all …]
A Dvdpa_sim.h20 struct vdpasim;
46 void (*get_config)(struct vdpasim *vdpasim, void *config);
47 void (*set_config)(struct vdpasim *vdpasim, const void *config);
51 struct vdpasim { struct
73 static inline bool vdpasim_is_little_endian(struct vdpasim *vdpasim) in vdpasim_is_little_endian() argument
79 static inline u16 vdpasim16_to_cpu(struct vdpasim *vdpasim, __virtio16 val) in vdpasim16_to_cpu() argument
84 static inline __virtio16 cpu_to_vdpasim16(struct vdpasim *vdpasim, u16 val) in cpu_to_vdpasim16() argument
89 static inline u32 vdpasim32_to_cpu(struct vdpasim *vdpasim, __virtio32 val) in vdpasim32_to_cpu() argument
94 static inline __virtio32 cpu_to_vdpasim32(struct vdpasim *vdpasim, u32 val) in cpu_to_vdpasim32() argument
99 static inline u64 vdpasim64_to_cpu(struct vdpasim *vdpasim, __virtio64 val) in vdpasim64_to_cpu() argument
[all …]
A Dvdpa_sim_blk.c61 static bool vdpasim_blk_handle_req(struct vdpasim *vdpasim, in vdpasim_blk_handle_req() argument
113 dev_err(&vdpasim->vdpa.dev, in vdpasim_blk_handle_req()
124 dev_err(&vdpasim->vdpa.dev, in vdpasim_blk_handle_req()
136 dev_err(&vdpasim->vdpa.dev, in vdpasim_blk_handle_req()
147 dev_err(&vdpasim->vdpa.dev, in vdpasim_blk_handle_req()
199 struct vdpasim *vdpasim = container_of(work, struct vdpasim, work); in vdpasim_blk_work() local
202 spin_lock(&vdpasim->lock); in vdpasim_blk_work()
224 spin_unlock(&vdpasim->lock); in vdpasim_blk_work()
227 static void vdpasim_blk_get_config(struct vdpasim *vdpasim, void *config) in vdpasim_blk_get_config() argument
255 struct vdpasim *simdev; in vdpasim_blk_dev_add()
[all …]
A Dvdpa_sim_net.c35 struct vdpasim *vdpasim = container_of(work, struct vdpasim, work); in vdpasim_net_work() local
36 struct vdpasim_virtqueue *txq = &vdpasim->vqs[1]; in vdpasim_net_work()
43 spin_lock(&vdpasim->lock); in vdpasim_net_work()
67 vdpasim->buffer, in vdpasim_net_work()
73 vdpasim->buffer, read); in vdpasim_net_work()
97 schedule_work(&vdpasim->work); in vdpasim_net_work()
103 spin_unlock(&vdpasim->lock); in vdpasim_net_work()
106 static void vdpasim_net_get_config(struct vdpasim *vdpasim, void *config) in vdpasim_net_get_config() argument
113 static void vdpasim_net_setup_config(struct vdpasim *vdpasim, in vdpasim_net_setup_config() argument
140 struct vdpasim *simdev; in vdpasim_net_dev_add()
[all …]

Completed in 11 milliseconds