Lines Matching refs:rtlpcipriv

645 	struct rtl_pci_priv *rtlpcipriv = rtl_pcipriv(hw);  in rtl92c_dm_check_edca_turbo()  local
658 if ((last_bt_edca_ul != rtlpcipriv->bt_coexist.bt_edca_ul) || in rtl92c_dm_check_edca_turbo()
659 (last_bt_edca_dl != rtlpcipriv->bt_coexist.bt_edca_dl)) { in rtl92c_dm_check_edca_turbo()
661 last_bt_edca_ul = rtlpcipriv->bt_coexist.bt_edca_ul; in rtl92c_dm_check_edca_turbo()
662 last_bt_edca_dl = rtlpcipriv->bt_coexist.bt_edca_dl; in rtl92c_dm_check_edca_turbo()
665 if (rtlpcipriv->bt_coexist.bt_edca_ul != 0) { in rtl92c_dm_check_edca_turbo()
666 edca_be_ul = rtlpcipriv->bt_coexist.bt_edca_ul; in rtl92c_dm_check_edca_turbo()
670 if (rtlpcipriv->bt_coexist.bt_edca_dl != 0) { in rtl92c_dm_check_edca_turbo()
671 edca_be_ul = rtlpcipriv->bt_coexist.bt_edca_dl; in rtl92c_dm_check_edca_turbo()
680 if ((!mac->ht_enable) && (!rtlpcipriv->bt_coexist.bt_coexistence)) { in rtl92c_dm_check_edca_turbo()
1478 struct rtl_pci_priv *rtlpcipriv = rtl_pcipriv(hw); in rtl92c_bt_rssi_state_change() local
1517 if (curr_bt_rssi_state != rtlpcipriv->bt_coexist.bt_rssi_state) { in rtl92c_bt_rssi_state_change()
1518 rtlpcipriv->bt_coexist.bt_rssi_state = curr_bt_rssi_state; in rtl92c_bt_rssi_state_change()
1529 struct rtl_pci_priv *rtlpcipriv = rtl_pcipriv(hw); in rtl92c_bt_state_change() local
1549 if (bt_state != rtlpcipriv->bt_coexist.bt_cur_state) { in rtl92c_bt_state_change()
1550 rtlpcipriv->bt_coexist.bt_cur_state = bt_state; in rtl92c_bt_state_change()
1552 if (rtlpcipriv->bt_coexist.reg_bt_sco == 3) { in rtl92c_bt_state_change()
1553 rtlpcipriv->bt_coexist.bt_service = BT_IDLE; in rtl92c_bt_state_change()
1556 ((rtlpcipriv->bt_coexist.bt_ant_isolation == 1) ? in rtl92c_bt_state_change()
1566 rtlpcipriv->bt_coexist.ratio_tx = ratio_tx; in rtl92c_bt_state_change()
1567 rtlpcipriv->bt_coexist.ratio_pri = ratio_pri; in rtl92c_bt_state_change()
1569 if (bt_state && rtlpcipriv->bt_coexist.reg_bt_sco == 3) { in rtl92c_bt_state_change()
1584 if (cur_service_type != rtlpcipriv->bt_coexist.bt_service) { in rtl92c_bt_state_change()
1585 rtlpcipriv->bt_coexist.bt_service = cur_service_type; in rtl92c_bt_state_change()
1587 ((rtlpcipriv->bt_coexist.bt_ant_isolation == 1) ? in rtl92c_bt_state_change()
1589 ((rtlpcipriv->bt_coexist.bt_service != BT_IDLE) ? in rtl92c_bt_state_change()
1594 if (rtlpcipriv->bt_coexist.bt_service != BT_IDLE) { in rtl92c_bt_state_change()
1633 struct rtl_pci_priv *rtlpcipriv = rtl_pcipriv(hw); in rtl92c_bt_set_normal() local
1636 if (rtlpcipriv->bt_coexist.bt_service == BT_OTHERBUSY) { in rtl92c_bt_set_normal()
1637 rtlpcipriv->bt_coexist.bt_edca_ul = 0x5ea72b; in rtl92c_bt_set_normal()
1638 rtlpcipriv->bt_coexist.bt_edca_dl = 0x5ea72b; in rtl92c_bt_set_normal()
1639 } else if (rtlpcipriv->bt_coexist.bt_service == BT_BUSY) { in rtl92c_bt_set_normal()
1640 rtlpcipriv->bt_coexist.bt_edca_ul = 0x5eb82f; in rtl92c_bt_set_normal()
1641 rtlpcipriv->bt_coexist.bt_edca_dl = 0x5eb82f; in rtl92c_bt_set_normal()
1642 } else if (rtlpcipriv->bt_coexist.bt_service == BT_SCO) { in rtl92c_bt_set_normal()
1643 if (rtlpcipriv->bt_coexist.ratio_tx > 160) { in rtl92c_bt_set_normal()
1644 rtlpcipriv->bt_coexist.bt_edca_ul = 0x5ea72f; in rtl92c_bt_set_normal()
1645 rtlpcipriv->bt_coexist.bt_edca_dl = 0x5ea72f; in rtl92c_bt_set_normal()
1647 rtlpcipriv->bt_coexist.bt_edca_ul = 0x5ea32b; in rtl92c_bt_set_normal()
1648 rtlpcipriv->bt_coexist.bt_edca_dl = 0x5ea42b; in rtl92c_bt_set_normal()
1651 rtlpcipriv->bt_coexist.bt_edca_ul = 0; in rtl92c_bt_set_normal()
1652 rtlpcipriv->bt_coexist.bt_edca_dl = 0; in rtl92c_bt_set_normal()
1655 if ((rtlpcipriv->bt_coexist.bt_service != BT_IDLE) && in rtl92c_bt_set_normal()
1658 (rtlpcipriv->bt_coexist.bt_rssi_state & in rtl92c_bt_set_normal()
1660 rtlpcipriv->bt_coexist.bt_edca_ul = 0x5eb82b; in rtl92c_bt_set_normal()
1661 rtlpcipriv->bt_coexist.bt_edca_dl = 0x5eb82b; in rtl92c_bt_set_normal()
1668 struct rtl_pci_priv *rtlpcipriv = rtl_pcipriv(hw); in rtl92c_bt_ant_isolation() local
1673 rtlpcipriv->bt_coexist.bt_service == BT_OTHER_ACTION) { in rtl92c_bt_ant_isolation()
1676 if ((rtlpcipriv->bt_coexist.bt_service == BT_BUSY) && in rtl92c_bt_ant_isolation()
1677 (rtlpcipriv->bt_coexist.bt_rssi_state & in rtl92c_bt_ant_isolation()
1680 } else if ((rtlpcipriv->bt_coexist.bt_service == in rtl92c_bt_ant_isolation()
1683 (rtlpcipriv->bt_coexist.bt_rssi_state & in rtl92c_bt_ant_isolation()
1686 } else if (rtlpcipriv->bt_coexist.bt_service == BT_PAN) { in rtl92c_bt_ant_isolation()
1693 if (rtlpcipriv->bt_coexist.bt_service == BT_PAN) in rtl92c_bt_ant_isolation()
1698 if (rtlpcipriv->bt_coexist.bt_rssi_state & in rtl92c_bt_ant_isolation()
1702 rtlpcipriv->bt_coexist.bt_edca_ul = 0; in rtl92c_bt_ant_isolation()
1703 rtlpcipriv->bt_coexist.bt_edca_dl = 0; in rtl92c_bt_ant_isolation()
1706 if (rtlpcipriv->bt_coexist.bt_service != BT_IDLE) { in rtl92c_bt_ant_isolation()
1714 rtlpcipriv->bt_coexist.bt_rfreg_origin_1e); in rtl92c_bt_ant_isolation()
1718 if (rtlpcipriv->bt_coexist.bt_service != BT_IDLE) { in rtl92c_bt_ant_isolation()
1719 if (rtlpcipriv->bt_coexist.bt_rssi_state & in rtl92c_bt_ant_isolation()
1739 struct rtl_pci_priv *rtlpcipriv = rtl_pcipriv(hw); in rtl92c_check_bt_change() local
1744 rtlpcipriv->bt_coexist.bt_coexistence) in rtl92c_check_bt_change()
1746 if (rtlpcipriv->bt_coexist.bt_cur_state) { in rtl92c_check_bt_change()
1747 if (rtlpcipriv->bt_coexist.bt_ant_isolation) in rtl92c_check_bt_change()
1752 rtlpcipriv->bt_coexist.bt_rfreg_origin_1e); in rtl92c_check_bt_change()
1754 rtlpcipriv->bt_coexist.bt_edca_ul = 0; in rtl92c_check_bt_change()
1755 rtlpcipriv->bt_coexist.bt_edca_dl = 0; in rtl92c_check_bt_change()
1761 struct rtl_pci_priv *rtlpcipriv = rtl_pcipriv(hw); in rtl92c_dm_bt_coexist() local
1767 if ((rtlpcipriv->bt_coexist.bt_coexistence) && in rtl92c_dm_bt_coexist()
1768 (rtlpcipriv->bt_coexist.bt_coexist_type == BT_CSR_BC4)) { in rtl92c_dm_bt_coexist()