Lines Matching refs:device

131 	struct ib_device	*device;
270 ib_dma_unmap_page(ndev->device, sge->addr,
299 sge->addr = ib_dma_map_page(ndev->device,
301 if (ib_dma_mapping_error(ndev->device, sge->addr))
312 ib_dma_unmap_page(ndev->device, sge->addr,
328 c->sge[0].addr = ib_dma_map_single(ndev->device, c->nvme_cmd,
330 if (ib_dma_mapping_error(ndev->device, c->sge[0].addr))
348 ib_dma_unmap_single(ndev->device, c->sge[0].addr,
362 ib_dma_unmap_single(ndev->device, c->sge[0].addr,
412 r->send_sge.addr = ib_dma_map_single(ndev->device, r->req.cqe,
414 if (ib_dma_mapping_error(ndev->device, r->send_sge.addr))
417 if (!ib_uses_virt_dma(ndev->device))
418 r->req.p2p_client = &ndev->device->dev;
445 ib_dma_unmap_single(ndev->device, r->send_sge.addr,
505 ib_dma_sync_single_for_device(ndev->device,
742 ib_dma_sync_single_for_device(rsp->queue->dev->device,
980 ib_dma_sync_single_for_cpu(queue->dev->device,
983 ib_dma_sync_single_for_cpu(queue->dev->device,
1139 if (!ndev->device->attrs.max_srq_wr || !ndev->device->attrs.max_srq) {
1148 ndev->srq_size = min(ndev->device->attrs.max_srq_wr,
1150 ndev->srq_count = min(ndev->device->num_comp_vectors,
1151 ndev->device->attrs.max_srq);
1201 if (ndev->device->node_guid == cm_id->device->node_guid &&
1211 inline_sge_count = max(cm_id->device->attrs.max_sge_rd,
1212 cm_id->device->attrs.max_recv_sge) - 1;
1214 pr_warn("inline_data_size %d cannot be supported by device %s. Reducing to %lu.\n",
1215 nport->inline_data_size, cm_id->device->name,
1223 if (nport->pi_enable && !(cm_id->device->attrs.device_cap_flags &
1225 pr_warn("T10-PI is not supported by device %s. Disabling it\n",
1226 cm_id->device->name);
1230 ndev->device = cm_id->device;
1233 ndev->pd = ib_alloc_pd(ndev->device, 0);
1246 pr_debug("added %s.\n", ndev->device->name);
1269 queue->cq = ib_cq_pool_get(ndev->device, nr_cqe + 1,
1287 factor = rdma_rw_mr_factor(ndev->device, queue->cm_id->port_num,
1290 qp_attr.cap.max_send_sge = max(ndev->device->attrs.max_sge_rd,
1291 ndev->device->attrs.max_send_sge);
1473 queue->idx % ndev->device->num_comp_vectors;
1553 queue->dev->device->attrs.max_qp_init_rd_atom);
1706 * nvme_rdma_device_removal() - Handle RDMA device removal
1710 * DEVICE_REMOVAL event notifies us that the RDMA device is about
1712 * queue cm_id and/or a device bound listener cm_id (where in this
1715 * We registered an ib_client to handle device removal for queues,
2024 if (ndev->device == ib_device) {
2036 * delete all queues using this device.
2041 if (queue->dev->device != ib_device)