Lines Matching refs:mw_cnt
1042 unsigned char *mw_cnt) in idt_scan_mws() argument
1056 *mw_cnt = 0; in idt_scan_mws()
1080 for (widx = 0; widx < en_cnt; widx++, (*mw_cnt)++) { in idt_scan_mws()
1085 if (*mw_cnt >= IDT_MAX_NR_MWS) in idt_scan_mws()
1089 mws[*mw_cnt].type = mw_type; in idt_scan_mws()
1090 mws[*mw_cnt].bar = bidx; in idt_scan_mws()
1091 mws[*mw_cnt].idx = widx; in idt_scan_mws()
1093 mws[*mw_cnt].addr_align = IDT_TRANS_ALIGN; in idt_scan_mws()
1096 mws[*mw_cnt].size_max = aprt_size; in idt_scan_mws()
1098 mws[*mw_cnt].size_max = aprt_size / 16; in idt_scan_mws()
1100 mws[*mw_cnt].size_max = aprt_size / 32; in idt_scan_mws()
1101 mws[*mw_cnt].size_align = (mw_type == IDT_MW_DIR) ? in idt_scan_mws()
1102 IDT_DIR_SIZE_ALIGN : mws[*mw_cnt].size_max; in idt_scan_mws()
1107 ret_mws = devm_kcalloc(&ndev->ntb.pdev->dev, *mw_cnt, sizeof(*ret_mws), in idt_scan_mws()
1113 memcpy(ret_mws, mws, (*mw_cnt)*sizeof(*ret_mws)); in idt_scan_mws()
1133 ndev->mws = idt_scan_mws(ndev, ndev->port, &ndev->mw_cnt); in idt_init_mws()
1143 peer->mws = idt_scan_mws(ndev, peer->port, &peer->mw_cnt); in idt_init_mws()
1177 return ndev->peers[pidx].mw_cnt; in idt_ntb_mw_count()
1207 if (widx < 0 || peer->mw_cnt <= widx) in idt_ntb_mw_get_align()
1236 return ndev->mw_cnt; in idt_ntb_peer_mw_count()
1257 if (widx < 0 || ndev->mw_cnt <= widx) in idt_ntb_peer_mw_get_addr()
1297 if (widx < 0 || ndev->mw_cnt <= widx) in idt_ntb_peer_mw_set_trans()
1365 if (widx < 0 || ndev->mw_cnt <= widx) in idt_ntb_peer_mw_clear_trans()
2399 for (idx = 0; idx < ndev->mw_cnt; idx += cnt) { in idt_dbgfs_info_read()
2429 for (idx = 0; idx < ndev->peers[pidx].mw_cnt; idx += cnt) { in idt_dbgfs_info_read()