Lines Matching refs:coproc
471 /* shoudn't happen, we don't load without a coproc */
676 static inline void nx_add_coprocs_list(struct nx_coproc *coproc,
679 coproc->chip_id = chipid;
680 INIT_LIST_HEAD(&coproc->list);
681 list_add(&coproc->list, &nx_coprocs);
684 static struct vas_window *nx_alloc_txwin(struct nx_coproc *coproc)
693 vas_init_tx_win_attr(&txattr, coproc->ct);
699 txwin = vas_tx_win_open(coproc->vas.id, coproc->ct, &txattr);
715 struct nx_coproc *coproc, *n;
723 list_for_each_entry_safe(coproc, n, &nx_coprocs, list) {
730 if (coproc->ct != VAS_COP_TYPE_842_HIPRI)
733 if (coproc->chip_id == chip_id) {
734 txwin = nx_alloc_txwin(coproc);
753 static int __init nx_set_ct(struct nx_coproc *coproc, const char *priority,
757 coproc->ct = high;
759 coproc->ct = normal;
774 struct nx_coproc *coproc;
815 coproc = kzalloc(sizeof(*coproc), GFP_KERNEL);
816 if (!coproc)
820 ret = nx_set_ct(coproc, priority, VAS_COP_TYPE_842_HIPRI,
823 ret = nx_set_ct(coproc, priority, VAS_COP_TYPE_GZIP_HIPRI,
829 vas_init_rx_win_attr(&rxattr, coproc->ct);
845 rxwin = vas_rx_win_open(vasid, coproc->ct, &rxattr);
853 coproc->vas.rxwin = rxwin;
854 coproc->vas.id = vasid;
855 nx_add_coprocs_list(coproc, chip_id);
869 kfree(coproc);
956 struct nx_coproc *coproc;
976 coproc = kzalloc(sizeof(*coproc), GFP_KERNEL);
977 if (!coproc)
980 coproc->ct = ct;
981 coproc->ci = ci;
982 nx_add_coprocs_list(coproc, chip_id);
997 struct nx_coproc *coproc, *n;
1002 * close percpu txwins that are opened for the corresponding coproc.
1012 list_for_each_entry_safe(coproc, n, &nx_coprocs, list) {
1013 if (coproc->vas.rxwin)
1014 vas_win_close(coproc->vas.rxwin);
1016 list_del(&coproc->list);
1017 kfree(coproc);