Lines Matching defs:buf_slot
394 static int smc_ib_map_mr_sg(struct smc_buf_desc *buf_slot, u8 link_idx)
400 sg_num = ib_map_mr_sg(buf_slot->mr_rx[link_idx],
401 buf_slot->sgt[link_idx].sgl,
402 buf_slot->sgt[link_idx].orig_nents,
408 /* Allocate a memory region and map the dma mapped SG list of buf_slot */
410 struct smc_buf_desc *buf_slot, u8 link_idx)
412 if (buf_slot->mr_rx[link_idx])
415 buf_slot->mr_rx[link_idx] =
416 ib_alloc_mr(pd, IB_MR_TYPE_MEM_REG, 1 << buf_slot->order);
417 if (IS_ERR(buf_slot->mr_rx[link_idx])) {
420 rc = PTR_ERR(buf_slot->mr_rx[link_idx]);
421 buf_slot->mr_rx[link_idx] = NULL;
425 if (smc_ib_map_mr_sg(buf_slot, link_idx) != 1)
433 struct smc_buf_desc *buf_slot,
440 for_each_sg(buf_slot->sgt[lnk->link_idx].sgl, sg,
441 buf_slot->sgt[lnk->link_idx].nents, i) {
453 struct smc_buf_desc *buf_slot,
460 for_each_sg(buf_slot->sgt[lnk->link_idx].sgl, sg,
461 buf_slot->sgt[lnk->link_idx].nents, i) {
473 struct smc_buf_desc *buf_slot,
479 buf_slot->sgt[lnk->link_idx].sgl,
480 buf_slot->sgt[lnk->link_idx].orig_nents,
489 struct smc_buf_desc *buf_slot,
492 if (!buf_slot->sgt[lnk->link_idx].sgl->dma_address)
496 buf_slot->sgt[lnk->link_idx].sgl,
497 buf_slot->sgt[lnk->link_idx].orig_nents,
499 buf_slot->sgt[lnk->link_idx].sgl->dma_address = 0;