Lines Matching full:rx_desc
228 struct iser_rx_desc *rx_desc; in iser_alloc_rx_descriptors() local
249 rx_desc = iser_conn->rx_descs; in iser_alloc_rx_descriptors()
251 for (i = 0; i < iser_conn->qp_max_recv_dtos; i++, rx_desc++) { in iser_alloc_rx_descriptors()
252 dma_addr = ib_dma_map_single(device->ib_device, (void *)rx_desc, in iser_alloc_rx_descriptors()
257 rx_desc->dma_addr = dma_addr; in iser_alloc_rx_descriptors()
258 rx_desc->cqe.done = iser_task_rsp; in iser_alloc_rx_descriptors()
259 rx_sg = &rx_desc->rx_sg; in iser_alloc_rx_descriptors()
260 rx_sg->addr = rx_desc->dma_addr; in iser_alloc_rx_descriptors()
268 rx_desc = iser_conn->rx_descs; in iser_alloc_rx_descriptors()
269 for (j = 0; j < i; j++, rx_desc++) in iser_alloc_rx_descriptors()
270 ib_dma_unmap_single(device->ib_device, rx_desc->dma_addr, in iser_alloc_rx_descriptors()
286 struct iser_rx_desc *rx_desc; in iser_free_rx_descriptors() local
292 rx_desc = iser_conn->rx_descs; in iser_free_rx_descriptors()
293 for (i = 0; i < iser_conn->qp_max_recv_dtos; i++, rx_desc++) in iser_free_rx_descriptors()
294 ib_dma_unmap_single(device->ib_device, rx_desc->dma_addr, in iser_free_rx_descriptors()