Home
last modified time | relevance | path

Searched refs:hal_dev_ctx (Results 1 – 25 of 29) sorted by relevance

12

/nrf_wifi-latest/hw_if/hal/src/offload_raw_tx/
Dhal_api.c25 struct nrf_wifi_hal_dev_ctx *hal_dev_ctx = NULL; in event_tasklet_fn() local
28 hal_dev_ctx = (struct nrf_wifi_hal_dev_ctx *)data; in event_tasklet_fn()
30 nrf_wifi_osal_spinlock_irq_take(hal_dev_ctx->lock_rx, in event_tasklet_fn()
33 if (hal_dev_ctx->hal_status != NRF_WIFI_HAL_STATUS_ENABLED) { in event_tasklet_fn()
39 status = hal_rpu_eventq_process(hal_dev_ctx); in event_tasklet_fn()
47 nrf_wifi_osal_spinlock_irq_rel(hal_dev_ctx->lock_rx, in event_tasklet_fn()
52 static enum nrf_wifi_status hal_rpu_recovery(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx) in hal_rpu_recovery() argument
56 if (!hal_dev_ctx->hpriv->rpu_recovery_callbk_fn) { in hal_rpu_recovery()
62 status = hal_dev_ctx->hpriv->rpu_recovery_callbk_fn(hal_dev_ctx->mac_dev_ctx, NULL, 0); in hal_rpu_recovery()
75 struct nrf_wifi_hal_dev_ctx *hal_dev_ctx = NULL; in recovery_tasklet_fn() local
[all …]
/nrf_wifi-latest/hw_if/hal/src/radio_test/
Dhal_api.c24 struct nrf_wifi_hal_dev_ctx *hal_dev_ctx = NULL; in event_tasklet_fn() local
27 hal_dev_ctx = (struct nrf_wifi_hal_dev_ctx *)data; in event_tasklet_fn()
29 nrf_wifi_osal_spinlock_irq_take(hal_dev_ctx->lock_rx, in event_tasklet_fn()
32 if (hal_dev_ctx->hal_status != NRF_WIFI_HAL_STATUS_ENABLED) { in event_tasklet_fn()
38 status = hal_rpu_eventq_process(hal_dev_ctx); in event_tasklet_fn()
46 nrf_wifi_osal_spinlock_irq_rel(hal_dev_ctx->lock_rx, in event_tasklet_fn()
51 static enum nrf_wifi_status hal_rpu_recovery(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx) in hal_rpu_recovery() argument
55 if (!hal_dev_ctx->hpriv->rpu_recovery_callbk_fn) { in hal_rpu_recovery()
61 status = hal_dev_ctx->hpriv->rpu_recovery_callbk_fn(hal_dev_ctx->mac_dev_ctx, NULL, 0); in hal_rpu_recovery()
74 struct nrf_wifi_hal_dev_ctx *hal_dev_ctx = NULL; in recovery_tasklet_fn() local
[all …]
/nrf_wifi-latest/hw_if/hal/src/system/
Dhal_api.c23 nrf_wifi_sys_hal_rpu_pktram_buf_map_init(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx) in nrf_wifi_sys_hal_rpu_pktram_buf_map_init() argument
29 &hal_dev_ctx->addr_rpu_pktram_base, in nrf_wifi_sys_hal_rpu_pktram_buf_map_init()
30 hal_dev_ctx->curr_proc); in nrf_wifi_sys_hal_rpu_pktram_buf_map_init()
38 hal_dev_ctx->addr_rpu_pktram_base_tx = hal_dev_ctx->addr_rpu_pktram_base; in nrf_wifi_sys_hal_rpu_pktram_buf_map_init()
40 hal_dev_ctx->addr_rpu_pktram_base_rx_pool[0] = in nrf_wifi_sys_hal_rpu_pktram_buf_map_init()
41 (hal_dev_ctx->addr_rpu_pktram_base + RPU_PKTRAM_SIZE) - in nrf_wifi_sys_hal_rpu_pktram_buf_map_init()
45 hal_dev_ctx->addr_rpu_pktram_base_rx_pool[pool_idx] = in nrf_wifi_sys_hal_rpu_pktram_buf_map_init()
46 hal_dev_ctx->addr_rpu_pktram_base_rx_pool[pool_idx - 1] + in nrf_wifi_sys_hal_rpu_pktram_buf_map_init()
47 (hal_dev_ctx->hpriv->cfg_params.rx_buf_pool[pool_idx - 1].num_bufs * in nrf_wifi_sys_hal_rpu_pktram_buf_map_init()
48 hal_dev_ctx->hpriv->cfg_params.rx_buf_pool[pool_idx - 1].buf_sz); in nrf_wifi_sys_hal_rpu_pktram_buf_map_init()
[all …]
/nrf_wifi-latest/hw_if/hal/src/common/
Dhal_interrupt.c19 enum nrf_wifi_status hal_rpu_irq_enable(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx) in hal_rpu_irq_enable() argument
27 status = hal_rpu_reg_read(hal_dev_ctx, in hal_rpu_irq_enable()
39 status = hal_rpu_reg_write(hal_dev_ctx, in hal_rpu_irq_enable()
52 status = hal_rpu_reg_write(hal_dev_ctx, in hal_rpu_irq_enable()
67 enum nrf_wifi_status hal_rpu_irq_disable(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx) in hal_rpu_irq_disable() argument
72 status = hal_rpu_reg_read(hal_dev_ctx, in hal_rpu_irq_disable()
84 status = hal_rpu_reg_write(hal_dev_ctx, in hal_rpu_irq_disable()
96 status = hal_rpu_reg_write(hal_dev_ctx, in hal_rpu_irq_disable()
111 static enum nrf_wifi_status hal_rpu_irq_ack(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx) in hal_rpu_irq_ack() argument
118 status = hal_rpu_reg_write(hal_dev_ctx, in hal_rpu_irq_ack()
[all …]
Dhal_api_common.c22 static void did_rpu_had_sleep_opp(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx) in did_rpu_had_sleep_opp() argument
25 hal_dev_ctx->last_wakeup_now_deasserted_time_ms); in did_rpu_had_sleep_opp()
28 hal_dev_ctx->last_rpu_sleep_opp_time_ms = in did_rpu_had_sleep_opp()
29 hal_dev_ctx->last_wakeup_now_deasserted_time_ms; in did_rpu_had_sleep_opp()
34 enum nrf_wifi_status hal_rpu_ps_wake(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx) in hal_rpu_ps_wake() argument
45 if (!hal_dev_ctx) { in hal_rpu_ps_wake()
55 if (!hal_dev_ctx->rpu_fw_booted) in hal_rpu_ps_wake()
58 if (hal_dev_ctx->rpu_ps_state == RPU_PS_STATE_AWAKE) { in hal_rpu_ps_wake()
64 nrf_wifi_bal_rpu_ps_wake(hal_dev_ctx->bal_dev_ctx); in hal_rpu_ps_wake()
66 hal_dev_ctx->is_wakeup_now_asserted = true; in hal_rpu_ps_wake()
[all …]
Dhal_mem.c75 static enum nrf_wifi_status rpu_mem_read_ram(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx, in rpu_mem_read_ram() argument
88 hal_dev_ctx->curr_proc); in rpu_mem_read_ram()
97 nrf_wifi_osal_spinlock_irq_take(hal_dev_ctx->rpu_ps_lock, in rpu_mem_read_ram()
100 status = hal_rpu_ps_wake(hal_dev_ctx); in rpu_mem_read_ram()
109 nrf_wifi_bal_read_block(hal_dev_ctx->bal_dev_ctx, in rpu_mem_read_ram()
118 nrf_wifi_osal_spinlock_irq_rel(hal_dev_ctx->rpu_ps_lock, in rpu_mem_read_ram()
126 static enum nrf_wifi_status rpu_mem_write_ram(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx, in rpu_mem_write_ram() argument
139 hal_dev_ctx->curr_proc); in rpu_mem_write_ram()
148 nrf_wifi_osal_spinlock_irq_take(hal_dev_ctx->rpu_ps_lock, in rpu_mem_write_ram()
151 status = hal_rpu_ps_wake(hal_dev_ctx); in rpu_mem_write_ram()
[all …]
Dhal_reg.c30 enum nrf_wifi_status hal_rpu_reg_read(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx, in hal_rpu_reg_read() argument
41 if (!hal_dev_ctx) { in hal_rpu_reg_read()
56 hal_dev_ctx->curr_proc); in hal_rpu_reg_read()
65 nrf_wifi_osal_spinlock_irq_take(hal_dev_ctx->rpu_ps_lock, in hal_rpu_reg_read()
68 status = hal_rpu_ps_wake(hal_dev_ctx); in hal_rpu_reg_read()
77 *val = nrf_wifi_bal_read_word(hal_dev_ctx->bal_dev_ctx, in hal_rpu_reg_read()
92 nrf_wifi_osal_spinlock_irq_rel(hal_dev_ctx->rpu_ps_lock, in hal_rpu_reg_read()
99 enum nrf_wifi_status hal_rpu_reg_write(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx, in hal_rpu_reg_write() argument
110 if (!hal_dev_ctx) { in hal_rpu_reg_write()
123 hal_dev_ctx->curr_proc); in hal_rpu_reg_write()
[all …]
Dhal_fw_patch_loader.c61 enum nrf_wifi_status hal_fw_patch_chunk_load(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx, in hal_fw_patch_chunk_load() argument
69 hal_dev_ctx->curr_proc = rpu_proc; in hal_fw_patch_chunk_load()
71 status = hal_rpu_mem_write(hal_dev_ctx, in hal_fw_patch_chunk_load()
76 hal_dev_ctx->curr_proc = RPU_PROC_TYPE_MCU_LMAC; in hal_fw_patch_chunk_load()
82 static enum nrf_wifi_status hal_fw_patch_load(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx, in hal_fw_patch_load() argument
130 status = hal_fw_patch_chunk_load(hal_dev_ctx, in hal_fw_patch_load()
158 enum nrf_wifi_status nrf_wifi_hal_fw_patch_load(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx, in nrf_wifi_hal_fw_patch_load() argument
187 hal_dev_ctx->curr_proc = rpu_proc; in nrf_wifi_hal_fw_patch_load()
216 status = hal_fw_patch_load(hal_dev_ctx, in nrf_wifi_hal_fw_patch_load()
228 hal_dev_ctx->curr_proc = RPU_PROC_TYPE_MCU_LMAC; in nrf_wifi_hal_fw_patch_load()
[all …]
/nrf_wifi-latest/hw_if/hal/inc/common/
Dhal_api_common.h74 void nrf_wifi_hal_dev_rem(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx);
76 enum nrf_wifi_status nrf_wifi_hal_dev_init(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx);
78 void nrf_wifi_hal_dev_deinit(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx);
80 void nrf_wifi_hal_enable(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx);
81 void nrf_wifi_hal_disable(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx);
82 enum NRF_WIFI_HAL_STATUS nrf_wifi_hal_status_unlocked(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx);
174 enum nrf_wifi_status hal_rpu_ps_wake(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx);
186 enum nrf_wifi_status nrf_wifi_hal_get_rpu_ps_state(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx,
201 enum nrf_wifi_status nrf_wifi_hal_otp_info_get(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx,
215 enum nrf_wifi_status nrf_wifi_hal_otp_ft_prog_ver_get(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx,
[all …]
Dhal_interrupt.h28 enum nrf_wifi_status hal_rpu_irq_enable(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx);
40 enum nrf_wifi_status hal_rpu_irq_disable(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx);
54 enum nrf_wifi_status hal_rpu_irq_process(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx,
Dhal_fw_patch_loader.h25 enum nrf_wifi_status hal_fw_patch_chunk_load(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx,
33 enum nrf_wifi_status nrf_wifi_hal_fw_patch_load(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx,
40 enum nrf_wifi_status nrf_wifi_hal_fw_patch_boot(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx,
/nrf_wifi-latest/fw_if/umac_if/src/common/
Dfmac_cmd_common.c70 status = nrf_wifi_hal_ctrl_cmd_send(fmac_dev_ctx->hal_dev_ctx, in umac_cmd_cfg()
102 status = nrf_wifi_hal_ctrl_cmd_send(fmac_dev_ctx->hal_dev_ctx, in umac_cmd_deinit()
140 status = nrf_wifi_hal_ctrl_cmd_send(fmac_dev_ctx->hal_dev_ctx, in umac_cmd_srcoex()
173 status = nrf_wifi_hal_ctrl_cmd_send(fmac_dev_ctx->hal_dev_ctx, in umac_cmd_prog_stats_reset()
Dfmac_api_common.c120 nrf_wifi_hal_dev_rem(fmac_dev_ctx->hal_dev_ctx); in nrf_wifi_fmac_dev_rem()
238 status = nrf_wifi_hal_proc_reset(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_fmac_fw_reset()
257 status = nrf_wifi_hal_fw_patch_boot(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_fmac_fw_boot()
267 status = nrf_wifi_hal_fw_chk_boot(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_fmac_fw_boot()
285 return hal_fw_patch_chunk_load(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_fmac_fw_chunk_load()
307 status = nrf_wifi_hal_fw_patch_load(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_fmac_fw_load()
329 status = nrf_wifi_hal_fw_patch_load(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_fmac_fw_load()
367 status = hal_rpu_mem_read(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_fmac_ver_get()
402 status = nrf_wifi_hal_otp_info_get(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_fmac_otp_mac_addr_get()
/nrf_wifi-latest/fw_if/umac_if/src/radio_test/
Dfmac_cmd.c138 status = nrf_wifi_hal_ctrl_cmd_send(fmac_dev_ctx->hal_dev_ctx, in umac_cmd_rt_init()
173 status = nrf_wifi_hal_ctrl_cmd_send(fmac_dev_ctx->hal_dev_ctx, in umac_cmd_rt_prog_stats_get()
211 status = nrf_wifi_hal_ctrl_cmd_send(fmac_dev_ctx->hal_dev_ctx, in umac_cmd_rt_prog_init()
248 status = nrf_wifi_hal_ctrl_cmd_send(fmac_dev_ctx->hal_dev_ctx, in umac_cmd_rt_prog_tx()
286 status = nrf_wifi_hal_ctrl_cmd_send(fmac_dev_ctx->hal_dev_ctx, in umac_cmd_rt_prog_rx()
327 status = nrf_wifi_hal_ctrl_cmd_send(fmac_dev_ctx->hal_dev_ctx, in umac_cmd_rt_prog_rf_test()
Dfmac_api.c118 fmac_dev_ctx->hal_dev_ctx = nrf_wifi_rt_hal_dev_add(fpriv->hpriv, in nrf_wifi_rt_fmac_dev_add()
121 if (!fmac_dev_ctx->hal_dev_ctx) { in nrf_wifi_rt_fmac_dev_add()
165 status = nrf_wifi_hal_dev_init(fmac_dev_ctx->hal_dev_ctx); in nrf_wifi_rt_fmac_dev_init()
182 status = nrf_wifi_hal_otp_info_get(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_rt_fmac_dev_init()
1051 status = nrf_wifi_hal_otp_info_get(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_rt_fmac_rf_params_get()
1061 status = nrf_wifi_hal_otp_ft_prog_ver_get(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_rt_fmac_rf_params_get()
1069 status = nrf_wifi_hal_otp_pack_info_get(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_rt_fmac_rf_params_get()
/nrf_wifi-latest/hw_if/hal/inc/system/
Dhal_api.h30 void nrf_wifi_sys_hal_lock_rx(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx);
32 void nrf_wifi_sys_hal_unlock_rx(struct nrf_wifi_hal_dev_ctx *hal_dev_ctx);
/nrf_wifi-latest/bus_if/bal/src/
Dbal.c51 void *hal_dev_ctx) in nrf_wifi_bal_dev_add() argument
64 bal_dev_ctx->hal_dev_ctx = hal_dev_ctx; in nrf_wifi_bal_dev_add()
127 status = bal_dev_ctx->bpriv->intr_callbk_fn(bal_dev_ctx->hal_dev_ctx); in nrf_wifi_bal_isr()
135 enum nrf_wifi_status (*intr_callbk_fn)(void *hal_dev_ctx)) in nrf_wifi_bal_init() argument
/nrf_wifi-latest/fw_if/umac_if/src/system/
Drx.c222 phy_addr = nrf_wifi_sys_hal_buf_map_rx(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_fmac_rx_cmd_send()
244 status = nrf_wifi_sys_hal_data_cmd_send(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_fmac_rx_cmd_send()
262 nwb_data = nrf_wifi_sys_hal_buf_unmap_rx(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_fmac_rx_cmd_send()
297 nrf_wifi_sys_hal_lock_rx(fmac_dev_ctx->hal_dev_ctx); in nrf_wifi_fmac_rx_tasklet()
298 hal_status = nrf_wifi_hal_status_unlocked(fmac_dev_ctx->hal_dev_ctx); in nrf_wifi_fmac_rx_tasklet()
324 nrf_wifi_sys_hal_unlock_rx(fmac_dev_ctx->hal_dev_ctx); in nrf_wifi_fmac_rx_tasklet()
391 nwb_data = (void *)nrf_wifi_sys_hal_buf_unmap_rx(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_fmac_rx_event_process()
Dfmac_peer.c82 hal_rpu_mem_write(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_fmac_peer_add()
122 hal_rpu_mem_write(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_fmac_peer_remove()
163 hal_rpu_mem_write(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_fmac_peers_flush()
Dfmac_cmd.c161 status = nrf_wifi_hal_ctrl_cmd_send(fmac_dev_ctx->hal_dev_ctx, in umac_cmd_sys_init()
194 status = nrf_wifi_hal_ctrl_cmd_send(fmac_dev_ctx->hal_dev_ctx, in umac_cmd_sys_prog_stats_get()
243 status = nrf_wifi_hal_ctrl_cmd_send(fmac_dev_ctx->hal_dev_ctx, in umac_cmd_sys_he_ltf_gi()
/nrf_wifi-latest/fw_if/umac_if/src/offload_raw_tx/
Dfmac_cmd.c138 status = nrf_wifi_hal_ctrl_cmd_send(fmac_dev_ctx->hal_dev_ctx, in umac_cmd_off_raw_tx_init()
171 status = nrf_wifi_hal_ctrl_cmd_send(fmac_dev_ctx->hal_dev_ctx, in umac_cmd_off_raw_tx_prog_stats_get()
228 status = nrf_wifi_hal_ctrl_cmd_send(fmac_dev_ctx->hal_dev_ctx, in umac_cmd_off_raw_tx_conf()
265 status = nrf_wifi_hal_ctrl_cmd_send(fmac_dev_ctx->hal_dev_ctx, in umac_cmd_off_raw_tx_ctrl()
Dfmac_api.c149 fmac_dev_ctx->hal_dev_ctx = nrf_wifi_off_raw_tx_hal_dev_add(fpriv->hpriv, in nrf_wifi_off_raw_tx_fmac_dev_add()
152 if (!fmac_dev_ctx->hal_dev_ctx) { in nrf_wifi_off_raw_tx_fmac_dev_add()
196 status = nrf_wifi_hal_dev_init(fmac_dev_ctx->hal_dev_ctx); in nrf_wifi_off_raw_tx_fmac_dev_init()
212 status = nrf_wifi_hal_otp_info_get(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_off_raw_tx_fmac_dev_init()
564 status = nrf_wifi_hal_otp_info_get(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_off_raw_tx_fmac_rf_params_get()
574 status = nrf_wifi_hal_otp_ft_prog_ver_get(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_off_raw_tx_fmac_rf_params_get()
582 status = nrf_wifi_hal_otp_pack_info_get(fmac_dev_ctx->hal_dev_ctx, in nrf_wifi_off_raw_tx_fmac_rf_params_get()
/nrf_wifi-latest/bus_if/bal/inc/
Dbal_structs.h51 void *hal_dev_ctx; member
Dbal_api.h56 void *hal_dev_ctx);
/nrf_wifi-latest/fw_if/umac_if/inc/common/
Dfmac_structs_common.h160 void *hal_dev_ctx; member

12