• Home
  • Raw
  • Download

Lines Matching refs:h2c_pkt

339 static void rtw_fw_send_h2c_packet(struct rtw_dev *rtwdev, u8 *h2c_pkt)  in rtw_fw_send_h2c_packet()  argument
345 FW_OFFLOAD_H2C_SET_SEQ_NUM(h2c_pkt, rtwdev->h2c.seq); in rtw_fw_send_h2c_packet()
346 ret = rtw_hci_write_data_h2c(rtwdev, h2c_pkt, H2C_PKT_SIZE); in rtw_fw_send_h2c_packet()
358 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_send_general_info() local
364 rtw_h2c_pkt_set_header(h2c_pkt, H2C_PKT_GENERAL_INFO); in rtw_fw_send_general_info()
366 SET_PKT_H2C_TOTAL_LEN(h2c_pkt, total_size); in rtw_fw_send_general_info()
368 GENERAL_INFO_SET_FW_TX_BOUNDARY(h2c_pkt, in rtw_fw_send_general_info()
372 rtw_fw_send_h2c_packet(rtwdev, h2c_pkt); in rtw_fw_send_general_info()
380 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_send_phydm_info() local
392 rtw_h2c_pkt_set_header(h2c_pkt, H2C_PKT_PHYDM_INFO); in rtw_fw_send_phydm_info()
394 SET_PKT_H2C_TOTAL_LEN(h2c_pkt, total_size); in rtw_fw_send_phydm_info()
395 PHYDM_INFO_SET_REF_TYPE(h2c_pkt, efuse->rfe_option); in rtw_fw_send_phydm_info()
396 PHYDM_INFO_SET_RF_TYPE(h2c_pkt, fw_rf_type); in rtw_fw_send_phydm_info()
397 PHYDM_INFO_SET_CUT_VER(h2c_pkt, hal->cut_version); in rtw_fw_send_phydm_info()
398 PHYDM_INFO_SET_RX_ANT_STATUS(h2c_pkt, hal->antenna_tx); in rtw_fw_send_phydm_info()
399 PHYDM_INFO_SET_TX_ANT_STATUS(h2c_pkt, hal->antenna_rx); in rtw_fw_send_phydm_info()
401 rtw_fw_send_h2c_packet(rtwdev, h2c_pkt); in rtw_fw_send_phydm_info()
406 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_do_iqk() local
409 rtw_h2c_pkt_set_header(h2c_pkt, H2C_PKT_IQK); in rtw_fw_do_iqk()
410 SET_PKT_H2C_TOTAL_LEN(h2c_pkt, total_size); in rtw_fw_do_iqk()
411 IQK_SET_CLEAR(h2c_pkt, para->clear); in rtw_fw_do_iqk()
412 IQK_SET_SEGMENT_IQK(h2c_pkt, para->segment_iqk); in rtw_fw_do_iqk()
414 rtw_fw_send_h2c_packet(rtwdev, h2c_pkt); in rtw_fw_do_iqk()
420 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_inform_rfk_status() local
422 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_WIFI_CALIBRATION); in rtw_fw_inform_rfk_status()
424 RFK_SET_INFORM_START(h2c_pkt, start); in rtw_fw_inform_rfk_status()
426 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_inform_rfk_status()
432 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_query_bt_info() local
434 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_QUERY_BT_INFO); in rtw_fw_query_bt_info()
436 SET_QUERY_BT_INFO(h2c_pkt, true); in rtw_fw_query_bt_info()
438 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_query_bt_info()
443 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_wl_ch_info() local
445 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_WL_CH_INFO); in rtw_fw_wl_ch_info()
447 SET_WL_CH_INFO_LINK(h2c_pkt, link); in rtw_fw_wl_ch_info()
448 SET_WL_CH_INFO_CHNL(h2c_pkt, ch); in rtw_fw_wl_ch_info()
449 SET_WL_CH_INFO_BW(h2c_pkt, bw); in rtw_fw_wl_ch_info()
451 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_wl_ch_info()
457 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_query_bt_mp_info() local
459 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_QUERY_BT_MP_INFO); in rtw_fw_query_bt_mp_info()
461 SET_BT_MP_INFO_SEQ(h2c_pkt, req->seq); in rtw_fw_query_bt_mp_info()
462 SET_BT_MP_INFO_OP_CODE(h2c_pkt, req->op_code); in rtw_fw_query_bt_mp_info()
463 SET_BT_MP_INFO_PARA1(h2c_pkt, req->para1); in rtw_fw_query_bt_mp_info()
464 SET_BT_MP_INFO_PARA2(h2c_pkt, req->para2); in rtw_fw_query_bt_mp_info()
465 SET_BT_MP_INFO_PARA3(h2c_pkt, req->para3); in rtw_fw_query_bt_mp_info()
467 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_query_bt_mp_info()
472 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_force_bt_tx_power() local
475 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_FORCE_BT_TX_POWER); in rtw_fw_force_bt_tx_power()
477 SET_BT_TX_POWER_INDEX(h2c_pkt, index); in rtw_fw_force_bt_tx_power()
479 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_force_bt_tx_power()
484 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_bt_ignore_wlan_action() local
486 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_IGNORE_WLAN_ACTION); in rtw_fw_bt_ignore_wlan_action()
488 SET_IGNORE_WLAN_ACTION_EN(h2c_pkt, enable); in rtw_fw_bt_ignore_wlan_action()
490 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_bt_ignore_wlan_action()
496 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_coex_tdma_type() local
498 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_COEX_TDMA_TYPE); in rtw_fw_coex_tdma_type()
500 SET_COEX_TDMA_TYPE_PARA1(h2c_pkt, para1); in rtw_fw_coex_tdma_type()
501 SET_COEX_TDMA_TYPE_PARA2(h2c_pkt, para2); in rtw_fw_coex_tdma_type()
502 SET_COEX_TDMA_TYPE_PARA3(h2c_pkt, para3); in rtw_fw_coex_tdma_type()
503 SET_COEX_TDMA_TYPE_PARA4(h2c_pkt, para4); in rtw_fw_coex_tdma_type()
504 SET_COEX_TDMA_TYPE_PARA5(h2c_pkt, para5); in rtw_fw_coex_tdma_type()
506 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_coex_tdma_type()
511 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_bt_wifi_control() local
513 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_BT_WIFI_CONTROL); in rtw_fw_bt_wifi_control()
515 SET_BT_WIFI_CONTROL_OP_CODE(h2c_pkt, op_code); in rtw_fw_bt_wifi_control()
517 SET_BT_WIFI_CONTROL_DATA1(h2c_pkt, *data); in rtw_fw_bt_wifi_control()
518 SET_BT_WIFI_CONTROL_DATA2(h2c_pkt, *(data + 1)); in rtw_fw_bt_wifi_control()
519 SET_BT_WIFI_CONTROL_DATA3(h2c_pkt, *(data + 2)); in rtw_fw_bt_wifi_control()
520 SET_BT_WIFI_CONTROL_DATA4(h2c_pkt, *(data + 3)); in rtw_fw_bt_wifi_control()
521 SET_BT_WIFI_CONTROL_DATA5(h2c_pkt, *(data + 4)); in rtw_fw_bt_wifi_control()
523 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_bt_wifi_control()
528 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_send_rssi_info() local
532 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_RSSI_MONITOR); in rtw_fw_send_rssi_info()
534 SET_RSSI_INFO_MACID(h2c_pkt, si->mac_id); in rtw_fw_send_rssi_info()
535 SET_RSSI_INFO_RSSI(h2c_pkt, rssi); in rtw_fw_send_rssi_info()
536 SET_RSSI_INFO_STBC(h2c_pkt, stbc_en); in rtw_fw_send_rssi_info()
538 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_send_rssi_info()
543 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_send_ra_info() local
547 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_RA_INFO); in rtw_fw_send_ra_info()
549 SET_RA_INFO_MACID(h2c_pkt, si->mac_id); in rtw_fw_send_ra_info()
550 SET_RA_INFO_RATE_ID(h2c_pkt, si->rate_id); in rtw_fw_send_ra_info()
551 SET_RA_INFO_INIT_RA_LVL(h2c_pkt, si->init_ra_lv); in rtw_fw_send_ra_info()
552 SET_RA_INFO_SGI_EN(h2c_pkt, si->sgi_enable); in rtw_fw_send_ra_info()
553 SET_RA_INFO_BW_MODE(h2c_pkt, si->bw_mode); in rtw_fw_send_ra_info()
554 SET_RA_INFO_LDPC(h2c_pkt, !!si->ldpc_en); in rtw_fw_send_ra_info()
555 SET_RA_INFO_NO_UPDATE(h2c_pkt, no_update); in rtw_fw_send_ra_info()
556 SET_RA_INFO_VHT_EN(h2c_pkt, si->vht_enable); in rtw_fw_send_ra_info()
557 SET_RA_INFO_DIS_PT(h2c_pkt, disable_pt); in rtw_fw_send_ra_info()
558 SET_RA_INFO_RA_MASK0(h2c_pkt, (si->ra_mask & 0xff)); in rtw_fw_send_ra_info()
559 SET_RA_INFO_RA_MASK1(h2c_pkt, (si->ra_mask & 0xff00) >> 8); in rtw_fw_send_ra_info()
560 SET_RA_INFO_RA_MASK2(h2c_pkt, (si->ra_mask & 0xff0000) >> 16); in rtw_fw_send_ra_info()
561 SET_RA_INFO_RA_MASK3(h2c_pkt, (si->ra_mask & 0xff000000) >> 24); in rtw_fw_send_ra_info()
566 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_send_ra_info()
571 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_media_status_report() local
573 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_MEDIA_STATUS_RPT); in rtw_fw_media_status_report()
574 MEDIA_STATUS_RPT_SET_OP_MODE(h2c_pkt, connect); in rtw_fw_media_status_report()
575 MEDIA_STATUS_RPT_SET_MACID(h2c_pkt, mac_id); in rtw_fw_media_status_report()
577 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_media_status_report()
584 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_update_wl_phy_info() local
586 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_WL_PHY_INFO); in rtw_fw_update_wl_phy_info()
587 SET_WL_PHY_INFO_TX_TP(h2c_pkt, stats->tx_throughput); in rtw_fw_update_wl_phy_info()
588 SET_WL_PHY_INFO_RX_TP(h2c_pkt, stats->rx_throughput); in rtw_fw_update_wl_phy_info()
589 SET_WL_PHY_INFO_TX_RATE_DESC(h2c_pkt, dm_info->tx_rate); in rtw_fw_update_wl_phy_info()
590 SET_WL_PHY_INFO_RX_RATE_DESC(h2c_pkt, dm_info->curr_rx_rate); in rtw_fw_update_wl_phy_info()
591 SET_WL_PHY_INFO_RX_EVM(h2c_pkt, dm_info->rx_evm_dbm[RF_PATH_A]); in rtw_fw_update_wl_phy_info()
592 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_update_wl_phy_info()
604 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_beacon_filter_config() local
610 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_BCN_FILTER_OFFLOAD_P1); in rtw_fw_beacon_filter_config()
611 SET_BCN_FILTER_OFFLOAD_P1_ENABLE(h2c_pkt, connect); in rtw_fw_beacon_filter_config()
612 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_beacon_filter_config()
616 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_BCN_FILTER_OFFLOAD_P0); in rtw_fw_beacon_filter_config()
617 ether_addr_copy(&h2c_pkt[1], bss_conf->bssid); in rtw_fw_beacon_filter_config()
618 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_beacon_filter_config()
620 memset(h2c_pkt, 0, sizeof(h2c_pkt)); in rtw_fw_beacon_filter_config()
622 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_BCN_FILTER_OFFLOAD_P1); in rtw_fw_beacon_filter_config()
623 SET_BCN_FILTER_OFFLOAD_P1_ENABLE(h2c_pkt, connect); in rtw_fw_beacon_filter_config()
624 SET_BCN_FILTER_OFFLOAD_P1_OFFLOAD_MODE(h2c_pkt, in rtw_fw_beacon_filter_config()
626 SET_BCN_FILTER_OFFLOAD_P1_THRESHOLD(h2c_pkt, (u8)threshold); in rtw_fw_beacon_filter_config()
627 SET_BCN_FILTER_OFFLOAD_P1_BCN_LOSS_CNT(h2c_pkt, BCN_LOSS_CNT); in rtw_fw_beacon_filter_config()
628 SET_BCN_FILTER_OFFLOAD_P1_MACID(h2c_pkt, si->mac_id); in rtw_fw_beacon_filter_config()
629 SET_BCN_FILTER_OFFLOAD_P1_HYST(h2c_pkt, bss_conf->cqm_rssi_hyst); in rtw_fw_beacon_filter_config()
630 SET_BCN_FILTER_OFFLOAD_P1_BCN_INTERVAL(h2c_pkt, bss_conf->beacon_int); in rtw_fw_beacon_filter_config()
631 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_beacon_filter_config()
637 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_set_pwr_mode() local
639 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_SET_PWR_MODE); in rtw_fw_set_pwr_mode()
641 SET_PWR_MODE_SET_MODE(h2c_pkt, conf->mode); in rtw_fw_set_pwr_mode()
642 SET_PWR_MODE_SET_RLBM(h2c_pkt, conf->rlbm); in rtw_fw_set_pwr_mode()
643 SET_PWR_MODE_SET_SMART_PS(h2c_pkt, conf->smart_ps); in rtw_fw_set_pwr_mode()
644 SET_PWR_MODE_SET_AWAKE_INTERVAL(h2c_pkt, conf->awake_interval); in rtw_fw_set_pwr_mode()
645 SET_PWR_MODE_SET_PORT_ID(h2c_pkt, conf->port_id); in rtw_fw_set_pwr_mode()
646 SET_PWR_MODE_SET_PWR_STATE(h2c_pkt, conf->state); in rtw_fw_set_pwr_mode()
648 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_set_pwr_mode()
653 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_set_keep_alive_cmd() local
660 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_KEEP_ALIVE); in rtw_fw_set_keep_alive_cmd()
661 SET_KEEP_ALIVE_ENABLE(h2c_pkt, enable); in rtw_fw_set_keep_alive_cmd()
662 SET_KEEP_ALIVE_ADOPT(h2c_pkt, mode.adopt); in rtw_fw_set_keep_alive_cmd()
663 SET_KEEP_ALIVE_PKT_TYPE(h2c_pkt, mode.pkt_type); in rtw_fw_set_keep_alive_cmd()
664 SET_KEEP_ALIVE_CHECK_PERIOD(h2c_pkt, mode.period); in rtw_fw_set_keep_alive_cmd()
666 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_set_keep_alive_cmd()
672 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_set_disconnect_decision_cmd() local
679 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_DISCONNECT_DECISION); in rtw_fw_set_disconnect_decision_cmd()
682 SET_DISCONNECT_DECISION_ENABLE(h2c_pkt, enable); in rtw_fw_set_disconnect_decision_cmd()
683 SET_DISCONNECT_DECISION_ADOPT(h2c_pkt, mode.adopt); in rtw_fw_set_disconnect_decision_cmd()
684 SET_DISCONNECT_DECISION_CHECK_PERIOD(h2c_pkt, mode.period); in rtw_fw_set_disconnect_decision_cmd()
685 SET_DISCONNECT_DECISION_TRY_PKT_NUM(h2c_pkt, mode.retry_count); in rtw_fw_set_disconnect_decision_cmd()
688 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_set_disconnect_decision_cmd()
694 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_set_wowlan_ctrl_cmd() local
696 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_WOWLAN); in rtw_fw_set_wowlan_ctrl_cmd()
698 SET_WOWLAN_FUNC_ENABLE(h2c_pkt, enable); in rtw_fw_set_wowlan_ctrl_cmd()
701 SET_WOWLAN_MAGIC_PKT_ENABLE(h2c_pkt, enable); in rtw_fw_set_wowlan_ctrl_cmd()
703 SET_WOWLAN_DEAUTH_WAKEUP_ENABLE(h2c_pkt, enable); in rtw_fw_set_wowlan_ctrl_cmd()
705 SET_WOWLAN_REKEY_WAKEUP_ENABLE(h2c_pkt, enable); in rtw_fw_set_wowlan_ctrl_cmd()
707 SET_WOWLAN_PATTERN_MATCH_ENABLE(h2c_pkt, enable); in rtw_fw_set_wowlan_ctrl_cmd()
710 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_set_wowlan_ctrl_cmd()
717 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_set_aoac_global_info_cmd() local
719 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_AOAC_GLOBAL_INFO); in rtw_fw_set_aoac_global_info_cmd()
721 SET_AOAC_GLOBAL_INFO_PAIRWISE_ENC_ALG(h2c_pkt, pairwise_key_enc); in rtw_fw_set_aoac_global_info_cmd()
722 SET_AOAC_GLOBAL_INFO_GROUP_ENC_ALG(h2c_pkt, group_key_enc); in rtw_fw_set_aoac_global_info_cmd()
724 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_set_aoac_global_info_cmd()
729 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_set_remote_wake_ctrl_cmd() local
731 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_REMOTE_WAKE_CTRL); in rtw_fw_set_remote_wake_ctrl_cmd()
733 SET_REMOTE_WAKECTRL_ENABLE(h2c_pkt, enable); in rtw_fw_set_remote_wake_ctrl_cmd()
736 SET_REMOTE_WAKE_CTRL_NLO_OFFLOAD_EN(h2c_pkt, enable); in rtw_fw_set_remote_wake_ctrl_cmd()
738 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_set_remote_wake_ctrl_cmd()
757 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_set_nlo_info() local
762 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_NLO_INFO); in rtw_fw_set_nlo_info()
764 SET_NLO_FUN_EN(h2c_pkt, enable); in rtw_fw_set_nlo_info()
767 SET_NLO_PS_32K(h2c_pkt, enable); in rtw_fw_set_nlo_info()
768 SET_NLO_IGNORE_SECURITY(h2c_pkt, enable); in rtw_fw_set_nlo_info()
769 SET_NLO_LOC_NLO_INFO(h2c_pkt, loc_nlo); in rtw_fw_set_nlo_info()
772 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_set_nlo_info()
778 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_set_pg_info() local
784 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_LPS_PG_INFO); in rtw_fw_set_pg_info()
786 LPS_PG_INFO_LOC(h2c_pkt, loc_pg); in rtw_fw_set_pg_info()
787 LPS_PG_DPK_LOC(h2c_pkt, loc_dpk); in rtw_fw_set_pg_info()
788 LPS_PG_SEC_CAM_EN(h2c_pkt, conf->sec_cam_backup); in rtw_fw_set_pg_info()
789 LPS_PG_PATTERN_CAM_EN(h2c_pkt, conf->pattern_cam_backup); in rtw_fw_set_pg_info()
791 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_set_pg_info()
830 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_send_rsvd_page_h2c() local
833 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_RSVD_PAGE); in rtw_send_rsvd_page_h2c()
836 *(h2c_pkt + 1) = location; in rtw_send_rsvd_page_h2c()
840 *(h2c_pkt + 2) = location; in rtw_send_rsvd_page_h2c()
844 *(h2c_pkt + 3) = location; in rtw_send_rsvd_page_h2c()
848 *(h2c_pkt + 4) = location; in rtw_send_rsvd_page_h2c()
851 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_send_rsvd_page_h2c()
1648 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in __rtw_fw_update_pkt() local
1651 rtw_h2c_pkt_set_header(h2c_pkt, H2C_PKT_UPDATE_PKT); in __rtw_fw_update_pkt()
1653 SET_PKT_H2C_TOTAL_LEN(h2c_pkt, total_size); in __rtw_fw_update_pkt()
1654 UPDATE_PKT_SET_PKT_ID(h2c_pkt, pkt_id); in __rtw_fw_update_pkt()
1655 UPDATE_PKT_SET_LOCATION(h2c_pkt, location); in __rtw_fw_update_pkt()
1659 UPDATE_PKT_SET_SIZE(h2c_pkt, size); in __rtw_fw_update_pkt()
1661 rtw_fw_send_h2c_packet(rtwdev, h2c_pkt); in __rtw_fw_update_pkt()
1688 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_channel_switch() local
1702 rtw_h2c_pkt_set_header(h2c_pkt, H2C_PKT_CH_SWITCH); in rtw_fw_channel_switch()
1703 SET_PKT_H2C_TOTAL_LEN(h2c_pkt, total_size); in rtw_fw_channel_switch()
1705 CH_SWITCH_SET_START(h2c_pkt, enable); in rtw_fw_channel_switch()
1706 CH_SWITCH_SET_DEST_CH_EN(h2c_pkt, cs_option.dest_ch_en); in rtw_fw_channel_switch()
1707 CH_SWITCH_SET_DEST_CH(h2c_pkt, cs_option.dest_ch); in rtw_fw_channel_switch()
1708 CH_SWITCH_SET_NORMAL_PERIOD(h2c_pkt, cs_option.normal_period); in rtw_fw_channel_switch()
1709 CH_SWITCH_SET_NORMAL_PERIOD_SEL(h2c_pkt, cs_option.normal_period_sel); in rtw_fw_channel_switch()
1710 CH_SWITCH_SET_SLOW_PERIOD(h2c_pkt, cs_option.slow_period); in rtw_fw_channel_switch()
1711 CH_SWITCH_SET_SLOW_PERIOD_SEL(h2c_pkt, cs_option.slow_period_sel); in rtw_fw_channel_switch()
1712 CH_SWITCH_SET_NORMAL_CYCLE(h2c_pkt, cs_option.normal_cycle); in rtw_fw_channel_switch()
1713 CH_SWITCH_SET_PERIODIC_OPT(h2c_pkt, cs_option.periodic_option); in rtw_fw_channel_switch()
1715 CH_SWITCH_SET_CH_NUM(h2c_pkt, rtw_pno_req->channel_cnt); in rtw_fw_channel_switch()
1716 CH_SWITCH_SET_INFO_SIZE(h2c_pkt, rtw_pno_req->channel_cnt * 4); in rtw_fw_channel_switch()
1719 CH_SWITCH_SET_INFO_LOC(h2c_pkt, loc_ch_info); in rtw_fw_channel_switch()
1721 rtw_fw_send_h2c_packet(rtwdev, h2c_pkt); in rtw_fw_channel_switch()
1726 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_scan_notify() local
1728 SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_SCAN); in rtw_fw_scan_notify()
1729 SET_SCAN_START(h2c_pkt, start); in rtw_fw_scan_notify()
1731 rtw_fw_send_h2c_command(rtwdev, h2c_pkt); in rtw_fw_scan_notify()