Home
last modified time | relevance | path

Searched refs:mdev_type (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/include/linux/
Dmdev.h16 struct mdev_type;
22 struct mdev_type *type;
26 struct mdev_type { struct
46 struct mdev_type **types; argument
71 unsigned int (*get_available)(struct mdev_type *mtype);
72 ssize_t (*show_description)(struct mdev_type *mtype, char *buf);
77 struct mdev_driver *mdev_driver, struct mdev_type **types,
/linux-6.1.9/drivers/vfio/mdev/
Dmdev_sysfs.c19 ssize_t (*show)(struct mdev_type *mtype,
21 ssize_t (*store)(struct mdev_type *mtype,
35 struct mdev_type *type = to_mdev_type(kobj); in mdev_type_attr_show()
48 struct mdev_type *type = to_mdev_type(kobj); in mdev_type_attr_store()
61 static ssize_t create_store(struct mdev_type *mtype, in create_store()
89 static ssize_t device_api_show(struct mdev_type *mtype, in device_api_show()
96 static ssize_t name_show(struct mdev_type *mtype, in name_show()
105 static ssize_t available_instances_show(struct mdev_type *mtype, in available_instances_show()
118 static ssize_t description_show(struct mdev_type *mtype, in description_show()
156 struct mdev_type *type = to_mdev_type(kobj); in mdev_type_release()
[all …]
Dmdev_private.h22 container_of(_kobj, struct mdev_type, kobj)
30 int mdev_device_create(struct mdev_type *kobj, const guid_t *uuid);
Dmdev_core.c60 struct mdev_driver *mdev_driver, struct mdev_type **types, in mdev_register_parent()
134 int mdev_device_create(struct mdev_type *type, const guid_t *uuid) in mdev_device_create()
/linux-6.1.9/drivers/s390/crypto/
Dvfio_ap_private.h54 struct mdev_type mdev_type; member
55 struct mdev_type *mdev_types[1];
Dvfio_ap_ops.c1815 matrix_dev->mdev_type.sysfs_name = VFIO_AP_MDEV_TYPE_HWVIRT; in vfio_ap_mdev_register()
1816 matrix_dev->mdev_type.pretty_name = VFIO_AP_MDEV_NAME_HWVIRT; in vfio_ap_mdev_register()
1817 matrix_dev->mdev_types[0] = &matrix_dev->mdev_type; in vfio_ap_mdev_register()
/linux-6.1.9/drivers/s390/cio/
Dvfio_ccw_private.h121 struct mdev_type mdev_type; member
122 struct mdev_type *mdev_types[1];
Dvfio_ccw_drv.c222 private->mdev_type.sysfs_name = "io"; in vfio_ccw_sch_probe()
223 private->mdev_type.pretty_name = "I/O subchannel (Non-QDIO)"; in vfio_ccw_sch_probe()
224 private->mdev_types[0] = &private->mdev_type; in vfio_ccw_sch_probe()
/linux-6.1.9/samples/vfio-mdev/
Dmdpy.c50 struct mdev_type type;
80 static struct mdev_type *mdpy_mdev_types[] = {
652 static ssize_t mdpy_show_description(struct mdev_type *mtype, char *buf) in mdpy_show_description()
Dmbochs.c103 struct mdev_type type;
129 static struct mdev_type *mbochs_mdev_types[] = {
1353 static ssize_t mbochs_show_description(struct mdev_type *mtype, char *buf) in mbochs_show_description()
1362 static unsigned int mbochs_get_available(struct mdev_type *mtype) in mbochs_get_available()
Dmtty.c147 struct mdev_type type;
156 static struct mdev_type *mtty_mdev_types[] = {
1259 static unsigned int mtty_get_available(struct mdev_type *mtype) in mtty_get_available()
/linux-6.1.9/Documentation/driver-api/
Dvfio-mediated-device.rst106 unsigned int (*get_available)(struct mdev_type *mtype);
107 ssize_t (*show_description)(struct mdev_type *mtype, char *buf);
236 |--- mdev_type {link to its type}
/linux-6.1.9/drivers/gpu/drm/i915/gvt/
Dgvt.h314 struct mdev_type type;
341 struct mdev_type **mdev_types;
Dkvmgt.c116 static ssize_t intel_vgpu_show_description(struct mdev_type *mtype, char *buf) in intel_vgpu_show_description()
1514 static unsigned int intel_vgpu_get_available(struct mdev_type *mtype) in intel_vgpu_get_available()
/linux-6.1.9/Documentation/ABI/testing/
Dsysfs-bus-vfio-mdev97 What: /sys/.../<device>/<UUID>/mdev_type