Home
last modified time | relevance | path

Searched refs:plat_priv (Results 1 – 14 of 14) sorted by relevance

/wlan-driver/platform/cnss2/
Dbus.c25 enum cnss_dev_bus_type cnss_get_bus_type(struct cnss_plat_data *plat_priv) in cnss_get_bus_type() argument
31 if (plat_priv->dt_type == CNSS_DTT_MULTIEXCHG) { in cnss_get_bus_type()
32 dev = &plat_priv->plat_dev->dev; in cnss_get_bus_type()
47 switch (plat_priv->device_id) { in cnss_get_bus_type()
58 cnss_pr_err("Unknown device_id: 0x%lx\n", plat_priv->device_id); in cnss_get_bus_type()
95 int cnss_bus_init(struct cnss_plat_data *plat_priv) in cnss_bus_init() argument
97 if (!plat_priv) in cnss_bus_init()
100 switch (plat_priv->bus_type) { in cnss_bus_init()
102 return cnss_pci_init(plat_priv); in cnss_bus_init()
105 plat_priv->bus_type); in cnss_bus_init()
[all …]
Dqmi.h38 int cnss_qmi_init(struct cnss_plat_data *plat_priv);
39 void cnss_qmi_deinit(struct cnss_plat_data *plat_priv);
40 unsigned int cnss_get_qmi_timeout(struct cnss_plat_data *plat_priv);
41 int cnss_wlfw_server_arrive(struct cnss_plat_data *plat_priv, void *data);
42 int cnss_wlfw_server_exit(struct cnss_plat_data *plat_priv);
43 int cnss_wlfw_respond_mem_send_sync(struct cnss_plat_data *plat_priv);
44 int cnss_wlfw_tgt_cap_send_sync(struct cnss_plat_data *plat_priv);
45 int cnss_wlfw_bdf_dnld_send_sync(struct cnss_plat_data *plat_priv,
47 int cnss_wlfw_tme_patch_dnld_send_sync(struct cnss_plat_data *plat_priv,
49 int cnss_wlfw_m3_dnld_send_sync(struct cnss_plat_data *plat_priv);
[all …]
Dmain.c160 struct cnss_plat_data *plat_priv) in cnss_set_plat_priv() argument
165 if (plat_priv) { in cnss_set_plat_priv()
166 plat_priv->plat_idx = env_count; in cnss_set_plat_priv()
167 plat_env[plat_priv->plat_idx] = plat_priv; in cnss_set_plat_priv()
201 static void cnss_clear_plat_priv(struct cnss_plat_data *plat_priv) in cnss_clear_plat_priv() argument
203 cnss_pr_dbg("Clear plat_priv at %d", plat_priv->plat_idx); in cnss_clear_plat_priv()
204 plat_env[plat_priv->plat_idx] = NULL; in cnss_clear_plat_priv()
208 static int cnss_set_device_name(struct cnss_plat_data *plat_priv) in cnss_set_device_name() argument
210 snprintf(plat_priv->device_name, sizeof(plat_priv->device_name), in cnss_set_device_name()
211 "wlan_%d", plat_priv->plat_idx); in cnss_set_device_name()
[all …]
Dbus.h17 enum cnss_dev_bus_type cnss_get_bus_type(struct cnss_plat_data *plat_priv);
20 int cnss_bus_init(struct cnss_plat_data *plat_priv);
21 void cnss_bus_deinit(struct cnss_plat_data *plat_priv);
22 void cnss_bus_add_fw_prefix_name(struct cnss_plat_data *plat_priv,
24 int cnss_bus_load_tme_patch(struct cnss_plat_data *plat_priv);
25 int cnss_bus_load_tme_opt_file(struct cnss_plat_data *plat_priv,
27 int cnss_bus_runtime_pm_get_sync(struct cnss_plat_data *plat_priv);
28 void cnss_bus_runtime_pm_put(struct cnss_plat_data *plat_priv);
29 int cnss_bus_load_m3(struct cnss_plat_data *plat_priv);
30 int cnss_bus_load_aux(struct cnss_plat_data *plat_priv);
[all …]
Dpower.c132 static int cnss_get_vreg_single(struct cnss_plat_data *plat_priv, in cnss_get_vreg_single() argument
143 dev = &plat_priv->plat_dev->dev; in cnss_get_vreg_single()
144 dt_node = (plat_priv->dev_node ? plat_priv->dev_node : dev->of_node); in cnss_get_vreg_single()
185 static void cnss_put_vreg_single(struct cnss_plat_data *plat_priv, in cnss_put_vreg_single() argument
188 struct device *dev = &plat_priv->plat_dev->dev; in cnss_put_vreg_single()
340 static int cnss_get_vreg(struct cnss_plat_data *plat_priv, in cnss_get_vreg() argument
348 struct device *dev = &plat_priv->plat_dev->dev; in cnss_get_vreg()
353 (plat_priv->dt_type != CNSS_DTT_MULTIEXCHG)) { in cnss_get_vreg()
358 dt_node = (plat_priv->dev_node ? plat_priv->dev_node : dev->of_node); in cnss_get_vreg()
359 if (plat_priv->dt_type == CNSS_DTT_MULTIEXCHG) { in cnss_get_vreg()
[all …]
Dqmi.c46 #define QMI_WLFW_TIMEOUT_MS (plat_priv->ctrl_params.qmi_timeout)
150 static int cnss_wlfw_ind_register_send_sync(struct cnss_plat_data *plat_priv) in cnss_wlfw_ind_register_send_sync() argument
158 plat_priv->driver_state); in cnss_wlfw_ind_register_send_sync()
196 ret = qmi_txn_init(&plat_priv->qmi_wlfw, &txn, in cnss_wlfw_ind_register_send_sync()
204 ret = qmi_send_request(&plat_priv->qmi_wlfw, NULL, &txn, in cnss_wlfw_ind_register_send_sync()
249 static void cnss_wlfw_host_cap_parse_mlo(struct cnss_plat_data *plat_priv, in cnss_wlfw_host_cap_parse_mlo() argument
252 if (plat_priv->device_id == KIWI_DEVICE_ID || in cnss_wlfw_host_cap_parse_mlo()
253 plat_priv->device_id == MANGO_DEVICE_ID || in cnss_wlfw_host_cap_parse_mlo()
254 plat_priv->device_id == PEACH_DEVICE_ID) { in cnss_wlfw_host_cap_parse_mlo()
278 static int cnss_wlfw_host_cap_send_sync(struct cnss_plat_data *plat_priv) in cnss_wlfw_host_cap_send_sync() argument
[all …]
Dpci.c79 #define MHI_TIMEOUT_OVERWRITE_MS (plat_priv->ctrl_params.mhi_timeout)
80 #define MHI_M2_TIMEOUT_MS (plat_priv->ctrl_params.mhi_m2_timeout)
1141 struct cnss_plat_data *plat_priv = pci_priv->plat_priv; in cnss_pci_select_window() local
1147 if (plat_priv->device_id == QCN7605_DEVICE_ID) in cnss_pci_select_window()
1150 if (plat_priv->device_id == PEACH_DEVICE_ID) { in cnss_pci_select_window()
1165 if (plat_priv->device_id == PEACH_DEVICE_ID) { in cnss_pci_select_window()
1176 !test_bit(CNSS_IN_PANIC, &plat_priv->driver_state)) in cnss_pci_select_window()
1185 struct cnss_plat_data *plat_priv = pci_priv->plat_priv; in cnss_pci_reg_read() local
1203 if (test_bit(CNSS_IN_PANIC, &plat_priv->driver_state)) { in cnss_pci_reg_read()
1222 struct cnss_plat_data *plat_priv = pci_priv->plat_priv; in cnss_pci_reg_write() local
[all …]
Ddebug.c76 static u64 cnss_get_serial_id(struct cnss_plat_data *plat_priv) in cnss_get_serial_id() argument
78 u32 msb = plat_priv->serial_id.serial_id_msb; in cnss_get_serial_id()
79 u32 lsb = plat_priv->serial_id.serial_id_lsb; in cnss_get_serial_id()
86 struct cnss_plat_data *plat_priv) in cnss_stats_show_state() argument
93 cnss_get_serial_id(plat_priv)); in cnss_stats_show_state()
94 seq_printf(s, "\nState: 0x%lx(", plat_priv->driver_state); in cnss_stats_show_state()
95 for (i = 0, state = plat_priv->driver_state; state != 0; in cnss_stats_show_state()
201 struct cnss_plat_data *plat_priv) in cnss_stats_show_gpio_state() argument
203 seq_printf(s, "\nHost SOL: %d", cnss_get_host_sol_value(plat_priv)); in cnss_stats_show_gpio_state()
204 seq_printf(s, "\nDev SOL: %d", cnss_get_dev_sol_value(plat_priv)); in cnss_stats_show_gpio_state()
[all …]
Dmain.h654 static inline u64 cnss_get_host_timestamp(struct cnss_plat_data *plat_priv) in cnss_get_host_timestamp() argument
663 static inline u64 cnss_get_host_timestamp(struct cnss_plat_data *plat_priv) in cnss_get_host_timestamp() argument
673 int cnss_wlan_hw_disable_check(struct cnss_plat_data *plat_priv);
677 void cnss_pm_stay_awake(struct cnss_plat_data *plat_priv);
678 void cnss_pm_relax(struct cnss_plat_data *plat_priv);
682 void cnss_get_qrtr_info(struct cnss_plat_data *plat_priv);
683 void cnss_get_sleep_clk_supported(struct cnss_plat_data *plat_priv);
684 void cnss_get_bwscal_info(struct cnss_plat_data *plat_priv);
686 int cnss_driver_event_post(struct cnss_plat_data *plat_priv,
689 int cnss_get_vreg_type(struct cnss_plat_data *plat_priv,
[all …]
Dpci_qcom.c37 int _cnss_pci_enumerate(struct cnss_plat_data *plat_priv, u32 rc_num) in _cnss_pci_enumerate() argument
165 struct cnss_plat_data *plat_priv = pci_priv->plat_priv; in cnss_pci_update_drv_supported() local
189 plat_priv->cap.cap_flag |= CNSS_HAS_DRV_SUPPORT; in cnss_pci_update_drv_supported()
190 cnss_set_feature_list(plat_priv, CNSS_DRV_SUPPORT_V01); in cnss_pci_update_drv_supported()
199 struct cnss_plat_data *plat_priv = NULL; in cnss_pci_event_cb() local
218 plat_priv = pci_priv->plat_priv; in cnss_pci_event_cb()
219 if (!plat_priv) { in cnss_pci_event_cb()
224 plat_priv->ctrl_params.quirks |= BIT(LINK_DOWN_SELF_RECOVERY); in cnss_pci_event_cb()
300 struct cnss_plat_data *plat_priv = pci_priv->plat_priv; in cnss_wlan_adsp_pc_enable() local
305 if (plat_priv->adsp_pc_enabled == control) { in cnss_wlan_adsp_pc_enable()
[all …]
Dpci.h133 struct cnss_plat_data *plat_priv; member
204 return pci_priv->plat_priv; in cnss_pci_priv_to_plat_priv()
255 int cnss_pci_init(struct cnss_plat_data *plat_priv);
256 void cnss_pci_deinit(struct cnss_plat_data *plat_priv);
Ddebug.h103 int cnss_debugfs_create(struct cnss_plat_data *plat_priv);
104 void cnss_debugfs_destroy(struct cnss_plat_data *plat_priv);
Dpci_platform.h20 int _cnss_pci_enumerate(struct cnss_plat_data *plat_priv, u32 rc_num);
131 int _cnss_pci_enumerate(struct cnss_plat_data *plat_priv, u32 rc_num) in _cnss_pci_enumerate() argument
/wlan-driver/platform/icnss2/
Dqmi.c3525 int icnss_wlfw_get_info_send_sync(struct icnss_priv *plat_priv, int type, in icnss_wlfw_get_info_send_sync() argument
3537 if (test_bit(ICNSS_FW_DOWN, &plat_priv->state)) in icnss_wlfw_get_info_send_sync()
3554 ret = qmi_txn_init(&plat_priv->qmi, &txn, in icnss_wlfw_get_info_send_sync()
3562 ret = qmi_send_request(&plat_priv->qmi, NULL, &txn, in icnss_wlfw_get_info_send_sync()
3573 ret = qmi_txn_wait(&txn, plat_priv->ctrl_params.qmi_timeout); in icnss_wlfw_get_info_send_sync()