qcacmn: qdf: Fix misspellings

Fix misspellings in qdf/...

Change-Id: If61ee47fba94b2bb60f33ab74feda56dbe5cb7bd
CRs-Fixed: 3277902
Dieser Commit ist enthalten in:
Jeff Johnson
2022-08-27 13:46:36 -07:00
committet von Madan Koyyalamudi
Ursprung b26f2f678c
Commit 3bdf954afc
40 geänderte Dateien mit 103 neuen und 87 gelöschten Zeilen

Datei anzeigen

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2017-2018, 2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 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
@@ -56,7 +57,7 @@ extern "C" {
#define WLAN_MAX_PRF_INTERATIONS_COUNT 255
/* Function declarations and documenation */
/* Function declarations and documentation */
/**
* qdf_get_hash: API to get hash using specific crypto and scatterlist

Datei anzeigen

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 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
@@ -102,7 +103,7 @@ qdf_dentry_t qdf_debugfs_create_file(const char *name, uint16_t mode,
struct qdf_debugfs_fops *fops);
/**
* qdf_debugfs_printf() - print formated string into debugfs file
* qdf_debugfs_printf() - print formatted string into debugfs file
* @file: debugfs file handle passed in fops->show() function
* @f: the format string to use
* @...: arguments for the format string
@@ -264,7 +265,7 @@ qdf_dentry_t qdf_debugfs_create_file_simplified(const char *name, uint16_t mode,
struct qdf_debugfs_fops *fops);
/**
* qdf_debugfs_printer() - Print formated string into debugfs file
* qdf_debugfs_printer() - Print formatted string into debugfs file
* @priv: The private data
* @fmt: Format string
* @...: arguments for the format string

Datei anzeigen

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2014-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 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
@@ -165,7 +166,7 @@ QDF_STATUS qdf_create_work(qdf_handle_t hdl, qdf_work_t *work,
* @hdl: OS handle
* @work: pointer to work
*
* Retrun: none
* Return: none
*/
void qdf_sched_work(qdf_handle_t hdl, qdf_work_t *work);
@@ -339,7 +340,7 @@ static inline void qdf_destroy_workqueue(qdf_handle_t hdl,
* qdf_sched_work - Schedule a deferred task on non-interrupt context
* @hdl: OS handle
* @work: pointer to work
* Retrun: none
* Return: none
*/
static inline void qdf_sched_work(qdf_handle_t hdl, qdf_work_t *work)
{

Datei anzeigen

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2019-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 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
@@ -31,7 +32,7 @@
typedef void (*qdf_delayed_work_cb)(void *context);
/**
* struct qdf_delayed_work - a defered work type which executes a callback after
* struct qdf_delayed_work - a deferred work type which executes a callback after
* some delay
* @dwork: OS-specific delayed work
* @callback: the callback to be executed

Datei anzeigen

@@ -38,7 +38,7 @@ extern "C" {
#endif /* __cplusplus */
typedef __qdf_event_t qdf_event_t;
/* Function declarations and documenation */
/* Function declarations and documentation */
QDF_STATUS qdf_event_create(qdf_event_t *event);

Datei anzeigen

@@ -26,7 +26,7 @@
* allocation are amoritized allocation cost, and reduced memory fragmentation.
*
* The allocator consists of 3 parts: the pool, segments, and items. Items are
* the smallest chuncks of memory that are handed out via the alloc call, and
* the smallest chunks of memory that are handed out via the alloc call, and
* are all of a uniform size. Segments are groups of items, representing the
* smallest amount of memory that can be dynamically allocated or freed. A pool
* is simply a collection of segments.

Datei anzeigen

@@ -57,7 +57,7 @@ typedef enum {
/**
* qdf_ipa_wdi_meter_evt_type_t - type of event client callback is
* for AP+STA mode metering
* @IPA_GET_WDI_SAP_STATS: get IPA_stats betwen SAP and STA -
* @IPA_GET_WDI_SAP_STATS: get IPA_stats between SAP and STA -
* use ipa_get_wdi_sap_stats structure
* @IPA_SET_WIFI_QUOTA: set quota limit on STA -
* use ipa_set_wifi_quota structure

Datei anzeigen

@@ -588,7 +588,7 @@ QDF_STATUS qdf_spinlock_release(qdf_spinlock_t *lock);
* @QDF_RTPM_GET: Increment usage count and when system is suspended
* schedule resume process, return depends on pm state.
* @QDF_RTPM_GET_FORCE: Increment usage count and when system is suspended
* shedule resume process, returns success irrespective of
* schedule resume process, returns success irrespective of
* pm_state.
* @QDF_RTPM_GET_SYNC: Increment usage count and when system is suspended,
* wait till process is resumed.

Datei anzeigen

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2015-2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 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
@@ -27,7 +28,7 @@
#include <i_qdf_lro.h>
/**
* @qdf_nbuf_t - Platform indepedent LRO context abstraction
* @qdf_nbuf_t - Platform independent LRO context abstraction
*/
typedef __qdf_lro_ctx_t qdf_lro_ctx_t;

Datei anzeigen

@@ -80,7 +80,7 @@ typedef struct qdf_mc_timer_s {
void qdf_try_allowing_sleep(QDF_TIMER_TYPE type);
/* Function declarations and documenation */
/* Function declarations and documentation */
#ifdef TIMER_MANAGER
void qdf_mc_timer_manager_init(void);
void qdf_mc_timer_manager_exit(void);

Datei anzeigen

@@ -36,7 +36,7 @@
/**
* qdf_align() - align to the given size.
* @a: input that needs to be aligned.
* @align_size: boundary on which 'a' has to be alinged.
* @align_size: boundary on which 'a' has to be aligned.
*
* Return: aligned value.
*/
@@ -554,7 +554,7 @@ void qdf_ether_addr_copy(void *dst_addr, const void *src_addr);
* @buf: pointer to memory to be dma mapped
* @dir: DMA map direction
* @nbytes: number of bytes to be mapped.
* @phy_addr: ponter to recive physical address.
* @phy_addr: pointer to receive physical address.
*
* Return: success/failure
*/
@@ -916,7 +916,7 @@ void qdf_update_mem_map_table(qdf_device_t osdev,
* @dma_addr: DMA/IOVA address
*
* Get actual physical address from dma_addr based on SMMU enablement status.
* IF SMMU Stage 1 tranlation is enabled, DMA APIs return IO virtual address
* IF SMMU Stage 1 translation is enabled, DMA APIs return IO virtual address
* (IOVA) otherwise returns physical address. So get SMMU physical address
* mapping from IOVA.
*
@@ -960,7 +960,7 @@ static inline bool qdf_mem_smmu_s1_enabled(qdf_device_t osdev)
/**
* qdf_mem_dma_get_sgtable() - Returns DMA memory scatter gather table
* @dev: device instace
* @dev: device instance
* @sgt: scatter gather table pointer
* @cpu_addr: HLOS virtual address
* @dma_addr: dma address
@@ -1005,7 +1005,7 @@ qdf_dma_get_sgtable_dma_addr(struct sg_table *sgt)
* @mem_info: Pointer to allocated memory information
*
* Get dma address based on SMMU enablement status. If SMMU Stage 1
* tranlation is enabled, DMA APIs return IO virtual address otherwise
* translation is enabled, DMA APIs return IO virtual address otherwise
* returns physical address.
*
* Return: dma address
@@ -1320,7 +1320,7 @@ void qdf_mem_tx_desc_cnt_update(qdf_atomic_t pending_tx_descs,
#if IS_ENABLED(CONFIG_ARM_SMMU) && defined(ENABLE_SMMU_S1_TRANSLATION)
/*
* typedef qdf_iommu_domain_t: Platform indepedent iommu domain
* typedef qdf_iommu_domain_t: Platform independent iommu domain
* abstraction
*/
typedef __qdf_iommu_domain_t qdf_iommu_domain_t;

Datei anzeigen

@@ -364,7 +364,7 @@ typedef __qdf_nbuf_queue_t qdf_nbuf_queue_t;
* @rssi_temp_offset: Temperature based rssi offset
* @min_nf_dbm: min noise floor in active chains per channel
* @xbar_config: 4 bytes, used for BB to RF Chain mapping
* @rssi_dbm_conv_support: Rssi dbm converstion support param
* @rssi_dbm_conv_support: Rssi dbm conversion support param
* @rx_user_status: pointer to mon_rx_user_status, when set update
* radiotap header will use userinfo from this structure.
*/
@@ -1050,7 +1050,7 @@ enum cb_ftype {
};
/**
* @qdf_nbuf_t - Platform indepedent packet abstraction
* @qdf_nbuf_t - Platform independent packet abstraction
*/
typedef __qdf_nbuf_t qdf_nbuf_t;
@@ -1111,7 +1111,7 @@ struct qdf_nbuf_track_t {
typedef struct qdf_nbuf_track_t QDF_NBUF_TRACK;
/**
* typedef qdf_nbuf_queue_head_t - Platform indepedent nbuf queue head
* typedef qdf_nbuf_queue_head_t - Platform independent nbuf queue head
*/
typedef __qdf_nbuf_queue_head_t qdf_nbuf_queue_head_t;
@@ -2126,7 +2126,7 @@ void qdf_net_buf_debug_acquire_skb(qdf_nbuf_t net_buf,
uint32_t line_num);
void qdf_net_buf_debug_release_skb(qdf_nbuf_t net_buf);
/* nbuf allocation rouines */
/* nbuf allocation routines */
#define qdf_nbuf_alloc_simple(d, s, r, a, p) \
__qdf_nbuf_alloc_simple(d, s, __func__, __LINE__)
@@ -2267,7 +2267,7 @@ qdf_net_buf_debug_update_unmap_node(qdf_nbuf_t net_buf,
uint32_t line_num)
{
}
/* Nbuf allocation rouines */
/* Nbuf allocation routines */
#define qdf_nbuf_alloc_simple(osdev, size, reserve, align, prio) \
qdf_nbuf_alloc_fl(osdev, size, reserve, align, prio, \
@@ -2857,7 +2857,7 @@ static inline qdf_nbuf_t qdf_nbuf_queue_next(qdf_nbuf_t buf)
* @nbq: Network buf queue handle
*
* Return: true if queue is empty
* false if queue is not emty
* false if queue is not empty
*/
static inline bool qdf_nbuf_is_queue_empty(qdf_nbuf_queue_t *nbq)
{
@@ -4628,7 +4628,7 @@ static inline void qdf_nbuf_count_dec(qdf_nbuf_t buf)
}
/**
* qdf_nbuf_mod_init() - Intialization routine for qdf_nbuf
* qdf_nbuf_mod_init() - Initialization routine for qdf_nbuf
*
* Return void
*/
@@ -5221,8 +5221,8 @@ static inline qdf_ktime_t qdf_nbuf_net_timedelta(qdf_ktime_t t)
#ifdef NBUF_MEMORY_DEBUG
/**
* qdf_set_smmu_fault_state() - Set smmu fault sate
* @smmu_fault_state: state of the wlan smmy
* qdf_set_smmu_fault_state() - Set smmu fault state
* @smmu_fault_state: state of the wlan smmu
*
* Return: void
*/

Datei anzeigen

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 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
@@ -32,7 +33,7 @@
typedef void (*qdf_periodic_work_cb)(void *context);
/**
* struct qdf_periodic_work - a defered work type which executes a callback
* struct qdf_periodic_work - a deferred work type which executes a callback
* periodically until stopped
* @dwork: OS-specific delayed work
* @callback: the callback to be executed periodically

Datei anzeigen

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 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
@@ -149,7 +150,7 @@ static inline void qdf_ptr_hash_deinit(struct qdf_ptr_hash *ht)
* qdf_ptr_hash_create() - allocate and initialize a qdf_ptr_hash
* @bits: the number of bits to use for hashing
*
* Return: qdf_ptr_hash pointer on succes, NULL on allocation failure
* Return: qdf_ptr_hash pointer on success, NULL on allocation failure
*/
static inline struct qdf_ptr_hash *qdf_ptr_hash_create(uint8_t bits)
{

Datei anzeigen

@@ -81,7 +81,7 @@
* @QDF_STATUS_QMI_TXN_INIT_FAILED: QMI transaction init failed
* @QDF_STATUS_QMI_SEND_REQ_FAILED: QMI send request failed
* @QDF_STATUS_QMI_TXN_WAIT_FAILED: QMI transaction wait failed
* @QDF_STATUS_MAX: not a realy value just a place holder for max
* @QDF_STATUS_MAX: not a real value just a place holder for max
*/
typedef enum {
QDF_STATUS_SUCCESS,

Datei anzeigen

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 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
@@ -186,9 +187,9 @@ static inline char *qdf_str_sep(char **str, char *delim)
* qdf_str_copy_all_before_char() - API to copy all character before a
* particular char provided
* @str: Source string
* @str_len: Source string legnth
* @str_len: Source string length
* @dst: Destination string
* @dst_len: Destination string legnth
* @dst_len: Destination string length
* @c: Character before which all characters need to be copied
*
* Return: length of the copied string, if success. zero otherwise.

Datei anzeigen

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2018, 2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 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
@@ -83,7 +84,7 @@ qdf_dentry_t qdf_streamfs_create_file(const char *name, uint16_t mode,
qdf_streamfs_chan_buf_t buf);
/**
* qdf_streamfs_open() - Create streamfs channel for data trasfer
* qdf_streamfs_open() - Create streamfs channel for data transfer
* @base_filename: base name of files to create, %NULL for buffering only
* @parent: dentry of parent directory, %NULL for root directory
* @subbuf_size: size of sub-buffers

Datei anzeigen

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 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
@@ -94,7 +95,7 @@ do { \
/**
* qdf_talloc_assert_no_children() - assert @parent has not child allocations
* @parent: the parent memory ponter to check
* @parent: the parent memory pointer to check
*
* Return: None
*/
@@ -130,7 +131,7 @@ void __qdf_tfree_fl(void *ptr, const char *func, const uint16_t line);
/**
* qdf_talloc_assert_no_children_fl() - assert @parent has not child allocations
* @parent: the parent memory ponter to check
* @parent: the parent memory pointer to check
* @func: name of the function requesting the assert
* @line: line number of the call site in @func
*

Datei anzeigen

@@ -31,7 +31,7 @@
typedef __qdf_thread_t qdf_thread_t;
typedef QDF_STATUS (*qdf_thread_func)(void *context);
/* Function declarations and documenation */
/* Function declarations and documentation */
void qdf_sleep(uint32_t ms_interval);

Datei anzeigen

@@ -289,7 +289,7 @@ typedef void (*qdf_defer_fn_t)(void *);
/*
* Prototype of the critical region function that is to be
* executed with spinlock held and interrupt disalbed
* executed with spinlock held and interrupt disabled
*/
typedef bool (*qdf_irqlocked_func_t)(void *);
@@ -327,7 +327,7 @@ typedef bool (*qdf_irqlocked_func_t)(void *);
* @QDF_MODULE_ID_XRATE: rate set handling
* @QDF_MODULE_ID_INPUT: input handling
* @QDF_MODULE_ID_CRYPTO: crypto work
* @QDF_MODULE_ID_DUMPPKTS: IFF_LINK2 equivalant
* @QDF_MODULE_ID_DUMPPKTS: IFF_LINK2 equivalent
* @QDF_MODULE_ID_DEBUG: IFF_DEBUG equivalent
* @QDF_MODULE_ID_MLME: MLME
* @QDF_MODULE_ID_RRM: Radio resource measurement
@@ -363,8 +363,8 @@ typedef bool (*qdf_irqlocked_func_t)(void *);
* @QDF_MODULE_ID_HAL: Hal abstraction module ID
* @QDF_MODULE_ID_SOC: SOC module ID
* @QDF_MODULE_ID_OS_IF: OS-interface module ID
* @QDF_MODULE_ID_TARGET_IF: targer interface module ID
* @QDF_MODULE_ID_SCHEDULER: schduler module ID
* @QDF_MODULE_ID_TARGET_IF: target interface module ID
* @QDF_MODULE_ID_SCHEDULER: scheduler module ID
* @QDF_MODULE_ID_MGMT_TXRX: management TX/RX module ID
* @QDF_MODULE_ID_SERIALIZATION: serialization module ID
* @QDF_MODULE_ID_PMO: PMO (power manager and offloads) Module ID
@@ -1387,7 +1387,7 @@ struct qdf_tso_info_t {
#define QDF_CE_TX_PKT_TYPE_BIT_S 6
/**
* QDF_CE_TX_PKT_OFFSET_BIT_S - 12 bits --> 16-27, in the CE desciptor
* QDF_CE_TX_PKT_OFFSET_BIT_S - 12 bits --> 16-27, in the CE descriptor
* the length of HTT/HTC descriptor
*/
#define QDF_CE_TX_PKT_OFFSET_BIT_S 16
@@ -1599,7 +1599,7 @@ enum qdf_dp_a_status {
* @QDF_DOMAIN_ATTR_SECURE_VMID: Domain attribute secure cmid
* @QDF_DOMAIN_ATTR_FAST: Domain attribute fast
* @QDF_DOMAIN_ATTR_PGTBL_INFO: Domain attribute pgtbl info
* @QDF_DOMAIN_ATTR_USE_UPSTREAM_HINT: Domain attribute use upsteram hint
* @QDF_DOMAIN_ATTR_USE_UPSTREAM_HINT: Domain attribute use upstream hint
* @QDF_DOMAIN_ATTR_EARLY_MAP: Domain attribute early map
* @QDF_DOMAIN_ATTR_PAGE_TABLE_IS_COHERENT: Domain attribute page table
* is coherrent

Datei anzeigen

@@ -84,12 +84,12 @@ typedef __qdf_wait_queue_head_t qdf_wait_queue_head_t;
#endif /* QDF_DEBUG */
/**
* qdf_assert_always - alway assert "expr" evaluates to false.
* qdf_assert_always - always assert "expr" evaluates to false.
*/
#define qdf_assert_always(expr) __qdf_assert(expr)
/**
* qdf_target_assert_always - alway target assert "expr" evaluates to false.
* qdf_target_assert_always - always target assert "expr" evaluates to false.
*/
#define qdf_target_assert_always(expr) __qdf_target_assert(expr)
@@ -435,7 +435,7 @@ static inline void qdf_set_macaddr_broadcast(struct qdf_mac_addr *mac_addr)
* @ptr: Starting address of a byte array
* @value: The value to assign to the byte array
*
* Caller must validate the byte array has enough space to hold the vlaue
* Caller must validate the byte array has enough space to hold the value
*
* Return: The address to the byte after the assignment. This may or may not
* be valid. Caller to verify.
@@ -459,7 +459,7 @@ static inline uint8_t *qdf_set_u16(uint8_t *ptr, uint16_t value)
* @value: Pointer to a caller allocated buffer for 16 bit value. Value is to
* assign to this location.
*
* Caller must validate the byte array has enough space to hold the vlaue
* Caller must validate the byte array has enough space to hold the value
*
* Return: The address to the byte after the assignment. This may or may not
* be valid. Caller to verify.
@@ -481,7 +481,7 @@ static inline uint8_t *qdf_get_u16(uint8_t *ptr, uint16_t *value)
* @value: Pointer to a caller allocated buffer for 32 bit value. Value is to
* assign to this location.
*
* Caller must validate the byte array has enough space to hold the vlaue
* Caller must validate the byte array has enough space to hold the value
*
* Return: The address to the byte after the assignment. This may or may not
* be valid. Caller to verify.
@@ -727,7 +727,7 @@ unsigned int qdf_get_hweight32(unsigned int w)
/**
* qdf_device_init_wakeup() - allow a device to wake up the aps system
* @qdf_dev: the qdf device context
* @enable: enable/disable the device as a wakup source
* @enable: enable/disable the device as a wakeup source
*
* Return: 0 or errno
*/

Datei anzeigen

@@ -113,7 +113,7 @@ __qdf_queue_work(__qdf_workqueue_t *wqueue, __qdf_work_t *work)
/**
* __qdf_sched_work - Schedule a deferred task on non-interrupt context
* @work: pointer to work
* Retrun: none
* Return: none
*/
static inline QDF_STATUS __qdf_sched_work(__qdf_work_t *work)
{

Datei anzeigen

@@ -26,7 +26,7 @@
/**
* __qdf_ipa_wdi_meter_evt_type_t - type of event client callback is
* for AP+STA mode metering
* @IPA_GET_WDI_SAP_STATS: get IPA_stats betwen SAP and STA -
* @IPA_GET_WDI_SAP_STATS: get IPA_stats between SAP and STA -
* use ipa_get_wdi_sap_stats structure
* @IPA_SET_WIFI_QUOTA: set quota limit on STA -
* use ipa_set_wifi_quota structure

Datei anzeigen

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2014-2018, 2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 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
@@ -101,7 +102,7 @@ typedef struct qdf_runtime_lock {
#define LINUX_LOCK_COOKIE 0x12345678
/* Function declarations and documenation */
/* Function declarations and documentation */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 37)
/**

Datei anzeigen

@@ -86,7 +86,7 @@ typedef struct mempool_elem {
* @mem_size: Total size of the pool in bytes
* @free_list: free pool list
* @lock: spinlock object
* @max_elem: Maximum number of elements in tha pool
* @max_elem: Maximum number of elements in the pool
* @free_cnt: Number of free elements available
*/
typedef struct __qdf_mempool_ctxt {
@@ -150,7 +150,7 @@ enum dma_data_direction __qdf_dma_dir_to_os(qdf_dma_dir_t qdf_dir)
* @buf: pointer to memory to be dma mapped
* @dir: DMA map direction
* @nbytes: number of bytes to be mapped.
* @phy_addr: ponter to recive physical address.
* @phy_addr: pointer to receive physical address.
*
* Return: success/failure
*/
@@ -441,7 +441,7 @@ __qdf_mem_paddr_from_dmaaddr(qdf_device_t osdev,
/**
* __qdf_os_mem_dma_get_sgtable() - Returns DMA memory scatter gather table
* @dev: device instace
* @dev: device instance
* @sgt: scatter gather table pointer
* @cpu_addr: HLOS virtual address
* @dma_addr: dma/iova

Datei anzeigen

@@ -126,7 +126,7 @@ typedef union {
*
* Notes:
* 1. Hard limited to 48 bytes. Please count your bytes
* 2. The size of this structure has to be easily calculatable and
* 2. The size of this structure has to be easily calculable and
* consistently so: do not use any conditional compile flags
* 3. Split into a common part followed by a tx/rx overlay
* 4. There is only one extra frag, which represents the HTC/HTT header
@@ -155,7 +155,7 @@ typedef union {
* @rx.dev.priv_cb_m.exc_frm: exception frame
* @rx.dev.priv_cb_m.ipa_smmu_map: do IPA smmu map
* @rx.dev.priv_cb_m.reo_dest_ind_or_sw_excpt: reo destination indication or
sw execption bit from ring desc
sw exception bit from ring desc
* @rx.dev.priv_cb_m.lmac_id: lmac id for RX packet
* @rx.dev.priv_cb_m.tcp_seq_num: TCP sequence number
* @rx.dev.priv_cb_m.tcp_ack_num: TCP ACK number

Datei anzeigen

@@ -28,7 +28,7 @@
#ifndef _I_QDF_NBUF_W_H
#define _I_QDF_NBUF_W_H
/* ext_cb accesor macros and internal API's */
/* ext_cb accessor macros and internal API's */
#define QDF_NBUF_CB_EXT_CB(skb) \
(((struct qdf_nbuf_cb *)((skb)->cb))->u.tx.dev.priv_cb_w.ext_cb_ptr)
@@ -41,7 +41,7 @@
#define __qdf_nbuf_get_ext_cb(skb) \
QDF_NBUF_CB_EXT_CB((skb))
/* fctx accesor macros and internal API's*/
/* fctx accessor macros and internal API's*/
#define QDF_NBUF_CB_RX_FCTX(skb) \
(((struct qdf_nbuf_cb *)((skb)->cb))->u.rx.dev.priv_cb_w.fctx)

Datei anzeigen

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2014-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 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
@@ -321,7 +322,7 @@ static inline uint64_t __qdf_get_log_timestamp(void)
/**
* __qdf_get_log_timestamp - get time stamp for logging
*
* Return: system tick for non MSM platfroms
* Return: system tick for non MSM platforms
*/
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0))
static inline uint64_t __qdf_get_log_timestamp(void)

Datei anzeigen

@@ -55,7 +55,7 @@
#endif
/* QDF_TRACE is the macro invoked to add trace messages to code. See the
* documenation for qdf_trace_msg() for the parameters etc. for this function.
* documentation for qdf_trace_msg() for the parameters etc. for this function.
*
* NOTE: Code QDF_TRACE() macros into the source code. Do not code directly
* to the qdf_trace_msg() function.

Datei anzeigen

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2014-2018, 2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 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
@@ -28,7 +29,7 @@
#include <qdf_list.h>
#include <qdf_module.h>
/* Function declarations and documenation */
/* Function declarations and documentation */
QDF_STATUS qdf_list_insert_before(qdf_list_t *list,
qdf_list_node_t *new_node, qdf_list_node_t *node)

Datei anzeigen

@@ -769,7 +769,7 @@ void qdf_lock_stats_init(void)
__qdf_put_lock_cookie(&lock_cookies[i]);
/* stats must be allocated for the spinlock before the cookie,
* otherwise this qdf_lock_list_spinlock wouldnt get initialized
* otherwise this qdf_lock_list_spinlock wouldn't get initialized
* properly
*/
qdf_spinlock_create(&qdf_lock_list_spinlock);

Datei anzeigen

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2015-2017, 2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 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
@@ -142,7 +143,7 @@ qdf_lro_ctx_t qdf_lro_init(void)
lro_ctx->lro_mgr = (struct net_lro_mgr *)lro_mem_ptr;
lro_mem_ptr += lro_mgr_sz;
/* LRO decriptor array */
/* LRO descriptor array */
lro_ctx->lro_mgr->lro_arr = (struct net_lro_desc *)lro_mem_ptr;
lro_mem_ptr += desc_arr_sz;
@@ -189,7 +190,7 @@ void qdf_lro_deinit(qdf_lro_ctx_t lro_ctx)
* qdf_lro_tcp_flow_match() - function to check for a flow match
* @iph: IP header
* @tcph: TCP header
* @lro_desc: LRO decriptor
* @lro_desc: LRO descriptor
*
* Checks if the descriptor belongs to the same flow as the one
* indicated by the TCP and IP header.
@@ -443,7 +444,7 @@ void qdf_lro_flush(qdf_lro_ctx_t lro_ctx)
* qdf_lro_get_desc() - LRO descriptor look-up function
* @iph: IP header
* @tcph: TCP header
* @lro_arr: Array of LRO decriptors
* @lro_arr: Array of LRO descriptors
* @lro_mgr: LRO manager
*
* Looks-up the LRO descriptor for a given flow

Datei anzeigen

@@ -70,7 +70,7 @@ void qdf_register_mc_timer_callback(void (*callback) (qdf_mc_timer_t *))
qdf_export_symbol(qdf_register_mc_timer_callback);
/* Function declarations and documenation */
/* Function declarations and documentation */
/**
* qdf_try_allowing_sleep() - clean up timer states after it has been deactivated
@@ -675,7 +675,7 @@ QDF_STATUS qdf_mc_timer_start(qdf_mc_timer_t *timer, uint32_t expiration_time)
return QDF_STATUS_E_INVAL;
}
/* make sure the remainer of the logic isn't interrupted */
/* make sure the remainder of the logic isn't interrupted */
qdf_spin_lock_irqsave(&timer->platform_info.spinlock);
/* ensure if the timer can be started */

Datei anzeigen

@@ -111,7 +111,7 @@ enum list_type {
* @type: type of the list to be parsed
* @threshold: configured by user by overwriting the respective debugfs
* sys entry. This is to list the functions which requested
* memory/dma allocations more than threshold nubmer of times.
* memory/dma allocations more than threshold number of times.
*/
struct major_alloc_priv {
enum list_type type;
@@ -1491,7 +1491,7 @@ static void qdf_mem_debug_init(void)
if (is_initial_mem_debug_disabled)
return;
/* Initalizing the list with maximum size of 60000 */
/* Initializing the list with maximum size of 60000 */
for (i = 0; i < QDF_DEBUG_DOMAIN_COUNT; ++i)
qdf_list_create(&qdf_mem_domains[i], 60000);
qdf_spinlock_create(&qdf_mem_list_lock);

Datei anzeigen

@@ -2884,7 +2884,7 @@ static void qdf_nbuf_track_free(QDF_NBUF_TRACK *node)
/* Try to shrink the freelist if free_list_count > than FREEQ_POOLSIZE
* only shrink the freelist if it is bigger than twice the number of
* nbufs in use. If the driver is stalling in a consistent bursty
* fasion, this will keep 3/4 of thee allocations from the free list
* fashion, this will keep 3/4 of thee allocations from the free list
* while also allowing the system to recover memory as less frantic
* traffic occurs.
*/
@@ -3950,7 +3950,7 @@ static inline void qdf_nbuf_tso_unmap_frag(
* information
* @osdev: qdf device handle
* @skb: skb buffer
* @tso_info: Parameters common to all segements
* @tso_info: Parameters common to all segments
*
* Get the TSO information that is common across all the TCP
* segments of the jumbo packet
@@ -4000,7 +4000,7 @@ static uint8_t __qdf_nbuf_get_tso_cmn_seg_info(qdf_device_t osdev,
return 1;
if (tso_info->ethproto == htons(ETH_P_IP)) {
/* inlcude IPv4 header length for IPV4 (total length) */
/* include IPv4 header length for IPV4 (total length) */
tso_info->ip_tcp_hdr_len =
tso_info->eit_hdr_len - tso_info->l2_len;
} else if (tso_info->ethproto == htons(ETH_P_IPV6)) {
@@ -4026,7 +4026,7 @@ static uint8_t __qdf_nbuf_get_tso_cmn_seg_info(qdf_device_t osdev,
* __qdf_nbuf_fill_tso_cmn_seg_info() - Init function for each TSO nbuf segment
*
* @curr_seg: Segment whose contents are initialized
* @tso_cmn_info: Parameters common to all segements
* @tso_cmn_info: Parameters common to all segments
*
* Return: None
*/
@@ -4413,7 +4413,7 @@ uint32_t __qdf_nbuf_get_tso_num_seg(struct sk_buff *skb)
* Remainder non-zero and nr_frags zero implies end of skb data.
* In that case, one more tso seg is required to accommodate
* remaining data, hence num_segs++. If nr_frags is non-zero,
* then remaining data will be accomodated while doing the calculation
* then remaining data will be accommodated while doing the calculation
* for nr_frags data. Hence, frags_per_tso++.
*/
if (remainder) {
@@ -4453,7 +4453,7 @@ uint32_t __qdf_nbuf_get_tso_num_seg(struct sk_buff *skb)
* positive. If frags_per_tso reaches the (max-1),
* [First frags always have EIT header, therefore max-1]
* increment the num_segs as no more data can be
* accomodated in the curr tso seg. Reset the remainder
* accommodated in the curr tso seg. Reset the remainder
* and frags per tso and keep looping.
*/
frags_per_tso++;
@@ -4650,7 +4650,7 @@ __qdf_nbuf_dmamap_create(qdf_device_t osdev, __qdf_dma_map_t *dmap)
{
QDF_STATUS error = QDF_STATUS_SUCCESS;
/*
* driver can tell its SG capablity, it must be handled.
* driver can tell its SG capability, it must be handled.
* Bounce buffers if they are there
*/
(*dmap) = kzalloc(sizeof(struct __qdf_dma_map), GFP_KERNEL);
@@ -5879,7 +5879,7 @@ qdf_export_symbol(qdf_nbuf_init_fast);
#ifdef QDF_NBUF_GLOBAL_COUNT
/**
* __qdf_nbuf_mod_init() - Intialization routine for qdf_nuf
* __qdf_nbuf_mod_init() - Initialization routine for qdf_nuf
*
* Return void
*/

Datei anzeigen

@@ -91,7 +91,7 @@ void __qdf_frag_mod_exit(void)
* @p_frag: Pointer to frag
* @alloc_func_name: Function where frag is allocated
* @alloc_func_line: Allocation function line no.
* @refcount: No. of refereces to the frag
* @refcount: No. of references to the frag
* @last_func_name: Function where frag recently accessed
* @last_func_line_num: Line number of last function
*

Datei anzeigen

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2019-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 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
@@ -139,7 +140,7 @@ bool qdf_periodic_work_stop_sync(struct qdf_periodic_work *pwork)
/* To avoid using a lock, signal that the work shouldn't be restarted,
* and cancel_sync in a loop. There is a very small race window, and
* thus the work may ocassionally need to be cancelled more than once.
* thus the work may occasionally need to be cancelled more than once.
*/
pwork->msec = 0;
while (cancel_delayed_work_sync(&pwork->dwork))

Datei anzeigen

@@ -44,7 +44,7 @@
#include <qdf_defer.h>
#include <qdf_module.h>
/* Function declarations and documenation */
/* Function declarations and documentation */
typedef int (*qdf_thread_os_func)(void *data);

Datei anzeigen

@@ -396,7 +396,7 @@ void qdf_trace(uint8_t module, uint16_t code, uint16_t session, uint32_t data)
return;
qdf_get_time_of_the_day_in_hr_min_sec_usec(time, sizeof(time));
/* Aquire the lock so that only one thread at a time can fill the ring
/* Acquire the lock so that only one thread at a time can fill the ring
* buffer
*/
spin_lock_irqsave(&ltrace_lock, flags);
@@ -508,7 +508,7 @@ qdf_export_symbol(qdf_trace_register);
* @session: Session id of log
* @count: Number of lines to dump starting from tail to head
*
* This function will be called up on issueing ioctl call as mentioned following
* This function will be called up on issuing ioctl call as mentioned following
* [iwpriv wlan0 dumplog 0 0 <n> <bitmask_of_module>]
*
* <n> - number lines to dump starting from tail to head.
@@ -537,7 +537,7 @@ void qdf_trace_dump_all(void *p_mac, uint8_t code, uint8_t session,
g_qdf_trace_data.num, g_qdf_trace_data.head,
g_qdf_trace_data.tail);
/* aquire the lock so that only one thread at a time can read
/* acquire the lock so that only one thread at a time can read
* the ring buffer
*/
spin_lock(&ltrace_lock);
@@ -3336,7 +3336,7 @@ void qdf_dp_trace_dump_all(uint32_t count, uint8_t pdev_id)
g_qdf_dp_trace_data.num, g_qdf_dp_trace_data.head,
g_qdf_dp_trace_data.tail);
/* aquire the lock so that only one thread at a time can read
/* acquire the lock so that only one thread at a time can read
* the ring buffer
*/
spin_lock_bh(&l_dp_trace_lock);
@@ -3697,7 +3697,7 @@ qdf_export_symbol(qdf_rl_print_time_set);
void qdf_rl_print_supressed_log(void)
{
if (qdf_rl_print_supressed) {
pr_err("QDF Ratelimiting: %d prints supressed",
pr_err("QDF Ratelimiting: %d prints suppressed",
qdf_rl_print_supressed);
qdf_rl_print_supressed = 0;
}

Datei anzeigen

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 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
@@ -122,7 +123,7 @@ static uint32_t __qdf_ptr_hash_test_for_each(struct qdf_ptr_hash *ht)
}
QDF_BUG(count == qdf_ptr_hash_entry_count);
/* ... be able to interate by hash value */
/* ... be able to iterate by hash value */
count = 0;
for (i = 0; i < qdf_ptr_hash_entry_count; i++) {
qdf_ptr_hash_for_each_by_hash(ht, i, item, entry) {
@@ -132,7 +133,7 @@ static uint32_t __qdf_ptr_hash_test_for_each(struct qdf_ptr_hash *ht)
}
QDF_BUG(count >= qdf_ptr_hash_entry_count);
/* ... be able to interate by key value */
/* ... be able to iterate by key value */
for (i = 0; i < qdf_ptr_hash_entry_count; i++) {
count = 0;
qdf_ptr_hash_for_each_by_key(ht, i, item, entry) {