Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/net/wireless/realtek/rtw89/
Dfw.h1503 static inline void SET_BCN_UPD_PORT(void *h2c, u32 val) in SET_BCN_UPD_PORT() argument
1505 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 0)); in SET_BCN_UPD_PORT()
1508 static inline void SET_BCN_UPD_MBSSID(void *h2c, u32 val) in SET_BCN_UPD_MBSSID() argument
1510 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 8)); in SET_BCN_UPD_MBSSID()
1513 static inline void SET_BCN_UPD_BAND(void *h2c, u32 val) in SET_BCN_UPD_BAND() argument
1515 le32p_replace_bits((__le32 *)h2c, val, GENMASK(23, 16)); in SET_BCN_UPD_BAND()
1518 static inline void SET_BCN_UPD_GRP_IE_OFST(void *h2c, u32 val) in SET_BCN_UPD_GRP_IE_OFST() argument
1520 le32p_replace_bits((__le32 *)h2c, (val - 24) | BIT(7), GENMASK(31, 24)); in SET_BCN_UPD_GRP_IE_OFST()
1523 static inline void SET_BCN_UPD_MACID(void *h2c, u32 val) in SET_BCN_UPD_MACID() argument
1525 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(7, 0)); in SET_BCN_UPD_MACID()
[all …]
Dfw.c2093 struct rtw89_fw_macid_pause_grp h2c = {{0}}; in rtw89_fw_h2c_macid_pause() local
2103 h2c.mask_grp[grp] = cpu_to_le32(BIT(sh)); in rtw89_fw_h2c_macid_pause()
2105 h2c.pause_grp[grp] = cpu_to_le32(BIT(sh)); in rtw89_fw_h2c_macid_pause()
2106 skb_put_data(skb, &h2c, len); in rtw89_fw_h2c_macid_pause()
2241 struct rtw89_h2c_bcnfltr *h2c; in rtw89_fw_h2c_set_bcn_fltr_cfg() local
2242 u32 len = sizeof(*h2c); in rtw89_fw_h2c_set_bcn_fltr_cfg()
2259 h2c = (struct rtw89_h2c_bcnfltr *)skb->data; in rtw89_fw_h2c_set_bcn_fltr_cfg()
2261 h2c->w0 = le32_encode_bits(connect, RTW89_H2C_BCNFLTR_W0_MON_RSSI) | in rtw89_fw_h2c_set_bcn_fltr_cfg()
2292 struct rtw89_h2c_ofld_rssi *h2c; in rtw89_fw_h2c_rssi_offload() local
2293 u32 len = sizeof(*h2c); in rtw89_fw_h2c_rssi_offload()
[all …]
Ddebug.c3036 u8 *h2c; in rtw89_debug_priv_send_h2c_set() local
3040 h2c = rtw89_hex2bin_user(rtwdev, user_buf, count); in rtw89_debug_priv_send_h2c_set()
3041 if (IS_ERR(h2c)) in rtw89_debug_priv_send_h2c_set()
3044 ret = rtw89_fw_h2c_raw(rtwdev, h2c, h2c_len); in rtw89_debug_priv_send_h2c_set()
3046 kfree(h2c); in rtw89_debug_priv_send_h2c_set()
3061 seq_printf(m, "%d: %*ph\n", ++seq, early_h2c->h2c_len, early_h2c->h2c); in rtw89_debug_priv_early_h2c_get()
3075 u8 *h2c; in rtw89_debug_priv_early_h2c_set() local
3078 h2c = rtw89_hex2bin_user(rtwdev, user_buf, count); in rtw89_debug_priv_early_h2c_set()
3079 if (IS_ERR(h2c)) in rtw89_debug_priv_early_h2c_set()
3082 if (h2c_len >= 2 && h2c[0] == 0x00 && h2c[1] == 0x00) { in rtw89_debug_priv_early_h2c_set()
[all …]
Dcore.h3205 u16 h2c; member
4275 u8 *h2c; member
Dmac.c1739 SET_QUOTA(h2c, PLE, 3); in ple_quota_cfg()
/linux-6.6.21/drivers/net/wireless/realtek/rtl8xxxu/
Drtl8xxxu_8723b.c356 struct h2c_cmd h2c; in rtl8723bu_write_btreg() local
359 memset(&h2c, 0, sizeof(struct h2c_cmd)); in rtl8723bu_write_btreg()
360 h2c.bt_mp_oper.cmd = H2C_8723B_BT_MP_OPER; in rtl8723bu_write_btreg()
361 h2c.bt_mp_oper.operreq = 0 | (reqnum << 4); in rtl8723bu_write_btreg()
362 h2c.bt_mp_oper.opcode = BT_MP_OP_WRITE_REG_VALUE; in rtl8723bu_write_btreg()
363 h2c.bt_mp_oper.data = data; in rtl8723bu_write_btreg()
364 rtl8xxxu_gen2_h2c_cmd(priv, &h2c, sizeof(h2c.bt_mp_oper)); in rtl8723bu_write_btreg()
367 memset(&h2c, 0, sizeof(struct h2c_cmd)); in rtl8723bu_write_btreg()
368 h2c.bt_mp_oper.cmd = H2C_8723B_BT_MP_OPER; in rtl8723bu_write_btreg()
369 h2c.bt_mp_oper.operreq = 0 | (reqnum << 4); in rtl8723bu_write_btreg()
[all …]
Drtl8xxxu_core.c992 rtl8xxxu_gen1_h2c_cmd(struct rtl8xxxu_priv *priv, struct h2c_cmd *h2c, int len) in rtl8xxxu_gen1_h2c_cmd() argument
1025 rtl8xxxu_write16(priv, mbox_ext_reg, le16_to_cpu(h2c->raw.ext)); in rtl8xxxu_gen1_h2c_cmd()
1028 le16_to_cpu(h2c->raw.ext)); in rtl8xxxu_gen1_h2c_cmd()
1030 rtl8xxxu_write32(priv, mbox_reg, le32_to_cpu(h2c->raw.data)); in rtl8xxxu_gen1_h2c_cmd()
1032 dev_info(dev, "H2C %08x\n", le32_to_cpu(h2c->raw.data)); in rtl8xxxu_gen1_h2c_cmd()
1042 rtl8xxxu_gen2_h2c_cmd(struct rtl8xxxu_priv *priv, struct h2c_cmd *h2c, int len) in rtl8xxxu_gen2_h2c_cmd() argument
1076 le32_to_cpu(h2c->raw_wide.ext)); in rtl8xxxu_gen2_h2c_cmd()
1079 le32_to_cpu(h2c->raw_wide.ext)); in rtl8xxxu_gen2_h2c_cmd()
1081 rtl8xxxu_write32(priv, mbox_reg, le32_to_cpu(h2c->raw.data)); in rtl8xxxu_gen2_h2c_cmd()
1083 dev_info(dev, "H2C %08x\n", le32_to_cpu(h2c->raw.data)); in rtl8xxxu_gen2_h2c_cmd()
[all …]
Drtl8xxxu.h2072 struct h2c_cmd *h2c, int len);
/linux-6.6.21/drivers/net/wireless/realtek/rtw88/
Dfw.c312 struct rtw_h2c_register *h2c) in rtw_fw_send_h2c_command_register() argument
318 rtw_dbg(rtwdev, RTW_DBG_FW, "send H2C content %08x %08x\n", h2c->w0, in rtw_fw_send_h2c_command_register()
319 h2c->w1); in rtw_fw_send_h2c_command_register()
323 box = rtwdev->h2c.last_box_num; in rtw_fw_send_h2c_command_register()
355 rtw_write32(rtwdev, box_ex_reg, h2c->w1); in rtw_fw_send_h2c_command_register()
356 rtw_write32(rtwdev, box_reg, h2c->w0); in rtw_fw_send_h2c_command_register()
358 if (++rtwdev->h2c.last_box_num >= 4) in rtw_fw_send_h2c_command_register()
359 rtwdev->h2c.last_box_num = 0; in rtw_fw_send_h2c_command_register()
363 u8 *h2c) in rtw_fw_send_h2c_command() argument
365 struct rtw_h2c_cmd *h2c_cmd = (struct rtw_h2c_cmd *)h2c; in rtw_fw_send_h2c_command()
[all …]
Dmac.c809 rtwdev->h2c.last_box_num = 0; in __rtw_download_firmware()
810 rtwdev->h2c.seq = 0; in __rtw_download_firmware()
952 rtwdev->h2c.last_box_num = 0; in __rtw_download_firmware_legacy()
953 rtwdev->h2c.seq = 0; in __rtw_download_firmware_legacy()
Dfw.h868 void rtw_fw_h2c_cmd_dbg(struct rtw_dev *rtwdev, u8 *h2c);
Ddebug.c1266 rtw_debugfs_add_w(h2c); in rtw_debugfs_init()
Dmain.h2033 } h2c; member
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Ddm.c374 u8 h2c[4] = { 0 }; in rtl92ee_dm_check_rssi_monitor() local
391 h2c[3] = 0; in rtl92ee_dm_check_rssi_monitor()
392 h2c[2] = (u8)(dm->undec_sm_pwdb & 0xFF); in rtl92ee_dm_check_rssi_monitor()
393 h2c[1] = 0x20; in rtl92ee_dm_check_rssi_monitor()
394 h2c[0] = ++i; in rtl92ee_dm_check_rssi_monitor()
395 rtl92ee_fill_h2c_cmd(hw, H2C_92E_RSSI_REPORT, 4, h2c); in rtl92ee_dm_check_rssi_monitor()
419 h2c[3] = 0; in rtl92ee_dm_check_rssi_monitor()
420 h2c[2] = (u8)(dm->undec_sm_pwdb & 0xFF); in rtl92ee_dm_check_rssi_monitor()
421 h2c[1] = 0x20; in rtl92ee_dm_check_rssi_monitor()
422 h2c[0] = 0; in rtl92ee_dm_check_rssi_monitor()
[all …]