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
Bu işleme şunda yer alıyor:

işlemeyi yapan:
Madan Koyyalamudi

ebeveyn
357a7f62b7
işleme
5b69a94a15
@@ -6464,7 +6464,7 @@ static void dp_tx_delete_static_pools(struct dp_soc *soc, int num_pool)
|
||||
* @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_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
|
||||
*
|
||||
*/
|
||||
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_num_seg_pool_free(soc, num_pool);
|
||||
@@ -6526,15 +6526,17 @@ void dp_soc_tx_desc_sw_pools_deinit(struct dp_soc *soc)
|
||||
}
|
||||
|
||||
/**
|
||||
* dp_tso_attach() - TSO attach handler
|
||||
* @txrx_soc: Opaque Dp handle
|
||||
* dp_tx_tso_cmn_desc_pool_alloc() - TSO cmn desc pool allocator
|
||||
* @soc: DP soc handle
|
||||
* @num_pool: Number of pools
|
||||
* @num_desc: Number of descriptors
|
||||
*
|
||||
* Reserve TSO descriptor buffers
|
||||
*
|
||||
* Return: QDF_STATUS_E_FAILURE on failure or
|
||||
* 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,
|
||||
uint32_t num_desc)
|
||||
{
|
||||
@@ -6563,7 +6565,7 @@ QDF_STATUS dp_tx_tso_cmn_desc_pool_alloc(struct dp_soc *soc,
|
||||
* 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,
|
||||
uint32_t num_desc)
|
||||
{
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* 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
|
||||
* 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
|
||||
dp_tx_comp_process_desc_list(struct dp_soc *soc,
|
||||
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,
|
||||
bool delayed_free);
|
||||
void dp_tx_desc_release(struct dp_tx_desc_s *tx_desc, uint8_t desc_pool_id);
|
||||
|
Yeni konuda referans
Bir kullanıcı engelle