Home
last modified time | relevance | path

Searched refs:priv (Results 1 – 25 of 77) sorted by relevance

1234

/wlan-driver/platform/icnss2/
Dmain.c135 static void icnss_set_plat_priv(struct icnss_priv *priv) in icnss_set_plat_priv() argument
137 penv = priv; in icnss_set_plat_priv()
145 static inline void icnss_wpss_unload(struct icnss_priv *priv) in icnss_wpss_unload() argument
147 if (priv && priv->rproc) { in icnss_wpss_unload()
148 rproc_shutdown(priv->rproc); in icnss_wpss_unload()
149 rproc_put(priv->rproc); in icnss_wpss_unload()
150 priv->rproc = NULL; in icnss_wpss_unload()
158 struct icnss_priv *priv = icnss_get_plat_priv(); in icnss_sysfs_store() local
160 if (!priv) in icnss_sysfs_store()
165 atomic_set(&priv->is_shutdown, true); in icnss_sysfs_store()
[all …]
Dqmi.h50 static inline int wlfw_ind_register_send_sync_msg(struct icnss_priv *priv) in wlfw_ind_register_send_sync_msg() argument
54 static inline int icnss_connect_to_fw_server(struct icnss_priv *priv, in icnss_connect_to_fw_server() argument
59 static inline int wlfw_msa_mem_info_send_sync_msg(struct icnss_priv *priv) in wlfw_msa_mem_info_send_sync_msg() argument
63 static inline int wlfw_msa_ready_send_sync_msg(struct icnss_priv *priv) in wlfw_msa_ready_send_sync_msg() argument
67 static inline int wlfw_cap_send_sync_msg(struct icnss_priv *priv) in wlfw_cap_send_sync_msg() argument
72 struct icnss_priv *priv, uint64_t dynamic_feature_mask) in wlfw_dynamic_feature_mask_send_sync_msg() argument
76 static inline int icnss_clear_server(struct icnss_priv *priv) in icnss_clear_server() argument
80 static inline int wlfw_rejuvenate_ack_send_sync_msg(struct icnss_priv *priv) in wlfw_rejuvenate_ack_send_sync_msg() argument
85 static int wlfw_send_modem_shutdown_msg(struct icnss_priv *priv) in wlfw_send_modem_shutdown_msg() argument
89 static inline int wlfw_ini_send_sync_msg(struct icnss_priv *priv, in wlfw_ini_send_sync_msg() argument
[all …]
Ddebug.c25 struct icnss_priv *priv = in icnss_regwrite_write() local
34 if (!test_bit(ICNSS_FW_READY, &priv->state) || in icnss_regwrite_write()
35 !test_bit(ICNSS_POWER_ON, &priv->state)) in icnss_regwrite_write()
72 ret = wlfw_athdiag_write_send_sync_msg(priv, reg_offset, mem_type, in icnss_regwrite_write()
83 struct icnss_priv *priv = s->private; in icnss_regwrite_show() local
87 if (!test_bit(ICNSS_FW_READY, &priv->state)) in icnss_regwrite_show()
108 struct icnss_priv *priv = s->private; in icnss_regread_show() local
110 mutex_lock(&priv->dev_lock); in icnss_regread_show()
111 if (!priv->diag_reg_read_buf) { in icnss_regread_show()
114 if (!test_bit(ICNSS_FW_READY, &priv->state)) in icnss_regread_show()
[all …]
Dpower.c98 static int icnss_get_vreg_single(struct icnss_priv *priv, in icnss_get_vreg_single() argument
109 dev = &priv->pdev->dev; in icnss_get_vreg_single()
120 } else if (priv->device_id == ADRASTEA_DEVICE_ID) { in icnss_get_vreg_single()
168 if (priv->device_id == WCN6750_DEVICE_ID) in icnss_get_vreg_single()
335 int icnss_get_vreg(struct icnss_priv *priv) in icnss_get_vreg() argument
341 struct list_head *vreg_list = &priv->vreg_list; in icnss_get_vreg()
342 struct device *dev = &priv->pdev->dev; in icnss_get_vreg()
345 vreg_cfg = get_vreg_list(&vreg_list_size, priv->device_id); in icnss_get_vreg()
355 ret = icnss_get_vreg_single(priv, vreg); in icnss_get_vreg()
368 void icnss_put_vreg(struct icnss_priv *priv) in icnss_put_vreg() argument
[all …]
Dqmi.c84 int wlfw_msa_mem_info_send_sync_msg(struct icnss_priv *priv) in wlfw_msa_mem_info_send_sync_msg() argument
93 if (!priv) in wlfw_msa_mem_info_send_sync_msg()
96 icnss_pr_dbg("Sending MSA mem info, state: 0x%lx\n", priv->state); in wlfw_msa_mem_info_send_sync_msg()
108 req->msa_addr = priv->msa_pa; in wlfw_msa_mem_info_send_sync_msg()
109 req->size = priv->msa_mem_size; in wlfw_msa_mem_info_send_sync_msg()
111 priv->stats.msa_info_req++; in wlfw_msa_mem_info_send_sync_msg()
113 ret = qmi_txn_init(&priv->qmi, &txn, in wlfw_msa_mem_info_send_sync_msg()
122 ret = qmi_send_request(&priv->qmi, NULL, &txn, in wlfw_msa_mem_info_send_sync_msg()
132 ret = qmi_txn_wait(&txn, priv->ctrl_params.qmi_timeout); in wlfw_msa_mem_info_send_sync_msg()
156 max_mapped_addr = priv->msa_pa + priv->msa_mem_size; in wlfw_msa_mem_info_send_sync_msg()
[all …]
Dpower.h10 int icnss_hw_power_on(struct icnss_priv *priv);
11 int icnss_hw_power_off(struct icnss_priv *priv);
12 int icnss_power_on_chain1_reg(struct icnss_priv *priv);
13 int icnss_get_clk(struct icnss_priv *priv);
14 int icnss_get_vreg(struct icnss_priv *priv);
15 void icnss_put_resources(struct icnss_priv *priv);
16 void icnss_put_vreg(struct icnss_priv *priv);
17 void icnss_put_clk(struct icnss_priv *priv);
18 int icnss_vreg_unvote(struct icnss_priv *priv);
19 int icnss_get_psf_info(struct icnss_priv *priv);
Dmain.h144 irqreturn_t (*handler)(int irq, void *priv);
543 void icnss_free_qdss_mem(struct icnss_priv *priv);
545 int icnss_call_driver_uevent(struct icnss_priv *priv,
547 int icnss_driver_event_post(struct icnss_priv *priv,
553 int icnss_soc_wake_event_post(struct icnss_priv *priv,
556 int icnss_get_iova(struct icnss_priv *priv, u64 *addr, u64 *size);
557 int icnss_get_iova_ipa(struct icnss_priv *priv, u64 *addr, u64 *size);
558 int icnss_update_cpr_info(struct icnss_priv *priv);
559 void icnss_add_fw_prefix_name(struct icnss_priv *priv, char *prefix_name,
561 int icnss_aop_interface_init(struct icnss_priv *priv);
[all …]
/wlan-driver/qca-wifi-host-cmn/target_if/wifi_pos/src/
Dtarget_if_wifi_pos.c39 struct wifi_pos_psoc_priv_obj *priv, in target_if_wifi_pos_vaddr_lookup() argument
42 if (priv->dma_buf_pool[ring_num][cookie].paddr == paddr) { in target_if_wifi_pos_vaddr_lookup()
43 return priv->dma_buf_pool[ring_num][cookie].vaddr + in target_if_wifi_pos_vaddr_lookup()
44 priv->dma_buf_pool[ring_num][cookie].offset; in target_if_wifi_pos_vaddr_lookup()
52 target_if_wifi_pos_replenish_ring(struct wifi_pos_psoc_priv_obj *priv, in target_if_wifi_pos_replenish_ring() argument
58 void *hal_soc = priv->hal_soc; in target_if_wifi_pos_replenish_ring()
59 void *srng = priv->dma_cfg[ring_idx].srng; in target_if_wifi_pos_replenish_ring()
69 priv->dma_cap[ring_idx].min_buf_size, in target_if_wifi_pos_replenish_ring()
75 QDF_ASSERT(!((uint64_t)paddr % priv->dma_cap[ring_idx].min_buf_align)); in target_if_wifi_pos_replenish_ring()
76 priv->dma_buf_pool[ring_idx][cookie].paddr = paddr; in target_if_wifi_pos_replenish_ring()
[all …]
/wlan-driver/platform/cnss_utils/
Dcnss_utils.c72 struct cnss_utils_priv *priv = cnss_utils_priv; in cnss_utils_set_wlan_unsafe_channel() local
74 if (!priv) in cnss_utils_set_wlan_unsafe_channel()
77 mutex_lock(&priv->unsafe_channel_list_lock); in cnss_utils_set_wlan_unsafe_channel()
79 mutex_unlock(&priv->unsafe_channel_list_lock); in cnss_utils_set_wlan_unsafe_channel()
83 priv->unsafe_channel_list.unsafe_ch_count = ch_count; in cnss_utils_set_wlan_unsafe_channel()
88 memcpy(priv->unsafe_channel_list.unsafe_ch_list, in cnss_utils_set_wlan_unsafe_channel()
92 mutex_unlock(&priv->unsafe_channel_list_lock); in cnss_utils_set_wlan_unsafe_channel()
102 struct cnss_utils_priv *priv = cnss_utils_priv; in cnss_utils_get_wlan_unsafe_channel() local
104 if (!priv) in cnss_utils_get_wlan_unsafe_channel()
107 mutex_lock(&priv->unsafe_channel_list_lock); in cnss_utils_get_wlan_unsafe_channel()
[all …]
/wlan-driver/qcacld-3.0/os_if/cp_stats/src/
Dwlan_cfg80211_mc_cp_stats.c63 static void wlan_cfg80211_infra_cp_stats_twt_dealloc(void *priv) in wlan_cfg80211_infra_cp_stats_twt_dealloc() argument
65 struct infra_cp_stats_event *stats = priv; in wlan_cfg80211_infra_cp_stats_twt_dealloc()
71 static void wlan_cfg80211_infra_cp_stats_twt_dealloc(void *priv) in wlan_cfg80211_infra_cp_stats_twt_dealloc() argument
77 static void wlan_cfg80211_infra_cp_stats_bmiss_dealloc(void *priv) in wlan_cfg80211_infra_cp_stats_bmiss_dealloc() argument
79 struct infra_cp_stats_event *stats = priv; in wlan_cfg80211_infra_cp_stats_bmiss_dealloc()
85 static void wlan_cfg80211_infra_cp_stats_bmiss_dealloc(void *priv) in wlan_cfg80211_infra_cp_stats_bmiss_dealloc() argument
97 void wlan_cfg80211_mc_infra_cp_stats_dealloc(void *priv) in wlan_cfg80211_mc_infra_cp_stats_dealloc() argument
99 struct infra_cp_stats_event *stats = priv; in wlan_cfg80211_mc_infra_cp_stats_dealloc()
105 wlan_cfg80211_infra_cp_stats_twt_dealloc(priv); in wlan_cfg80211_mc_infra_cp_stats_dealloc()
106 wlan_cfg80211_infra_cp_stats_bmiss_dealloc(priv); in wlan_cfg80211_mc_infra_cp_stats_dealloc()
[all …]
/wlan-driver/qca-wifi-host-cmn/dp/wifi3.0/
Ddp_wdi_event.c46 return wdi_sub->priv.next; in dp_wdi_event_next_sub()
180 wdi_sub->priv.next = NULL; in dp_wdi_event_sub()
181 wdi_sub->priv.prev = NULL; in dp_wdi_event_sub()
196 event_cb_sub->priv.next = wdi_sub; in dp_wdi_event_sub()
197 event_cb_sub->priv.prev = NULL; in dp_wdi_event_sub()
198 wdi_sub->priv.prev = event_cb_sub; in dp_wdi_event_sub()
225 if (!event_cb_sub->priv.prev) { in dp_wdi_event_unsub()
226 txrx_pdev->wdi_event_list[event_index] = event_cb_sub->priv.next; in dp_wdi_event_unsub()
228 event_cb_sub->priv.prev->priv.next = event_cb_sub->priv.next; in dp_wdi_event_unsub()
230 if (event_cb_sub->priv.next) { in dp_wdi_event_unsub()
[all …]
/wlan-driver/qcacld-3.0/core/dp/txrx/
Dol_txrx_event.c30 return wdi_sub->priv.next; in wdi_event_next_sub()
141 wdi_sub->priv.next = NULL; in wdi_event_sub()
142 wdi_sub->priv.prev = NULL; in wdi_event_sub()
146 event_cb_sub->priv.next = wdi_sub; in wdi_event_sub()
147 event_cb_sub->priv.prev = NULL; in wdi_event_sub()
148 wdi_sub->priv.prev = event_cb_sub; in wdi_event_sub()
178 if (!event_cb_sub->priv.prev) { in wdi_event_unsub()
180 event_cb_sub->priv.next; in wdi_event_unsub()
182 event_cb_sub->priv.prev->priv.next = event_cb_sub->priv.next; in wdi_event_unsub()
184 if (event_cb_sub->priv.next) in wdi_event_unsub()
[all …]
/wlan-driver/qcacld-3.0/core/hdd/src/
Dwlan_hdd_hw_capability.c48 struct sir_isolation_resp *priv; in hdd_get_isolation_cb() local
61 priv = osif_request_priv(request); in hdd_get_isolation_cb()
62 priv->isolation_chain0 = isolation->isolation_chain0; in hdd_get_isolation_cb()
63 priv->isolation_chain1 = isolation->isolation_chain1; in hdd_get_isolation_cb()
64 priv->isolation_chain2 = isolation->isolation_chain2; in hdd_get_isolation_cb()
65 priv->isolation_chain3 = isolation->isolation_chain3; in hdd_get_isolation_cb()
141 struct sir_isolation_resp *priv; in __wlan_hdd_cfg80211_get_hw_capability() local
147 .priv_size = sizeof(*priv), in __wlan_hdd_cfg80211_get_hw_capability()
182 priv = osif_request_priv(request); in __wlan_hdd_cfg80211_get_hw_capability()
183 hdd_post_isolation(hdd_ctx, priv); in __wlan_hdd_cfg80211_get_hw_capability()
Dwlan_hdd_fw_state.c51 struct fw_state *priv; in hdd_get_fw_state_cb() local
61 priv = osif_request_priv(request); in hdd_get_fw_state_cb()
62 priv->fw_active = true; in hdd_get_fw_state_cb()
132 struct fw_state *priv; in __wlan_hdd_cfg80211_get_fw_state() local
134 .priv_size = sizeof(*priv), in __wlan_hdd_cfg80211_get_fw_state()
170 priv = osif_request_priv(request); in __wlan_hdd_cfg80211_get_fw_state()
171 state = priv->fw_active; in __wlan_hdd_cfg80211_get_fw_state()
Dwlan_hdd_ocb.c337 struct hdd_ocb_set_config_priv *priv; in hdd_ocb_set_config_callback() local
345 priv = osif_request_priv(request); in hdd_ocb_set_config_callback()
351 priv->status = 0; in hdd_ocb_set_config_callback()
353 priv->status = -EINVAL; in hdd_ocb_set_config_callback()
373 struct hdd_ocb_set_config_priv *priv; in hdd_ocb_set_config_req() local
375 .priv_size = sizeof(*priv), in hdd_ocb_set_config_req()
420 priv = osif_request_priv(request); in hdd_ocb_set_config_req()
421 rc = priv->status; in hdd_ocb_set_config_req()
1362 struct hdd_ocb_get_tsf_timer_priv *priv; in hdd_ocb_get_tsf_timer_callback() local
1371 priv = osif_request_priv(request); in hdd_ocb_get_tsf_timer_callback()
[all …]
Dwlan_hdd_object_manager.c142 struct pdev_osif_priv *priv; in hdd_objmgr_create_and_store_pdev() local
154 priv = qdf_mem_malloc(sizeof(*priv)); in hdd_objmgr_create_and_store_pdev()
155 if (!priv) in hdd_objmgr_create_and_store_pdev()
175 priv->osif_check_netdev_state = hdd_check_internal_netdev_state; in hdd_objmgr_create_and_store_pdev()
176 pdev = wlan_objmgr_pdev_obj_create(psoc, priv); in hdd_objmgr_create_and_store_pdev()
199 hdd_init_pdev_os_priv(hdd_ctx, priv); in hdd_objmgr_create_and_store_pdev()
205 qdf_mem_free(priv); in hdd_objmgr_create_and_store_pdev()
Dwlan_hdd_debugfs_roam.c41 static void hdd_roam_scan_stats_debugfs_dealloc(void *priv) in hdd_roam_scan_stats_debugfs_dealloc() argument
43 struct hdd_roam_scan_stats_debugfs_priv *local_priv = priv; in hdd_roam_scan_stats_debugfs_dealloc()
66 struct hdd_roam_scan_stats_debugfs_priv *priv; in hdd_roam_scan_stats_cb() local
83 priv = osif_request_priv(request); in hdd_roam_scan_stats_cb()
93 priv->roam_scan_stats_res = stats_res; in hdd_roam_scan_stats_cb()
118 struct hdd_roam_scan_stats_debugfs_priv *priv; in hdd_get_roam_scan_stats() local
120 .priv_size = sizeof(*priv), in hdd_get_roam_scan_stats()
155 priv = osif_request_priv(request); in hdd_get_roam_scan_stats()
156 res = priv->roam_scan_stats_res; in hdd_get_roam_scan_stats()
Dwlan_hdd_sysfs.c217 static void hdd_power_debugstats_dealloc(void *priv) in hdd_power_debugstats_dealloc() argument
219 struct power_stats_priv *stats = priv; in hdd_power_debugstats_dealloc()
229 struct power_stats_priv *priv; in hdd_power_debugstats_cb() local
241 priv = osif_request_priv(request); in hdd_power_debugstats_cb()
244 priv->power_stats = *response; in hdd_power_debugstats_cb()
251 priv->power_stats.debug_registers = debug_registers; in hdd_power_debugstats_cb()
258 priv->power_stats.num_debug_register = 0; in hdd_power_debugstats_cb()
275 struct power_stats_priv *priv; in __show_device_power_stats() local
277 .priv_size = sizeof(*priv), in __show_device_power_stats()
307 priv = osif_request_priv(request); in __show_device_power_stats()
[all …]
Dwlan_hdd_debugfs_coex.c130 struct mws_coex_state_priv *priv; in __hdd_debugfs_mws_coex_state_read() local
132 .priv_size = sizeof(*priv), in __hdd_debugfs_mws_coex_state_read()
176 priv = osif_request_priv(request); in __hdd_debugfs_mws_coex_state_read()
177 coex_state = &priv->coex_state; in __hdd_debugfs_mws_coex_state_read()
641 hdd_mws_debugfs_coex_state_fops.priv = hdd_ctx; in hdd_debugfs_mws_coex_info_init()
642 hdd_mws_debugfs_fops_coex_dpwb_fops.priv = hdd_ctx; in hdd_debugfs_mws_coex_info_init()
643 hdd_mws_debugfs_tdm_state_fpos.priv = hdd_ctx; in hdd_debugfs_mws_coex_info_init()
644 hdd_mws_debugfs_idrx_state_fpos.priv = hdd_ctx; in hdd_debugfs_mws_coex_info_init()
645 hdd_mws_debugfs_antenna_sharing_fpos.priv = hdd_ctx; in hdd_debugfs_mws_coex_info_init()
/wlan-driver/qca-wifi-host-cmn/qdf/linux/src/
Dqdf_debugfs.c108 struct qdf_debugfs_seq_priv *priv; in qdf_debugfs_seq_start() local
110 priv = qdf_mem_malloc(sizeof(*priv)); in qdf_debugfs_seq_start()
111 if (!priv) in qdf_debugfs_seq_start()
114 priv->stop = false; in qdf_debugfs_seq_start()
116 return priv; in qdf_debugfs_seq_start()
122 struct qdf_debugfs_seq_priv *priv = v; in qdf_debugfs_seq_next() local
124 if (priv) in qdf_debugfs_seq_next()
127 if (priv && priv->stop) { in qdf_debugfs_seq_next()
128 qdf_mem_free(priv); in qdf_debugfs_seq_next()
129 priv = NULL; in qdf_debugfs_seq_next()
[all …]
/wlan-driver/qcacld-3.0/os_if/fw_offload/src/
Dos_if_fwol.c68 struct osif_get_elna_bypass_priv *priv; in os_if_fwol_get_elna_bypass_callback() local
76 priv = osif_request_priv(request); in os_if_fwol_get_elna_bypass_callback()
77 priv->elna_mode = response->elna_mode; in os_if_fwol_get_elna_bypass_callback()
90 struct osif_get_elna_bypass_priv *priv; in os_if_fwol_get_elna_bypass() local
92 .priv_size = sizeof(*priv), in os_if_fwol_get_elna_bypass()
122 priv = osif_request_priv(request); in os_if_fwol_get_elna_bypass()
124 priv->elna_mode)) { in os_if_fwol_get_elna_bypass()
125 osif_err("put fail with elna_mode:%d", priv->elna_mode); in os_if_fwol_get_elna_bypass()
/wlan-driver/qca-wifi-host-cmn/os_if/linux/crypto/src/
Dwlan_cfg80211_crypto.c262 struct crypto_add_key_result *priv; in wlan_cfg80211_crypto_add_key_cb() local
270 priv = osif_request_priv(request); in wlan_cfg80211_crypto_add_key_cb()
271 qdf_mem_copy(priv, result, sizeof(*priv)); in wlan_cfg80211_crypto_add_key_cb()
284 struct wlan_crypto_comp_priv *priv; in wlan_cfg80211_crypto_add_key() local
301 priv = wlan_get_vdev_crypto_obj(vdev); in wlan_cfg80211_crypto_add_key()
302 if (!priv) { in wlan_cfg80211_crypto_add_key()
313 priv->add_key_ctx = osif_request_cookie(request);; in wlan_cfg80211_crypto_add_key()
314 priv->add_key_cb = wlan_cfg80211_crypto_add_key_cb; in wlan_cfg80211_crypto_add_key()
329 priv->add_key_ctx = NULL; in wlan_cfg80211_crypto_add_key()
330 priv->add_key_cb = NULL; in wlan_cfg80211_crypto_add_key()
/wlan-driver/qca-wifi-host-cmn/cfg/inc/
Di_cfg_objmgr.h34 #define cfg_psoc_set_priv(psoc, priv) \ argument
36 (priv), QDF_STATUS_SUCCESS)
37 #define cfg_psoc_unset_priv(psoc, priv) \ argument
39 (priv))
/wlan-driver/qca-wifi-host-cmn/qdf/inc/
Dqdf_debugfs.h62 QDF_STATUS(*write)(void *priv, const char *buf, qdf_size_t len);
63 void *priv; member
277 int qdf_debugfs_printer(void *priv, const char *fmt, ...);
409 int qdf_debugfs_printer(void *priv, const char *fmt, ...) in qdf_debugfs_printer() argument
/wlan-driver/qca-wifi-host-cmn/utils/pktlog/
Dpktlog_wifi2.c182 pl_msdu_info->priv.msdu_len[i] = *(htt_tx_desc + in fill_ieee80211_hdr_data()
412 size_t log_size = sizeof(txctl_log.priv); in process_tx_info()
429 txctl_log.priv.frm_hdr = frm_hdr; in process_tx_info()
430 qdf_assert(txctl_log.priv.txdesc_ctl); in process_tx_info()
431 qdf_assert(pl_hdr.size < sizeof(txctl_log.priv.txdesc_ctl)); in process_tx_info()
432 pl_hdr.size = (pl_hdr.size > sizeof(txctl_log.priv.txdesc_ctl)) in process_tx_info()
433 ? sizeof(txctl_log.priv.txdesc_ctl) : in process_tx_info()
440 qdf_mem_copy((void *)&txctl_log.priv.txdesc_ctl, in process_tx_info()
445 qdf_mem_copy(txctl_log.txdesc_hdr_ctl, &txctl_log.priv, in process_tx_info()
446 sizeof(txctl_log.priv)); in process_tx_info()
[all …]

1234