Lines Matching refs:device

3  * Adjunct processor matrix VFIO device driver callbacks.
13 #include <linux/device.h>
30 static int match_apqn(struct device *dev, const void *data)
188 * @dev: the device associated with the ap_queue
271 * mediated device access.
369 static ssize_t name_show(struct kobject *kobj, struct device *dev, char *buf)
377 struct device *dev, char *buf)
385 static ssize_t device_api_show(struct kobject *kobj, struct device *dev,
419 * @dev: an AP queue device
422 * Flags whether the AP queue device (@dev) has a queue ID containing the APQN,
426 * as reserved if the APID and APQI fields for the AP queue device matches
429 * reserved if the APID field in the AP queue device matches
432 * reserved if the APQI field in the AP queue device matches
437 static int vfio_ap_has_queue(struct device *dev, void *data)
466 * @matrix_dev: a mediated matrix device
470 * Verifies that the AP queue with @apid/@apqi is reserved by the VFIO AP device
474 * device bound to the vfio_ap driver with the APQN identified by @apid and
477 * - If only @apid is not NULL, then there must be an AP queue device bound
480 * - If only @apqi is not NULL, then there must be an AP queue device bound
531 * mediated device. AP queue sharing is not allowed.
533 * @matrix_mdev: the mediated matrix device
571 * @dev: the matrix device
572 * @attr: the mediated matrix device's assign_adapter attribute
578 * matrix device's APM.
591 * and the APQIs previously assigned is not bound to the vfio_ap device
593 * contained in an APQN bound to the vfio_ap device driver.
598 * matrix device
600 static ssize_t assign_adapter_store(struct device *dev,
652 * @dev: the matrix device
653 * @attr: the mediated matrix device's unassign_adapter attribute
658 * matrix device's APM.
666 static ssize_t unassign_adapter_store(struct device *dev,
717 * @dev: the matrix device
718 * @attr: the mediated matrix device's assign_domain attribute
724 * matrix device's AQM.
737 * and the APIDs previously assigned is not bound to the vfio_ap device
739 * contained in an APQN bound to the vfio_ap device driver.
744 * matrix device
746 static ssize_t assign_domain_store(struct device *dev,
794 * @dev: the matrix device
795 * @attr: the mediated matrix device's unassign_domain attribute
801 * mediated matrix device's AQM.
808 static ssize_t unassign_domain_store(struct device *dev,
839 * @dev: the matrix device
840 * @attr: the mediated matrix device's assign_control_domain attribute
845 * matrix device's ADM.
852 static ssize_t assign_control_domain_store(struct device *dev,
888 * @dev: the matrix device
889 * @attr: the mediated matrix device's unassign_control_domain attribute
894 * mediated matrix device's ADM.
901 static ssize_t unassign_control_domain_store(struct device *dev,
929 static ssize_t control_domains_show(struct device *dev,
953 static ssize_t matrix_show(struct device *dev, struct device_attribute *attr,
1027 * @matrix_mdev: a mediated matrix device
1030 * Verifies no other mediated matrix device has @kvm and sets a reference to
1033 * Return 0 if no other mediated matrix device has a reference to @kvm;
1120 struct device *dev;
1322 return mdev_register_device(&matrix_dev->device, &vfio_ap_matrix_ops);
1327 mdev_unregister_device(&matrix_dev->device);