Home
last modified time | relevance | path

Searched refs:h2c (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.4/drivers/net/wireless/realtek/rtl8xxxu/
Drtl8xxxu_8723b.c309 struct h2c_cmd h2c; in rtl8723bu_write_btreg() local
312 memset(&h2c, 0, sizeof(struct h2c_cmd)); in rtl8723bu_write_btreg()
313 h2c.bt_mp_oper.cmd = H2C_8723B_BT_MP_OPER; in rtl8723bu_write_btreg()
314 h2c.bt_mp_oper.operreq = 0 | (reqnum << 4); in rtl8723bu_write_btreg()
315 h2c.bt_mp_oper.opcode = BT_MP_OP_WRITE_REG_VALUE; in rtl8723bu_write_btreg()
316 h2c.bt_mp_oper.data = data; in rtl8723bu_write_btreg()
317 rtl8xxxu_gen2_h2c_cmd(priv, &h2c, sizeof(h2c.bt_mp_oper)); in rtl8723bu_write_btreg()
320 memset(&h2c, 0, sizeof(struct h2c_cmd)); in rtl8723bu_write_btreg()
321 h2c.bt_mp_oper.cmd = H2C_8723B_BT_MP_OPER; in rtl8723bu_write_btreg()
322 h2c.bt_mp_oper.operreq = 0 | (reqnum << 4); in rtl8723bu_write_btreg()
[all …]
Drtl8xxxu_core.c890 rtl8xxxu_gen1_h2c_cmd(struct rtl8xxxu_priv *priv, struct h2c_cmd *h2c, int len) in rtl8xxxu_gen1_h2c_cmd() argument
923 rtl8xxxu_write16(priv, mbox_ext_reg, le16_to_cpu(h2c->raw.ext)); in rtl8xxxu_gen1_h2c_cmd()
926 le16_to_cpu(h2c->raw.ext)); in rtl8xxxu_gen1_h2c_cmd()
928 rtl8xxxu_write32(priv, mbox_reg, le32_to_cpu(h2c->raw.data)); in rtl8xxxu_gen1_h2c_cmd()
930 dev_info(dev, "H2C %08x\n", le32_to_cpu(h2c->raw.data)); in rtl8xxxu_gen1_h2c_cmd()
940 rtl8xxxu_gen2_h2c_cmd(struct rtl8xxxu_priv *priv, struct h2c_cmd *h2c, int len) in rtl8xxxu_gen2_h2c_cmd() argument
974 le32_to_cpu(h2c->raw_wide.ext)); in rtl8xxxu_gen2_h2c_cmd()
977 le32_to_cpu(h2c->raw_wide.ext)); in rtl8xxxu_gen2_h2c_cmd()
979 rtl8xxxu_write32(priv, mbox_reg, le32_to_cpu(h2c->raw.data)); in rtl8xxxu_gen2_h2c_cmd()
981 dev_info(dev, "H2C %08x\n", le32_to_cpu(h2c->raw.data)); in rtl8xxxu_gen2_h2c_cmd()
[all …]
Drtl8xxxu.h1401 struct h2c_cmd *h2c, int len);
/Linux-v5.4/drivers/net/wireless/realtek/rtw88/
Dfw.c87 u8 *h2c) in rtw_fw_send_h2c_command() argument
97 h2c[3], h2c[2], h2c[1], h2c[0], in rtw_fw_send_h2c_command()
98 h2c[7], h2c[6], h2c[5], h2c[4]); in rtw_fw_send_h2c_command()
100 spin_lock(&rtwdev->h2c.lock); in rtw_fw_send_h2c_command()
102 box = rtwdev->h2c.last_box_num; in rtw_fw_send_h2c_command()
136 rtw_write8(rtwdev, box_reg + idx, h2c[idx]); in rtw_fw_send_h2c_command()
138 rtw_write8(rtwdev, box_ex_reg + idx, h2c[idx + 4]); in rtw_fw_send_h2c_command()
140 if (++rtwdev->h2c.last_box_num >= 4) in rtw_fw_send_h2c_command()
141 rtwdev->h2c.last_box_num = 0; in rtw_fw_send_h2c_command()
144 spin_unlock(&rtwdev->h2c.lock); in rtw_fw_send_h2c_command()
[all …]
Dmac.c707 rtwdev->h2c.last_box_num = 0; in rtw_download_firmware()
708 rtwdev->h2c.seq = 0; in rtw_download_firmware()
Dmain.h1360 } h2c; member
Dmain.c1166 spin_lock_init(&rtwdev->h2c.lock); in rtw_core_init()
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Ddm.c492 u8 h2c[4] = { 0 }; in rtl92ee_dm_check_rssi_monitor() local
509 h2c[3] = 0; in rtl92ee_dm_check_rssi_monitor()
510 h2c[2] = (u8)(dm->undec_sm_pwdb & 0xFF); in rtl92ee_dm_check_rssi_monitor()
511 h2c[1] = 0x20; in rtl92ee_dm_check_rssi_monitor()
512 h2c[0] = ++i; in rtl92ee_dm_check_rssi_monitor()
513 rtl92ee_fill_h2c_cmd(hw, H2C_92E_RSSI_REPORT, 4, h2c); in rtl92ee_dm_check_rssi_monitor()
537 h2c[3] = 0; in rtl92ee_dm_check_rssi_monitor()
538 h2c[2] = (u8)(dm->undec_sm_pwdb & 0xFF); in rtl92ee_dm_check_rssi_monitor()
539 h2c[1] = 0x20; in rtl92ee_dm_check_rssi_monitor()
540 h2c[0] = 0; in rtl92ee_dm_check_rssi_monitor()
[all …]