| /Linux-v5.15/drivers/staging/r8188eu/hal/ |
| D | hal_com.c | 321 struct c2h_evt_hdr *c2h_evt; in c2h_evt_read() local 335 c2h_evt = (struct c2h_evt_hdr *)buf; in c2h_evt_read() 337 memset(c2h_evt, 0, 16); in c2h_evt_read() 343 for (i = 0; i < c2h_evt->plen; i++) in c2h_evt_read() 344 c2h_evt->payload[i] = rtw_read8(adapter, REG_C2HEVT_MSG_NORMAL + in c2h_evt_read() 345 sizeof(*c2h_evt) + i); in c2h_evt_read()
|
| D | hal_intf.c | 429 s32 rtw_hal_c2h_handler(struct adapter *adapter, struct c2h_evt_hdr *c2h_evt) in rtw_hal_c2h_handler() argument 434 ret = adapter->HalFunc.c2h_handler(adapter, c2h_evt); in rtw_hal_c2h_handler()
|
| /Linux-v5.15/drivers/staging/r8188eu/core/ |
| D | rtw_cmd.c | 1822 u8 rtw_c2h_wk_cmd(struct adapter *padapter, u8 *c2h_evt) in rtw_c2h_wk_cmd() argument 1843 pdrvextra_cmd_parm->type_size = c2h_evt ? 16 : 0; in rtw_c2h_wk_cmd() 1844 pdrvextra_cmd_parm->pbuf = c2h_evt; in rtw_c2h_wk_cmd() 1855 static s32 c2h_evt_hdl(struct adapter *adapter, struct c2h_evt_hdr *c2h_evt, c2h_id_filter filter) in c2h_evt_hdl() argument 1860 if (!c2h_evt) { in c2h_evt_hdl() 1863 c2h_evt = (struct c2h_evt_hdr *)buf; in c2h_evt_hdl() 1865 if (filter && !filter(c2h_evt->id)) in c2h_evt_hdl() 1868 ret = rtw_hal_c2h_handler(adapter, c2h_evt); in c2h_evt_hdl() 1871 if (filter && !filter(c2h_evt->id)) in c2h_evt_hdl() 1874 ret = rtw_hal_c2h_handler(adapter, c2h_evt); in c2h_evt_hdl() [all …]
|
| /Linux-v5.15/drivers/staging/rtl8723bs/hal/ |
| D | sdio_ops.c | 900 struct c2h_evt_hdr_88xx *c2h_evt; in sd_int_dpc() local 902 c2h_evt = rtw_zmalloc(16); in sd_int_dpc() 903 if (c2h_evt) { in sd_int_dpc() 904 if (c2h_evt_read_88xx(adapter, (u8 *)c2h_evt) == _SUCCESS) { in sd_int_dpc() 905 if (c2h_id_filter_ccx_8723b((u8 *)c2h_evt)) { in sd_int_dpc() 907 rtw_hal_c2h_handler(adapter, (u8 *)c2h_evt); in sd_int_dpc() 908 kfree(c2h_evt); in sd_int_dpc() 910 rtw_c2h_wk_cmd(adapter, (u8 *)c2h_evt); in sd_int_dpc() 913 kfree(c2h_evt); in sd_int_dpc()
|
| D | hal_com.c | 503 struct c2h_evt_hdr_88xx *c2h_evt; in c2h_evt_read_88xx() local 517 c2h_evt = (struct c2h_evt_hdr_88xx *)buf; in c2h_evt_read_88xx() 519 memset(c2h_evt, 0, 16); in c2h_evt_read_88xx() 521 c2h_evt->id = rtw_read8(adapter, REG_C2HEVT_MSG_NORMAL); in c2h_evt_read_88xx() 522 c2h_evt->seq = rtw_read8(adapter, REG_C2HEVT_CMD_SEQ_88XX); in c2h_evt_read_88xx() 523 c2h_evt->plen = rtw_read8(adapter, REG_C2HEVT_CMD_LEN_88XX); in c2h_evt_read_88xx() 526 for (i = 0; i < c2h_evt->plen; i++) in c2h_evt_read_88xx() 527 c2h_evt->payload[i] = rtw_read8(adapter, REG_C2HEVT_MSG_NORMAL + 2 + i); in c2h_evt_read_88xx()
|
| D | hal_intf.c | 385 s32 rtw_hal_c2h_handler(struct adapter *adapter, u8 *c2h_evt) in rtw_hal_c2h_handler() argument 389 ret = adapter->HalFunc.c2h_handler(adapter, c2h_evt); in rtw_hal_c2h_handler()
|
| D | rtl8723b_hal_init.c | 3146 struct c2h_evt_hdr_88xx *c2h_evt = (struct c2h_evt_hdr_88xx *)buf; in c2h_id_filter_ccx_8723b() local 3148 if (c2h_evt->id == C2H_CCX_TX_RPT) in c2h_id_filter_ccx_8723b()
|
| /Linux-v5.15/drivers/staging/rtl8723bs/core/ |
| D | rtw_cmd.c | 1775 u8 rtw_c2h_wk_cmd(struct adapter *padapter, u8 *c2h_evt) in rtw_c2h_wk_cmd() argument 1797 pdrvextra_cmd_parm->size = c2h_evt?16:0; in rtw_c2h_wk_cmd() 1798 pdrvextra_cmd_parm->pbuf = c2h_evt; in rtw_c2h_wk_cmd() 1813 u8 *c2h_evt; in c2h_wk_callback() local 1819 c2h_evt = (u8 *)rtw_cbuf_pop(evtpriv->c2h_queue); in c2h_wk_callback() 1820 if (c2h_evt) { in c2h_wk_callback() 1824 c2h_evt = rtw_malloc(16); in c2h_wk_callback() 1825 if (c2h_evt) { in c2h_wk_callback() 1827 if (c2h_evt_read_88xx(adapter, c2h_evt) != _SUCCESS) { in c2h_wk_callback() 1828 kfree(c2h_evt); in c2h_wk_callback() [all …]
|
| /Linux-v5.15/drivers/staging/rtl8723bs/include/ |
| D | rtw_cmd.h | 108 #define c2h_evt_valid(c2h_evt) ((c2h_evt)->id || (c2h_evt)->plen) argument 619 extern u8 rtw_c2h_wk_cmd(struct adapter *padapter, u8 *c2h_evt);
|
| D | hal_intf.h | 162 typedef s32 (*c2h_id_filter)(u8 *c2h_evt); 254 s32 (*c2h_handler)(struct adapter *padapter, u8 *c2h_evt); 353 s32 rtw_hal_c2h_handler(struct adapter *adapter, u8 *c2h_evt);
|
| /Linux-v5.15/drivers/staging/r8188eu/include/ |
| D | rtw_cmd.h | 79 #define c2h_evt_exist(c2h_evt) ((c2h_evt)->id || (c2h_evt)->plen) argument 798 u8 rtw_c2h_wk_cmd(struct adapter *padapter, u8 *c2h_evt);
|
| D | hal_intf.h | 255 struct c2h_evt_hdr *c2h_evt); 406 struct c2h_evt_hdr *c2h_evt);
|