Lines Matching defs:handler

1049  * iommu_register_device_fault_handler() - Register a device fault handler
1051 * @handler: the fault handler
1052 * @data: private data passed as argument to the handler
1054 * When an IOMMU fault event is received, this handler gets called with the
1055 * fault event and data as argument. The handler should return 0 on success. If
1064 * Return 0 if the fault handler was installed successfully, or an error.
1067 iommu_dev_fault_handler_t handler,
1077 /* Only allow one fault handler registered for each device */
1090 param->fault_param->handler = handler;
1103 * iommu_unregister_device_fault_handler() - Unregister the device fault handler
1106 * Remove the device fault handler installed with
1124 /* we cannot unregister handler if there are pending faults */
1146 * handler. When this function fails and the fault is recoverable, it is the
1161 /* we only report device fault if there is a handler registered */
1164 if (!fparam || !fparam->handler) {
1182 ret = fparam->handler(&evt->fault, fparam->data);
1878 * iommu_set_fault_handler() - set a fault handler for an iommu domain
1880 * @handler: fault handler
1881 * @token: user data, will be passed back to the fault handler
1886 * The fault handler itself should return 0 on success, and an appropriate
1890 iommu_fault_handler_t handler,
1895 domain->handler = handler;
2635 * Specifically, -ENOSYS is returned if a fault handler isn't installed
2645 * if upper layers showed interest and installed a fault handler,
2648 if (domain->handler)
2649 ret = domain->handler(domain, dev, iova, flags,