Home
last modified time | relevance | path

Searched refs:pcmdpriv (Results 1 – 17 of 17) sorted by relevance

/drivers/staging/rtl8712/
Drtl871x_cmd.c58 static sint _init_cmd_priv(struct cmd_priv *pcmdpriv) in _init_cmd_priv() argument
60 sema_init(&(pcmdpriv->cmd_queue_sema), 0); in _init_cmd_priv()
61 sema_init(&(pcmdpriv->terminate_cmdthread_sema), 0); in _init_cmd_priv()
63 _init_queue(&(pcmdpriv->cmd_queue)); in _init_cmd_priv()
66 pcmdpriv->cmd_seq = 1; in _init_cmd_priv()
67 pcmdpriv->cmd_allocated_buf = kmalloc(MAX_CMDSZ + CMDBUFF_ALIGN_SZ, in _init_cmd_priv()
69 if (pcmdpriv->cmd_allocated_buf == NULL) in _init_cmd_priv()
71 pcmdpriv->cmd_buf = pcmdpriv->cmd_allocated_buf + CMDBUFF_ALIGN_SZ - in _init_cmd_priv()
72 ((addr_t)(pcmdpriv->cmd_allocated_buf) & in _init_cmd_priv()
74 pcmdpriv->rsp_allocated_buf = kmalloc(MAX_RSPSZ + 4, GFP_ATOMIC); in _init_cmd_priv()
[all …]
Drtl8712_cmd.c327 struct cmd_priv *pcmdpriv = &(padapter->cmdpriv); in r8712_cmd_thread() local
331 if ((_down_sema(&(pcmdpriv->cmd_queue_sema))) == _FAIL) in r8712_cmd_thread()
339 pcmd = r8712_dequeue_cmd(&(pcmdpriv->cmd_queue)); in r8712_cmd_thread()
344 pcmdbuf = (unsigned int *)pcmdpriv->cmd_buf; in r8712_cmd_thread()
345 prspbuf = (unsigned int *)pcmdpriv->rsp_buf; in r8712_cmd_thread()
354 pcmdpriv->cmd_issued_cnt++; in r8712_cmd_thread()
382 (pcmdpriv->cmd_seq << 24)); in r8712_cmd_thread()
396 pcmdpriv->cmd_seq++; in r8712_cmd_thread()
414 if (list_empty(&pcmdpriv->cmd_queue.queue)) { in r8712_cmd_thread()
425 pcmd = r8712_dequeue_cmd(&(pcmdpriv->cmd_queue)); in r8712_cmd_thread()
[all …]
Drtl871x_cmd.h94 u32 r8712_enqueue_cmd(struct cmd_priv *pcmdpriv, struct cmd_obj *obj);
95 u32 r8712_enqueue_cmd_ex(struct cmd_priv *pcmdpriv, struct cmd_obj *obj);
99 u32 r8712_init_cmd_priv(struct cmd_priv *pcmdpriv);
100 void r8712_free_cmd_priv(struct cmd_priv *pcmdpriv);
Drtl8712_xmit.c287 struct cmd_priv *pcmdpriv = &(padapter->cmdpriv); in r8712_construct_txaggr_cmd_hdr() local
294 (pcmdpriv->cmd_seq << 24)); in r8712_construct_txaggr_cmd_hdr()
295 pcmdpriv->cmd_seq++; in r8712_construct_txaggr_cmd_hdr()
429 struct cmd_priv *pcmdpriv = (struct cmd_priv *)&padapter->cmdpriv; in update_txdesc() local
490 (pcmdpriv->cmd_seq << 24); in update_txdesc()
491 pcmdpriv->cmd_seq++; in update_txdesc()
Drtl871x_pwrctrl.c102 struct cmd_priv *pcmdpriv = &(padapter->cmdpriv); in r8712_cpwm_int_hdl() local
111 up(&(pcmdpriv->cmd_queue_sema)); in r8712_cpwm_int_hdl()
Drtl871x_mp.c278 struct cmd_priv *pcmdpriv = &pAdapter->cmdpriv; in r8712_SetChannel() local
293 r8712_enqueue_cmd(pcmdpriv, pcmd); in r8712_SetChannel()
Drtl871x_mlme.c1211 struct cmd_priv *pcmdpriv = &adapter->cmdpriv; in r8712_set_auth() local
1231 r8712_enqueue_cmd(pcmdpriv, pcmd); in r8712_set_auth()
1239 struct cmd_priv *pcmdpriv = &adapter->cmdpriv; in r8712_set_key() local
1303 r8712_enqueue_cmd(pcmdpriv, pcmd); in r8712_set_key()
/drivers/staging/rtl8188eu/core/
Drtw_cmd.c33 int rtw_init_cmd_priv(struct cmd_priv *pcmdpriv) in rtw_init_cmd_priv() argument
35 sema_init(&(pcmdpriv->cmd_queue_sema), 0); in rtw_init_cmd_priv()
36 sema_init(&(pcmdpriv->terminate_cmdthread_sema), 0); in rtw_init_cmd_priv()
38 _rtw_init_queue(&(pcmdpriv->cmd_queue)); in rtw_init_cmd_priv()
92 static int rtw_cmd_filter(struct cmd_priv *pcmdpriv, struct cmd_obj *cmd_obj) in rtw_cmd_filter() argument
97 if ((pcmdpriv->padapter->pwrctrlpriv.bHWPwrPindetect) && in rtw_cmd_filter()
98 (!pcmdpriv->padapter->registrypriv.usbss_enable)) { in rtw_cmd_filter()
110 if ((!pcmdpriv->padapter->hw_init_completed && !bAllow) || in rtw_cmd_filter()
111 !pcmdpriv->cmdthd_running) /* com_thread not running */ in rtw_cmd_filter()
116 u32 rtw_enqueue_cmd(struct cmd_priv *pcmdpriv, struct cmd_obj *cmd_obj) in rtw_enqueue_cmd() argument
[all …]
Drtw_mlme_ext.c4235 struct cmd_priv *pcmdpriv; in report_survey_event() local
4241 pcmdpriv = &padapter->cmdpriv; in report_survey_event()
4279 rtw_enqueue_cmd(pcmdpriv, pcmd_obj); in report_survey_event()
4294 struct cmd_priv *pcmdpriv = &padapter->cmdpriv; in report_surveydone_event() local
4326 rtw_enqueue_cmd(pcmdpriv, pcmd_obj); in report_surveydone_event()
4340 struct cmd_priv *pcmdpriv = &padapter->cmdpriv; in report_join_res() local
4378 rtw_enqueue_cmd(pcmdpriv, pcmd_obj); in report_join_res()
4393 struct cmd_priv *pcmdpriv = &padapter->cmdpriv; in report_del_sta_event() local
4435 rtw_enqueue_cmd(pcmdpriv, pcmd_obj); in report_del_sta_event()
4448 struct cmd_priv *pcmdpriv = &padapter->cmdpriv; in report_add_sta_event() local
[all …]
Drtw_mlme.c1583 struct cmd_priv *pcmdpriv = &(adapter->cmdpriv); in rtw_set_auth() local
1609 res = rtw_enqueue_cmd(pcmdpriv, pcmd); in rtw_set_auth()
1619 struct cmd_priv *pcmdpriv = &(adapter->cmdpriv); in rtw_set_key() local
1687 res = rtw_enqueue_cmd(pcmdpriv, pcmd); in rtw_set_key()
/drivers/staging/rtl8723au/core/
Drtw_cmd.c171 int rtw_init_cmd_priv23a(struct cmd_priv *pcmdpriv) in rtw_init_cmd_priv23a() argument
175 pcmdpriv->cmd_issued_cnt = 0; in rtw_init_cmd_priv23a()
176 pcmdpriv->cmd_done_cnt = 0; in rtw_init_cmd_priv23a()
177 pcmdpriv->rsp_cnt = 0; in rtw_init_cmd_priv23a()
179 pcmdpriv->wq = alloc_workqueue("rtl8723au_cmd", 0, 1); in rtw_init_cmd_priv23a()
180 if (!pcmdpriv->wq) in rtw_init_cmd_priv23a()
204 static int rtw_cmd_filter(struct cmd_priv *pcmdpriv, struct cmd_obj *cmd_obj) in rtw_cmd_filter() argument
212 if (pcmdpriv->padapter->hw_init_completed == false && bAllow == false) in rtw_cmd_filter()
219 int rtw_enqueue_cmd23a(struct cmd_priv *pcmdpriv, struct cmd_obj *cmd_obj) in rtw_enqueue_cmd23a() argument
226 cmd_obj->padapter = pcmdpriv->padapter; in rtw_enqueue_cmd23a()
[all …]
Drtw_mlme_ext.c4740 struct cmd_priv *pcmdpriv; in report_survey_event23a() local
4746 pcmdpriv = &padapter->cmdpriv; in report_survey_event23a()
4782 rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj); in report_survey_event23a()
4797 struct cmd_priv *pcmdpriv = &padapter->cmdpriv; in report_surveydone_event23a() local
4827 rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj); in report_surveydone_event23a()
4841 struct cmd_priv *pcmdpriv = &padapter->cmdpriv; in report_join_res23a() local
4875 rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj); in report_join_res23a()
4891 struct cmd_priv *pcmdpriv = &padapter->cmdpriv; in report_del_sta_event23a() local
4931 rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj); in report_del_sta_event23a()
4945 struct cmd_priv *pcmdpriv = &padapter->cmdpriv; in report_add_sta_event23a() local
[all …]
Drtw_mlme.c1774 struct cmd_priv *pcmdpriv = &adapter->cmdpriv; in rtw_set_auth23a() local
1802 res = rtw_enqueue_cmd23a(pcmdpriv, pcmd); in rtw_set_auth23a()
1815 struct cmd_priv *pcmdpriv = &adapter->cmdpriv; in rtw_set_key23a() local
1904 res = rtw_enqueue_cmd23a(pcmdpriv, pcmd); in rtw_set_key23a()
/drivers/staging/rtl8188eu/include/
Drtw_cmd.h64 u32 rtw_enqueue_cmd(struct cmd_priv *pcmdpriv, struct cmd_obj *obj);
70 int rtw_init_cmd_priv(struct cmd_priv *pcmdpriv);
/drivers/staging/rtl8723au/include/
Drtw_cmd.h94 int rtw_enqueue_cmd23a(struct cmd_priv *pcmdpriv, struct cmd_obj *obj);
99 int rtw_init_cmd_priv23a(struct cmd_priv *pcmdpriv);
103 void rtw_cmd_clr_isr23a(struct cmd_priv *pcmdpriv);
/drivers/staging/rtl8723au/os_dep/
Dioctl_cfg80211.c391 struct cmd_priv *pcmdpriv = &padapter->cmdpriv; in set_pairwise_key() local
415 res = rtw_enqueue_cmd23a(pcmdpriv, ph2c); in set_pairwise_key()
426 struct cmd_priv *pcmdpriv = &padapter->cmdpriv; in set_group_key() local
464 res = rtw_enqueue_cmd23a(pcmdpriv, pcmd); in set_group_key()
/drivers/staging/rtl8188eu/os_dep/
Dioctl_linux.c2112 struct cmd_priv *pcmdpriv = &padapter->cmdpriv; in set_pairwise_key() local
2136 res = rtw_enqueue_cmd(pcmdpriv, ph2c); in set_pairwise_key()
2148 struct cmd_priv *pcmdpriv = &(padapter->cmdpriv); in set_group_key() local
2197 res = rtw_enqueue_cmd(pcmdpriv, pcmd); in set_group_key()