Lines Matching refs:widx

213 	int                widx;  member
803 tool_setup_mw(struct tool_ctx *tc, unsigned int pidx, unsigned int widx, in tool_setup_mw() argument
806 struct tool_mw *inmw = &tc->peers[pidx].inmws[widx]; in tool_setup_mw()
844 rc = ntb_mw_set_trans(tc->dev, widx, inmw->dma_base, inmw->size); in tool_setup_mw()
870 tool_free_mw(struct tool_ctx *tc, int pidx, int widx) in tool_free_mw() argument
872 struct tool_mw *inmw = &tc->peers[pidx].inmws[widx]; in tool_free_mw()
875 ntb_mw_clear_trans(tc->dev, widx); in tool_free_mw()
904 sbuf_printf(sb, "\nInbound MW \t%d\n", inmw->widx); in tool_mw_trans_read()
937 tool_free_mw(tc, inmw->pidx, inmw->widx); in tool_mw_trans_write()
939 rc = tool_setup_mw(tc, inmw->pidx, inmw->widx, wsize); in tool_mw_trans_write()
987 int widx, pidx; in tool_clear_mws() local
991 for (widx = 0; widx < tc->peers[pidx].inmw_cnt; widx++) in tool_clear_mws()
992 tool_free_mw(tc, pidx, widx); in tool_clear_mws()
1001 int widx, pidx, rc; in tool_init_mws() local
1010 for (widx = 0; widx < tc->peers[pidx].inmw_cnt; widx++) { in tool_init_mws()
1011 mw = &tc->peers[pidx].inmws[widx]; in tool_init_mws()
1014 mw->widx = widx; in tool_init_mws()
1019 rc = ntb_mw_get_range(tc->dev, widx, &mw->phys_addr, in tool_init_mws()
1312 unsigned int pidx, sidx, widx; in tool_setup_sysctl() local
1380 for (widx = 0; widx < tc->peers[pidx].inmw_cnt; widx++) { in tool_setup_sysctl()
1381 snprintf(buf, sizeof(buf), "mw_trans%d", widx); in tool_setup_sysctl()
1382 snprintf(desc, sizeof(desc), "mw trans%d info", widx); in tool_setup_sysctl()
1386 &tc->peers[pidx].inmws[widx], 0, in tool_setup_sysctl()
1389 snprintf(buf, sizeof(buf), "mw%d", widx); in tool_setup_sysctl()
1390 snprintf(desc, sizeof(desc), "mw%d info", widx); in tool_setup_sysctl()
1394 &tc->peers[pidx].inmws[widx], 0, in tool_setup_sysctl()
1397 snprintf(buf, sizeof(buf), "peer_mw%d", widx); in tool_setup_sysctl()
1398 snprintf(desc, sizeof(desc), "peer_mw%d info", widx); in tool_setup_sysctl()
1402 &tc->peers[pidx].inmws[widx], 0, in tool_setup_sysctl()