Lines Matching refs:peer
1130 struct idt_ntb_peer *peer; in idt_init_mws() local
1143 peer = &ndev->peers[pidx]; in idt_init_mws()
1144 peer->mws = idt_scan_mws(ndev, peer->port, &peer->mw_cnt); in idt_init_mws()
1145 if (IS_ERR(peer->mws)) { in idt_init_mws()
1147 "Failed to scan mws of port %hhu", peer->port); in idt_init_mws()
1148 return PTR_ERR(peer->mws); in idt_init_mws()
1201 struct idt_ntb_peer *peer; in idt_ntb_mw_get_align() local
1206 peer = &ndev->peers[pidx]; in idt_ntb_mw_get_align()
1208 if (widx < 0 || peer->mw_cnt <= widx) in idt_ntb_mw_get_align()
1212 *addr_align = peer->mws[widx].addr_align; in idt_ntb_mw_get_align()
1215 *size_align = peer->mws[widx].size_align; in idt_ntb_mw_get_align()
1218 *size_max = peer->mws[widx].size_max; in idt_ntb_mw_get_align()