winctx 337 arch/powerpc/platforms/powernv/vas-window.c struct vas_winctx *winctx) winctx 358 arch/powerpc/platforms/powernv/vas-window.c int init_winctx_regs(struct vas_window *window, struct vas_winctx *winctx) winctx 366 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_LPID, val, winctx->lpid); winctx 370 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_PID_ID, val, winctx->pidr); winctx 373 arch/powerpc/platforms/powernv/vas-window.c init_xlate_regs(window, winctx->user_win); winctx 383 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_HV_INTR_SRC_RA, val, winctx->irq_port); winctx 387 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_PSWID_EA_HANDLE, val, winctx->pswid); winctx 403 arch/powerpc/platforms/powernv/vas-window.c val = __pa(winctx->rx_fifo); winctx 408 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_LDATA_STAMP, val, winctx->data_stamp); winctx 412 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_LDMA_TYPE, val, winctx->dma_type); winctx 413 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_LDMA_FIFO_DISABLE, val, winctx->fifo_disable); winctx 421 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_LRX_WCRED, val, winctx->wcreds_max); winctx 425 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_TX_WCRED, val, winctx->wcreds_max); winctx 431 arch/powerpc/platforms/powernv/vas-window.c fifo_size = winctx->rx_fifo_size / 1024; winctx 444 arch/powerpc/platforms/powernv/vas-window.c init_rsvd_tx_buf_count(window, winctx); winctx 448 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_LRX_WIN_ID, val, winctx->rx_win_id); winctx 454 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_NOTIFY_DISABLE, val, winctx->notify_disable); winctx 455 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_INTR_DISABLE, val, winctx->intr_disable); winctx 456 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_NOTIFY_EARLY, val, winctx->notify_early); winctx 457 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_NOTIFY_OSU_INTR, val, winctx->notify_os_intr_reg); winctx 461 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_LNOTIFY_PID, val, winctx->lnotify_pid); winctx 465 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_LNOTIFY_LPID, val, winctx->lnotify_lpid); winctx 469 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_LNOTIFY_TID, val, winctx->lnotify_tid); winctx 473 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_LNOTIFY_MIN_SCOPE, val, winctx->min_scope); winctx 474 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_LNOTIFY_MAX_SCOPE, val, winctx->max_scope); winctx 490 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_WINCTL_REJ_NO_CREDIT, val, winctx->rej_no_credit); winctx 491 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_WINCTL_PIN, val, winctx->pin_win); winctx 492 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_WINCTL_TX_WCRED_MODE, val, winctx->tx_wcred_mode); winctx 493 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_WINCTL_RX_WCRED_MODE, val, winctx->rx_wcred_mode); winctx 494 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_WINCTL_TX_WORD_MODE, val, winctx->tx_word_mode); winctx 495 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_WINCTL_RX_WORD_MODE, val, winctx->rx_word_mode); winctx 496 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_WINCTL_FAULT_WIN, val, winctx->fault_win); winctx 497 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_WINCTL_NX_WIN, val, winctx->nx_win); winctx 685 arch/powerpc/platforms/powernv/vas-window.c struct vas_winctx *winctx) winctx 700 arch/powerpc/platforms/powernv/vas-window.c memset(winctx, 0, sizeof(struct vas_winctx)); winctx 702 arch/powerpc/platforms/powernv/vas-window.c winctx->rx_fifo = rxattr->rx_fifo; winctx 703 arch/powerpc/platforms/powernv/vas-window.c winctx->rx_fifo_size = rxattr->rx_fifo_size; winctx 704 arch/powerpc/platforms/powernv/vas-window.c winctx->wcreds_max = rxwin->wcreds_max; winctx 705 arch/powerpc/platforms/powernv/vas-window.c winctx->pin_win = rxattr->pin_win; winctx 707 arch/powerpc/platforms/powernv/vas-window.c winctx->nx_win = rxattr->nx_win; winctx 708 arch/powerpc/platforms/powernv/vas-window.c winctx->fault_win = rxattr->fault_win; winctx 709 arch/powerpc/platforms/powernv/vas-window.c winctx->user_win = rxattr->user_win; winctx 710 arch/powerpc/platforms/powernv/vas-window.c winctx->rej_no_credit = rxattr->rej_no_credit; winctx 711 arch/powerpc/platforms/powernv/vas-window.c winctx->rx_word_mode = rxattr->rx_win_ord_mode; winctx 712 arch/powerpc/platforms/powernv/vas-window.c winctx->tx_word_mode = rxattr->tx_win_ord_mode; winctx 713 arch/powerpc/platforms/powernv/vas-window.c winctx->rx_wcred_mode = rxattr->rx_wcred_mode; winctx 714 arch/powerpc/platforms/powernv/vas-window.c winctx->tx_wcred_mode = rxattr->tx_wcred_mode; winctx 715 arch/powerpc/platforms/powernv/vas-window.c winctx->notify_early = rxattr->notify_early; winctx 717 arch/powerpc/platforms/powernv/vas-window.c if (winctx->nx_win) { winctx 718 arch/powerpc/platforms/powernv/vas-window.c winctx->data_stamp = true; winctx 719 arch/powerpc/platforms/powernv/vas-window.c winctx->intr_disable = true; winctx 720 arch/powerpc/platforms/powernv/vas-window.c winctx->pin_win = true; winctx 722 arch/powerpc/platforms/powernv/vas-window.c WARN_ON_ONCE(winctx->fault_win); winctx 723 arch/powerpc/platforms/powernv/vas-window.c WARN_ON_ONCE(!winctx->rx_word_mode); winctx 724 arch/powerpc/platforms/powernv/vas-window.c WARN_ON_ONCE(!winctx->tx_word_mode); winctx 725 arch/powerpc/platforms/powernv/vas-window.c WARN_ON_ONCE(winctx->notify_after_count); winctx 726 arch/powerpc/platforms/powernv/vas-window.c } else if (winctx->fault_win) { winctx 727 arch/powerpc/platforms/powernv/vas-window.c winctx->notify_disable = true; winctx 728 arch/powerpc/platforms/powernv/vas-window.c } else if (winctx->user_win) { winctx 737 arch/powerpc/platforms/powernv/vas-window.c winctx->fifo_disable = true; winctx 738 arch/powerpc/platforms/powernv/vas-window.c winctx->intr_disable = true; winctx 739 arch/powerpc/platforms/powernv/vas-window.c winctx->rx_fifo = NULL; winctx 742 arch/powerpc/platforms/powernv/vas-window.c winctx->lnotify_lpid = rxattr->lnotify_lpid; winctx 743 arch/powerpc/platforms/powernv/vas-window.c winctx->lnotify_pid = rxattr->lnotify_pid; winctx 744 arch/powerpc/platforms/powernv/vas-window.c winctx->lnotify_tid = rxattr->lnotify_tid; winctx 745 arch/powerpc/platforms/powernv/vas-window.c winctx->pswid = rxattr->pswid; winctx 746 arch/powerpc/platforms/powernv/vas-window.c winctx->dma_type = VAS_DMA_TYPE_INJECT; winctx 747 arch/powerpc/platforms/powernv/vas-window.c winctx->tc_mode = rxattr->tc_mode; winctx 749 arch/powerpc/platforms/powernv/vas-window.c winctx->min_scope = VAS_SCOPE_LOCAL; winctx 750 arch/powerpc/platforms/powernv/vas-window.c winctx->max_scope = VAS_SCOPE_VECTORED_GROUP; winctx 851 arch/powerpc/platforms/powernv/vas-window.c struct vas_winctx winctx; winctx 880 arch/powerpc/platforms/powernv/vas-window.c init_winctx_for_rxwin(rxwin, rxattr, &winctx); winctx 881 arch/powerpc/platforms/powernv/vas-window.c init_winctx_regs(rxwin, &winctx); winctx 907 arch/powerpc/platforms/powernv/vas-window.c struct vas_winctx *winctx) winctx 924 arch/powerpc/platforms/powernv/vas-window.c memset(winctx, 0, sizeof(struct vas_winctx)); winctx 926 arch/powerpc/platforms/powernv/vas-window.c winctx->wcreds_max = txwin->wcreds_max; winctx 928 arch/powerpc/platforms/powernv/vas-window.c winctx->user_win = txattr->user_win; winctx 929 arch/powerpc/platforms/powernv/vas-window.c winctx->nx_win = txwin->rxwin->nx_win; winctx 930 arch/powerpc/platforms/powernv/vas-window.c winctx->pin_win = txattr->pin_win; winctx 931 arch/powerpc/platforms/powernv/vas-window.c winctx->rej_no_credit = txattr->rej_no_credit; winctx 932 arch/powerpc/platforms/powernv/vas-window.c winctx->rsvd_txbuf_enable = txattr->rsvd_txbuf_enable; winctx 934 arch/powerpc/platforms/powernv/vas-window.c winctx->rx_wcred_mode = txattr->rx_wcred_mode; winctx 935 arch/powerpc/platforms/powernv/vas-window.c winctx->tx_wcred_mode = txattr->tx_wcred_mode; winctx 936 arch/powerpc/platforms/powernv/vas-window.c winctx->rx_word_mode = txattr->rx_win_ord_mode; winctx 937 arch/powerpc/platforms/powernv/vas-window.c winctx->tx_word_mode = txattr->tx_win_ord_mode; winctx 938 arch/powerpc/platforms/powernv/vas-window.c winctx->rsvd_txbuf_count = txattr->rsvd_txbuf_count; winctx 940 arch/powerpc/platforms/powernv/vas-window.c winctx->intr_disable = true; winctx 941 arch/powerpc/platforms/powernv/vas-window.c if (winctx->nx_win) winctx 942 arch/powerpc/platforms/powernv/vas-window.c winctx->data_stamp = true; winctx 944 arch/powerpc/platforms/powernv/vas-window.c winctx->lpid = txattr->lpid; winctx 945 arch/powerpc/platforms/powernv/vas-window.c winctx->pidr = txattr->pidr; winctx 946 arch/powerpc/platforms/powernv/vas-window.c winctx->rx_win_id = txwin->rxwin->winid; winctx 948 arch/powerpc/platforms/powernv/vas-window.c winctx->dma_type = VAS_DMA_TYPE_INJECT; winctx 949 arch/powerpc/platforms/powernv/vas-window.c winctx->tc_mode = txattr->tc_mode; winctx 950 arch/powerpc/platforms/powernv/vas-window.c winctx->min_scope = VAS_SCOPE_LOCAL; winctx 951 arch/powerpc/platforms/powernv/vas-window.c winctx->max_scope = VAS_SCOPE_VECTORED_GROUP; winctx 953 arch/powerpc/platforms/powernv/vas-window.c winctx->pswid = 0; winctx 981 arch/powerpc/platforms/powernv/vas-window.c struct vas_winctx winctx; winctx 1023 arch/powerpc/platforms/powernv/vas-window.c init_winctx_for_txwin(txwin, attr, &winctx); winctx 1025 arch/powerpc/platforms/powernv/vas-window.c init_winctx_regs(txwin, &winctx);