Searched refs:ocxl_context (Results 1 – 5 of 5) sorted by relevance
/Linux-v4.19/drivers/misc/ocxl/ |
D | ocxl_internal.h | 68 struct ocxl_context { struct 112 extern struct ocxl_context *ocxl_context_alloc(void); 113 extern int ocxl_context_init(struct ocxl_context *ctx, struct ocxl_afu *afu, 115 extern int ocxl_context_attach(struct ocxl_context *ctx, u64 amr); 116 extern int ocxl_context_mmap(struct ocxl_context *ctx, 118 extern int ocxl_context_detach(struct ocxl_context *ctx); 120 extern void ocxl_context_free(struct ocxl_context *ctx); 125 extern int ocxl_afu_irq_alloc(struct ocxl_context *ctx, u64 *irq_offset); 126 extern int ocxl_afu_irq_free(struct ocxl_context *ctx, u64 irq_offset); 127 extern void ocxl_afu_irq_free_all(struct ocxl_context *ctx); [all …]
|
D | context.c | 7 struct ocxl_context *ocxl_context_alloc(void) in ocxl_context_alloc() 9 return kzalloc(sizeof(struct ocxl_context), GFP_KERNEL); in ocxl_context_alloc() 12 int ocxl_context_init(struct ocxl_context *ctx, struct ocxl_afu *afu, in ocxl_context_init() 55 struct ocxl_context *ctx = (struct ocxl_context *) data; in xsl_fault_error() 66 int ocxl_context_attach(struct ocxl_context *ctx, u64 amr) in ocxl_context_attach() 90 u64 offset, struct ocxl_context *ctx) in map_afu_irq() 102 u64 offset, struct ocxl_context *ctx) in map_pp_mmio() 132 struct ocxl_context *ctx = vma->vm_file->private_data; in ocxl_mmap_fault() 151 static int check_mmap_afu_irq(struct ocxl_context *ctx, in check_mmap_afu_irq() 175 static int check_mmap_mmio(struct ocxl_context *ctx, in check_mmap_mmio() [all …]
|
D | afu_irq.c | 18 static int irq_offset_to_id(struct ocxl_context *ctx, u64 offset) in irq_offset_to_id() 23 static u64 irq_id_to_offset(struct ocxl_context *ctx, int id) in irq_id_to_offset() 38 static int setup_afu_irq(struct ocxl_context *ctx, struct afu_irq *irq) in setup_afu_irq() 73 int ocxl_afu_irq_alloc(struct ocxl_context *ctx, u64 *irq_offset) in ocxl_afu_irq_alloc() 122 static void afu_irq_free(struct afu_irq *irq, struct ocxl_context *ctx) in afu_irq_free() 136 int ocxl_afu_irq_free(struct ocxl_context *ctx, u64 irq_offset) in ocxl_afu_irq_free() 154 void ocxl_afu_irq_free_all(struct ocxl_context *ctx) in ocxl_afu_irq_free_all() 165 int ocxl_afu_irq_set_fd(struct ocxl_context *ctx, u64 irq_offset, int eventfd) in ocxl_afu_irq_set_fd() 190 u64 ocxl_afu_irq_get_addr(struct ocxl_context *ctx, u64 irq_offset) in ocxl_afu_irq_get_addr()
|
D | file.c | 59 struct ocxl_context *ctx; in afu_open() 86 static long afu_ioctl_attach(struct ocxl_context *ctx, in afu_ioctl_attach() 107 static long afu_ioctl_get_metadata(struct ocxl_context *ctx, in afu_ioctl_get_metadata() 129 static long afu_ioctl_enable_p9_wait(struct ocxl_context *ctx, in afu_ioctl_enable_p9_wait() 174 static long afu_ioctl_get_features(struct ocxl_context *ctx, in afu_ioctl_get_features() 204 struct ocxl_context *ctx = file->private_data; in afu_ioctl() 283 struct ocxl_context *ctx = file->private_data; in afu_mmap() 289 static bool has_xsl_error(struct ocxl_context *ctx) in has_xsl_error() 305 static bool afu_events_pending(struct ocxl_context *ctx) in afu_events_pending() 314 struct ocxl_context *ctx = file->private_data; in afu_poll() [all …]
|
D | trace.h | 11 DECLARE_EVENT_CLASS(ocxl_context, 40 DEFINE_EVENT(ocxl_context, ocxl_context_add, 45 DEFINE_EVENT(ocxl_context, ocxl_context_remove,
|