Lines Matching refs:coproc
468 /* shoudn't happen, we don't load without a coproc */
673 static inline void nx_add_coprocs_list(struct nx_coproc *coproc,
676 coproc->chip_id = chipid;
677 INIT_LIST_HEAD(&coproc->list);
678 list_add(&coproc->list, &nx_coprocs);
681 static struct vas_window *nx_alloc_txwin(struct nx_coproc *coproc)
690 vas_init_tx_win_attr(&txattr, coproc->ct);
696 txwin = vas_tx_win_open(coproc->vas.id, coproc->ct, &txattr);
712 struct nx_coproc *coproc, *n;
720 list_for_each_entry_safe(coproc, n, &nx_coprocs, list) {
727 if (coproc->ct != VAS_COP_TYPE_842_HIPRI)
730 if (coproc->chip_id == chip_id) {
731 txwin = nx_alloc_txwin(coproc);
750 static int __init nx_set_ct(struct nx_coproc *coproc, const char *priority,
754 coproc->ct = high;
756 coproc->ct = normal;
771 struct nx_coproc *coproc;
812 coproc = kzalloc(sizeof(*coproc), GFP_KERNEL);
813 if (!coproc)
817 ret = nx_set_ct(coproc, priority, VAS_COP_TYPE_842_HIPRI,
820 ret = nx_set_ct(coproc, priority, VAS_COP_TYPE_GZIP_HIPRI,
826 vas_init_rx_win_attr(&rxattr, coproc->ct);
842 rxwin = vas_rx_win_open(vasid, coproc->ct, &rxattr);
850 coproc->vas.rxwin = rxwin;
851 coproc->vas.id = vasid;
852 nx_add_coprocs_list(coproc, chip_id);
866 kfree(coproc);
953 struct nx_coproc *coproc;
973 coproc = kzalloc(sizeof(*coproc), GFP_KERNEL);
974 if (!coproc)
977 coproc->ct = ct;
978 coproc->ci = ci;
979 nx_add_coprocs_list(coproc, chip_id);
994 struct nx_coproc *coproc, *n;
999 * close percpu txwins that are opened for the corresponding coproc.
1009 list_for_each_entry_safe(coproc, n, &nx_coprocs, list) {
1010 if (coproc->vas.rxwin)
1011 vas_win_close(coproc->vas.rxwin);
1013 list_del(&coproc->list);
1014 kfree(coproc);