Lines Matching refs:ib_device
416 ehca_err(&shca->ib_device, "Can't allocate rblock memory.");
421 ehca_err(&shca->ib_device, "Can't query device properties");
426 memcpy(&shca->ib_device.node_guid, &rblock->node_guid, sizeof(u64));
441 strlcpy(shca->ib_device.name, "ehca%d", IB_DEVICE_NAME_MAX);
442 shca->ib_device.owner = THIS_MODULE;
444 shca->ib_device.uverbs_abi_ver = 8;
445 shca->ib_device.uverbs_cmd_mask =
463 shca->ib_device.node_type = RDMA_NODE_IB_CA;
464 shca->ib_device.phys_port_cnt = shca->num_ports;
465 shca->ib_device.num_comp_vectors = 1;
466 shca->ib_device.dma_device = &shca->ofdev->dev;
467 shca->ib_device.query_device = ehca_query_device;
468 shca->ib_device.query_port = ehca_query_port;
469 shca->ib_device.query_gid = ehca_query_gid;
470 shca->ib_device.query_pkey = ehca_query_pkey;
472 shca->ib_device.modify_port = ehca_modify_port;
473 shca->ib_device.alloc_ucontext = ehca_alloc_ucontext;
474 shca->ib_device.dealloc_ucontext = ehca_dealloc_ucontext;
475 shca->ib_device.alloc_pd = ehca_alloc_pd;
476 shca->ib_device.dealloc_pd = ehca_dealloc_pd;
477 shca->ib_device.create_ah = ehca_create_ah;
478 /* shca->ib_device.modify_ah = ehca_modify_ah; */
479 shca->ib_device.query_ah = ehca_query_ah;
480 shca->ib_device.destroy_ah = ehca_destroy_ah;
481 shca->ib_device.create_qp = ehca_create_qp;
482 shca->ib_device.modify_qp = ehca_modify_qp;
483 shca->ib_device.query_qp = ehca_query_qp;
484 shca->ib_device.destroy_qp = ehca_destroy_qp;
485 shca->ib_device.post_send = ehca_post_send;
486 shca->ib_device.post_recv = ehca_post_recv;
487 shca->ib_device.create_cq = ehca_create_cq;
488 shca->ib_device.destroy_cq = ehca_destroy_cq;
489 shca->ib_device.resize_cq = ehca_resize_cq;
490 shca->ib_device.poll_cq = ehca_poll_cq;
491 /* shca->ib_device.peek_cq = ehca_peek_cq; */
492 shca->ib_device.req_notify_cq = ehca_req_notify_cq;
493 /* shca->ib_device.req_ncomp_notif = ehca_req_ncomp_notif; */
494 shca->ib_device.get_dma_mr = ehca_get_dma_mr;
495 shca->ib_device.reg_phys_mr = ehca_reg_phys_mr;
496 shca->ib_device.reg_user_mr = ehca_reg_user_mr;
497 shca->ib_device.query_mr = ehca_query_mr;
498 shca->ib_device.dereg_mr = ehca_dereg_mr;
499 shca->ib_device.rereg_phys_mr = ehca_rereg_phys_mr;
500 shca->ib_device.alloc_mw = ehca_alloc_mw;
501 shca->ib_device.bind_mw = ehca_bind_mw;
502 shca->ib_device.dealloc_mw = ehca_dealloc_mw;
503 shca->ib_device.alloc_fmr = ehca_alloc_fmr;
504 shca->ib_device.map_phys_fmr = ehca_map_phys_fmr;
505 shca->ib_device.unmap_fmr = ehca_unmap_fmr;
506 shca->ib_device.dealloc_fmr = ehca_dealloc_fmr;
507 shca->ib_device.attach_mcast = ehca_attach_mcast;
508 shca->ib_device.detach_mcast = ehca_detach_mcast;
509 shca->ib_device.process_mad = ehca_process_mad;
510 shca->ib_device.mmap = ehca_mmap;
511 shca->ib_device.dma_ops = &ehca_dma_mapping_ops;
514 shca->ib_device.uverbs_cmd_mask |=
520 shca->ib_device.create_srq = ehca_create_srq;
521 shca->ib_device.modify_srq = ehca_modify_srq;
522 shca->ib_device.query_srq = ehca_query_srq;
523 shca->ib_device.destroy_srq = ehca_destroy_srq;
524 shca->ib_device.post_srq_recv = ehca_post_srq_recv;
539 ehca_err(&shca->ib_device, "AQP1 CQ is already created.");
543 ibcq = ib_create_cq(&shca->ib_device, NULL, NULL, (void *)(-1), 10, 0);
545 ehca_err(&shca->ib_device, "Cannot create AQP1 CQ.");
551 ehca_err(&shca->ib_device, "AQP1 QP is already created.");
572 ehca_err(&shca->ib_device, "Cannot create AQP1 QP.");
773 ehca_err(&shca->ib_device, "Cannot create EQ.");
779 ehca_err(&shca->ib_device, "Cannot create NEQ.");
784 ibpd = ehca_alloc_pd(&shca->ib_device, (void *)(-1), NULL);
786 ehca_err(&shca->ib_device, "Cannot create internal PD.");
792 shca->pd->ib_pd.device = &shca->ib_device;
798 ehca_err(&shca->ib_device, "Cannot create internal MR ret=%i",
803 ret = ib_register_device(&shca->ib_device, NULL);
805 ehca_err(&shca->ib_device,
815 ehca_err(&shca->ib_device,
826 ehca_err(&shca->ib_device,
834 ehca_err(&shca->ib_device,
846 ehca_err(&shca->ib_device,
850 ib_unregister_device(&shca->ib_device);
855 ehca_err(&shca->ib_device,
861 ehca_err(&shca->ib_device,
867 ehca_err(&shca->ib_device,
873 ehca_err(&shca->ib_device,
877 ib_dealloc_device(&shca->ib_device);
895 ehca_err(&shca->ib_device,
901 ib_unregister_device(&shca->ib_device);
905 ehca_err(&shca->ib_device,
910 ehca_err(&shca->ib_device,
915 ehca_err(&shca->ib_device, "Cannot destroy EQ. ret=%i", ret);
919 ehca_err(&shca->ib_device, "Canot destroy NEQ. ret=%i", ret);
921 ib_dealloc_device(&shca->ib_device);