mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
Struct acpm_xfer holds two buffers with u32 commands - rxd and txd - and counts their size by rxlen and txlen. "len" suffix is here ambiguous, so could mean length of the buffer or length of commands, and these are not the same since each command is u32. Rename these to rxcnt and txcnt, and change their usage to count the number of commands in each buffer. This will have a benefit of allowing to use __counted_by_ptr later. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org> Link: https://patch.msgid.link/20260219-firmare-acpm-counted-v2-2-e1f7389237d3@oss.qualcomm.com Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
24 lines
459 B
C
24 lines
459 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright 2020 Samsung Electronics Co., Ltd.
|
|
* Copyright 2020 Google LLC.
|
|
* Copyright 2024 Linaro Ltd.
|
|
*/
|
|
#ifndef __EXYNOS_ACPM_H__
|
|
#define __EXYNOS_ACPM_H__
|
|
|
|
struct acpm_xfer {
|
|
const u32 *txd;
|
|
u32 *rxd;
|
|
size_t txcnt;
|
|
size_t rxcnt;
|
|
unsigned int acpm_chan_id;
|
|
};
|
|
|
|
struct acpm_handle;
|
|
|
|
int acpm_do_xfer(const struct acpm_handle *handle,
|
|
const struct acpm_xfer *xfer);
|
|
|
|
#endif /* __EXYNOS_ACPM_H__ */
|