Lines Matching full:mw

536 	if (!strcmp(type, "mw"))  in tool_mw_read_fn()
537 sbuf_printf(sb, "\nConfigured MW size\t: %zu\n", inmw->size); in tool_mw_read_fn()
539 sbuf_printf(sb, "\nConfigured Peer MW size\t: %zu\n", in tool_mw_read_fn()
545 * Data will be read based on MW size provided by the user using nbytes, in tool_mw_read_fn()
547 * above loop calculation which is limiting or setting the MW read size. in tool_mw_read_fn()
600 device_printf(inmw->tc->dev, "%s: configured mw size :%zi and " in tool_mw_write_fn()
791 "mw"); in sysctl_mw_handle()
820 device_printf(tc->dev, "Unable to create MW tag of size " in tool_setup_mw()
828 device_printf(tc->dev, "Unable to allocate MW buffer of size " in tool_setup_mw()
836 device_printf(tc->dev, "Unable to load MW buffer of size " in tool_setup_mw()
903 sbuf_printf(sb, "\nInbound MW \t%d\n", inmw->widx); in tool_mw_trans_read()
930 /* No need to re-setup mw */ in tool_mw_trans_write()
934 /* free mw dma buffer */ in tool_mw_trans_write()
973 inmw->mw_peer_buf_size, "mw"); in sysctl_peer_mw_handle()
999 struct tool_mw *mw; in tool_init_mws() local
1010 mw = &tc->peers[pidx].inmws[widx]; in tool_init_mws()
1011 memset((void *)mw, 0, sizeof(*mw)); in tool_init_mws()
1012 mw->tc = tc; in tool_init_mws()
1013 mw->widx = widx; in tool_init_mws()
1014 mw->pidx = pidx; in tool_init_mws()
1015 mw->mw_buf_offset = DEFAULT_MW_OFF; in tool_init_mws()
1016 mw->mw_buf_size = DEFAULT_MW_SIZE; in tool_init_mws()
1017 /* get the tx buff details for each mw attached with each peer */ in tool_init_mws()
1018 rc = ntb_mw_get_range(tc->dev, widx, &mw->phys_addr, in tool_init_mws()
1019 &mw->mm_base, &mw->phys_size, &mw->xlat_align, in tool_init_mws()
1020 &mw->xlat_align_size, &mw->addr_limit); in tool_init_mws()
1381 snprintf(desc, sizeof(desc), "mw trans%d info", widx); in tool_setup_sysctl()
1388 snprintf(buf, sizeof(buf), "mw%d", widx); in tool_setup_sysctl()
1389 snprintf(desc, sizeof(desc), "mw%d info", widx); in tool_setup_sysctl()