Lines Matching refs:vdpa_dev

158 static struct ifcvf_adapter *vdpa_to_adapter(struct vdpa_device *vdpa_dev)  in vdpa_to_adapter()  argument
160 return container_of(vdpa_dev, struct ifcvf_adapter, vdpa); in vdpa_to_adapter()
163 static struct ifcvf_hw *vdpa_to_vf(struct vdpa_device *vdpa_dev) in vdpa_to_vf() argument
165 struct ifcvf_adapter *adapter = vdpa_to_adapter(vdpa_dev); in vdpa_to_vf()
170 static u64 ifcvf_vdpa_get_features(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_features() argument
172 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_features()
180 static int ifcvf_vdpa_set_features(struct vdpa_device *vdpa_dev, u64 features) in ifcvf_vdpa_set_features() argument
182 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_features()
189 static u8 ifcvf_vdpa_get_status(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_status() argument
191 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_status()
196 static void ifcvf_vdpa_set_status(struct vdpa_device *vdpa_dev, u8 status) in ifcvf_vdpa_set_status() argument
203 vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_status()
204 adapter = dev_get_drvdata(vdpa_dev->dev.parent); in ifcvf_vdpa_set_status()
240 static u16 ifcvf_vdpa_get_vq_num_max(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_vq_num_max() argument
245 static int ifcvf_vdpa_get_vq_state(struct vdpa_device *vdpa_dev, u16 qid, in ifcvf_vdpa_get_vq_state() argument
248 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_vq_state()
254 static int ifcvf_vdpa_set_vq_state(struct vdpa_device *vdpa_dev, u16 qid, in ifcvf_vdpa_set_vq_state() argument
257 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_vq_state()
262 static void ifcvf_vdpa_set_vq_cb(struct vdpa_device *vdpa_dev, u16 qid, in ifcvf_vdpa_set_vq_cb() argument
265 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_vq_cb()
270 static void ifcvf_vdpa_set_vq_ready(struct vdpa_device *vdpa_dev, in ifcvf_vdpa_set_vq_ready() argument
273 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_vq_ready()
278 static bool ifcvf_vdpa_get_vq_ready(struct vdpa_device *vdpa_dev, u16 qid) in ifcvf_vdpa_get_vq_ready() argument
280 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_vq_ready()
285 static void ifcvf_vdpa_set_vq_num(struct vdpa_device *vdpa_dev, u16 qid, in ifcvf_vdpa_set_vq_num() argument
288 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_vq_num()
293 static int ifcvf_vdpa_set_vq_address(struct vdpa_device *vdpa_dev, u16 qid, in ifcvf_vdpa_set_vq_address() argument
297 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_vq_address()
306 static void ifcvf_vdpa_kick_vq(struct vdpa_device *vdpa_dev, u16 qid) in ifcvf_vdpa_kick_vq() argument
308 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_kick_vq()
313 static u32 ifcvf_vdpa_get_generation(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_generation() argument
315 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_generation()
320 static u32 ifcvf_vdpa_get_device_id(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_device_id() argument
325 static u32 ifcvf_vdpa_get_vendor_id(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_vendor_id() argument
330 static u32 ifcvf_vdpa_get_vq_align(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_vq_align() argument
335 static void ifcvf_vdpa_get_config(struct vdpa_device *vdpa_dev, in ifcvf_vdpa_get_config() argument
339 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_config()
345 static void ifcvf_vdpa_set_config(struct vdpa_device *vdpa_dev, in ifcvf_vdpa_set_config() argument
349 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_config()
355 static void ifcvf_vdpa_set_config_cb(struct vdpa_device *vdpa_dev, in ifcvf_vdpa_set_config_cb() argument
358 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_config_cb()
364 static int ifcvf_vdpa_get_vq_irq(struct vdpa_device *vdpa_dev, in ifcvf_vdpa_get_vq_irq() argument
367 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_vq_irq()