Lines Matching refs:lgr
96 if (link->lgr->smc_version != SMC_V2 ||
104 memset(link->lgr->wr_tx_buf_v2, 0,
105 sizeof(*link->lgr->wr_tx_buf_v2));
122 if (link->lgr->smc_version == SMC_V2) {
125 memset(link->lgr->wr_tx_buf_v2, 0,
126 sizeof(*link->lgr->wr_tx_buf_v2));
201 struct smc_link_group *lgr = smc_get_lgr(link);
210 if (in_softirq() || lgr->terminating) {
218 lgr->terminating ||
266 *wr_buf = link->lgr->wr_tx_buf_v2;
288 } else if (link->lgr->smc_version == SMC_V2 &&
293 memset(&link->lgr->wr_tx_buf_v2, 0,
294 sizeof(link->lgr->wr_tx_buf_v2));
558 int sges_per_buf = (lnk->lgr->smc_version == SMC_V2) ? 2 : 1;
591 if (lnk->lgr->smc_version == SMC_V2) {
617 if (lnk->lgr->smc_version == SMC_V2) {
680 void smc_wr_free_lgr_mem(struct smc_link_group *lgr)
682 if (lgr->smc_version < SMC_V2)
685 kfree(lgr->wr_rx_buf_v2);
686 lgr->wr_rx_buf_v2 = NULL;
687 kfree(lgr->wr_tx_buf_v2);
688 lgr->wr_tx_buf_v2 = NULL;
723 int smc_wr_alloc_lgr_mem(struct smc_link_group *lgr)
725 if (lgr->smc_version < SMC_V2)
728 lgr->wr_rx_buf_v2 = kzalloc(SMC_WR_BUF_V2_SIZE, GFP_KERNEL);
729 if (!lgr->wr_rx_buf_v2)
731 lgr->wr_tx_buf_v2 = kzalloc(SMC_WR_BUF_V2_SIZE, GFP_KERNEL);
732 if (!lgr->wr_tx_buf_v2) {
733 kfree(lgr->wr_rx_buf_v2);
741 int sges_per_buf = link->lgr->smc_version == SMC_V2 ? 2 : 1;
793 if (link->lgr->smc_version == SMC_V2) {
880 if (lnk->lgr->smc_version == SMC_V2) {
882 lnk->lgr->wr_rx_buf_v2, SMC_WR_BUF_V2_SIZE,
890 lnk->lgr->wr_tx_buf_v2, SMC_WR_BUF_V2_SIZE,