Lines Matching refs:cop
593 if (!rxwin || rxwin->tx_win || rxwin->cop != VAS_COP_TYPE_FTW) in get_user_rxwin()
606 enum vas_cop_type cop, u32 pswid) in get_vinst_rxwin() argument
612 if (cop == VAS_COP_TYPE_FTW) in get_vinst_rxwin()
615 rxwin = vinst->rxwin[cop] ?: ERR_PTR(-EINVAL); in get_vinst_rxwin()
652 WARN_ON_ONCE(vinst->rxwin[window->cop]); in set_vinst_win()
653 vinst->rxwin[window->cop] = window; in set_vinst_win()
674 WARN_ON_ONCE(!vinst->rxwin[window->cop]); in clear_vinst_win()
675 vinst->rxwin[window->cop] = NULL; in clear_vinst_win()
756 static bool rx_win_args_valid(enum vas_cop_type cop, in rx_win_args_valid() argument
764 if (cop >= VAS_COP_TYPE_MAX) in rx_win_args_valid()
767 if (cop != VAS_COP_TYPE_FTW && in rx_win_args_valid()
815 void vas_init_rx_win_attr(struct vas_rx_win_attr *rxattr, enum vas_cop_type cop) in vas_init_rx_win_attr() argument
819 if (cop == VAS_COP_TYPE_842 || cop == VAS_COP_TYPE_842_HIPRI || in vas_init_rx_win_attr()
820 cop == VAS_COP_TYPE_GZIP || cop == VAS_COP_TYPE_GZIP_HIPRI) { in vas_init_rx_win_attr()
829 } else if (cop == VAS_COP_TYPE_FAULT) { in vas_init_rx_win_attr()
837 } else if (cop == VAS_COP_TYPE_FTW) { in vas_init_rx_win_attr()
851 struct vas_window *vas_rx_win_open(int vasid, enum vas_cop_type cop, in vas_rx_win_open() argument
858 trace_vas_rx_win_open(current, vasid, cop, rxattr); in vas_rx_win_open()
860 if (!rx_win_args_valid(cop, rxattr)) in vas_rx_win_open()
879 rxwin->cop = cop; in vas_rx_win_open()
891 void vas_init_tx_win_attr(struct vas_tx_win_attr *txattr, enum vas_cop_type cop) in vas_init_tx_win_attr() argument
895 if (cop == VAS_COP_TYPE_842 || cop == VAS_COP_TYPE_842_HIPRI || in vas_init_tx_win_attr()
896 cop == VAS_COP_TYPE_GZIP || cop == VAS_COP_TYPE_GZIP_HIPRI) { in vas_init_tx_win_attr()
902 } else if (cop == VAS_COP_TYPE_FTW) { in vas_init_tx_win_attr()
968 static bool tx_win_args_valid(enum vas_cop_type cop, in tx_win_args_valid() argument
974 if (cop > VAS_COP_TYPE_MAX) in tx_win_args_valid()
984 if (cop != VAS_COP_TYPE_FTW && cop != VAS_COP_TYPE_GZIP && in tx_win_args_valid()
985 cop != VAS_COP_TYPE_GZIP_HIPRI) in tx_win_args_valid()
992 struct vas_window *vas_tx_win_open(int vasid, enum vas_cop_type cop, in vas_tx_win_open() argument
1001 trace_vas_tx_win_open(current, vasid, cop, attr); in vas_tx_win_open()
1003 if (!tx_win_args_valid(cop, attr)) in vas_tx_win_open()
1020 rxwin = get_vinst_rxwin(vinst, cop, attr->pswid); in vas_tx_win_open()
1022 pr_devel("No RxWin for vasid %d, cop %d\n", vasid, cop); in vas_tx_win_open()
1032 txwin->cop = cop; in vas_tx_win_open()
1434 window->cop == VAS_COP_TYPE_FAULT || in vas_pswid_to_window()
1435 window->cop == VAS_COP_TYPE_FTW) { in vas_pswid_to_window()
1438 window->nx_win, window->cop); in vas_pswid_to_window()