Lines Matching defs:peer

533 	/* It's useless to have this driver loaded if there is no any peer */
535 dev_warn(&ndev->ntb.pdev->dev, "No active peer found\n");
556 * idt_ntb_peer_port_count() - get the number of peer ports
559 * Return the count of detected peer NT-functions.
561 * Return: number of peer ports
571 * idt_ntb_peer_port_number() - get peer port by given index
575 * Return: peer port or negative error
589 * idt_ntb_peer_port_idx() - get peer port index by given port number
596 * Return: peer NT-function port index or negative error
610 * There is no any ready-to-use method to have peer ports notified if NTB
617 * state changes of peer ports.
630 * NOTE Since it's not possible to determine when all the NTB peer drivers are
823 * idt_ntb_peer_link_is_up() - test whether peer NTB link is up
849 /* Check whether bus mastering is enabled on the peer port */
854 /* Check if Completion TLPs translation is enabled on the peer port */
859 /* Read Mapping table entry corresponding to the peer partition */
874 * Get the bitfield of NTB link states for all peer ports
900 /* Collect all the peer ports link states into the bitfield */
1122 * Scan BAR setup registers of local and peer ports to determine the
1129 struct idt_ntb_peer *peer;
1140 /* Scan memory windows of the peer ports */
1142 peer = &ndev->peers[pidx];
1143 peer->mws = idt_scan_mws(ndev, peer->port, &peer->mw_cnt);
1144 if (IS_ERR(peer->mws)) {
1146 "Failed to scan mws of port %hhu", peer->port);
1147 return PTR_ERR(peer->mws);
1162 * @pidx: Port index of peer device.
1164 * The value is returned for the specified peer, so generally speaking it can
1183 * @pidx: Port index of peer device.
1189 * The peer memory window parameters have already been determined, so just
1200 struct idt_ntb_peer *peer;
1205 peer = &ndev->peers[pidx];
1207 if (widx < 0 || peer->mw_cnt <= widx)
1211 *addr_align = peer->mws[widx].addr_align;
1214 *size_align = peer->mws[widx].size_align;
1217 *size_max = peer->mws[widx].size_max;
1276 * @pidx: Port index of peer device the translation address received from.
1349 * @pidx: Port index of peer device.
1406 * It can lead to situations when client driver sets some peer doorbell bits
1550 * idt_ntb_peer_db_set() - set bits in the peer doorbell register
1555 * IDT PCIe-switches exposes local outbound doorbell register to change peer
1576 * even more than one peer inbound message registers by setting global
1669 * incoming data and failures in case if peer message register isn't freed.
1744 * @pidx: OUT - Port index of peer device a message retrieved from
1778 * @pidx: Port index of peer device a message being sent to
1782 * Just try to send data to a peer. Message status register should be
2425 "Inbound Memory Windows for peer %hhu (Port %hhu):\n",
2483 "\t%hhu. 0x%08x from peer %d (Port %hhu)\n",