Home
last modified time | relevance | path

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

/drivers/staging/wfx/
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()
62 mutex_lock(&wdev->hif_cmd.lock); in wfx_cmd_send()
63 WARN(wdev->hif_cmd.buf_send, "data locking error"); in wfx_cmd_send()
67 wdev->hif_cmd.buf_send = request; in wfx_cmd_send()
68 wdev->hif_cmd.buf_recv = reply; in wfx_cmd_send()
69 wdev->hif_cmd.len_recv = reply_len; in wfx_cmd_send()
70 complete(&wdev->hif_cmd.ready); in wfx_cmd_send()
[all …]
Dhif_rx.c28 WARN(!mutex_is_locked(&wdev->hif_cmd.lock), "data locking error"); in hif_generic_confirm()
30 if (!wdev->hif_cmd.buf_send) { in hif_generic_confirm()
35 if (cmd != wdev->hif_cmd.buf_send->id) { in hif_generic_confirm()
38 cmd, wdev->hif_cmd.buf_send->id); in hif_generic_confirm()
42 if (wdev->hif_cmd.buf_recv) { in hif_generic_confirm()
43 if (wdev->hif_cmd.len_recv >= len && len > 0) in hif_generic_confirm()
44 memcpy(wdev->hif_cmd.buf_recv, buf, len); in hif_generic_confirm()
48 wdev->hif_cmd.ret = status; in hif_generic_confirm()
50 complete(&wdev->hif_cmd.done); in hif_generic_confirm()
394 if (mutex_is_locked(&wdev->hif_cmd.lock) in wfx_handle_rx()
[all …]
Dbh.c206 if (try_wait_for_completion(&wdev->hif_cmd.ready)) { in bh_work_tx()
207 WARN(!mutex_is_locked(&wdev->hif_cmd.lock), "data locking error"); in bh_work_tx()
208 hif = wdev->hif_cmd.buf_send; in bh_work_tx()
Dqueue.c40 mutex_lock(&wdev->hif_cmd.lock); in wfx_tx_flush()
51 mutex_unlock(&wdev->hif_cmd.lock); in wfx_tx_flush()
Dwfx.h48 struct wfx_hif_cmd hif_cmd; member
Dmain.c325 wfx_init_hif_cmd(&wdev->hif_cmd); in wfx_init_common()