Lines Matching refs:idxd
89 struct idxd_device *idxd; member
104 struct idxd_device *idxd; member
188 struct idxd_device *idxd; member
223 struct idxd_device *idxd; member
251 struct idxd_device *idxd; member
349 #define idxd_confdev(idxd) &idxd->idxd_dev.conf_dev argument
404 static inline struct idxd_irq_entry *idxd_get_ie(struct idxd_device *idxd, int idx) in idxd_get_ie() argument
406 return (idx == 0) ? &idxd->ie : &idxd->wqs[idx - 1]->ie; in idxd_get_ie()
476 static inline bool device_pasid_enabled(struct idxd_device *idxd) in device_pasid_enabled() argument
478 return test_bit(IDXD_FLAG_PASID_ENABLED, &idxd->flags); in device_pasid_enabled()
481 static inline bool device_user_pasid_enabled(struct idxd_device *idxd) in device_user_pasid_enabled() argument
483 return test_bit(IDXD_FLAG_USER_PASID_ENABLED, &idxd->flags); in device_user_pasid_enabled()
488 return (is_idxd_wq_kernel(wq) && device_pasid_enabled(wq->idxd)) || in wq_pasid_enabled()
489 (is_idxd_wq_user(wq) && device_user_pasid_enabled(wq->idxd)); in wq_pasid_enabled()
556 static inline void idxd_set_max_batch_size(int idxd_type, struct idxd_device *idxd, in idxd_set_max_batch_size() argument
560 idxd->max_batch_size = 0; in idxd_set_max_batch_size()
562 idxd->max_batch_size = max_batch_size; in idxd_set_max_batch_size()
595 int idxd_register_devices(struct idxd_device *idxd);
596 void idxd_unregister_devices(struct idxd_device *idxd);
599 void idxd_wqs_quiesce(struct idxd_device *idxd);
605 void idxd_mask_error_interrupts(struct idxd_device *idxd);
606 void idxd_unmask_error_interrupts(struct idxd_device *idxd);
615 int idxd_device_init_reset(struct idxd_device *idxd);
616 int idxd_device_enable(struct idxd_device *idxd);
617 int idxd_device_disable(struct idxd_device *idxd);
618 void idxd_device_reset(struct idxd_device *idxd);
619 void idxd_device_clear_state(struct idxd_device *idxd);
620 int idxd_device_config(struct idxd_device *idxd);
621 void idxd_device_drain_pasid(struct idxd_device *idxd, int pasid);
622 int idxd_device_load_config(struct idxd_device *idxd);
623 int idxd_device_request_int_handle(struct idxd_device *idxd, int idx, int *handle,
625 int idxd_device_release_int_handle(struct idxd_device *idxd, int handle,
629 void idxd_wqs_unmap_portal(struct idxd_device *idxd);
653 int idxd_register_dma_device(struct idxd_device *idxd);
654 void idxd_unregister_dma_device(struct idxd_device *idxd);
662 int idxd_cdev_get_major(struct idxd_device *idxd);
668 int perfmon_pmu_init(struct idxd_device *idxd);
669 void perfmon_pmu_remove(struct idxd_device *idxd);
670 void perfmon_counter_overflow(struct idxd_device *idxd);
674 static inline int perfmon_pmu_init(struct idxd_device *idxd) { return 0; } in perfmon_pmu_init() argument
675 static inline void perfmon_pmu_remove(struct idxd_device *idxd) {} in perfmon_pmu_remove() argument
676 static inline void perfmon_counter_overflow(struct idxd_device *idxd) {} in perfmon_counter_overflow() argument