Lines Matching refs:vdpa_dev
352 static struct ifcvf_adapter *vdpa_to_adapter(struct vdpa_device *vdpa_dev) in vdpa_to_adapter() argument
354 return container_of(vdpa_dev, struct ifcvf_adapter, vdpa); in vdpa_to_adapter()
357 static struct ifcvf_hw *vdpa_to_vf(struct vdpa_device *vdpa_dev) in vdpa_to_vf() argument
359 struct ifcvf_adapter *adapter = vdpa_to_adapter(vdpa_dev); in vdpa_to_vf()
364 static u64 ifcvf_vdpa_get_device_features(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_device_features() argument
366 struct ifcvf_adapter *adapter = vdpa_to_adapter(vdpa_dev); in ifcvf_vdpa_get_device_features()
367 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_device_features()
382 static int ifcvf_vdpa_set_driver_features(struct vdpa_device *vdpa_dev, u64 features) in ifcvf_vdpa_set_driver_features() argument
384 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_driver_features()
396 static u64 ifcvf_vdpa_get_driver_features(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_driver_features() argument
398 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_driver_features()
406 static u8 ifcvf_vdpa_get_status(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_status() argument
408 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_status()
413 static void ifcvf_vdpa_set_status(struct vdpa_device *vdpa_dev, u8 status) in ifcvf_vdpa_set_status() argument
419 vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_status()
437 static int ifcvf_vdpa_reset(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_reset() argument
439 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_reset()
452 static u16 ifcvf_vdpa_get_vq_num_max(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_vq_num_max() argument
454 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_vq_num_max()
459 static int ifcvf_vdpa_get_vq_state(struct vdpa_device *vdpa_dev, u16 qid, in ifcvf_vdpa_get_vq_state() argument
462 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_vq_state()
468 static int ifcvf_vdpa_set_vq_state(struct vdpa_device *vdpa_dev, u16 qid, in ifcvf_vdpa_set_vq_state() argument
471 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_vq_state()
476 static void ifcvf_vdpa_set_vq_cb(struct vdpa_device *vdpa_dev, u16 qid, in ifcvf_vdpa_set_vq_cb() argument
479 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_vq_cb()
484 static void ifcvf_vdpa_set_vq_ready(struct vdpa_device *vdpa_dev, in ifcvf_vdpa_set_vq_ready() argument
487 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_vq_ready()
492 static bool ifcvf_vdpa_get_vq_ready(struct vdpa_device *vdpa_dev, u16 qid) in ifcvf_vdpa_get_vq_ready() argument
494 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_vq_ready()
499 static void ifcvf_vdpa_set_vq_num(struct vdpa_device *vdpa_dev, u16 qid, in ifcvf_vdpa_set_vq_num() argument
502 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_vq_num()
507 static int ifcvf_vdpa_set_vq_address(struct vdpa_device *vdpa_dev, u16 qid, in ifcvf_vdpa_set_vq_address() argument
511 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_vq_address()
516 static void ifcvf_vdpa_kick_vq(struct vdpa_device *vdpa_dev, u16 qid) in ifcvf_vdpa_kick_vq() argument
518 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_kick_vq()
523 static u32 ifcvf_vdpa_get_generation(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_generation() argument
525 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_generation()
530 static u32 ifcvf_vdpa_get_device_id(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_device_id() argument
532 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_device_id()
537 static u32 ifcvf_vdpa_get_vendor_id(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_vendor_id() argument
539 struct ifcvf_adapter *adapter = vdpa_to_adapter(vdpa_dev); in ifcvf_vdpa_get_vendor_id()
545 static u32 ifcvf_vdpa_get_vq_align(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_vq_align() argument
550 static size_t ifcvf_vdpa_get_config_size(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_config_size() argument
552 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_config_size()
562 static void ifcvf_vdpa_get_config(struct vdpa_device *vdpa_dev, in ifcvf_vdpa_get_config() argument
566 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_config()
571 static void ifcvf_vdpa_set_config(struct vdpa_device *vdpa_dev, in ifcvf_vdpa_set_config() argument
575 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_config()
580 static void ifcvf_vdpa_set_config_cb(struct vdpa_device *vdpa_dev, in ifcvf_vdpa_set_config_cb() argument
583 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_config_cb()
589 static int ifcvf_vdpa_get_vq_irq(struct vdpa_device *vdpa_dev, in ifcvf_vdpa_get_vq_irq() argument
592 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_vq_irq()
600 static struct vdpa_notification_area ifcvf_get_vq_notification(struct vdpa_device *vdpa_dev, in ifcvf_get_vq_notification() argument
603 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_get_vq_notification()
683 struct vdpa_device *vdpa_dev; in ifcvf_vdpa_dev_add() local
704 vdpa_dev = &adapter->vdpa; in ifcvf_vdpa_dev_add()
718 ret = dev_set_name(&vdpa_dev->dev, "%s", name); in ifcvf_vdpa_dev_add()
720 ret = dev_set_name(&vdpa_dev->dev, "vdpa%u", vdpa_dev->index); in ifcvf_vdpa_dev_add()