Lines Matching defs:lgr
59 static inline struct list_head *smc_lgr_list_head(struct smc_link_group *lgr, in smc_lgr_list_head()
81 static void smc_lgr_schedule_free_work(struct smc_link_group *lgr) in smc_lgr_schedule_free_work()
199 struct smc_link_group *lgr = conn->lgr; in __smc_lgr_unregister_conn() local
213 struct smc_link_group *lgr = conn->lgr; in smc_lgr_unregister_conn() local
224 static void smc_lgr_buf_list_add(struct smc_link_group *lgr, in smc_lgr_buf_list_add()
239 static void smc_lgr_buf_list_del(struct smc_link_group *lgr, in smc_lgr_buf_list_del()
309 static int smc_nl_fill_lgr_v2_common(struct smc_link_group *lgr, in smc_nl_fill_lgr_v2_common()
340 static int smc_nl_fill_smcr_lgr_v2(struct smc_link_group *lgr, in smc_nl_fill_smcr_lgr_v2()
365 static int smc_nl_fill_lgr(struct smc_link_group *lgr, in smc_nl_fill_lgr()
417 static int smc_nl_fill_lgr_link(struct smc_link_group *lgr, in smc_nl_fill_lgr_link()
478 static int smc_nl_handle_lgr(struct smc_link_group *lgr, in smc_nl_handle_lgr()
518 struct smc_link_group *lgr; in smc_nl_fill_lgr_list() local
536 static int smc_nl_fill_smcd_lgr(struct smc_link_group *lgr, in smc_nl_fill_smcd_lgr()
611 struct smc_link_group *lgr; in smc_nl_handle_smcd_lgr() local
682 void smc_lgr_cleanup_early(struct smc_link_group *lgr) in smc_lgr_cleanup_early()
698 static void smcr_lgr_link_deactivate_all(struct smc_link_group *lgr) in smcr_lgr_link_deactivate_all()
716 struct smc_link_group *lgr = container_of(to_delayed_work(work), in smc_lgr_free_work() local
752 struct smc_link_group *lgr = container_of(work, struct smc_link_group, in smc_lgr_terminate_work() local
759 static u8 smcr_next_link_id(struct smc_link_group *lgr) in smcr_next_link_id()
788 int smcr_link_init(struct smc_link_group *lgr, struct smc_link *lnk, in smcr_link_init()
872 struct smc_link_group *lgr; in smc_lgr_create() local
1076 struct smc_link *smc_switch_conns(struct smc_link_group *lgr, in smc_switch_conns()
1155 struct smc_link_group *lgr) in smcr_buf_unuse()
1204 struct smc_link_group *lgr) in smc_buf_unuse()
1236 struct smc_link_group *lgr = conn->lgr; in smc_conn_free() local
1301 struct smc_link_group *lgr = lnk->lgr; in smcr_buf_unmap_lgr() local
1321 struct smc_link_group *lgr = lnk->lgr; in smcr_rtoken_clear_link() local
1332 struct smc_link_group *lgr = lnk->lgr; in __smcr_link_clear() local
1375 static void smcr_buf_free(struct smc_link_group *lgr, bool is_rmb, in smcr_buf_free()
1390 static void smcd_buf_free(struct smc_link_group *lgr, bool is_dmb, in smcd_buf_free()
1403 static void smc_buf_free(struct smc_link_group *lgr, bool is_rmb, in smc_buf_free()
1412 static void __smc_lgr_free_bufs(struct smc_link_group *lgr, bool is_rmb) in __smc_lgr_free_bufs()
1431 static void smc_lgr_free_bufs(struct smc_link_group *lgr) in smc_lgr_free_bufs()
1440 static void __smc_lgr_free(struct smc_link_group *lgr) in __smc_lgr_free()
1455 static void smc_lgr_free(struct smc_link_group *lgr) in smc_lgr_free()
1477 void smc_lgr_hold(struct smc_link_group *lgr) in smc_lgr_hold()
1482 void smc_lgr_put(struct smc_link_group *lgr) in smc_lgr_put()
1522 static void smc_lgr_cleanup(struct smc_link_group *lgr) in smc_lgr_cleanup()
1540 static void __smc_lgr_terminate(struct smc_link_group *lgr, bool soft) in __smc_lgr_terminate()
1573 void smc_lgr_terminate_sched(struct smc_link_group *lgr) in smc_lgr_terminate_sched()
1593 struct smc_link_group *lgr, *l; in smc_smcd_terminate() local
1622 struct smc_link_group *lgr, *lg; in smc_smcd_terminate_all() local
1646 struct smc_link_group *lgr, *lg; in smc_smcr_terminate_all() local
1682 void smcr_lgr_set_type(struct smc_link_group *lgr, enum smc_lgr_type new_type) in smcr_lgr_set_type()
1717 void smcr_lgr_set_type_asym(struct smc_link_group *lgr, in smcr_lgr_set_type_asym()
1740 struct smc_link_group *lgr, *n; in smcr_port_add() local
1769 struct smc_link_group *lgr = lnk->lgr; in smcr_link_down() local
1827 struct smc_link_group *lgr, *n; in smcr_port_err() local
1850 struct smc_link_group *lgr = link->lgr; in smc_link_down_work() local
1908 static bool smcr_lgr_match(struct smc_link_group *lgr, u8 smcr_version, in smcr_lgr_match()
1939 static bool smcd_lgr_match(struct smc_link_group *lgr, in smcd_lgr_match()
1960 struct smc_link_group *lgr; in smc_conn_create() local
2237 struct smc_link_group *lgr = lnk->lgr; in smcr_buf_map_lgr() local
2258 struct smc_link_group *lgr = lnk->lgr; in smcr_buf_reg_lgr() local
2297 static struct smc_buf_desc *smcr_new_buf_create(struct smc_link_group *lgr, in smcr_new_buf_create()
2345 static int smcr_buf_map_usable_links(struct smc_link_group *lgr, in smcr_buf_map_usable_links()
2370 static struct smc_buf_desc *smcd_new_buf_create(struct smc_link_group *lgr, in smcd_new_buf_create()
2410 struct smc_link_group *lgr = conn->lgr; in __smc_buf_create() local
2588 static inline int smc_rmb_reserve_rtoken_idx(struct smc_link_group *lgr) in smc_rmb_reserve_rtoken_idx()
2599 static int smc_rtoken_find_by_link(struct smc_link_group *lgr, int lnk_idx, in smc_rtoken_find_by_link()
2613 void smc_rtoken_set(struct smc_link_group *lgr, int link_idx, int link_idx_new, in smc_rtoken_set()
2626 void smc_rtoken_set2(struct smc_link_group *lgr, int rtok_idx, int link_id, in smc_rtoken_set2()
2649 struct smc_link_group *lgr = smc_get_lgr(lnk); in smc_rtoken_add() local
2673 struct smc_link_group *lgr = smc_get_lgr(lnk); in smc_rtoken_delete() local