Lines Matching refs:ib_dev
105 if (!srcu_dereference(ufile->device->ib_dev, in ib_uverbs_get_ucontext_file()
199 struct ib_device *ib_dev; in ib_uverbs_release_file() local
205 ib_dev = srcu_dereference(file->device->ib_dev, in ib_uverbs_release_file()
207 if (ib_dev && !ib_dev->ops.disassociate_ucontext) in ib_uverbs_release_file()
208 module_put(ib_dev->ops.owner); in ib_uverbs_release_file()
491 struct ib_device *ib_dev = async_file->uobj.context->device; in ib_uverbs_init_async_event_file() local
504 INIT_IB_EVENT_HANDLER(&async_file->event_handler, ib_dev, in ib_uverbs_init_async_event_file()
895 struct ib_device *ib_dev; in ib_uverbs_open() local
907 ib_dev = srcu_dereference(dev->ib_dev, in ib_uverbs_open()
909 if (!ib_dev) { in ib_uverbs_open()
914 if (!rdma_dev_access_netns(ib_dev, current->nsproxy->net_ns)) { in ib_uverbs_open()
922 module_dependent = !(ib_dev->ops.disassociate_ucontext); in ib_uverbs_open()
925 if (!try_module_get(ib_dev->ops.owner)) { in ib_uverbs_open()
960 module_put(ib_dev->ops.owner); in ib_uverbs_open()
1049 struct ib_device *ib_dev; in ibdev_show() local
1052 ib_dev = srcu_dereference(dev->ib_dev, &dev->disassociate_srcu); in ibdev_show()
1053 if (ib_dev) in ibdev_show()
1054 ret = sysfs_emit(buf, "%s\n", dev_name(&ib_dev->dev)); in ibdev_show()
1068 struct ib_device *ib_dev; in abi_version_show() local
1071 ib_dev = srcu_dereference(dev->ib_dev, &dev->disassociate_srcu); in abi_version_show()
1072 if (ib_dev) in abi_version_show()
1073 ret = sysfs_emit(buf, "%u\n", ib_dev->ops.uverbs_abi_ver); in abi_version_show()
1139 rcu_assign_pointer(uverbs_dev->ib_dev, device); in ib_uverbs_add_one()
1183 struct ib_device *ib_dev) in ib_uverbs_free_hw_resources() argument