s390/pai_crypto: Rename paicrypt_copy() to pai_copy()

To support one common PAI PMU device driver which handles
both PMUs pai_crypto and pai_ext, use a common naming scheme
for structures and variables suitable for both device drivers.
Rename paicrypt_copy() to pai_copy() to indicate its common usage.
No functional change.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Reviewed-by: Jan Polensky <japo@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
Thomas Richter 2025-11-05 15:38:58 +01:00 committed by Heiko Carstens
parent 42e6a0f6d2
commit f124735413

View File

@ -485,9 +485,9 @@ static void paicrypt_del(struct perf_event *event, int flags)
* 2 bytes: Number of counter * 2 bytes: Number of counter
* 8 bytes: Value of counter * 8 bytes: Value of counter
*/ */
static size_t paicrypt_copy(struct pai_userdata *userdata, unsigned long *page, static size_t pai_copy(struct pai_userdata *userdata, unsigned long *page,
struct pai_pmu *pp, unsigned long *page_old, struct pai_pmu *pp, unsigned long *page_old,
bool exclude_user, bool exclude_kernel) bool exclude_user, bool exclude_kernel)
{ {
int i, outidx = 0; int i, outidx = 0;
@ -578,10 +578,10 @@ static void pai_have_sample(struct perf_event *event, struct pai_map *cpump)
if (!event) /* No event active */ if (!event) /* No event active */
return; return;
pp = &pai_pmu[PAI_PMU_IDX(event)]; pp = &pai_pmu[PAI_PMU_IDX(event)];
rawsize = paicrypt_copy(cpump->save, cpump->area, pp, rawsize = pai_copy(cpump->save, cpump->area, pp,
(unsigned long *)PAI_SAVE_AREA(event), (unsigned long *)PAI_SAVE_AREA(event),
event->attr.exclude_user, event->attr.exclude_user,
event->attr.exclude_kernel); event->attr.exclude_kernel);
if (rawsize) /* No incremented counters */ if (rawsize) /* No incremented counters */
pai_push_sample(rawsize, cpump, event); pai_push_sample(rawsize, cpump, event);
} }