• Home
  • Raw
  • Download

Lines Matching refs:link

102 	struct rb_node **link, *parent = NULL;  in smc_lgr_add_alert_token()  local
105 link = &conn->lgr->conns_all.rb_node; in smc_lgr_add_alert_token()
106 while (*link) { in smc_lgr_add_alert_token()
107 struct smc_connection *cur = rb_entry(*link, in smc_lgr_add_alert_token()
110 parent = *link; in smc_lgr_add_alert_token()
112 link = &parent->rb_left; in smc_lgr_add_alert_token()
114 link = &parent->rb_right; in smc_lgr_add_alert_token()
117 rb_link_node(&conn->alert_node, parent, link); in smc_lgr_add_alert_token()
317 struct smc_link *link, in smc_nl_fill_lgr_link() argument
337 if (nla_put_u8(skb, SMC_NLA_LINK_ID, link->link_id)) in smc_nl_fill_lgr_link()
339 if (nla_put_u32(skb, SMC_NLA_LINK_STATE, link->state)) in smc_nl_fill_lgr_link()
342 atomic_read(&link->conn_cnt))) in smc_nl_fill_lgr_link()
344 if (nla_put_u8(skb, SMC_NLA_LINK_IB_PORT, link->ibport)) in smc_nl_fill_lgr_link()
346 if (nla_put_u32(skb, SMC_NLA_LINK_NET_DEV, link->ndev_ifidx)) in smc_nl_fill_lgr_link()
348 snprintf(smc_ibname, sizeof(smc_ibname), "%s", link->ibname); in smc_nl_fill_lgr_link()
351 memcpy(&link_uid, link->link_uid, sizeof(link_uid)); in smc_nl_fill_lgr_link()
354 memcpy(&link_uid, link->peer_link_uid, sizeof(link_uid)); in smc_nl_fill_lgr_link()
358 smc_gid_be16_convert(smc_gid_target, link->gid); in smc_nl_fill_lgr_link()
362 smc_gid_be16_convert(smc_gid_target, link->peer_gid); in smc_nl_fill_lgr_link()
681 static void smcr_copy_dev_info_to_link(struct smc_link *link) in smcr_copy_dev_info_to_link() argument
683 struct smc_ib_device *smcibdev = link->smcibdev; in smcr_copy_dev_info_to_link()
685 snprintf(link->ibname, sizeof(link->ibname), "%s", in smcr_copy_dev_info_to_link()
687 link->ndev_ifidx = smcibdev->ndev_ifidx[link->ibport - 1]; in smcr_copy_dev_info_to_link()
1491 struct smc_link *link; in smcr_port_add() local
1500 link = smc_llc_usable_link(lgr); in smcr_port_add()
1501 if (link) in smcr_port_add()
1502 smc_llc_add_link_local(link); in smcr_port_add()
1587 struct smc_link *link = container_of(work, struct smc_link, in smc_link_down_work() local
1589 struct smc_link_group *lgr = link->lgr; in smc_link_down_work()
1595 smcr_link_down(link); in smc_link_down_work()
1878 int smcr_link_reg_rmb(struct smc_link *link, struct smc_buf_desc *rmb_desc) in smcr_link_reg_rmb() argument
1880 if (list_empty(&link->lgr->list)) in smcr_link_reg_rmb()
1882 if (!rmb_desc->is_reg_mr[link->link_idx]) { in smcr_link_reg_rmb()
1884 if (smc_wr_reg_send(link, rmb_desc->mr_rx[link->link_idx])) { in smcr_link_reg_rmb()
1888 rmb_desc->is_reg_mr[link->link_idx] = true; in smcr_link_reg_rmb()