Lines Matching refs:rnet
860 struct rdma_dev_net *rnet) in add_one_compat_dev() argument
873 if (net_eq(read_pnet(&rnet->net), in add_one_compat_dev()
883 cdev = xa_load(&device->compat_devs, rnet->id); in add_one_compat_dev()
888 ret = xa_reserve(&device->compat_devs, rnet->id, GFP_KERNEL); in add_one_compat_dev()
899 rdma_init_coredev(cdev, device, read_pnet(&rnet->net)); in add_one_compat_dev()
910 ret = xa_err(xa_store(&device->compat_devs, rnet->id, in add_one_compat_dev()
925 xa_release(&device->compat_devs, rnet->id); in add_one_compat_dev()
956 struct rdma_dev_net *rnet; in add_compat_devs() local
963 xa_for_each (&rdma_nets, index, rnet) { in add_compat_devs()
964 ret = add_one_compat_dev(device, rnet); in add_compat_devs()
995 struct rdma_dev_net *rnet; in add_all_compat_devs() local
1008 xa_for_each (&rdma_nets, net_index, rnet) { in add_all_compat_devs()
1009 ret = add_one_compat_dev(dev, rnet); in add_all_compat_devs()
1023 struct rdma_dev_net *rnet; in rdma_compatdev_set() local
1036 xa_for_each (&rdma_nets, index, rnet) { in rdma_compatdev_set()
1055 struct rdma_dev_net *rnet = rdma_net_to_dev_net(net); in rdma_dev_exit_net() local
1064 ret = xa_err(xa_store(&rdma_nets, rnet->id, NULL, GFP_KERNEL)); in rdma_dev_exit_net()
1077 remove_one_compat_dev(dev, rnet->id); in rdma_dev_exit_net()
1089 rdma_nl_net_exit(rnet); in rdma_dev_exit_net()
1090 xa_erase(&rdma_nets, rnet->id); in rdma_dev_exit_net()
1095 struct rdma_dev_net *rnet = rdma_net_to_dev_net(net); in rdma_dev_init_net() local
1100 write_pnet(&rnet->net, net); in rdma_dev_init_net()
1102 ret = rdma_nl_net_init(rnet); in rdma_dev_init_net()
1110 ret = xa_alloc(&rdma_nets, &rnet->id, rnet, xa_limit_32b, GFP_KERNEL); in rdma_dev_init_net()
1112 rdma_nl_net_exit(rnet); in rdma_dev_init_net()
1122 ret = add_one_compat_dev(dev, rnet); in rdma_dev_init_net()