txwin              68 arch/powerpc/platforms/powernv/vas-window.c static void *map_paste_region(struct vas_window *txwin)
txwin              75 arch/powerpc/platforms/powernv/vas-window.c 	name = kasprintf(GFP_KERNEL, "window-v%d-w%d", txwin->vinst->vas_id,
txwin              76 arch/powerpc/platforms/powernv/vas-window.c 				txwin->winid);
txwin              80 arch/powerpc/platforms/powernv/vas-window.c 	txwin->paste_addr_name = name;
txwin              81 arch/powerpc/platforms/powernv/vas-window.c 	compute_paste_address(txwin, &start, &len);
txwin             336 arch/powerpc/platforms/powernv/vas-window.c static void init_rsvd_tx_buf_count(struct vas_window *txwin,
txwin             339 arch/powerpc/platforms/powernv/vas-window.c 	write_hvwc_reg(txwin, VREG(TX_RSVD_BUF_COUNT), 0ULL);
txwin             905 arch/powerpc/platforms/powernv/vas-window.c static void init_winctx_for_txwin(struct vas_window *txwin,
txwin             926 arch/powerpc/platforms/powernv/vas-window.c 	winctx->wcreds_max = txwin->wcreds_max;
txwin             929 arch/powerpc/platforms/powernv/vas-window.c 	winctx->nx_win = txwin->rxwin->nx_win;
txwin             946 arch/powerpc/platforms/powernv/vas-window.c 	winctx->rx_win_id = txwin->rxwin->winid;
txwin             979 arch/powerpc/platforms/powernv/vas-window.c 	struct vas_window *txwin;
txwin            1009 arch/powerpc/platforms/powernv/vas-window.c 	txwin = vas_window_alloc(vinst);
txwin            1010 arch/powerpc/platforms/powernv/vas-window.c 	if (IS_ERR(txwin)) {
txwin            1011 arch/powerpc/platforms/powernv/vas-window.c 		rc = PTR_ERR(txwin);
txwin            1015 arch/powerpc/platforms/powernv/vas-window.c 	txwin->cop = cop;
txwin            1016 arch/powerpc/platforms/powernv/vas-window.c 	txwin->tx_win = 1;
txwin            1017 arch/powerpc/platforms/powernv/vas-window.c 	txwin->rxwin = rxwin;
txwin            1018 arch/powerpc/platforms/powernv/vas-window.c 	txwin->nx_win = txwin->rxwin->nx_win;
txwin            1019 arch/powerpc/platforms/powernv/vas-window.c 	txwin->pid = attr->pid;
txwin            1020 arch/powerpc/platforms/powernv/vas-window.c 	txwin->user_win = attr->user_win;
txwin            1021 arch/powerpc/platforms/powernv/vas-window.c 	txwin->wcreds_max = attr->wcreds_max ?: VAS_WCREDS_DEFAULT;
txwin            1023 arch/powerpc/platforms/powernv/vas-window.c 	init_winctx_for_txwin(txwin, attr, &winctx);
txwin            1025 arch/powerpc/platforms/powernv/vas-window.c 	init_winctx_regs(txwin, &winctx);
txwin            1035 arch/powerpc/platforms/powernv/vas-window.c 	if (!txwin->user_win) {
txwin            1036 arch/powerpc/platforms/powernv/vas-window.c 		txwin->paste_kaddr = map_paste_region(txwin);
txwin            1037 arch/powerpc/platforms/powernv/vas-window.c 		if (IS_ERR(txwin->paste_kaddr)) {
txwin            1038 arch/powerpc/platforms/powernv/vas-window.c 			rc = PTR_ERR(txwin->paste_kaddr);
txwin            1051 arch/powerpc/platforms/powernv/vas-window.c 	set_vinst_win(vinst, txwin);
txwin            1053 arch/powerpc/platforms/powernv/vas-window.c 	return txwin;
txwin            1056 arch/powerpc/platforms/powernv/vas-window.c 	vas_window_free(txwin);
txwin            1072 arch/powerpc/platforms/powernv/vas-window.c int vas_paste_crb(struct vas_window *txwin, int offset, bool re)
txwin            1078 arch/powerpc/platforms/powernv/vas-window.c 	trace_vas_paste_crb(current, txwin);
txwin            1085 arch/powerpc/platforms/powernv/vas-window.c 	WARN_ON_ONCE(txwin->nx_win && !re);
txwin            1087 arch/powerpc/platforms/powernv/vas-window.c 	addr = txwin->paste_kaddr;
txwin            1107 arch/powerpc/platforms/powernv/vas-window.c 	pr_debug("Txwin #%d: Msg count %llu\n", txwin->winid,
txwin            1108 arch/powerpc/platforms/powernv/vas-window.c 			read_hvwc_reg(txwin, VREG(LRFIFO_PUSH)));
txwin             559 drivers/crypto/nx/nx-842-powernv.c 	struct vas_window *txwin;
txwin             582 drivers/crypto/nx/nx-842-powernv.c 		txwin = this_cpu_read(cpu_txwin);
txwin             594 drivers/crypto/nx/nx-842-powernv.c 		ret = vas_paste_crb(txwin, 0, 1);
txwin             679 drivers/crypto/nx/nx-842-powernv.c 	struct vas_window *txwin = NULL;
txwin             693 drivers/crypto/nx/nx-842-powernv.c 	txwin = vas_tx_win_open(coproc->vas.id, coproc->ct, &txattr);
txwin             694 drivers/crypto/nx/nx-842-powernv.c 	if (IS_ERR(txwin))
txwin             696 drivers/crypto/nx/nx-842-powernv.c 				PTR_ERR(txwin));
txwin             698 drivers/crypto/nx/nx-842-powernv.c 	return txwin;
txwin             713 drivers/crypto/nx/nx-842-powernv.c 		struct vas_window *txwin = NULL;
txwin             727 drivers/crypto/nx/nx-842-powernv.c 				txwin = nx842_alloc_txwin(coproc);
txwin             728 drivers/crypto/nx/nx-842-powernv.c 				if (IS_ERR(txwin))
txwin             729 drivers/crypto/nx/nx-842-powernv.c 					return PTR_ERR(txwin);
txwin             731 drivers/crypto/nx/nx-842-powernv.c 				per_cpu(cpu_txwin, i) = txwin;
txwin             947 drivers/crypto/nx/nx-842-powernv.c 	struct vas_window *txwin;
txwin             954 drivers/crypto/nx/nx-842-powernv.c 		txwin = per_cpu(cpu_txwin, i);
txwin             955 drivers/crypto/nx/nx-842-powernv.c 		if (txwin)
txwin             956 drivers/crypto/nx/nx-842-powernv.c 			vas_win_close(txwin);