Home
last modified time | relevance | path

Searched refs:hif_cmd (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/drivers/net/wireless/silabs/wfx/
Dhif_rx.c27 WARN(!mutex_is_locked(&wdev->hif_cmd.lock), "data locking error"); in wfx_hif_generic_confirm()
29 if (!wdev->hif_cmd.buf_send) { in wfx_hif_generic_confirm()
34 if (cmd != wdev->hif_cmd.buf_send->id) { in wfx_hif_generic_confirm()
36 cmd, wdev->hif_cmd.buf_send->id); in wfx_hif_generic_confirm()
40 if (wdev->hif_cmd.buf_recv) { in wfx_hif_generic_confirm()
41 if (wdev->hif_cmd.len_recv >= len && len > 0) in wfx_hif_generic_confirm()
42 memcpy(wdev->hif_cmd.buf_recv, buf, len); in wfx_hif_generic_confirm()
46 wdev->hif_cmd.ret = status; in wfx_hif_generic_confirm()
48 complete(&wdev->hif_cmd.done); in wfx_hif_generic_confirm()
373 if (mutex_is_locked(&wdev->hif_cmd.lock) && in wfx_handle_rx()
[all …]
Dhif_tx.c18 void wfx_init_hif_cmd(struct wfx_hif_cmd *hif_cmd) in wfx_init_hif_cmd() argument
20 init_completion(&hif_cmd->ready); in wfx_init_hif_cmd()
21 init_completion(&hif_cmd->done); in wfx_init_hif_cmd()
22 mutex_init(&hif_cmd->lock); in wfx_init_hif_cmd()
79 mutex_lock(&wdev->hif_cmd.lock); in wfx_cmd_send()
80 WARN(wdev->hif_cmd.buf_send, "data locking error"); in wfx_cmd_send()
85 wdev->hif_cmd.buf_send = request; in wfx_cmd_send()
86 wdev->hif_cmd.buf_recv = reply; in wfx_cmd_send()
87 wdev->hif_cmd.len_recv = reply_len; in wfx_cmd_send()
88 complete(&wdev->hif_cmd.ready); in wfx_cmd_send()
[all …]
Dbh.c204 if (try_wait_for_completion(&wdev->hif_cmd.ready)) { in bh_work_tx()
205 WARN(!mutex_is_locked(&wdev->hif_cmd.lock), "data locking error"); in bh_work_tx()
206 hif = wdev->hif_cmd.buf_send; in bh_work_tx()
Dqueue.c40 mutex_lock(&wdev->hif_cmd.lock); in wfx_tx_flush()
50 mutex_unlock(&wdev->hif_cmd.lock); in wfx_tx_flush()
Dwfx.h49 struct wfx_hif_cmd hif_cmd; member
Dmain.c328 wfx_init_hif_cmd(&wdev->hif_cmd); in wfx_init_common()