Lines Matching refs:mws

1044 	struct idt_mw_cfg mws[IDT_MAX_NR_MWS], *ret_mws;  in idt_scan_mws()  local
1089 mws[*mw_cnt].type = mw_type; in idt_scan_mws()
1090 mws[*mw_cnt].bar = bidx; in idt_scan_mws()
1091 mws[*mw_cnt].idx = widx; in idt_scan_mws()
1093 mws[*mw_cnt].addr_align = IDT_TRANS_ALIGN; in idt_scan_mws()
1096 mws[*mw_cnt].size_max = aprt_size; in idt_scan_mws()
1098 mws[*mw_cnt].size_max = aprt_size / 16; in idt_scan_mws()
1100 mws[*mw_cnt].size_max = aprt_size / 32; in idt_scan_mws()
1101 mws[*mw_cnt].size_align = (mw_type == IDT_MW_DIR) ? in idt_scan_mws()
1102 IDT_DIR_SIZE_ALIGN : mws[*mw_cnt].size_max; in idt_scan_mws()
1113 memcpy(ret_mws, mws, (*mw_cnt)*sizeof(*ret_mws)); in idt_scan_mws()
1133 ndev->mws = idt_scan_mws(ndev, ndev->port, &ndev->mw_cnt); in idt_init_mws()
1134 if (IS_ERR(ndev->mws)) { in idt_init_mws()
1137 return PTR_ERR(ndev->mws); in idt_init_mws()
1143 peer->mws = idt_scan_mws(ndev, peer->port, &peer->mw_cnt); in idt_init_mws()
1144 if (IS_ERR(peer->mws)) { in idt_init_mws()
1147 return PTR_ERR(peer->mws); in idt_init_mws()
1211 *addr_align = peer->mws[widx].addr_align; in idt_ntb_mw_get_align()
1214 *size_align = peer->mws[widx].size_align; in idt_ntb_mw_get_align()
1217 *size_max = peer->mws[widx].size_max; in idt_ntb_mw_get_align()
1262 *base = pci_resource_start(ntb->pdev, ndev->mws[widx].bar) + in idt_ntb_peer_mw_get_addr()
1263 ndev->mws[widx].idx * ndev->mws[widx].size_max; in idt_ntb_peer_mw_get_addr()
1267 *size = ndev->mws[widx].size_max; in idt_ntb_peer_mw_get_addr()
1304 mw_cfg = &ndev->mws[widx]; in idt_ntb_peer_mw_set_trans()
1368 mw_cfg = &ndev->mws[widx]; in idt_ntb_peer_mw_clear_trans()
2400 data = ndev->mws[idx].type; in idt_dbgfs_info_read()
2412 idt_get_mw_name(data), ndev->mws[idx].bar); in idt_dbgfs_info_read()
2415 "Address align 0x%08llx, ", ndev->mws[idx].addr_align); in idt_dbgfs_info_read()
2419 ndev->mws[idx].size_align, ndev->mws[idx].size_max); in idt_dbgfs_info_read()
2430 data = ndev->peers[pidx].mws[idx].type; in idt_dbgfs_info_read()
2442 ndev->peers[pidx].mws[idx].bar); in idt_dbgfs_info_read()
2446 ndev->peers[pidx].mws[idx].addr_align); in idt_dbgfs_info_read()
2450 ndev->peers[pidx].mws[idx].size_align, in idt_dbgfs_info_read()
2451 ndev->peers[pidx].mws[idx].size_max); in idt_dbgfs_info_read()