Home
last modified time | relevance | path

Searched refs:peer_cnt (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.6/drivers/ntb/hw/idt/
Dntb_hw_idt.c501 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()
[all …]
Dntb_hw_idt.h1131 unsigned char peer_cnt; member
/Linux-v6.6/net/tipc/
Dmonitor.c89 int peer_cnt; member
206 return mon->peer_cnt > tn->mon_threshold; in tipc_mon_is_active()
281 member_cnt = dom_size(mon->peer_cnt) - 1; in mon_update_local_domain()
313 dz = dom_size(mon->peer_cnt); in mon_update_neighbors()
371 mon->peer_cnt--; in tipc_mon_remove_peer()
417 mon->peer_cnt++; in tipc_mon_add_peer()
635 int best_member_cnt = dom_size(mon->peer_cnt) - 1; in mon_timeout()
669 mon->peer_cnt = 1; in tipc_mon_create()
856 if (nla_put_u32(msg->skb, TIPC_NLA_MON_PEERCNT, mon->peer_cnt)) in __tipc_nl_add_monitor()
/Linux-v6.6/drivers/ntb/test/
Dntb_tool.c263 int peer_cnt; member
443 tc->peer_cnt = ntb_peer_port_count(tc->ntb); in tool_init_peers()
444 tc->peers = devm_kcalloc(&tc->ntb->dev, tc->peer_cnt, in tool_init_peers()
449 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_init_peers()
976 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_init_mws()
1015 for (pidx = 0; pidx < tc->peer_cnt; pidx++) in tool_clear_mws()
1251 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_init_spads()
1415 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_init_msgs()
1548 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_setup_dbgfs()