Lines Matching refs:peers
265 struct tool_peer *peers; member
654 tc->peers[pidx].port_no = peer_port; in sysctl_peer_port_number()
682 tc->peers = malloc(tc->peer_cnt * sizeof(*tc->peers), M_NTB_TOOL, in tool_init_peers()
685 tc->peers[pidx].pidx = pidx; in tool_init_peers()
686 tc->peers[pidx].tc = tc; in tool_init_peers()
694 free(tc->peers, M_NTB_TOOL); in tool_clear_peers()
808 struct tool_mw *inmw = &tc->peers[pidx].inmws[widx]; in tool_setup_mw()
874 struct tool_mw *inmw = &tc->peers[pidx].inmws[widx]; in tool_free_mw()
993 for (widx = 0; widx < tc->peers[pidx].inmw_cnt; widx++) in tool_clear_mws()
995 free(tc->peers[pidx].inmws, M_NTB_TOOL); in tool_clear_mws()
1007 tc->peers[pidx].inmw_cnt = ntb_mw_count(tc->dev); in tool_init_mws()
1008 tc->peers[pidx].inmws = malloc(tc->peers[pidx].inmw_cnt * in tool_init_mws()
1009 sizeof(*tc->peers[pidx].inmws), M_NTB_TOOL, in tool_init_mws()
1012 for (widx = 0; widx < tc->peers[pidx].inmw_cnt; widx++) { in tool_init_mws()
1013 mw = &tc->peers[pidx].inmws[widx]; in tool_init_mws()
1230 tc->peers[pidx].outspad_cnt = ntb_spad_count(tc->dev); in tool_init_spads()
1231 tc->peers[pidx].outspads = malloc(tc->peers[pidx].outspad_cnt * in tool_init_spads()
1232 sizeof(*tc->peers[pidx].outspads), M_NTB_TOOL, M_WAITOK | in tool_init_spads()
1235 for (sidx = 0; sidx < tc->peers[pidx].outspad_cnt; sidx++) { in tool_init_spads()
1236 tc->peers[pidx].outspads[sidx].sidx = sidx; in tool_init_spads()
1237 tc->peers[pidx].outspads[sidx].pidx = pidx; in tool_init_spads()
1238 tc->peers[pidx].outspads[sidx].tc = tc; in tool_init_spads()
1253 free(tc->peers[pidx].outspads, M_NTB_TOOL); in tool_clear_spads()
1382 for (widx = 0; widx < tc->peers[pidx].inmw_cnt; widx++) { in tool_setup_sysctl()
1388 &tc->peers[pidx].inmws[widx], 0, in tool_setup_sysctl()
1396 &tc->peers[pidx].inmws[widx], 0, in tool_setup_sysctl()
1404 &tc->peers[pidx].inmws[widx], 0, in tool_setup_sysctl()
1408 for (sidx = 0; sidx < tc->peers[pidx].outspad_cnt; sidx++) { in tool_setup_sysctl()