qcacmn: Make dp_tx_tso_cmn_desc_pool_*() functions static
The following functions are currently public functions: dp_tx_tso_cmn_desc_pool_alloc() dp_tx_tso_cmn_desc_pool_init() dp_tx_tso_cmn_desc_pool_deinit() dp_tx_tso_cmn_desc_pool_free() However these functions are only called from within the file where they are defined, so make them static. Change-Id: If57b36398e0cf6a33be2b85bc00d651fe5ed9a71 CRs-Fixed: 3371860
Tento commit je obsažen v:

odevzdal
Madan Koyyalamudi

rodič
357a7f62b7
revize
5b69a94a15
@@ -6464,7 +6464,7 @@ static void dp_tx_delete_static_pools(struct dp_soc *soc, int num_pool)
|
|||||||
* @num_pool: number of pools
|
* @num_pool: number of pools
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void dp_tx_tso_cmn_desc_pool_deinit(struct dp_soc *soc, uint8_t num_pool)
|
static void dp_tx_tso_cmn_desc_pool_deinit(struct dp_soc *soc, uint8_t num_pool)
|
||||||
{
|
{
|
||||||
dp_tx_tso_desc_pool_deinit(soc, num_pool);
|
dp_tx_tso_desc_pool_deinit(soc, num_pool);
|
||||||
dp_tx_tso_num_seg_pool_deinit(soc, num_pool);
|
dp_tx_tso_num_seg_pool_deinit(soc, num_pool);
|
||||||
@@ -6476,7 +6476,7 @@ void dp_tx_tso_cmn_desc_pool_deinit(struct dp_soc *soc, uint8_t num_pool)
|
|||||||
* @num_pool: number of pools
|
* @num_pool: number of pools
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void dp_tx_tso_cmn_desc_pool_free(struct dp_soc *soc, uint8_t num_pool)
|
static void dp_tx_tso_cmn_desc_pool_free(struct dp_soc *soc, uint8_t num_pool)
|
||||||
{
|
{
|
||||||
dp_tx_tso_desc_pool_free(soc, num_pool);
|
dp_tx_tso_desc_pool_free(soc, num_pool);
|
||||||
dp_tx_tso_num_seg_pool_free(soc, num_pool);
|
dp_tx_tso_num_seg_pool_free(soc, num_pool);
|
||||||
@@ -6526,17 +6526,19 @@ void dp_soc_tx_desc_sw_pools_deinit(struct dp_soc *soc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_tso_attach() - TSO attach handler
|
* dp_tx_tso_cmn_desc_pool_alloc() - TSO cmn desc pool allocator
|
||||||
* @txrx_soc: Opaque Dp handle
|
* @soc: DP soc handle
|
||||||
|
* @num_pool: Number of pools
|
||||||
|
* @num_desc: Number of descriptors
|
||||||
*
|
*
|
||||||
* Reserve TSO descriptor buffers
|
* Reserve TSO descriptor buffers
|
||||||
*
|
*
|
||||||
* Return: QDF_STATUS_E_FAILURE on failure or
|
* Return: QDF_STATUS_E_FAILURE on failure or
|
||||||
* QDF_STATUS_SUCCESS on success
|
* QDF_STATUS_SUCCESS on success
|
||||||
*/
|
*/
|
||||||
QDF_STATUS dp_tx_tso_cmn_desc_pool_alloc(struct dp_soc *soc,
|
static QDF_STATUS dp_tx_tso_cmn_desc_pool_alloc(struct dp_soc *soc,
|
||||||
uint8_t num_pool,
|
uint8_t num_pool,
|
||||||
uint32_t num_desc)
|
uint32_t num_desc)
|
||||||
{
|
{
|
||||||
if (dp_tx_tso_desc_pool_alloc(soc, num_pool, num_desc)) {
|
if (dp_tx_tso_desc_pool_alloc(soc, num_pool, num_desc)) {
|
||||||
dp_err("TSO Desc Pool alloc %d failed %pK", num_pool, soc);
|
dp_err("TSO Desc Pool alloc %d failed %pK", num_pool, soc);
|
||||||
@@ -6560,12 +6562,12 @@ QDF_STATUS dp_tx_tso_cmn_desc_pool_alloc(struct dp_soc *soc,
|
|||||||
* Initialize TSO descriptor pools
|
* Initialize TSO descriptor pools
|
||||||
*
|
*
|
||||||
* Return: QDF_STATUS_E_FAILURE on failure or
|
* Return: QDF_STATUS_E_FAILURE on failure or
|
||||||
* QDF_STATUS_SUCCESS on success
|
* QDF_STATUS_SUCCESS on success
|
||||||
*/
|
*/
|
||||||
|
|
||||||
QDF_STATUS dp_tx_tso_cmn_desc_pool_init(struct dp_soc *soc,
|
static QDF_STATUS dp_tx_tso_cmn_desc_pool_init(struct dp_soc *soc,
|
||||||
uint8_t num_pool,
|
uint8_t num_pool,
|
||||||
uint32_t num_desc)
|
uint32_t num_desc)
|
||||||
{
|
{
|
||||||
if (dp_tx_tso_desc_pool_init(soc, num_pool, num_desc)) {
|
if (dp_tx_tso_desc_pool_init(soc, num_pool, num_desc)) {
|
||||||
dp_err("TSO Desc Pool alloc %d failed %pK", num_pool, soc);
|
dp_err("TSO Desc Pool alloc %d failed %pK", num_pool, soc);
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
||||||
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -251,16 +251,6 @@ void dp_tx_deinit_pair_by_index(struct dp_soc *soc, int index);
|
|||||||
void
|
void
|
||||||
dp_tx_comp_process_desc_list(struct dp_soc *soc,
|
dp_tx_comp_process_desc_list(struct dp_soc *soc,
|
||||||
struct dp_tx_desc_s *comp_head, uint8_t ring_id);
|
struct dp_tx_desc_s *comp_head, uint8_t ring_id);
|
||||||
void dp_tx_tso_cmn_desc_pool_deinit(struct dp_soc *soc, uint8_t num_pool);
|
|
||||||
void dp_tx_tso_cmn_desc_pool_free(struct dp_soc *soc, uint8_t num_pool);
|
|
||||||
void dp_tx_tso_cmn_desc_pool_deinit(struct dp_soc *soc, uint8_t num_pool);
|
|
||||||
void dp_tx_tso_cmn_desc_pool_free(struct dp_soc *soc, uint8_t num_pool);
|
|
||||||
QDF_STATUS dp_tx_tso_cmn_desc_pool_alloc(struct dp_soc *soc,
|
|
||||||
uint8_t num_pool,
|
|
||||||
uint32_t num_desc);
|
|
||||||
QDF_STATUS dp_tx_tso_cmn_desc_pool_init(struct dp_soc *soc,
|
|
||||||
uint8_t num_pool,
|
|
||||||
uint32_t num_desc);
|
|
||||||
qdf_nbuf_t dp_tx_comp_free_buf(struct dp_soc *soc, struct dp_tx_desc_s *desc,
|
qdf_nbuf_t dp_tx_comp_free_buf(struct dp_soc *soc, struct dp_tx_desc_s *desc,
|
||||||
bool delayed_free);
|
bool delayed_free);
|
||||||
void dp_tx_desc_release(struct dp_tx_desc_s *tx_desc, uint8_t desc_pool_id);
|
void dp_tx_desc_release(struct dp_tx_desc_s *tx_desc, uint8_t desc_pool_id);
|
||||||
|
Odkázat v novém úkolu
Zablokovat Uživatele