Home
last modified time | relevance | path

Searched refs:ocxl_context (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/drivers/misc/ocxl/
Dcontext.c7 int ocxl_context_alloc(struct ocxl_context **context, struct ocxl_afu *afu, in ocxl_context_alloc()
11 struct ocxl_context *ctx; in ocxl_context_alloc()
13 *context = kzalloc(sizeof(struct ocxl_context), GFP_KERNEL); in ocxl_context_alloc()
58 struct ocxl_context *ctx = (struct ocxl_context *) data; in xsl_fault_error()
69 int ocxl_context_attach(struct ocxl_context *ctx, u64 amr, struct mm_struct *mm) in ocxl_context_attach()
97 u64 offset, struct ocxl_context *ctx) in map_afu_irq()
110 u64 offset, struct ocxl_context *ctx) in map_pp_mmio()
140 struct ocxl_context *ctx = vma->vm_file->private_data; in ocxl_mmap_fault()
159 static int check_mmap_afu_irq(struct ocxl_context *ctx, in check_mmap_afu_irq()
185 static int check_mmap_mmio(struct ocxl_context *ctx, in check_mmap_mmio()
[all …]
Dafu_irq.c19 int ocxl_irq_offset_to_id(struct ocxl_context *ctx, u64 offset) in ocxl_irq_offset_to_id()
24 u64 ocxl_irq_id_to_offset(struct ocxl_context *ctx, int irq_id) in ocxl_irq_id_to_offset()
29 int ocxl_irq_set_handler(struct ocxl_context *ctx, int irq_id, in ocxl_irq_set_handler()
69 static int setup_afu_irq(struct ocxl_context *ctx, struct afu_irq *irq) in setup_afu_irq()
104 int ocxl_afu_irq_alloc(struct ocxl_context *ctx, int *irq_id) in ocxl_afu_irq_alloc()
154 static void afu_irq_free(struct afu_irq *irq, struct ocxl_context *ctx) in afu_irq_free()
168 int ocxl_afu_irq_free(struct ocxl_context *ctx, int irq_id) in ocxl_afu_irq_free()
186 void ocxl_afu_irq_free_all(struct ocxl_context *ctx) in ocxl_afu_irq_free_all()
197 u64 ocxl_afu_irq_get_addr(struct ocxl_context *ctx, int irq_id) in ocxl_afu_irq_get_addr()
Docxl_internal.h70 struct ocxl_context { struct
133 int ocxl_context_mmap(struct ocxl_context *ctx,
140 int ocxl_irq_offset_to_id(struct ocxl_context *ctx, u64 offset);
141 u64 ocxl_irq_id_to_offset(struct ocxl_context *ctx, int irq_id);
142 void ocxl_afu_irq_free_all(struct ocxl_context *ctx);
Dfile.c56 struct ocxl_context *ctx; in afu_open()
73 static long afu_ioctl_attach(struct ocxl_context *ctx, in afu_ioctl_attach()
94 static long afu_ioctl_get_metadata(struct ocxl_context *ctx, in afu_ioctl_get_metadata()
116 static long afu_ioctl_enable_p9_wait(struct ocxl_context *ctx, in afu_ioctl_enable_p9_wait()
160 static long afu_ioctl_get_features(struct ocxl_context *ctx, in afu_ioctl_get_features()
205 struct ocxl_context *ctx = file->private_data; in afu_ioctl()
296 struct ocxl_context *ctx = file->private_data; in afu_mmap()
302 static bool has_xsl_error(struct ocxl_context *ctx) in has_xsl_error()
318 static bool afu_events_pending(struct ocxl_context *ctx) in afu_events_pending()
327 struct ocxl_context *ctx = file->private_data; in afu_poll()
[all …]
Dtrace.h11 DECLARE_EVENT_CLASS(ocxl_context,
40 DEFINE_EVENT(ocxl_context, ocxl_context_add,
45 DEFINE_EVENT(ocxl_context, ocxl_context_remove,
/Linux-v5.4/include/misc/
Docxl.h60 struct ocxl_context;
138 int ocxl_context_alloc(struct ocxl_context **context, struct ocxl_afu *afu,
146 void ocxl_context_free(struct ocxl_context *ctx);
156 int ocxl_context_attach(struct ocxl_context *ctx, u64 amr,
165 int ocxl_context_detach(struct ocxl_context *ctx);
176 extern int ocxl_afu_irq_alloc(struct ocxl_context *ctx, int *irq_id);
185 extern int ocxl_afu_irq_free(struct ocxl_context *ctx, int irq_id);
196 extern u64 ocxl_afu_irq_get_addr(struct ocxl_context *ctx, int irq_id);
208 int ocxl_irq_set_handler(struct ocxl_context *ctx, int irq_id,