Lines Matching refs:smc_link
71 static void smc_ibdev_cnt_inc(struct smc_link *lnk) in smc_ibdev_cnt_inc()
76 static void smc_ibdev_cnt_dec(struct smc_link *lnk) in smc_ibdev_cnt_dec()
132 struct smc_link *lnk = &conn->lgr->lnk[i]; in smcr_lgr_conn_assign_link()
142 struct smc_link *lnk2; in smcr_lgr_conn_assign_link()
418 struct smc_link *link, in smc_nl_fill_lgr_link()
703 struct smc_link *lnk = &lgr->lnk[i]; in smcr_lgr_link_deactivate_all()
779 static void smcr_copy_dev_info_to_link(struct smc_link *link) in smcr_copy_dev_info_to_link()
788 int smcr_link_init(struct smc_link_group *lgr, struct smc_link *lnk, in smcr_link_init()
861 memset(lnk, 0, sizeof(struct smc_link)); in smcr_link_init()
875 struct smc_link *lnk; in smc_lgr_create()
1065 struct smc_link *to_lnk) in smc_switch_link_and_count()
1076 struct smc_link *smc_switch_conns(struct smc_link_group *lgr, in smc_switch_conns()
1077 struct smc_link *from_lnk, bool is_dev_err) in smc_switch_conns()
1079 struct smc_link *to_lnk = NULL; in smc_switch_conns()
1277 struct smc_link *lnk) in smcr_buf_unmap_link()
1299 static void smcr_buf_unmap_lgr(struct smc_link *lnk) in smcr_buf_unmap_lgr()
1319 static void smcr_rtoken_clear_link(struct smc_link *lnk) in smcr_rtoken_clear_link()
1330 static void __smcr_link_clear(struct smc_link *lnk) in __smcr_link_clear()
1339 memset(lnk, 0, sizeof(struct smc_link)); in __smcr_link_clear()
1347 void smcr_link_clear(struct smc_link *lnk, bool log) in smcr_link_clear()
1364 void smcr_link_hold(struct smc_link *lnk) in smcr_link_hold()
1369 void smcr_link_put(struct smc_link *lnk) in smcr_link_put()
1744 struct smc_link *link; in smcr_port_add()
1767 static void smcr_link_down(struct smc_link *lnk) in smcr_link_down()
1770 struct smc_link *to_lnk; in smcr_link_down()
1808 void smcr_link_down_cond(struct smc_link *lnk) in smcr_link_down_cond()
1817 void smcr_link_down_cond_sched(struct smc_link *lnk) in smcr_link_down_cond_sched()
1837 struct smc_link *lnk = &lgr->lnk[i]; in smcr_port_err()
1848 struct smc_link *link = container_of(work, struct smc_link, in smc_link_down_work()
1915 struct smc_link *lnk; in smcr_lgr_match()
2121 struct smc_link *lnk) in smcr_buf_map_link()
2197 int smcr_link_reg_buf(struct smc_link *link, struct smc_buf_desc *buf_desc) in smcr_link_reg_buf()
2215 static int _smcr_buf_map_lgr(struct smc_link *lnk, struct rw_semaphore *lock, in _smcr_buf_map_lgr()
2235 int smcr_buf_map_lgr(struct smc_link *lnk) in smcr_buf_map_lgr()
2256 int smcr_buf_reg_lgr(struct smc_link *lnk) in smcr_buf_reg_lgr()
2353 struct smc_link *lnk = &lgr->lnk[i]; in smcr_buf_map_usable_links()
2647 int smc_rtoken_add(struct smc_link *lnk, __be64 nw_vaddr, __be32 nw_rkey) in smc_rtoken_add()
2671 int smc_rtoken_delete(struct smc_link *lnk, __be32 nw_rkey) in smc_rtoken_delete()
2693 struct smc_link *lnk, in smc_rmb_rtoken_handling()