Lines Matching refs:ib_dev

107 	struct ib_device *ib_dev = device->ib_device;  in isert_create_qp()  local
111 isert_conn->cq = ib_cq_pool_get(ib_dev, cq_size, -1, IB_POLL_WORKQUEUE); in isert_create_qp()
151 struct ib_device *ib_dev = device->ib_device; in isert_alloc_rx_descriptors() local
166 dma_addr = ib_dma_map_single(ib_dev, rx_desc->buf, in isert_alloc_rx_descriptors()
168 if (ib_dma_mapping_error(ib_dev, dma_addr)) in isert_alloc_rx_descriptors()
185 ib_dma_unmap_single(ib_dev, rx_desc->dma_addr, in isert_alloc_rx_descriptors()
197 struct ib_device *ib_dev = isert_conn->device->ib_device; in isert_free_rx_descriptors() local
206 ib_dma_unmap_single(ib_dev, rx_desc->dma_addr, in isert_free_rx_descriptors()
217 struct ib_device *ib_dev = device->ib_device; in isert_create_device_ib_res() local
221 ib_dev->attrs.max_send_sge, ib_dev->attrs.max_recv_sge); in isert_create_device_ib_res()
222 isert_dbg("devattr->max_sge_rd: %d\n", ib_dev->attrs.max_sge_rd); in isert_create_device_ib_res()
224 device->pd = ib_alloc_pd(ib_dev, 0); in isert_create_device_ib_res()
233 if (ib_dev->attrs.device_cap_flags & IB_DEVICE_INTEGRITY_HANDOVER) in isert_create_device_ib_res()
321 struct ib_device *ib_dev = isert_conn->device->ib_device; in isert_free_login_buf() local
323 ib_dma_unmap_single(ib_dev, isert_conn->login_rsp_dma, in isert_free_login_buf()
327 ib_dma_unmap_single(ib_dev, isert_conn->login_desc->dma_addr, in isert_free_login_buf()
334 struct ib_device *ib_dev) in isert_alloc_login_buf() argument
343 isert_conn->login_desc->dma_addr = ib_dma_map_single(ib_dev, in isert_alloc_login_buf()
346 ret = ib_dma_mapping_error(ib_dev, isert_conn->login_desc->dma_addr); in isert_alloc_login_buf()
359 isert_conn->login_rsp_dma = ib_dma_map_single(ib_dev, in isert_alloc_login_buf()
362 ret = ib_dma_mapping_error(ib_dev, isert_conn->login_rsp_dma); in isert_alloc_login_buf()
374 ib_dma_unmap_single(ib_dev, isert_conn->login_desc->dma_addr, in isert_alloc_login_buf()
780 struct ib_device *ib_dev = isert_conn->cm_id->device; in isert_login_post_send() local
784 ib_dma_sync_single_for_device(ib_dev, tx_desc->dma_addr, in isert_login_post_send()
825 struct ib_device *ib_dev = device->ib_device; in isert_create_send_desc() local
827 ib_dma_sync_single_for_cpu(ib_dev, tx_desc->dma_addr, in isert_create_send_desc()
838 struct ib_device *ib_dev = device->ib_device; in isert_init_tx_hdrs() local
841 dma_addr = ib_dma_map_single(ib_dev, (void *)tx_desc, in isert_init_tx_hdrs()
843 if (ib_dma_mapping_error(ib_dev, dma_addr)) { in isert_init_tx_hdrs()
917 struct ib_device *ib_dev = device->ib_device; in isert_put_login_tx() local
931 ib_dma_sync_single_for_cpu(ib_dev, isert_conn->login_rsp_dma, in isert_put_login_tx()
936 ib_dma_sync_single_for_device(ib_dev, isert_conn->login_rsp_dma, in isert_put_login_tx()
1318 struct ib_device *ib_dev = isert_conn->cm_id->device; in isert_recv_done() local
1334 ib_dma_sync_single_for_cpu(ib_dev, rx_desc->dma_addr, in isert_recv_done()
1369 ib_dma_sync_single_for_device(ib_dev, rx_desc->dma_addr, in isert_recv_done()
1377 struct ib_device *ib_dev = isert_conn->device->ib_device; in isert_login_recv_done() local
1384 ib_dma_sync_single_for_cpu(ib_dev, isert_conn->login_desc->dma_addr, in isert_login_recv_done()
1400 ib_dma_sync_single_for_device(ib_dev, isert_conn->login_desc->dma_addr, in isert_login_recv_done()
1502 isert_unmap_tx_desc(struct iser_tx_desc *tx_desc, struct ib_device *ib_dev) in isert_unmap_tx_desc() argument
1506 ib_dma_unmap_single(ib_dev, tx_desc->dma_addr, in isert_unmap_tx_desc()
1514 struct ib_device *ib_dev, bool comp_err) in isert_completion_put() argument
1518 ib_dma_unmap_single(ib_dev, isert_cmd->pdu_buf_dma, in isert_completion_put()
1523 isert_unmap_tx_desc(tx_desc, ib_dev); in isert_completion_put()
1664 struct ib_device *ib_dev = isert_conn->cm_id->device; in isert_do_control_comp() local
1677 ib_dev, false); in isert_do_control_comp()
1693 struct ib_device *ib_dev = isert_conn->cm_id->device; in isert_login_send_done() local
1702 isert_unmap_tx_desc(tx_desc, ib_dev); in isert_login_send_done()
1709 struct ib_device *ib_dev = isert_conn->cm_id->device; in isert_send_done() local
1717 isert_completion_put(tx_desc, isert_cmd, ib_dev, true); in isert_send_done()
1728 isert_unmap_tx_desc(tx_desc, ib_dev); in isert_send_done()
1735 isert_completion_put(tx_desc, isert_cmd, ib_dev, false); in isert_send_done()
1776 struct ib_device *ib_dev = device->ib_device; in isert_put_response() local
1788 isert_cmd->pdu_buf_dma = ib_dma_map_single(ib_dev, in isert_put_response()
1791 if (ib_dma_mapping_error(ib_dev, isert_cmd->pdu_buf_dma)) in isert_put_response()
1907 struct ib_device *ib_dev = device->ib_device; in isert_put_reject() local
1917 isert_cmd->pdu_buf_dma = ib_dma_map_single(ib_dev, in isert_put_reject()
1920 if (ib_dma_mapping_error(ib_dev, isert_cmd->pdu_buf_dma)) in isert_put_reject()
1956 struct ib_device *ib_dev = device->ib_device; in isert_put_text_rsp() local
1960 isert_cmd->pdu_buf_dma = ib_dma_map_single(ib_dev, in isert_put_text_rsp()
1962 if (ib_dma_mapping_error(ib_dev, isert_cmd->pdu_buf_dma)) in isert_put_text_rsp()