Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 109) sorted by relevance

12345

/wlan-driver/qcacld-3.0/core/mac/src/dph/
Ddph_hash_table.c108 tpDphHashNode ptr = NULL; in dph_lookup_hash_entry() local
113 return ptr; in dph_lookup_hash_entry()
116 for (ptr = hash_table->pHashTable[index]; ptr; ptr = ptr->next) { in dph_lookup_hash_entry()
117 if (dph_compare_mac_addr(staAddr, ptr->staAddr)) { in dph_lookup_hash_entry()
118 *pAssocId = ptr->assocId; in dph_lookup_hash_entry()
122 return ptr; in dph_lookup_hash_entry()
228 tpDphHashNode ptr, node; in dph_add_hash_entry() local
244 for (ptr = hash_table->pHashTable[index]; ptr; ptr = ptr->next) { in dph_add_hash_entry()
245 if (ptr == ptr->next) { in dph_add_hash_entry()
250 if (dph_compare_mac_addr(staAddr, ptr->staAddr) in dph_add_hash_entry()
[all …]
/wlan-driver/qcacld-3.0/core/mac/src/pe/lim/
Dlim_ser_des_utils.h41 static inline void lim_copy_u16(uint8_t *ptr, uint16_t u16Val) in lim_copy_u16() argument
45 *ptr++ = (uint8_t) (u16Val & 0xff); in lim_copy_u16()
46 *ptr = (uint8_t) ((u16Val >> 8) & 0xff); in lim_copy_u16()
52 static inline uint16_t lim_get_u16(uint8_t *ptr) in lim_get_u16() argument
56 return ((uint16_t) (*(ptr + 1) << 8)) | ((uint16_t) (*ptr)); in lim_get_u16()
62 static inline void lim_copy_u32(uint8_t *ptr, uint32_t u32Val) in lim_copy_u32() argument
66 *ptr++ = (uint8_t) (u32Val & 0xff); in lim_copy_u32()
67 *ptr++ = (uint8_t) ((u32Val >> 8) & 0xff); in lim_copy_u32()
68 *ptr++ = (uint8_t) ((u32Val >> 16) & 0xff); in lim_copy_u32()
69 *ptr = (uint8_t) ((u32Val >> 24) & 0xff); in lim_copy_u32()
[all …]
/wlan-driver/qca-wifi-host-cmn/qdf/src/
Dqdf_flex_mem.c82 void *ptr; in __qdf_flex_mem_alloc() local
91 ptr = &seg->bytes[index * pool->item_size]; in __qdf_flex_mem_alloc()
92 qdf_mem_zero(ptr, pool->item_size); in __qdf_flex_mem_alloc()
94 return ptr; in __qdf_flex_mem_alloc()
108 void *ptr; in qdf_flex_mem_alloc() local
115 ptr = __qdf_flex_mem_alloc(pool); in qdf_flex_mem_alloc()
118 return ptr; in qdf_flex_mem_alloc()
135 static void __qdf_flex_mem_free(struct qdf_flex_mem_pool *pool, void *ptr) in __qdf_flex_mem_free() argument
146 if (ptr < low_addr || ptr > high_addr) in __qdf_flex_mem_free()
149 index = (ptr - low_addr) / pool->item_size; in __qdf_flex_mem_free()
[all …]
Dqdf_talloc.c53 void *ptr; in __qdf_zalloc_auto() local
56 ptr = __zalloc_auto(size); in __qdf_zalloc_auto()
63 if (!ptr) { in __qdf_zalloc_auto()
68 qdf_mem_kmalloc_inc(__qdf_alloc_size(ptr)); in __qdf_zalloc_auto()
70 return ptr; in __qdf_zalloc_auto()
76 void *ptr; in __qdf_zalloc_atomic() local
78 ptr = __zalloc_atomic(size); in __qdf_zalloc_atomic()
79 if (!ptr) { in __qdf_zalloc_atomic()
84 qdf_mem_kmalloc_inc(__qdf_alloc_size(ptr)); in __qdf_zalloc_atomic()
86 return ptr; in __qdf_zalloc_atomic()
[all …]
Dqdf_tracker.c109 QDF_STATUS qdf_tracker_track(struct qdf_tracker *tracker, void *ptr, in qdf_tracker_track() argument
114 QDF_BUG(ptr); in qdf_tracker_track()
115 if (!ptr) in qdf_tracker_track()
119 node = qdf_ptr_hash_get(tracker->ht, ptr, node, entry); in qdf_tracker_track()
138 qdf_ptr_hash_add(tracker->ht, ptr, node, entry); in qdf_tracker_track()
145 void qdf_tracker_untrack(struct qdf_tracker *tracker, void *ptr, in qdf_tracker_untrack() argument
151 QDF_BUG(ptr); in qdf_tracker_untrack()
152 if (!ptr) in qdf_tracker_untrack()
156 node = qdf_ptr_hash_remove(tracker->ht, ptr, node, entry); in qdf_tracker_untrack()
174 bool qdf_tracker_lookup(struct qdf_tracker *tracker, void *ptr, in qdf_tracker_lookup() argument
[all …]
/wlan-driver/qcacld-3.0/core/mac/src/include/
Dutils_api.h168 static inline uint32_t sir_read_u32_n(uint8_t *ptr) in sir_read_u32_n() argument
170 return (*(ptr) << 24) | in sir_read_u32_n()
171 (*(ptr + 1) << 16) | (*(ptr + 2) << 8) | (*(ptr + 3)); in sir_read_u32_n()
192 static inline uint16_t sir_read_u16(uint8_t *ptr) in sir_read_u16() argument
194 return (*ptr) | (*(ptr + 1) << 8); in sir_read_u16()
215 static inline uint32_t sir_read_u32(uint8_t *ptr) in sir_read_u32() argument
217 return (*(ptr)) | in sir_read_u32()
218 (*(ptr + 1) << 8) | (*(ptr + 2) << 16) | (*(ptr + 3) << 24); in sir_read_u32()
/wlan-driver/qca-wifi-host-cmn/qdf/inc/
Dqdf_util.h311 #define qdf_container_of(ptr, type, member) \ argument
312 __qdf_container_of(ptr, type, member)
466 static inline uint8_t *qdf_set_u16(uint8_t *ptr, uint16_t value) in qdf_set_u16() argument
469 *(ptr) = (uint8_t) (value >> 8); in qdf_set_u16()
470 *(ptr + 1) = (uint8_t) (value); in qdf_set_u16()
472 *(ptr + 1) = (uint8_t) (value >> 8); in qdf_set_u16()
473 *(ptr) = (uint8_t) (value); in qdf_set_u16()
475 return ptr + 2; in qdf_set_u16()
490 static inline uint8_t *qdf_get_u16(uint8_t *ptr, uint16_t *value) in qdf_get_u16() argument
493 *value = (((uint16_t) (*ptr << 8)) | ((uint16_t) (*(ptr + 1)))); in qdf_get_u16()
[all …]
Dqdf_talloc.h78 #define qdf_tfree(ptr) \ argument
79 qdf_tfree_fl(ptr, __func__, __LINE__)
90 #define qdf_tfree_fl(ptr, func, line) \ argument
92 __qdf_tfree_fl(ptr, func, line); \
93 ptr = (void *)1; \
130 void __qdf_tfree_fl(void *ptr, const char *func, const uint16_t line);
159 __qdf_tfree_fl(void *ptr, const char *func, const uint16_t line) in __qdf_tfree_fl() argument
161 __k_free(ptr); in __qdf_tfree_fl()
Dqdf_tracker.h92 qdf_tracker_track(struct qdf_tracker *tracker, void *ptr,
104 void qdf_tracker_untrack(struct qdf_tracker *tracker, void *ptr,
128 qdf_tracker_lookup(struct qdf_tracker *tracker, void *ptr,
143 qdf_tracker_track(struct qdf_tracker *tracker, void *ptr, in qdf_tracker_track() argument
150 void qdf_tracker_untrack(struct qdf_tracker *tracker, void *ptr, in qdf_tracker_untrack() argument
161 qdf_tracker_lookup(struct qdf_tracker *tracker, void *ptr, in qdf_tracker_lookup() argument
Dqdf_mem.h107 #define qdf_untracked_mem_free(ptr) \ argument
108 __qdf_untracked_mem_free(ptr)
201 #define qdf_mem_free(ptr) \ argument
202 qdf_mem_free_debug(ptr, __func__, __LINE__)
203 void qdf_mem_free_debug(void *ptr, const char *file, uint32_t line);
405 #define qdf_mem_free(ptr) \ argument
406 __qdf_mem_free(ptr)
540 void qdf_mem_set_io(void *ptr, uint32_t num_bytes, uint32_t value);
564 void qdf_mem_set(void *ptr, uint32_t num_bytes, uint32_t value);
576 static inline void qdf_mem_zero(void *ptr, uint32_t num_bytes) in qdf_mem_zero() argument
[all …]
/wlan-driver/qca-wifi-host-cmn/qdf/linux/src/
Dqdf_idr.c50 __qdf_idr_alloc(qdf_idr *idp, void *ptr, int32_t start, int32_t end) in __qdf_idr_alloc() argument
54 idr_get_new(&idp->idr, ptr, &id); in __qdf_idr_alloc()
60 __qdf_idr_alloc(qdf_idr *idp, void *ptr, int32_t start, int32_t end) in __qdf_idr_alloc() argument
62 return idr_alloc(&idp->idr, ptr, start, end, qdf_idr_gpf_flag()); in __qdf_idr_alloc()
93 QDF_STATUS qdf_idr_alloc(qdf_idr *idp, void *ptr, int32_t *id) in qdf_idr_alloc() argument
97 if (!idp || !ptr) in qdf_idr_alloc()
101 local_id = __qdf_idr_alloc(idp, ptr, QDF_IDR_START, QDF_IDR_END); in qdf_idr_alloc()
128 QDF_STATUS qdf_idr_find(qdf_idr *idp, int32_t id, void **ptr) in qdf_idr_find() argument
130 if (!ptr || (id < QDF_IDR_START)) in qdf_idr_find()
134 *ptr = idr_find(&idp->idr, id); in qdf_idr_find()
[all …]
Dqdf_mem.c167 static inline struct qdf_mem_header *qdf_mem_get_header(void *ptr) in qdf_mem_get_header() argument
169 return (struct qdf_mem_header *)ptr - 1; in qdf_mem_get_header()
173 static inline struct qdf_mem_header *qdf_mem_dma_get_header(void *ptr, in qdf_mem_dma_get_header() argument
177 qdf_roundup((size_t)((uint8_t *)ptr + size), in qdf_mem_dma_get_header()
1338 static bool qdf_might_be_prealloc(void *ptr) in qdf_might_be_prealloc() argument
1340 if (ksize(ptr) > WCNSS_PRE_ALLOC_GET_THRESHOLD) in qdf_might_be_prealloc()
1358 void *ptr; in qdf_mem_prealloc_get() local
1363 ptr = wcnss_prealloc_get(size); in qdf_mem_prealloc_get()
1364 if (!ptr) in qdf_mem_prealloc_get()
1367 memset(ptr, 0, size); in qdf_mem_prealloc_get()
[all …]
Di_qdf_talloc.h42 #define __k_free(ptr) kfree(ptr) argument
44 #define __qdf_alloc_size(ptr) ksize(ptr) argument
/wlan-driver/qca-wifi-host-cmn/umac/cp_stats/core/src/
Dwlan_cp_stats_chipset_stats.c143 char *ptr; in wlan_cp_stats_cstats_write_to_buff() local
175 ptr = &cstats.ccur_node[type]->logbuf[sizeof(tAniHdr) + in wlan_cp_stats_cstats_write_to_buff()
177 memcpy(&ptr[*pfilled_length], to_be_sent, plen); in wlan_cp_stats_cstats_write_to_buff()
180 ptr = &cstats.ccur_node[type]->logbuf[sizeof(tAniHdr)]; in wlan_cp_stats_cstats_write_to_buff()
181 memcpy(&ptr[*pfilled_length], CSTATS_FW_START_MARKER, in wlan_cp_stats_cstats_write_to_buff()
183 memcpy(&ptr[*pfilled_length + CSTATS_MARKER_SZ], to_be_sent, in wlan_cp_stats_cstats_write_to_buff()
185 memcpy(&ptr[*pfilled_length + CSTATS_MARKER_SZ + plen], in wlan_cp_stats_cstats_write_to_buff()
237 char *ptr = NULL; in wlan_cp_stats_cstats_send_buffer_to_user() local
267 ptr = &clog_msg->logbuf[sizeof(tAniHdr)]; in wlan_cp_stats_cstats_send_buffer_to_user()
268 qdf_mem_copy(ptr, CSTATS_HOST_START_MARKER, in wlan_cp_stats_cstats_send_buffer_to_user()
[all …]
/wlan-driver/qca-wifi-host-cmn/utils/host_diag_log/src/
Di_host_diag_core_log.h65 void host_diag_log_set_code(void *ptr, uint16_t code);
66 void host_diag_log_set_length(void *ptr, uint16_t length);
110 static inline void host_diag_log_set_code(void *ptr, uint16_t code)
114 static inline void host_diag_log_set_length(void *ptr, uint16_t length)
Dhost_diag_log.c63 void host_diag_log_set_code(void *ptr, uint16_t code) in host_diag_log_set_code() argument
65 if (ptr) { in host_diag_log_set_code()
67 ((log_hdr_type *) ptr)->code = code; in host_diag_log_set_code()
84 void host_diag_log_set_length(void *ptr, uint16_t length) in host_diag_log_set_length() argument
86 if (ptr) { in host_diag_log_set_length()
88 ((log_hdr_type *) ptr)->len = (uint16_t) length; in host_diag_log_set_length()
/wlan-driver/qca-wifi-host-cmn/umac/mlme/connection_mgr/core/src/
Dwlan_cm_util.c900 static void cm_zero_and_free_memory(uint8_t *ptr, uint32_t len) in cm_zero_and_free_memory() argument
902 if (!ptr) in cm_zero_and_free_memory()
905 qdf_mem_zero(ptr, len); in cm_zero_and_free_memory()
906 qdf_mem_free(ptr); in cm_zero_and_free_memory()
971 cm_zero_and_free_memory(connect_ie->assoc_req.ptr, in cm_free_connect_ies()
975 cm_zero_and_free_memory(connect_ie->bcn_probe_rsp.ptr, in cm_free_connect_ies()
979 cm_zero_and_free_memory(connect_ie->link_bcn_probe_rsp.ptr, in cm_free_connect_ies()
983 cm_zero_and_free_memory(connect_ie->assoc_rsp.ptr, in cm_free_connect_ies()
997 cm_zero_and_free_memory(req->assoc_ie.ptr, req->assoc_ie.len); in cm_free_connect_req_ies()
998 req->assoc_ie.ptr = NULL; in cm_free_connect_req_ies()
[all …]
Dwlan_cm_connect_scan.c69 req->scan_req.extraie.ptr = in cm_fill_scan_req()
72 if (!req->scan_req.extraie.ptr) { in cm_fill_scan_req()
77 qdf_mem_copy(req->scan_req.extraie.ptr, in cm_fill_scan_req()
78 cm_req->req.scan_ie.ptr, in cm_fill_scan_req()
154 if (scan_req->scan_req.extraie.ptr) { in cm_connect_scan_start()
155 qdf_mem_free(scan_req->scan_req.extraie.ptr); in cm_connect_scan_start()
157 scan_req->scan_req.extraie.ptr = NULL; in cm_connect_scan_start()
/wlan-driver/qcacld-3.0/components/umac/mlme/mlo_mgr/src/
Dwlan_mlo_mgr_roam.c1037 if (sta_ctx->assoc_rsp.ptr) { in mlo_roam_copy_reassoc_rsp()
1038 qdf_mem_free(sta_ctx->assoc_rsp.ptr); in mlo_roam_copy_reassoc_rsp()
1039 sta_ctx->assoc_rsp.ptr = NULL; in mlo_roam_copy_reassoc_rsp()
1071 connect_ies->assoc_rsp.ptr = qdf_mem_malloc( in mlo_roam_copy_reassoc_rsp()
1074 if (!connect_ies->assoc_rsp.ptr) { in mlo_roam_copy_reassoc_rsp()
1082 qdf_mem_copy(connect_ies->assoc_rsp.ptr, in mlo_roam_copy_reassoc_rsp()
1083 reassoc_rsp->connect_ies.assoc_rsp.ptr, in mlo_roam_copy_reassoc_rsp()
1087 connect_ies->assoc_req.ptr = NULL; in mlo_roam_copy_reassoc_rsp()
1089 connect_ies->bcn_probe_rsp.ptr = NULL; in mlo_roam_copy_reassoc_rsp()
1091 connect_ies->link_bcn_probe_rsp.ptr = NULL; in mlo_roam_copy_reassoc_rsp()
[all …]
/wlan-driver/qcacld-3.0/components/target_if/nan/src/
Dtarget_if_nan.c75 void *ptr = msg->bodyptr; in target_if_ndp_event_flush_cb() local
80 vdev = ((struct nan_datapath_initiator_rsp *)ptr)->vdev; in target_if_ndp_event_flush_cb()
83 vdev = ((struct nan_datapath_indication_event *)ptr)->vdev; in target_if_ndp_event_flush_cb()
86 vdev = ((struct nan_datapath_confirm_event *)ptr)->vdev; in target_if_ndp_event_flush_cb()
89 vdev = ((struct nan_datapath_responder_rsp *)ptr)->vdev; in target_if_ndp_event_flush_cb()
92 vdev = ((struct nan_datapath_end_rsp_event *)ptr)->vdev; in target_if_ndp_event_flush_cb()
95 vdev = ((struct nan_datapath_end_indication_event *)ptr)->vdev; in target_if_ndp_event_flush_cb()
98 vdev = ((struct nan_datapath_sch_update_event *)ptr)->vdev; in target_if_ndp_event_flush_cb()
101 vdev = ((struct nan_datapath_host_event *)ptr)->vdev; in target_if_ndp_event_flush_cb()
118 void *ptr = msg->bodyptr; in target_if_ndp_event_dispatcher() local
[all …]
/wlan-driver/qca-wifi-host-cmn/umac/scan/dispatcher/inc/
Dwlan_scan_utils_api.h555 ie_data = (uint8_t *) (bcn_frm.ptr + in util_scan_entry_ie_data()
607 return scan_entry->raw_frame.ptr; in util_scan_entry_frame_ptr()
667 if (scan_entry->alt_wcn_ie.ptr) in util_scan_free_cache_entry()
668 qdf_mem_free(scan_entry->alt_wcn_ie.ptr); in util_scan_free_cache_entry()
669 if (scan_entry->raw_frame.ptr) in util_scan_free_cache_entry()
670 qdf_mem_free(scan_entry->raw_frame.ptr); in util_scan_free_cache_entry()
697 new_entry->raw_frame.ptr = in util_scan_copy_beacon_data()
699 if (!new_entry->raw_frame.ptr) in util_scan_copy_beacon_data()
702 qdf_mem_copy(new_entry->raw_frame.ptr, in util_scan_copy_beacon_data()
703 scan_entry->raw_frame.ptr, in util_scan_copy_beacon_data()
[all …]
/wlan-driver/qca-wifi-host-cmn/umac/dfs/core/src/filtering/
Ddfs_fcc_bin5.c537 uint8_t *ptr; /* pointer to FFT data */ in dfs_check_chirping_merlin() local
578 ptr = (uint8_t *)buf; in dfs_check_chirping_merlin()
580 if (!ptr || (datalen == 0)) { in dfs_check_chirping_merlin()
596 ptr += 2; in dfs_check_chirping_merlin()
602 bin_wt_lower[i] = ptr[fft_start + lower_weight_byte] & 0x3f; in dfs_check_chirping_merlin()
603 bin_wt_upper[i] = ptr[fft_start + upper_weight_byte] & 0x3f; in dfs_check_chirping_merlin()
604 max_index_lower[i] = ptr[fft_start + lower_index_byte] >> 2; in dfs_check_chirping_merlin()
605 max_index_upper[i] = (ptr[fft_start + upper_index_byte] >> 2) + in dfs_check_chirping_merlin()
621 ((ptr[fft_start + lower_index_byte] & 0x03) << 8) + in dfs_check_chirping_merlin()
622 ptr[fft_start + lower_mag_byte]; in dfs_check_chirping_merlin()
[all …]
/wlan-driver/qcacld-3.0/components/umac/mlme/connection_mgr/core/src/
Dwlan_cm_roam_fw_sync.c351 connect_ies->bcn_probe_rsp.ptr = in cm_populate_connect_ies()
353 if (!connect_ies->bcn_probe_rsp.ptr) in cm_populate_connect_ies()
355 qdf_mem_copy(connect_ies->bcn_probe_rsp.ptr, bcn_probe_rsp_ptr, in cm_populate_connect_ies()
366 connect_ies->link_bcn_probe_rsp.ptr = in cm_populate_connect_ies()
368 if (!connect_ies->link_bcn_probe_rsp.ptr) in cm_populate_connect_ies()
370 qdf_mem_copy(connect_ies->link_bcn_probe_rsp.ptr, in cm_populate_connect_ies()
384 connect_ies->assoc_rsp.ptr = in cm_populate_connect_ies()
386 if (!connect_ies->assoc_rsp.ptr) in cm_populate_connect_ies()
389 qdf_mem_copy(connect_ies->assoc_rsp.ptr, reassoc_rsp_ptr, in cm_populate_connect_ies()
402 connect_ies->assoc_req.ptr = in cm_populate_connect_ies()
[all …]
Dwlan_cm_host_util.c178 if (rso_cfg->assoc_ie.ptr) { in cm_handle_reassoc_req()
179 join_req->assoc_ie.ptr = qdf_mem_malloc(rso_cfg->assoc_ie.len); in cm_handle_reassoc_req()
180 if (!join_req->assoc_ie.ptr) in cm_handle_reassoc_req()
182 qdf_mem_copy(join_req->assoc_ie.ptr, rso_cfg->assoc_ie.ptr, in cm_handle_reassoc_req()
Dwlan_cm_vdev_connect.c240 if (bcn_ie->ptr) { in cm_update_prev_ap_ie()
241 qdf_mem_free(bcn_ie->ptr); in cm_update_prev_ap_ie()
242 bcn_ie->ptr = NULL; in cm_update_prev_ap_ie()
245 bcn_ie->ptr = qdf_mem_malloc(len); in cm_update_prev_ap_ie()
246 if (!bcn_ie->ptr) { in cm_update_prev_ap_ie()
251 qdf_mem_copy(bcn_ie->ptr, bcn_ptr, len); in cm_update_prev_ap_ie()
1100 req->assoc_ie.ptr, in cm_connect_start_ind()
1121 qdf_mem_free(join_req->assoc_ie.ptr); in cm_free_join_req()
1122 qdf_mem_free(join_req->scan_ie.ptr); in cm_free_join_req()
1123 join_req->assoc_ie.ptr = NULL; in cm_free_join_req()
[all …]

12345