Lines Matching refs:ibdev
131 static inline struct efa_dev *to_edev(struct ib_device *ibdev) in to_edev() argument
133 return container_of(ibdev, struct efa_dev, ibdev); in to_edev()
190 ibdev_err(&dev->ibdev, "Failed to map DMA address\n"); in efa_zalloc_mapped()
206 int efa_query_device(struct ib_device *ibdev, in efa_query_device() argument
212 struct efa_dev *dev = to_edev(ibdev); in efa_query_device()
217 ibdev_dbg(ibdev, in efa_query_device()
269 ibdev_dbg(ibdev, in efa_query_device()
278 int efa_query_port(struct ib_device *ibdev, u32 port, in efa_query_port() argument
281 struct efa_dev *dev = to_edev(ibdev); in efa_query_port()
314 ibdev_dbg(&dev->ibdev, in efa_query_qp()
350 int efa_query_gid(struct ib_device *ibdev, u32 port, int index, in efa_query_gid() argument
353 struct efa_dev *dev = to_edev(ibdev); in efa_query_gid()
360 int efa_query_pkey(struct ib_device *ibdev, u32 port, u16 index, in efa_query_pkey() argument
389 ibdev_dbg(&dev->ibdev, in efa_alloc_pd()
406 ibdev_dbg(&dev->ibdev, in efa_alloc_pd()
412 ibdev_dbg(&dev->ibdev, "Allocated pd[%d]\n", pd->pdn); in efa_alloc_pd()
428 ibdev_dbg(&dev->ibdev, "Dealloc pd[%d]\n", pd->pdn); in efa_dealloc_pd()
454 ibdev_dbg(&dev->ibdev, "Destroy qp[%u]\n", ibqp->qp_num); in efa_destroy_qp()
463 ibdev_dbg(&dev->ibdev, in efa_destroy_qp()
570 ibdev_dbg(&dev->ibdev, in efa_qp_validate_cap()
577 ibdev_dbg(&dev->ibdev, in efa_qp_validate_cap()
584 ibdev_dbg(&dev->ibdev, in efa_qp_validate_cap()
590 ibdev_dbg(&dev->ibdev, in efa_qp_validate_cap()
596 ibdev_dbg(&dev->ibdev, in efa_qp_validate_cap()
611 ibdev_dbg(&dev->ibdev, in efa_qp_validate_attr()
617 ibdev_dbg(&dev->ibdev, "SRQ is not supported\n"); in efa_qp_validate_attr()
622 ibdev_dbg(&dev->ibdev, "Unsupported create flags\n"); in efa_qp_validate_attr()
653 ibdev_dbg(&dev->ibdev, in efa_create_qp()
662 ibdev_dbg(&dev->ibdev, in efa_create_qp()
671 ibdev_dbg(&dev->ibdev, in efa_create_qp()
677 ibdev_dbg(&dev->ibdev, in efa_create_qp()
691 ibdev_dbg(&dev->ibdev, in efa_create_qp()
698 ibdev_dbg(&dev->ibdev, "Create QP: qp type %d driver qp type %#x\n", in efa_create_qp()
716 ibdev_dbg(&dev->ibdev, in efa_create_qp()
750 ibdev_dbg(&dev->ibdev, in efa_create_qp()
757 ibdev_dbg(&dev->ibdev, "Created qp[%d]\n", qp->ibqp.qp_num); in efa_create_qp()
896 ibdev_dbg(&dev->ibdev, in efa_modify_qp_validate()
910 ibdev_dbg(&dev->ibdev, "Invalid modify QP parameters\n"); in efa_modify_qp_validate()
915 ibdev_dbg(&dev->ibdev, "Can't change port num\n"); in efa_modify_qp_validate()
920 ibdev_dbg(&dev->ibdev, "Can't change pkey index\n"); in efa_modify_qp_validate()
942 ibdev_dbg(&dev->ibdev, in efa_modify_qp()
1016 ibdev_dbg(&dev->ibdev, in efa_destroy_cq()
1074 struct ib_device *ibdev = ibcq->device; in efa_create_cq() local
1075 struct efa_dev *dev = to_edev(ibdev); in efa_create_cq()
1082 ibdev_dbg(ibdev, "create_cq entries %d\n", entries); in efa_create_cq()
1088 ibdev_dbg(ibdev, in efa_create_cq()
1096 ibdev_dbg(ibdev, in efa_create_cq()
1105 ibdev_dbg(ibdev, in efa_create_cq()
1114 ibdev_dbg(ibdev, "Cannot copy udata for create_cq\n"); in efa_create_cq()
1119 ibdev_dbg(ibdev, in efa_create_cq()
1129 ibdev_dbg(ibdev, in efa_create_cq()
1136 ibdev_dbg(ibdev, in efa_create_cq()
1176 ibdev_dbg(ibdev, "Could not setup cq[%u] mmap entries\n", in efa_create_cq()
1184 ibdev_dbg(ibdev, "Failed to store cq[%u] in xarray\n", in efa_create_cq()
1194 ibdev_dbg(ibdev, in efa_create_cq()
1200 ibdev_dbg(ibdev, "Created cq[%d], cq depth[%u]. dma[%pad] virt[0x%p]\n", in efa_create_cq()
1231 ibdev_dbg(&dev->ibdev, "hp_cnt[%u], pages_in_hp[%u]\n", in umem_to_page_list()
1291 ibdev_dbg(&dev->ibdev, in pbl_chunk_list_create()
1330 ibdev_err(&dev->ibdev, in pbl_chunk_list_create()
1336 ibdev_dbg(&dev->ibdev, in pbl_chunk_list_create()
1391 ibdev_err(&dev->ibdev, "Unable to map pbl to DMA address\n"); in pbl_continuous_initialize()
1396 ibdev_dbg(&dev->ibdev, in pbl_continuous_initialize()
1430 ibdev_dbg(&dev->ibdev, in pbl_indirect_initialize()
1435 ibdev_dbg(&dev->ibdev, in pbl_indirect_initialize()
1493 ibdev_dbg(&dev->ibdev, in pbl_create()
1526 ibdev_dbg(&dev->ibdev, in efa_create_inline_pbl()
1542 ibdev_dbg(&dev->ibdev, "Failed to create pbl[%d]\n", err); in efa_create_pbl()
1575 ibdev_dbg(&dev->ibdev, in efa_alloc_mr()
1587 ibdev_dbg(&dev->ibdev, in efa_alloc_mr()
1620 ibdev_dbg(&dev->ibdev, "Failed to find a suitable page size in page_size_cap %#llx\n", in efa_register_mr()
1628 ibdev_dbg(&dev->ibdev, in efa_register_mr()
1656 ibdev_dbg(&dev->ibdev, "Registered mr[%d]\n", mr->ibmr.lkey); in efa_register_mr()
1681 ibdev_dbg(&dev->ibdev, "Failed to get dmabuf umem[%d]\n", err); in efa_reg_user_mr_dmabuf()
1718 ibdev_dbg(&dev->ibdev, in efa_reg_mr()
1745 ibdev_dbg(&dev->ibdev, "Deregister mr[%d]\n", ibmr->lkey); in efa_dereg_mr()
1758 int efa_get_port_immutable(struct ib_device *ibdev, u32 port_num, in efa_get_port_immutable() argument
1764 err = ib_query_port(ibdev, port_num, &attr); in efa_get_port_immutable()
1766 ibdev_dbg(ibdev, "Couldn't query port err[%d]\n", err); in efa_get_port_immutable()
1807 ibdev_dbg(&dev->ibdev, "Userspace handshake failed for %s attribute\n", in efa_user_comp_handshake()
1829 ibdev_dbg(&dev->ibdev, in efa_alloc_ucontext()
1892 ibdev_dbg(&dev->ibdev, in __efa_mmap()
1900 ibdev_dbg(&dev->ibdev, in __efa_mmap()
1933 &dev->ibdev, in __efa_mmap()
1951 ibdev_dbg(&dev->ibdev, in efa_mmap()
1981 ibdev_dbg(&dev->ibdev, in efa_create_ah()
1989 ibdev_dbg(&dev->ibdev, "Incompatible ABI params\n"); in efa_create_ah()
2010 ibdev_dbg(&dev->ibdev, in efa_create_ah()
2015 ibdev_dbg(&dev->ibdev, "Created ah[%d]\n", ah->ah); in efa_create_ah()
2031 ibdev_dbg(&dev->ibdev, "Destroy ah[%d]\n", ah->ah); in efa_destroy_ah()
2034 ibdev_dbg(&dev->ibdev, in efa_destroy_ah()
2043 struct rdma_hw_stats *efa_alloc_hw_port_stats(struct ib_device *ibdev, in efa_alloc_hw_port_stats() argument
2051 struct rdma_hw_stats *efa_alloc_hw_device_stats(struct ib_device *ibdev) in efa_alloc_hw_device_stats() argument
2145 int efa_get_hw_stats(struct ib_device *ibdev, struct rdma_hw_stats *stats, in efa_get_hw_stats() argument
2149 return efa_fill_port_stats(to_edev(ibdev), stats, port_num); in efa_get_hw_stats()
2151 return efa_fill_device_stats(to_edev(ibdev), stats); in efa_get_hw_stats()
2154 enum rdma_link_layer efa_port_link_layer(struct ib_device *ibdev, in efa_port_link_layer() argument