Lines Matching refs:h2c
275 u8 *h2c) in rtw_fw_send_h2c_command() argument
285 h2c[3], h2c[2], h2c[1], h2c[0], in rtw_fw_send_h2c_command()
286 h2c[7], h2c[6], h2c[5], h2c[4]); in rtw_fw_send_h2c_command()
288 spin_lock(&rtwdev->h2c.lock); in rtw_fw_send_h2c_command()
290 box = rtwdev->h2c.last_box_num; in rtw_fw_send_h2c_command()
323 rtw_write8(rtwdev, box_reg + idx, h2c[idx]); in rtw_fw_send_h2c_command()
325 rtw_write8(rtwdev, box_ex_reg + idx, h2c[idx + 4]); in rtw_fw_send_h2c_command()
327 if (++rtwdev->h2c.last_box_num >= 4) in rtw_fw_send_h2c_command()
328 rtwdev->h2c.last_box_num = 0; in rtw_fw_send_h2c_command()
331 spin_unlock(&rtwdev->h2c.lock); in rtw_fw_send_h2c_command()
334 void rtw_fw_h2c_cmd_dbg(struct rtw_dev *rtwdev, u8 *h2c) in rtw_fw_h2c_cmd_dbg() argument
336 rtw_fw_send_h2c_command(rtwdev, h2c); in rtw_fw_h2c_cmd_dbg()
343 spin_lock(&rtwdev->h2c.lock); in rtw_fw_send_h2c_packet()
345 FW_OFFLOAD_H2C_SET_SEQ_NUM(h2c_pkt, rtwdev->h2c.seq); in rtw_fw_send_h2c_packet()
349 rtwdev->h2c.seq++; in rtw_fw_send_h2c_packet()
351 spin_unlock(&rtwdev->h2c.lock); in rtw_fw_send_h2c_packet()