Home
last modified time | relevance | path

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

/Linux-v6.6/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()
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()
99 u64 offset, struct ocxl_context *ctx) in map_afu_irq()
112 u64 offset, struct ocxl_context *ctx) in map_pp_mmio()
142 struct ocxl_context *ctx = vma->vm_file->private_data; in ocxl_mmap_fault()
161 static int check_mmap_afu_irq(struct ocxl_context *ctx, in check_mmap_afu_irq()
187 static int check_mmap_mmio(struct ocxl_context *ctx, in check_mmap_mmio()
196 int ocxl_context_mmap(struct ocxl_context *ctx, struct vm_area_struct *vma) in ocxl_context_mmap()
[all …]
Dafu_irq.c20 int ocxl_irq_offset_to_id(struct ocxl_context *ctx, u64 offset) in ocxl_irq_offset_to_id()
25 u64 ocxl_irq_id_to_offset(struct ocxl_context *ctx, int irq_id) in ocxl_irq_id_to_offset()
30 int ocxl_irq_set_handler(struct ocxl_context *ctx, int irq_id, in ocxl_irq_set_handler()
70 static int setup_afu_irq(struct ocxl_context *ctx, struct afu_irq *irq) in setup_afu_irq()
105 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
143 int ocxl_context_mmap(struct ocxl_context *ctx,
150 int ocxl_irq_offset_to_id(struct ocxl_context *ctx, u64 offset);
151 u64 ocxl_irq_id_to_offset(struct ocxl_context *ctx, int irq_id);
152 void ocxl_afu_irq_free_all(struct ocxl_context *ctx);
Dfile.c53 struct ocxl_context *ctx; in afu_open()
72 static long afu_ioctl_attach(struct ocxl_context *ctx, in afu_ioctl_attach()
91 static long afu_ioctl_get_metadata(struct ocxl_context *ctx, in afu_ioctl_get_metadata()
113 static long afu_ioctl_enable_p9_wait(struct ocxl_context *ctx, in afu_ioctl_enable_p9_wait()
157 static long afu_ioctl_get_features(struct ocxl_context *ctx, in afu_ioctl_get_features()
202 struct ocxl_context *ctx = file->private_data; in afu_ioctl()
295 struct ocxl_context *ctx = file->private_data; in afu_mmap()
301 static bool has_xsl_error(struct ocxl_context *ctx) in has_xsl_error()
317 static bool afu_events_pending(struct ocxl_context *ctx) in afu_events_pending()
326 struct ocxl_context *ctx = file->private_data; in afu_poll()
[all …]
Dtrace.h75 DECLARE_EVENT_CLASS(ocxl_context,
104 DEFINE_EVENT(ocxl_context, ocxl_context_add,
109 DEFINE_EVENT(ocxl_context, ocxl_context_remove,
/Linux-v6.6/include/misc/
Docxl.h60 struct ocxl_context;
130 int ocxl_context_alloc(struct ocxl_context **context, struct ocxl_afu *afu,
137 void ocxl_context_free(struct ocxl_context *ctx);
147 int ocxl_context_attach(struct ocxl_context *ctx, u64 amr,
156 int ocxl_context_detach(struct ocxl_context *ctx);
167 int ocxl_afu_irq_alloc(struct ocxl_context *ctx, int *irq_id);
176 int ocxl_afu_irq_free(struct ocxl_context *ctx, int irq_id);
187 u64 ocxl_afu_irq_get_addr(struct ocxl_context *ctx, int irq_id);
199 int ocxl_irq_set_handler(struct ocxl_context *ctx, int irq_id,