Lines Matching refs:vdpa_dev
408 static struct ifcvf_adapter *vdpa_to_adapter(struct vdpa_device *vdpa_dev) in vdpa_to_adapter() argument
410 return container_of(vdpa_dev, struct ifcvf_adapter, vdpa); in vdpa_to_adapter()
413 static struct ifcvf_hw *vdpa_to_vf(struct vdpa_device *vdpa_dev) in vdpa_to_vf() argument
415 struct ifcvf_adapter *adapter = vdpa_to_adapter(vdpa_dev); in vdpa_to_vf()
420 static u64 ifcvf_vdpa_get_device_features(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_device_features() argument
422 struct ifcvf_adapter *adapter = vdpa_to_adapter(vdpa_dev); in ifcvf_vdpa_get_device_features()
423 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_device_features()
438 static int ifcvf_vdpa_set_driver_features(struct vdpa_device *vdpa_dev, u64 features) in ifcvf_vdpa_set_driver_features() argument
440 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_driver_features()
452 static u64 ifcvf_vdpa_get_driver_features(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_driver_features() argument
454 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_driver_features()
459 static u8 ifcvf_vdpa_get_status(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_status() argument
461 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_status()
466 static void ifcvf_vdpa_set_status(struct vdpa_device *vdpa_dev, u8 status) in ifcvf_vdpa_set_status() argument
473 vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_status()
474 adapter = vdpa_to_adapter(vdpa_dev); in ifcvf_vdpa_set_status()
499 static int ifcvf_vdpa_reset(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_reset() argument
505 vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_reset()
506 adapter = vdpa_to_adapter(vdpa_dev); in ifcvf_vdpa_reset()
522 static u16 ifcvf_vdpa_get_vq_num_max(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_vq_num_max() argument
527 static int ifcvf_vdpa_get_vq_state(struct vdpa_device *vdpa_dev, u16 qid, in ifcvf_vdpa_get_vq_state() argument
530 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_vq_state()
536 static int ifcvf_vdpa_set_vq_state(struct vdpa_device *vdpa_dev, u16 qid, in ifcvf_vdpa_set_vq_state() argument
539 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_vq_state()
544 static void ifcvf_vdpa_set_vq_cb(struct vdpa_device *vdpa_dev, u16 qid, in ifcvf_vdpa_set_vq_cb() argument
547 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_vq_cb()
552 static void ifcvf_vdpa_set_vq_ready(struct vdpa_device *vdpa_dev, in ifcvf_vdpa_set_vq_ready() argument
555 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_vq_ready()
560 static bool ifcvf_vdpa_get_vq_ready(struct vdpa_device *vdpa_dev, u16 qid) in ifcvf_vdpa_get_vq_ready() argument
562 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_vq_ready()
567 static void ifcvf_vdpa_set_vq_num(struct vdpa_device *vdpa_dev, u16 qid, in ifcvf_vdpa_set_vq_num() argument
570 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_vq_num()
575 static int ifcvf_vdpa_set_vq_address(struct vdpa_device *vdpa_dev, u16 qid, in ifcvf_vdpa_set_vq_address() argument
579 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_vq_address()
588 static void ifcvf_vdpa_kick_vq(struct vdpa_device *vdpa_dev, u16 qid) in ifcvf_vdpa_kick_vq() argument
590 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_kick_vq()
595 static u32 ifcvf_vdpa_get_generation(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_generation() argument
597 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_generation()
602 static u32 ifcvf_vdpa_get_device_id(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_device_id() argument
604 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_device_id()
609 static u32 ifcvf_vdpa_get_vendor_id(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_vendor_id() argument
611 struct ifcvf_adapter *adapter = vdpa_to_adapter(vdpa_dev); in ifcvf_vdpa_get_vendor_id()
617 static u32 ifcvf_vdpa_get_vq_align(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_vq_align() argument
622 static size_t ifcvf_vdpa_get_config_size(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_config_size() argument
624 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_config_size()
634 static void ifcvf_vdpa_get_config(struct vdpa_device *vdpa_dev, in ifcvf_vdpa_get_config() argument
638 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_config()
643 static void ifcvf_vdpa_set_config(struct vdpa_device *vdpa_dev, in ifcvf_vdpa_set_config() argument
647 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_config()
652 static void ifcvf_vdpa_set_config_cb(struct vdpa_device *vdpa_dev, in ifcvf_vdpa_set_config_cb() argument
655 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_set_config_cb()
661 static int ifcvf_vdpa_get_vq_irq(struct vdpa_device *vdpa_dev, in ifcvf_vdpa_get_vq_irq() argument
664 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_vdpa_get_vq_irq()
672 static struct vdpa_notification_area ifcvf_get_vq_notification(struct vdpa_device *vdpa_dev, in ifcvf_get_vq_notification() argument
675 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev); in ifcvf_get_vq_notification()
755 struct vdpa_device *vdpa_dev; in ifcvf_vdpa_dev_add() local
767 vdpa_dev = &adapter->vdpa; in ifcvf_vdpa_dev_add()
770 ret = dev_set_name(&vdpa_dev->dev, "%s", name); in ifcvf_vdpa_dev_add()
772 ret = dev_set_name(&vdpa_dev->dev, "vdpa%u", vdpa_dev->index); in ifcvf_vdpa_dev_add()