Lines Matching refs:num_mws
109 u32 num_mws; member
123 u32 num_mws; member
461 ctrl->num_mws = ntb->num_mws; in epf_ntb_config_spad_bar_alloc()
564 static void epf_ntb_mw_bar_clear(struct epf_ntb *ntb, int num_mws);
597 for (i = 0; i < ntb->num_mws; i++) { in epf_ntb_mw_bar_init()
646 static void epf_ntb_mw_bar_clear(struct epf_ntb *ntb, int num_mws) in epf_ntb_mw_bar_clear() argument
651 for (i = 0; i < num_mws; i++) { in epf_ntb_mw_bar_clear()
690 u32 num_mws; in epf_ntb_init_epc_bar() local
694 num_mws = ntb->num_mws; in epf_ntb_init_epc_bar()
709 for (bar = BAR_MW1, i = 1; i < num_mws; bar++, barno++, i++) { in epf_ntb_init_epc_bar()
712 ntb->num_mws = i; in epf_ntb_init_epc_bar()
783 epf_ntb_mw_bar_clear(ntb, ntb->num_mws); in epf_ntb_epc_init()
802 epf_ntb_mw_bar_clear(ntb, ntb->num_mws); in epf_ntb_epc_cleanup()
847 if (win_no <= 0 || win_no > ntb->num_mws) { \
848 dev_err(dev, "Invalid num_nws: %d value\n", ntb->num_mws); \
873 if (win_no <= 0 || win_no > ntb->num_mws) { \
874 dev_err(dev, "Invalid num_nws: %d value\n", ntb->num_mws); \
898 ntb->num_mws = val; in epf_ntb_num_mws_store()
907 EPF_NTB_R(num_mws)
925 CONFIGFS_ATTR(epf_ntb_, num_mws);
1038 return ndev->num_mws; in vntb_epf_mw_count()
1048 return ntb_ndev(ntb)->num_mws; in vntb_epf_peer_mw_count()