Lines Matching refs:peers

262 	struct tool_peer    *peers;  member
651 tc->peers[pidx].port_no = peer_port; in sysctl_peer_port_number()
679 tc->peers = malloc(tc->peer_cnt * sizeof(*tc->peers), M_NTB_TOOL, in tool_init_peers()
682 tc->peers[pidx].pidx = pidx; in tool_init_peers()
683 tc->peers[pidx].tc = tc; in tool_init_peers()
691 free(tc->peers, M_NTB_TOOL); in tool_clear_peers()
805 struct tool_mw *inmw = &tc->peers[pidx].inmws[widx]; in tool_setup_mw()
871 struct tool_mw *inmw = &tc->peers[pidx].inmws[widx]; in tool_free_mw()
990 for (widx = 0; widx < tc->peers[pidx].inmw_cnt; widx++) in tool_clear_mws()
992 free(tc->peers[pidx].inmws, M_NTB_TOOL); in tool_clear_mws()
1004 tc->peers[pidx].inmw_cnt = ntb_mw_count(tc->dev); in tool_init_mws()
1005 tc->peers[pidx].inmws = malloc(tc->peers[pidx].inmw_cnt * in tool_init_mws()
1006 sizeof(*tc->peers[pidx].inmws), M_NTB_TOOL, in tool_init_mws()
1009 for (widx = 0; widx < tc->peers[pidx].inmw_cnt; widx++) { in tool_init_mws()
1010 mw = &tc->peers[pidx].inmws[widx]; in tool_init_mws()
1227 tc->peers[pidx].outspad_cnt = ntb_spad_count(tc->dev); in tool_init_spads()
1228 tc->peers[pidx].outspads = malloc(tc->peers[pidx].outspad_cnt * in tool_init_spads()
1229 sizeof(*tc->peers[pidx].outspads), M_NTB_TOOL, M_WAITOK | in tool_init_spads()
1232 for (sidx = 0; sidx < tc->peers[pidx].outspad_cnt; sidx++) { in tool_init_spads()
1233 tc->peers[pidx].outspads[sidx].sidx = sidx; in tool_init_spads()
1234 tc->peers[pidx].outspads[sidx].pidx = pidx; in tool_init_spads()
1235 tc->peers[pidx].outspads[sidx].tc = tc; in tool_init_spads()
1250 free(tc->peers[pidx].outspads, M_NTB_TOOL); in tool_clear_spads()
1379 for (widx = 0; widx < tc->peers[pidx].inmw_cnt; widx++) { in tool_setup_sysctl()
1385 &tc->peers[pidx].inmws[widx], 0, in tool_setup_sysctl()
1393 &tc->peers[pidx].inmws[widx], 0, in tool_setup_sysctl()
1401 &tc->peers[pidx].inmws[widx], 0, in tool_setup_sysctl()
1405 for (sidx = 0; sidx < tc->peers[pidx].outspad_cnt; sidx++) { in tool_setup_sysctl()