diff options
author | Michael Neuling <mikey@neuling.org> | 2015-05-27 02:07:10 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-06-02 23:27:18 -0400 |
commit | 1a1a94b876b9159d2b10675d8f680f7bbedc163e (patch) | |
tree | e9166f8b9263066bfd216d792ea6d7c49c0b7972 /drivers/misc/cxl/native.c | |
parent | b12994fbfe9362e3b5ed9f360d3cd6fb34d6645a (diff) |
cxl: Export some symbols
Export some symbols which will soon be used elsewhere in this driver.
Now they are global we rename them so to avoid collisions.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Acked-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc/cxl/native.c')
-rw-r--r-- | drivers/misc/cxl/native.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/misc/cxl/native.c b/drivers/misc/cxl/native.c index f85b6ae5ecf2..615ccbfe0987 100644 --- a/drivers/misc/cxl/native.c +++ b/drivers/misc/cxl/native.c | |||
@@ -83,7 +83,7 @@ int __cxl_afu_reset(struct cxl_afu *afu) | |||
83 | false); | 83 | false); |
84 | } | 84 | } |
85 | 85 | ||
86 | static int afu_check_and_enable(struct cxl_afu *afu) | 86 | int cxl_afu_check_and_enable(struct cxl_afu *afu) |
87 | { | 87 | { |
88 | if (afu->enabled) | 88 | if (afu->enabled) |
89 | return 0; | 89 | return 0; |
@@ -379,7 +379,7 @@ static int remove_process_element(struct cxl_context *ctx) | |||
379 | } | 379 | } |
380 | 380 | ||
381 | 381 | ||
382 | static void assign_psn_space(struct cxl_context *ctx) | 382 | void cxl_assign_psn_space(struct cxl_context *ctx) |
383 | { | 383 | { |
384 | if (!ctx->afu->pp_size || ctx->master) { | 384 | if (!ctx->afu->pp_size || ctx->master) { |
385 | ctx->psn_phys = ctx->afu->psn_phys; | 385 | ctx->psn_phys = ctx->afu->psn_phys; |
@@ -435,7 +435,7 @@ static int attach_afu_directed(struct cxl_context *ctx, u64 wed, u64 amr) | |||
435 | u64 sr; | 435 | u64 sr; |
436 | int r, result; | 436 | int r, result; |
437 | 437 | ||
438 | assign_psn_space(ctx); | 438 | cxl_assign_psn_space(ctx); |
439 | 439 | ||
440 | ctx->elem->ctxtime = 0; /* disable */ | 440 | ctx->elem->ctxtime = 0; /* disable */ |
441 | ctx->elem->lpid = cpu_to_be32(mfspr(SPRN_LPID)); | 441 | ctx->elem->lpid = cpu_to_be32(mfspr(SPRN_LPID)); |
@@ -477,7 +477,7 @@ static int attach_afu_directed(struct cxl_context *ctx, u64 wed, u64 amr) | |||
477 | ctx->elem->common.wed = cpu_to_be64(wed); | 477 | ctx->elem->common.wed = cpu_to_be64(wed); |
478 | 478 | ||
479 | /* first guy needs to enable */ | 479 | /* first guy needs to enable */ |
480 | if ((result = afu_check_and_enable(ctx->afu))) | 480 | if ((result = cxl_afu_check_and_enable(ctx->afu))) |
481 | return result; | 481 | return result; |
482 | 482 | ||
483 | add_process_element(ctx); | 483 | add_process_element(ctx); |
@@ -564,7 +564,7 @@ static int attach_dedicated(struct cxl_context *ctx, u64 wed, u64 amr) | |||
564 | cxl_p2n_write(afu, CXL_PSL_AMR_An, amr); | 564 | cxl_p2n_write(afu, CXL_PSL_AMR_An, amr); |
565 | 565 | ||
566 | /* master only context for dedicated */ | 566 | /* master only context for dedicated */ |
567 | assign_psn_space(ctx); | 567 | cxl_assign_psn_space(ctx); |
568 | 568 | ||
569 | if ((rc = __cxl_afu_reset(afu))) | 569 | if ((rc = __cxl_afu_reset(afu))) |
570 | return rc; | 570 | return rc; |