Lines Matching refs:ib_dev
94 if (!srcu_dereference(ufile->device->ib_dev, in ib_uverbs_get_ucontext_file()
188 struct ib_device *ib_dev; in ib_uverbs_release_file() local
194 ib_dev = srcu_dereference(file->device->ib_dev, in ib_uverbs_release_file()
196 if (ib_dev && !ib_dev->ops.disassociate_ucontext) in ib_uverbs_release_file()
197 module_put(ib_dev->ops.owner); in ib_uverbs_release_file()
482 struct ib_device *ib_dev = async_file->uobj.context->device; in ib_uverbs_init_async_event_file() local
495 INIT_IB_EVENT_HANDLER(&async_file->event_handler, ib_dev, in ib_uverbs_init_async_event_file()
886 struct ib_device *ib_dev; in ib_uverbs_open() local
898 ib_dev = srcu_dereference(dev->ib_dev, in ib_uverbs_open()
900 if (!ib_dev) { in ib_uverbs_open()
905 if (!rdma_dev_access_netns(ib_dev, current->nsproxy->net_ns)) { in ib_uverbs_open()
913 module_dependent = !(ib_dev->ops.disassociate_ucontext); in ib_uverbs_open()
916 if (!try_module_get(ib_dev->ops.owner)) { in ib_uverbs_open()
951 module_put(ib_dev->ops.owner); in ib_uverbs_open()
1042 struct ib_device *ib_dev; in ibdev_show() local
1045 ib_dev = srcu_dereference(dev->ib_dev, &dev->disassociate_srcu); in ibdev_show()
1046 if (ib_dev) in ibdev_show()
1047 ret = sysfs_emit(buf, "%s\n", dev_name(&ib_dev->dev)); in ibdev_show()
1061 struct ib_device *ib_dev; in abi_version_show() local
1064 ib_dev = srcu_dereference(dev->ib_dev, &dev->disassociate_srcu); in abi_version_show()
1065 if (ib_dev) in abi_version_show()
1066 ret = sysfs_emit(buf, "%u\n", ib_dev->ops.uverbs_abi_ver); in abi_version_show()
1131 rcu_assign_pointer(uverbs_dev->ib_dev, device); in ib_uverbs_add_one()
1175 struct ib_device *ib_dev) in ib_uverbs_free_hw_resources() argument