Lines Matching refs:rx_desc
177 struct iser_rx_desc *rx_desc; in iser_alloc_rx_descriptors() local
186 rx_desc = ib_conn->rx_descs; in iser_alloc_rx_descriptors()
188 for (i = 0; i < ISER_QP_MAX_RECV_DTOS; i++, rx_desc++) { in iser_alloc_rx_descriptors()
189 dma_addr = ib_dma_map_single(device->ib_device, (void *)rx_desc, in iser_alloc_rx_descriptors()
194 rx_desc->dma_addr = dma_addr; in iser_alloc_rx_descriptors()
196 rx_sg = &rx_desc->rx_sg; in iser_alloc_rx_descriptors()
197 rx_sg->addr = rx_desc->dma_addr; in iser_alloc_rx_descriptors()
206 rx_desc = ib_conn->rx_descs; in iser_alloc_rx_descriptors()
207 for (j = 0; j < i; j++, rx_desc++) in iser_alloc_rx_descriptors()
208 ib_dma_unmap_single(device->ib_device, rx_desc->dma_addr, in iser_alloc_rx_descriptors()
220 struct iser_rx_desc *rx_desc; in iser_free_rx_descriptors() local
226 rx_desc = ib_conn->rx_descs; in iser_free_rx_descriptors()
227 for (i = 0; i < ISER_QP_MAX_RECV_DTOS; i++, rx_desc++) in iser_free_rx_descriptors()
228 ib_dma_unmap_single(device->ib_device, rx_desc->dma_addr, in iser_free_rx_descriptors()
447 void iser_rcv_completion(struct iser_rx_desc *rx_desc, in iser_rcv_completion() argument
457 if ((char *)rx_desc == ib_conn->login_resp_buf) { in iser_rcv_completion()
461 rx_dma = rx_desc->dma_addr; in iser_rcv_completion()
468 hdr = &rx_desc->iscsi_header; in iser_rcv_completion()
474 rx_desc->data, rx_xfer_len - ISER_HEADERS_LEN); in iser_rcv_completion()