coproc 669 drivers/crypto/nx/nx-842-powernv.c static inline void nx842_add_coprocs_list(struct nx842_coproc *coproc, coproc 672 drivers/crypto/nx/nx-842-powernv.c coproc->chip_id = chipid; coproc 673 drivers/crypto/nx/nx-842-powernv.c INIT_LIST_HEAD(&coproc->list); coproc 674 drivers/crypto/nx/nx-842-powernv.c list_add(&coproc->list, &nx842_coprocs); coproc 677 drivers/crypto/nx/nx-842-powernv.c static struct vas_window *nx842_alloc_txwin(struct nx842_coproc *coproc) coproc 686 drivers/crypto/nx/nx-842-powernv.c vas_init_tx_win_attr(&txattr, coproc->ct); coproc 693 drivers/crypto/nx/nx-842-powernv.c txwin = vas_tx_win_open(coproc->vas.id, coproc->ct, &txattr); coproc 709 drivers/crypto/nx/nx-842-powernv.c struct nx842_coproc *coproc, *n; coproc 717 drivers/crypto/nx/nx-842-powernv.c list_for_each_entry_safe(coproc, n, &nx842_coprocs, list) { coproc 723 drivers/crypto/nx/nx-842-powernv.c if (coproc->ct != VAS_COP_TYPE_842_HIPRI) coproc 726 drivers/crypto/nx/nx-842-powernv.c if (coproc->chip_id == chip_id) { coproc 727 drivers/crypto/nx/nx-842-powernv.c txwin = nx842_alloc_txwin(coproc); coproc 751 drivers/crypto/nx/nx-842-powernv.c struct nx842_coproc *coproc; coproc 793 drivers/crypto/nx/nx-842-powernv.c coproc = kzalloc(sizeof(*coproc), GFP_KERNEL); coproc 794 drivers/crypto/nx/nx-842-powernv.c if (!coproc) coproc 798 drivers/crypto/nx/nx-842-powernv.c coproc->ct = VAS_COP_TYPE_842_HIPRI; coproc 800 drivers/crypto/nx/nx-842-powernv.c coproc->ct = VAS_COP_TYPE_842; coproc 807 drivers/crypto/nx/nx-842-powernv.c vas_init_rx_win_attr(&rxattr, coproc->ct); coproc 823 drivers/crypto/nx/nx-842-powernv.c rxwin = vas_rx_win_open(vasid, coproc->ct, &rxattr); coproc 831 drivers/crypto/nx/nx-842-powernv.c coproc->vas.rxwin = rxwin; coproc 832 drivers/crypto/nx/nx-842-powernv.c coproc->vas.id = vasid; coproc 833 drivers/crypto/nx/nx-842-powernv.c nx842_add_coprocs_list(coproc, chip_id); coproc 847 drivers/crypto/nx/nx-842-powernv.c kfree(coproc); coproc 905 drivers/crypto/nx/nx-842-powernv.c struct nx842_coproc *coproc; coproc 925 drivers/crypto/nx/nx-842-powernv.c coproc = kmalloc(sizeof(*coproc), GFP_KERNEL); coproc 926 drivers/crypto/nx/nx-842-powernv.c if (!coproc) coproc 929 drivers/crypto/nx/nx-842-powernv.c coproc->ct = ct; coproc 930 drivers/crypto/nx/nx-842-powernv.c coproc->ci = ci; coproc 931 drivers/crypto/nx/nx-842-powernv.c nx842_add_coprocs_list(coproc, chip_id); coproc 946 drivers/crypto/nx/nx-842-powernv.c struct nx842_coproc *coproc, *n; coproc 961 drivers/crypto/nx/nx-842-powernv.c list_for_each_entry_safe(coproc, n, &nx842_coprocs, list) { coproc 962 drivers/crypto/nx/nx-842-powernv.c if (coproc->vas.rxwin) coproc 963 drivers/crypto/nx/nx-842-powernv.c vas_win_close(coproc->vas.rxwin); coproc 965 drivers/crypto/nx/nx-842-powernv.c list_del(&coproc->list); coproc 966 drivers/crypto/nx/nx-842-powernv.c kfree(coproc);