• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/cxgbe/iw_cxgbe/

Lines Matching defs:ibdev

54 static int c4iw_modify_port(struct ib_device *ibdev,
83 static int c4iw_process_mad(struct ib_device *ibdev, int mad_flags,
121 static struct ib_ucontext *c4iw_alloc_ucontext(struct ib_device *ibdev,
125 struct c4iw_dev *rhp = to_c4iw_dev(ibdev);
131 PDBG("%s ibdev %p\n", __func__, ibdev);
247 c4iw_allocate_pd(struct ib_device *ibdev, struct ib_ucontext *context,
254 CTR4(KTR_IW_CXGBE, "%s: ibdev %p, context %p, data %p", __func__, ibdev,
256 rhp = (struct c4iw_dev *) ibdev;
280 "%s: ibdev %p, context %p, data %p, pddid 0x%x, pd %p", __func__,
281 ibdev, context, udata, pdid, php);
286 c4iw_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey)
289 CTR5(KTR_IW_CXGBE, "%s ibdev %p, port %d, index %d, pkey %p", __func__,
290 ibdev, port, index, pkey);
297 c4iw_query_gid(struct ib_device *ibdev, u8 port, int index, union ib_gid *gid)
303 CTR5(KTR_IW_CXGBE, "%s ibdev %p, port %d, index %d, gid %p", __func__,
304 ibdev, port, index, gid);
307 dev = to_c4iw_dev(ibdev);
317 c4iw_query_device(struct ib_device *ibdev, struct ib_device_attr *props,
320 struct c4iw_dev *dev = to_c4iw_dev(ibdev);
323 CTR3(KTR_IW_CXGBE, "%s ibdev %p, props %p", __func__, ibdev, props);
361 c4iw_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr *props)
368 CTR4(KTR_IW_CXGBE, "%s ibdev %p, port %d, props %p", __func__, ibdev,
371 dev = to_c4iw_dev(ibdev);
406 static int c4iw_port_immutable(struct ib_device *ibdev, u8 port_num,
414 err = ib_query_port(ibdev, port_num, &attr);
431 struct ib_device *ibdev = &dev->ibdev;
440 strlcpy(ibdev->name, device_get_nameunit(sc->dev), sizeof(ibdev->name));
441 memset(&ibdev->node_guid, 0, sizeof(ibdev->node_guid));
442 memcpy(&ibdev->node_guid, sc->port[0]->vi[0].hw_addr, ETHER_ADDR_LEN);
443 ibdev->owner = THIS_MODULE;
447 ibdev->local_dma_lkey = 0;
448 ibdev->uverbs_cmd_mask =
467 ibdev->node_type = RDMA_NODE_RNIC;
468 strlcpy(ibdev->node_desc, C4IW_NODE_DESC, sizeof(ibdev->node_desc));
469 ibdev->phys_port_cnt = sc->params.nports;
470 ibdev->num_comp_vectors = 1;
471 ibdev->dma_device = &dev->pdev.dev;
472 ibdev->query_device = c4iw_query_device;
473 ibdev->query_port = c4iw_query_port;
474 ibdev->modify_port = c4iw_modify_port;
475 ibdev->query_pkey = c4iw_query_pkey;
476 ibdev->query_gid = c4iw_query_gid;
477 ibdev->alloc_ucontext = c4iw_alloc_ucontext;
478 ibdev->dealloc_ucontext = c4iw_dealloc_ucontext;
479 ibdev->mmap = c4iw_mmap;
480 ibdev->alloc_pd = c4iw_allocate_pd;
481 ibdev->dealloc_pd = c4iw_deallocate_pd;
482 ibdev->create_ah = c4iw_ah_create;
483 ibdev->destroy_ah = c4iw_ah_destroy;
484 ibdev->create_qp = c4iw_create_qp;
485 ibdev->modify_qp = c4iw_ib_modify_qp;
486 ibdev->query_qp = c4iw_ib_query_qp;
487 ibdev->destroy_qp = c4iw_destroy_qp;
488 ibdev->create_cq = c4iw_create_cq;
489 ibdev->destroy_cq = c4iw_destroy_cq;
490 ibdev->resize_cq = c4iw_resize_cq;
491 ibdev->poll_cq = c4iw_poll_cq;
492 ibdev->get_dma_mr = c4iw_get_dma_mr;
493 ibdev->reg_user_mr = c4iw_reg_user_mr;
494 ibdev->dereg_mr = c4iw_dereg_mr;
495 ibdev->alloc_mw = c4iw_alloc_mw;
496 ibdev->dealloc_mw = c4iw_dealloc_mw;
497 ibdev->alloc_mr = c4iw_alloc_mr;
498 ibdev->map_mr_sg = c4iw_map_mr_sg;
499 ibdev->attach_mcast = c4iw_multicast_attach;
500 ibdev->detach_mcast = c4iw_multicast_detach;
501 ibdev->process_mad = c4iw_process_mad;
502 ibdev->req_notify_cq = c4iw_arm_cq;
503 ibdev->post_send = c4iw_post_send;
504 ibdev->post_recv = c4iw_post_receive;
505 ibdev->uverbs_abi_ver = C4IW_UVERBS_ABI_VERSION;
506 ibdev->get_port_immutable = c4iw_port_immutable;
520 ibdev->iwcm = iwcm;
522 ret = ib_register_device(&dev->ibdev, NULL);
537 ib_unregister_device(&dev->ibdev);
538 kfree(dev->ibdev.iwcm);