Lines Matching defs:vdpa_dev

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