Lines Matching full:rx_desc
202 struct iser_rx_desc *rx_desc; in iser_alloc_rx_descriptors() local
221 rx_desc = iser_conn->rx_descs; in iser_alloc_rx_descriptors()
223 for (i = 0; i < iser_conn->qp_max_recv_dtos; i++, rx_desc++) { in iser_alloc_rx_descriptors()
224 dma_addr = ib_dma_map_single(device->ib_device, (void *)rx_desc, in iser_alloc_rx_descriptors()
229 rx_desc->dma_addr = dma_addr; in iser_alloc_rx_descriptors()
231 rx_sg = &rx_desc->rx_sg; in iser_alloc_rx_descriptors()
232 rx_sg->addr = rx_desc->dma_addr; in iser_alloc_rx_descriptors()
242 rx_desc = iser_conn->rx_descs; in iser_alloc_rx_descriptors()
243 for (j = 0; j < i; j++, rx_desc++) in iser_alloc_rx_descriptors()
244 ib_dma_unmap_single(device->ib_device, rx_desc->dma_addr, in iser_alloc_rx_descriptors()
260 struct iser_rx_desc *rx_desc; in iser_free_rx_descriptors() local
266 rx_desc = iser_conn->rx_descs; in iser_free_rx_descriptors()
267 for (i = 0; i < iser_conn->qp_max_recv_dtos; i++, rx_desc++) in iser_free_rx_descriptors()
268 ib_dma_unmap_single(device->ib_device, rx_desc->dma_addr, in iser_free_rx_descriptors()
465 iser_rcv_completion(struct iser_rx_desc *rx_desc, in iser_rcv_completion() argument
479 if ((char *)rx_desc == iser_conn->login_resp_buf) { in iser_rcv_completion()
483 rx_dma = rx_desc->dma_addr; in iser_rcv_completion()
490 hdr = &rx_desc->iscsi_header; in iser_rcv_completion()
501 response->ip_data_mbuf = (struct mbuf *)(rx_desc->data); in iser_rcv_completion()