Home
last modified time | relevance | path

Searched refs:ctx_cookie (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/drivers/scsi/cxlflash/
H A Dcxl_hw.c22 static void __iomem *cxlflash_psa_map(void *ctx_cookie) in cxlflash_psa_map() argument
24 return cxl_psa_map(ctx_cookie); in cxlflash_psa_map()
32 static int cxlflash_process_element(void *ctx_cookie) in cxlflash_process_element() argument
34 return cxl_process_element(ctx_cookie); in cxlflash_process_element()
37 static int cxlflash_map_afu_irq(void *ctx_cookie, int num, in cxlflash_map_afu_irq() argument
40 return cxl_map_afu_irq(ctx_cookie, num, handler, cookie, name); in cxlflash_map_afu_irq()
43 static void cxlflash_unmap_afu_irq(void *ctx_cookie, int num, void *cookie) in cxlflash_unmap_afu_irq() argument
45 cxl_unmap_afu_irq(ctx_cookie, num, cookie); in cxlflash_unmap_afu_irq()
48 static u64 cxlflash_get_irq_objhndl(void *ctx_cookie, int irq) in cxlflash_get_irq_objhndl() argument
54 static int cxlflash_start_context(void *ctx_cookie) in cxlflash_start_context() argument
59 cxlflash_stop_context(void *ctx_cookie) cxlflash_stop_context() argument
64 cxlflash_afu_reset(void *ctx_cookie) cxlflash_afu_reset() argument
69 cxlflash_set_master(void *ctx_cookie) cxlflash_set_master() argument
84 cxlflash_release_context(void *ctx_cookie) cxlflash_release_context() argument
100 cxlflash_allocate_afu_irqs(void *ctx_cookie, int num) cxlflash_allocate_afu_irqs() argument
105 cxlflash_free_afu_irqs(void *ctx_cookie) cxlflash_free_afu_irqs() argument
120 cxlflash_get_fd(void *ctx_cookie, struct file_operations *fops, int *fd) cxlflash_get_fd() argument
131 cxlflash_start_work(void *ctx_cookie, u64 irqs) cxlflash_start_work() argument
[all...]
H A Dbackend.h19 void __iomem * (*psa_map)(void *ctx_cookie);
21 int (*process_element)(void *ctx_cookie);
22 int (*map_afu_irq)(void *ctx_cookie, int num, irq_handler_t handler,
24 void (*unmap_afu_irq)(void *ctx_cookie, int num, void *cookie);
25 u64 (*get_irq_objhndl)(void *ctx_cookie, int irq);
26 int (*start_context)(void *ctx_cookie);
27 int (*stop_context)(void *ctx_cookie);
28 int (*afu_reset)(void *ctx_cookie);
29 void (*set_master)(void *ctx_cookie);
32 int (*release_context)(void *ctx_cookie);
[all...]
H A Docxl_hw.c124 * @ctx_cookie: Adapter context for which the mapping needs to be done.
128 static void __iomem *ocxlflash_psa_map(void *ctx_cookie) in ocxlflash_psa_map() argument
130 struct ocxlflash_context *ctx = ctx_cookie; in ocxlflash_psa_map()
156 * @ctx_cookie: Adapter context associated with the process element.
160 static int ocxlflash_process_element(void *ctx_cookie) in ocxlflash_process_element() argument
162 struct ocxlflash_context *ctx = ctx_cookie; in ocxlflash_process_element()
228 * @ctx_cookie: Adapter context.
236 static int ocxlflash_map_afu_irq(void *ctx_cookie, int num, in ocxlflash_map_afu_irq() argument
240 return afu_map_irq(0, ctx_cookie, num, handler, cookie, name); in ocxlflash_map_afu_irq()
274 * @ctx_cookie
278 ocxlflash_unmap_afu_irq(void *ctx_cookie, int num, void *cookie) ocxlflash_unmap_afu_irq() argument
290 ocxlflash_get_irq_objhndl(void *ctx_cookie, int irq) ocxlflash_get_irq_objhndl() argument
383 ocxlflash_start_context(void *ctx_cookie) ocxlflash_start_context() argument
396 ocxlflash_stop_context(void *ctx_cookie) ocxlflash_stop_context() argument
437 ocxlflash_afu_reset(void *ctx_cookie) ocxlflash_afu_reset() argument
453 ocxlflash_set_master(void *ctx_cookie) ocxlflash_set_master() argument
530 ocxlflash_release_context(void *ctx_cookie) ocxlflash_release_context() argument
669 ocxlflash_allocate_afu_irqs(void *ctx_cookie, int num) ocxlflash_allocate_afu_irqs() argument
678 ocxlflash_free_afu_irqs(void *ctx_cookie) ocxlflash_free_afu_irqs() argument
1192 ocxlflash_get_fd(void *ctx_cookie, struct file_operations *fops, int *fd) ocxlflash_get_fd() argument
1304 ocxlflash_start_work(void *ctx_cookie, u64 num_irqs) ocxlflash_start_work() argument
[all...]
H A Dmain.c741 if (!hwq->ctx_cookie) { in term_intr()
750 cfg->ops->unmap_afu_irq(hwq->ctx_cookie, 3, hwq); in term_intr()
753 cfg->ops->unmap_afu_irq(hwq->ctx_cookie, 2, hwq); in term_intr()
756 cfg->ops->unmap_afu_irq(hwq->ctx_cookie, 1, hwq); in term_intr()
759 cfg->ops->free_afu_irqs(hwq->ctx_cookie); in term_intr()
788 if (!hwq->ctx_cookie) { in term_mc()
793 WARN_ON(cfg->ops->stop_context(hwq->ctx_cookie)); in term_mc()
795 WARN_ON(cfg->ops->release_context(hwq->ctx_cookie)); in term_mc()
796 hwq->ctx_cookie = NULL; in term_mc()
1750 cookie = hwq->ctx_cookie; in init_pcr()
[all...]
H A Dcommon.h205 void *ctx_cookie; member
/kernel/linux/linux-6.6/drivers/scsi/cxlflash/
H A Dcxl_hw.c22 static void __iomem *cxlflash_psa_map(void *ctx_cookie) in cxlflash_psa_map() argument
24 return cxl_psa_map(ctx_cookie); in cxlflash_psa_map()
32 static int cxlflash_process_element(void *ctx_cookie) in cxlflash_process_element() argument
34 return cxl_process_element(ctx_cookie); in cxlflash_process_element()
37 static int cxlflash_map_afu_irq(void *ctx_cookie, int num, in cxlflash_map_afu_irq() argument
40 return cxl_map_afu_irq(ctx_cookie, num, handler, cookie, name); in cxlflash_map_afu_irq()
43 static void cxlflash_unmap_afu_irq(void *ctx_cookie, int num, void *cookie) in cxlflash_unmap_afu_irq() argument
45 cxl_unmap_afu_irq(ctx_cookie, num, cookie); in cxlflash_unmap_afu_irq()
48 static u64 cxlflash_get_irq_objhndl(void *ctx_cookie, int irq) in cxlflash_get_irq_objhndl() argument
54 static int cxlflash_start_context(void *ctx_cookie) in cxlflash_start_context() argument
59 cxlflash_stop_context(void *ctx_cookie) cxlflash_stop_context() argument
64 cxlflash_afu_reset(void *ctx_cookie) cxlflash_afu_reset() argument
69 cxlflash_set_master(void *ctx_cookie) cxlflash_set_master() argument
84 cxlflash_release_context(void *ctx_cookie) cxlflash_release_context() argument
100 cxlflash_allocate_afu_irqs(void *ctx_cookie, int num) cxlflash_allocate_afu_irqs() argument
105 cxlflash_free_afu_irqs(void *ctx_cookie) cxlflash_free_afu_irqs() argument
120 cxlflash_get_fd(void *ctx_cookie, struct file_operations *fops, int *fd) cxlflash_get_fd() argument
131 cxlflash_start_work(void *ctx_cookie, u64 irqs) cxlflash_start_work() argument
[all...]
H A Dbackend.h19 void __iomem * (*psa_map)(void *ctx_cookie);
21 int (*process_element)(void *ctx_cookie);
22 int (*map_afu_irq)(void *ctx_cookie, int num, irq_handler_t handler,
24 void (*unmap_afu_irq)(void *ctx_cookie, int num, void *cookie);
25 u64 (*get_irq_objhndl)(void *ctx_cookie, int irq);
26 int (*start_context)(void *ctx_cookie);
27 int (*stop_context)(void *ctx_cookie);
28 int (*afu_reset)(void *ctx_cookie);
29 void (*set_master)(void *ctx_cookie);
32 int (*release_context)(void *ctx_cookie);
[all...]
H A Docxl_hw.c125 * @ctx_cookie: Adapter context for which the mapping needs to be done.
129 static void __iomem *ocxlflash_psa_map(void *ctx_cookie) in ocxlflash_psa_map() argument
131 struct ocxlflash_context *ctx = ctx_cookie; in ocxlflash_psa_map()
157 * @ctx_cookie: Adapter context associated with the process element.
161 static int ocxlflash_process_element(void *ctx_cookie) in ocxlflash_process_element() argument
163 struct ocxlflash_context *ctx = ctx_cookie; in ocxlflash_process_element()
229 * @ctx_cookie: Adapter context.
237 static int ocxlflash_map_afu_irq(void *ctx_cookie, int num, in ocxlflash_map_afu_irq() argument
241 return afu_map_irq(0, ctx_cookie, num, handler, cookie, name); in ocxlflash_map_afu_irq()
275 * @ctx_cookie
279 ocxlflash_unmap_afu_irq(void *ctx_cookie, int num, void *cookie) ocxlflash_unmap_afu_irq() argument
291 ocxlflash_get_irq_objhndl(void *ctx_cookie, int irq) ocxlflash_get_irq_objhndl() argument
386 ocxlflash_start_context(void *ctx_cookie) ocxlflash_start_context() argument
399 ocxlflash_stop_context(void *ctx_cookie) ocxlflash_stop_context() argument
440 ocxlflash_afu_reset(void *ctx_cookie) ocxlflash_afu_reset() argument
456 ocxlflash_set_master(void *ctx_cookie) ocxlflash_set_master() argument
533 ocxlflash_release_context(void *ctx_cookie) ocxlflash_release_context() argument
672 ocxlflash_allocate_afu_irqs(void *ctx_cookie, int num) ocxlflash_allocate_afu_irqs() argument
681 ocxlflash_free_afu_irqs(void *ctx_cookie) ocxlflash_free_afu_irqs() argument
1195 ocxlflash_get_fd(void *ctx_cookie, struct file_operations *fops, int *fd) ocxlflash_get_fd() argument
1307 ocxlflash_start_work(void *ctx_cookie, u64 num_irqs) ocxlflash_start_work() argument
[all...]
H A Dmain.c741 if (!hwq->ctx_cookie) { in term_intr()
750 cfg->ops->unmap_afu_irq(hwq->ctx_cookie, 3, hwq); in term_intr()
753 cfg->ops->unmap_afu_irq(hwq->ctx_cookie, 2, hwq); in term_intr()
756 cfg->ops->unmap_afu_irq(hwq->ctx_cookie, 1, hwq); in term_intr()
759 cfg->ops->free_afu_irqs(hwq->ctx_cookie); in term_intr()
788 if (!hwq->ctx_cookie) { in term_mc()
793 WARN_ON(cfg->ops->stop_context(hwq->ctx_cookie)); in term_mc()
795 WARN_ON(cfg->ops->release_context(hwq->ctx_cookie)); in term_mc()
796 hwq->ctx_cookie = NULL; in term_mc()
1727 cookie = hwq->ctx_cookie; in init_pcr()
[all...]
H A Dcommon.h205 void *ctx_cookie; member

Completed in 11 milliseconds