Lines Matching refs:dma_len
256 sg->dma_len = 0;
268 WARN_ON(sg->dma_len);
270 sg->dma_len = ib_dma_map_sg(dev, sg->list, sg->len, DMA_BIDIRECTIONAL);
271 if (unlikely(!sg->dma_len)) {
280 for (i = 0; i < sg->dma_len; ++i) {
281 unsigned int dma_len = ib_sg_dma_len(dev, &sg->list[i]); local
285 sg->bytes += dma_len;
287 end_addr = dma_addr + dma_len;
294 if (i < sg->dma_len - 1)
312 for (i = j = 0; i < sg->dma_len; ++i) {
313 unsigned int dma_len = ib_sg_dma_len(dev, &sg->list[i]); local
317 end_addr = dma_addr + dma_len;
328 sg->dma_len = 0;
467 ibmr->mapping.m_sg.dma_len, DMA_BIDIRECTIONAL);
471 ibmr->mapping.m_sg.dma_len, DMA_BIDIRECTIONAL);
716 f_wr.wr.fast_reg.page_list_len = mapping->m_sg.dma_len;
777 if (mapping->m_sg.dma_len > pool->max_message_size) {
806 if (!ibmr->mapping.m_sg.dma_len)