qcacmn: Rename mslot/pslot with module_id/pool_id
Currently in WBUFF code, mslot/pslot is used to refer module_id/pool_id and there are references of them being used interchangeably. Rename mslot/pslot to module_id/pool_id to improve the readability of the code. This is the pre-requisite to support mutilple modules in WBUFF which will be added with a future patch. Change-Id: Ia5a113535cff950cd3f464b6133370f026d4fc87 CRs-Fixed: 3516982
This commit is contained in:

committed by
Rahul Choudhary

parent
2baa26c9b4
commit
3ea9fb0844
@@ -52,11 +52,11 @@
|
||||
/* Allocation of size 2048 bytes */
|
||||
#define WBUFF_POOL_3_MAX 32
|
||||
|
||||
#define WBUFF_MSLOT_SHIFT 4
|
||||
#define WBUFF_MSLOT_BITMASK 0xF0
|
||||
#define WBUFF_MODULE_ID_SHIFT 4
|
||||
#define WBUFF_MODULE_ID_BITMASK 0xF0
|
||||
|
||||
#define WBUFF_PSLOT_SHIFT 1
|
||||
#define WBUFF_PSLOT_BITMASK 0xE
|
||||
#define WBUFF_POOL_ID_SHIFT 1
|
||||
#define WBUFF_POOL_ID_BITMASK 0xE
|
||||
|
||||
/* Comparison array for maximum allocation per pool*/
|
||||
uint16_t wbuff_alloc_max[WBUFF_MAX_POOLS] = {WBUFF_POOL_0_MAX,
|
||||
@@ -77,7 +77,7 @@ struct wbuff_handle {
|
||||
* @registered: To identify whether module is registered
|
||||
* @pending_returns: Number of buffers pending to be returned to
|
||||
* wbuff by the module
|
||||
* @lock: Lock for accessing per module buffer slots
|
||||
* @lock: Lock for accessing per module buffer pools
|
||||
* @handle: wbuff handle for the registered module
|
||||
* @reserve: nbuf headroom to start with
|
||||
* @align: alignment for the nbuf
|
||||
|
Reference in New Issue
Block a user