Lines Matching refs:ibdev
78 struct ib_device *ibdev = ucontext->device; in c4iw_alloc_ucontext() local
80 struct c4iw_dev *rhp = to_c4iw_dev(ibdev); in c4iw_alloc_ucontext()
85 pr_debug("ibdev %p\n", ibdev); in c4iw_alloc_ucontext()
211 struct ib_device *ibdev = pd->device; in c4iw_allocate_pd() local
215 pr_debug("ibdev %p\n", ibdev); in c4iw_allocate_pd()
216 rhp = (struct c4iw_dev *) ibdev; in c4iw_allocate_pd()
240 static int c4iw_query_gid(struct ib_device *ibdev, u8 port, int index, in c4iw_query_gid() argument
246 ibdev, port, index, gid); in c4iw_query_gid()
249 dev = to_c4iw_dev(ibdev); in c4iw_query_gid()
255 static int c4iw_query_device(struct ib_device *ibdev, struct ib_device_attr *props, in c4iw_query_device() argument
261 pr_debug("ibdev %p\n", ibdev); in c4iw_query_device()
266 dev = to_c4iw_dev(ibdev); in c4iw_query_device()
298 static int c4iw_query_port(struct ib_device *ibdev, u8 port, in c4iw_query_port() argument
302 pr_debug("ibdev %p\n", ibdev); in c4iw_query_port()
303 ret = ib_get_eth_speed(ibdev, port, &props->active_speed, in c4iw_query_port()
322 rdma_device_to_drv_device(dev, struct c4iw_dev, ibdev); in hw_rev_show()
334 rdma_device_to_drv_device(dev, struct c4iw_dev, ibdev); in hca_type_show()
348 rdma_device_to_drv_device(dev, struct c4iw_dev, ibdev); in board_id_show()
379 static struct rdma_hw_stats *c4iw_alloc_stats(struct ib_device *ibdev, in c4iw_alloc_stats() argument
391 static int c4iw_get_mib(struct ib_device *ibdev, in c4iw_get_mib() argument
396 struct c4iw_dev *c4iw_dev = to_c4iw_dev(ibdev); in c4iw_get_mib()
422 static int c4iw_port_immutable(struct ib_device *ibdev, u8 port_num, in c4iw_port_immutable() argument
430 err = ib_query_port(ibdev, port_num, &attr); in c4iw_port_immutable()
442 ibdev); in get_dev_fw_str()
530 memset(&dev->ibdev.node_guid, 0, sizeof(dev->ibdev.node_guid)); in c4iw_register_device()
531 memcpy(&dev->ibdev.node_guid, dev->rdev.lldi.ports[0]->dev_addr, 6); in c4iw_register_device()
535 dev->ibdev.local_dma_lkey = 0; in c4iw_register_device()
536 dev->ibdev.uverbs_cmd_mask = in c4iw_register_device()
558 dev->ibdev.node_type = RDMA_NODE_RNIC; in c4iw_register_device()
560 memcpy(dev->ibdev.node_desc, C4IW_NODE_DESC, sizeof(C4IW_NODE_DESC)); in c4iw_register_device()
561 dev->ibdev.phys_port_cnt = dev->rdev.lldi.nports; in c4iw_register_device()
562 dev->ibdev.num_comp_vectors = dev->rdev.lldi.nciq; in c4iw_register_device()
563 dev->ibdev.dev.parent = &dev->rdev.lldi.pdev->dev; in c4iw_register_device()
565 memcpy(dev->ibdev.iw_ifname, dev->rdev.lldi.ports[0]->name, in c4iw_register_device()
566 sizeof(dev->ibdev.iw_ifname)); in c4iw_register_device()
568 rdma_set_device_sysfs_group(&dev->ibdev, &c4iw_attr_group); in c4iw_register_device()
569 ib_set_device_ops(&dev->ibdev, &c4iw_dev_ops); in c4iw_register_device()
570 ret = set_netdevs(&dev->ibdev, &dev->rdev); in c4iw_register_device()
574 ret = ib_register_device(&dev->ibdev, "cxgb4_%d", in c4iw_register_device()
590 ib_unregister_device(&dev->ibdev); in c4iw_unregister_device()