Lines Matching refs:peer_cnt
501 ndev->peer_cnt = 0; in idt_scan_ports()
521 ndev->peers[ndev->peer_cnt].port = port; in idt_scan_ports()
522 ndev->peers[ndev->peer_cnt].part = part; in idt_scan_ports()
524 ndev->port_idx_map[port] = ndev->peer_cnt; in idt_scan_ports()
525 ndev->part_idx_map[part] = ndev->peer_cnt; in idt_scan_ports()
526 ndev->peer_cnt++; in idt_scan_ports()
531 ndev->port, ndev->peer_cnt); in idt_scan_ports()
534 if (ndev->peer_cnt == 0) { in idt_scan_ports()
567 return ndev->peer_cnt; in idt_ntb_peer_port_count()
581 if (pidx < 0 || ndev->peer_cnt <= pidx) in idt_ntb_peer_port_number()
646 for (pidx = 0; pidx < ndev->peer_cnt; pidx++) { in idt_init_link()
902 for (pidx = 0; pidx < ndev->peer_cnt; pidx++) { in idt_ntb_link_is_up()
1141 for (pidx = 0; pidx < ndev->peer_cnt; pidx++) { in idt_init_mws()
1174 if (pidx < 0 || ndev->peer_cnt <= pidx) in idt_ntb_mw_count()
1202 if (pidx < 0 || ndev->peer_cnt <= pidx) in idt_ntb_mw_get_align()
1294 if (pidx < 0 || ndev->peer_cnt <= pidx) in idt_ntb_peer_mw_set_trans()
1362 if (pidx < 0 || ndev->peer_cnt <= pidx) in idt_ntb_peer_mw_clear_trans()
1797 if (pidx < 0 || ndev->peer_cnt <= pidx) in idt_ntb_peer_msg_write()
2365 for (idx = 0; idx < ndev->peer_cnt; idx++) { in idt_dbgfs_info_read()
2423 for (pidx = 0; pidx < ndev->peer_cnt; pidx++) { in idt_dbgfs_info_read()