Lines Matching refs:is_rmb
52 static void smc_buf_free(struct smc_link_group *lgr, bool is_rmb,
225 bool is_rmb, in smc_lgr_buf_list_add() argument
230 if (is_rmb) { in smc_lgr_buf_list_add()
240 bool is_rmb, in smc_lgr_buf_list_del() argument
244 if (is_rmb) { in smc_lgr_buf_list_del()
1154 static void smcr_buf_unuse(struct smc_buf_desc *buf_desc, bool is_rmb, in smcr_buf_unuse() argument
1160 if (is_rmb && buf_desc->is_conf_rkey && !list_empty(&lgr->list)) { in smcr_buf_unuse()
1175 lock = is_rmb ? &lgr->rmbs_lock : in smcr_buf_unuse()
1178 smc_lgr_buf_list_del(lgr, is_rmb, buf_desc); in smcr_buf_unuse()
1181 smc_buf_free(lgr, is_rmb, buf_desc); in smcr_buf_unuse()
1276 static void smcr_buf_unmap_link(struct smc_buf_desc *buf_desc, bool is_rmb, in smcr_buf_unmap_link() argument
1279 if (is_rmb || buf_desc->is_vm) in smcr_buf_unmap_link()
1284 if ((is_rmb || buf_desc->is_vm) && in smcr_buf_unmap_link()
1289 if (is_rmb) in smcr_buf_unmap_link()
1375 static void smcr_buf_free(struct smc_link_group *lgr, bool is_rmb, in smcr_buf_free() argument
1381 smcr_buf_unmap_link(buf_desc, is_rmb, &lgr->lnk[i]); in smcr_buf_free()
1403 static void smc_buf_free(struct smc_link_group *lgr, bool is_rmb, in smc_buf_free() argument
1407 smcd_buf_free(lgr, is_rmb, buf_desc); in smc_buf_free()
1409 smcr_buf_free(lgr, is_rmb, buf_desc); in smc_buf_free()
1412 static void __smc_lgr_free_bufs(struct smc_link_group *lgr, bool is_rmb) in __smc_lgr_free_bufs() argument
1419 if (is_rmb) in __smc_lgr_free_bufs()
1425 smc_lgr_buf_list_del(lgr, is_rmb, buf_desc); in __smc_lgr_free_bufs()
1426 smc_buf_free(lgr, is_rmb, buf_desc); in __smc_lgr_free_bufs()
2061 static u8 smc_compress_bufsize(int size, bool is_smcd, bool is_rmb) in smc_compress_bufsize() argument
2073 if (!is_smcd && is_rmb) in smc_compress_bufsize()
2120 static int smcr_buf_map_link(struct smc_buf_desc *buf_desc, bool is_rmb, in smcr_buf_map_link() argument
2160 is_rmb ? DMA_FROM_DEVICE : DMA_TO_DEVICE); in smcr_buf_map_link()
2170 if (is_rmb || buf_desc->is_vm) { in smcr_buf_map_link()
2172 access_flags = is_rmb ? in smcr_buf_map_link()
2181 is_rmb ? DMA_FROM_DEVICE : DMA_TO_DEVICE); in smcr_buf_map_link()
2188 is_rmb ? DMA_FROM_DEVICE : DMA_TO_DEVICE); in smcr_buf_map_link()
2216 struct list_head *lst, bool is_rmb) in _smcr_buf_map_lgr() argument
2225 rc = smcr_buf_map_link(buf_desc, is_rmb, lnk); in _smcr_buf_map_lgr()
2346 struct smc_buf_desc *buf_desc, bool is_rmb) in smcr_buf_map_usable_links() argument
2357 if (smcr_buf_map_link(buf_desc, is_rmb, lnk)) { in smcr_buf_map_usable_links()
2406 static int __smc_buf_create(struct smc_sock *smc, bool is_smcd, bool is_rmb) in __smc_buf_create() argument
2416 if (is_rmb) in __smc_buf_create()
2423 for (bufsize_comp = smc_compress_bufsize(bufsize, is_smcd, is_rmb); in __smc_buf_create()
2425 if (is_rmb) { in __smc_buf_create()
2438 SMC_STAT_RMB_SIZE(smc, is_smcd, is_rmb, true, bufsize); in __smc_buf_create()
2439 SMC_STAT_BUF_REUSE(smc, is_smcd, is_rmb); in __smc_buf_create()
2444 buf_desc = smcd_new_buf_create(lgr, is_rmb, bufsize); in __smc_buf_create()
2453 SMC_STAT_RMB_DOWNGRADED(smc, is_smcd, is_rmb); in __smc_buf_create()
2458 SMC_STAT_RMB_ALLOC(smc, is_smcd, is_rmb); in __smc_buf_create()
2459 SMC_STAT_RMB_SIZE(smc, is_smcd, is_rmb, true, bufsize); in __smc_buf_create()
2462 smc_lgr_buf_list_add(lgr, is_rmb, buf_list, buf_desc); in __smc_buf_create()
2471 if (smcr_buf_map_usable_links(lgr, buf_desc, is_rmb)) { in __smc_buf_create()
2472 smcr_buf_unuse(buf_desc, is_rmb, lgr); in __smc_buf_create()
2477 if (is_rmb) { in __smc_buf_create()