Lines Matching full:lnk
159 u8 link_uid[SMC_LGR_ID_SIZE]; /* unique lnk id */
216 /* mem region mapped to lnk */
310 struct smc_link lnk[SMC_LINKS_PER_LGR_MAX]; member
486 static inline bool smc_link_usable(struct smc_link *lnk) in smc_link_usable() argument
488 if (lnk->state == SMC_LNK_UNUSED || lnk->state == SMC_LNK_INACTIVE) in smc_link_usable()
502 static inline bool smc_link_sendable(struct smc_link *lnk) in smc_link_sendable() argument
504 return smc_link_usable(lnk) && in smc_link_sendable()
505 lnk->qp_attr.cur_qp_state == IB_QPS_RTS; in smc_link_sendable()
508 static inline bool smc_link_active(struct smc_link *lnk) in smc_link_active() argument
510 return lnk->state == SMC_LNK_ACTIVE; in smc_link_active()
513 static inline bool smc_link_shared_v2_rxbuf(struct smc_link *lnk) in smc_link_shared_v2_rxbuf() argument
515 return lnk->wr_rx_sge_cnt > 1; in smc_link_shared_v2_rxbuf()
575 int smc_rtoken_add(struct smc_link *lnk, __be64 nw_vaddr, __be32 nw_rkey);
576 int smc_rtoken_delete(struct smc_link *lnk, __be32 nw_rkey);
590 int smcr_link_init(struct smc_link_group *lgr, struct smc_link *lnk,
592 void smcr_link_clear(struct smc_link *lnk, bool log);
593 void smcr_link_hold(struct smc_link *lnk);
594 void smcr_link_put(struct smc_link *lnk);
597 int smcr_buf_map_lgr(struct smc_link *lnk);
598 int smcr_buf_reg_lgr(struct smc_link *lnk);
605 void smcr_link_down_cond(struct smc_link *lnk);
606 void smcr_link_down_cond_sched(struct smc_link *lnk);