Lines Matching refs:nsim_dev

130 int nsim_udp_tunnels_info_create(struct nsim_dev *nsim_dev,  in nsim_udp_tunnels_info_create()  argument
136 if (nsim_dev->udp_ports.shared && nsim_dev->udp_ports.open_only) { in nsim_udp_tunnels_info_create()
137 dev_err(&nsim_dev->nsim_bus_dev->dev, in nsim_udp_tunnels_info_create()
142 if (!nsim_dev->udp_ports.shared) in nsim_udp_tunnels_info_create()
145 ns->udp_ports.ports = nsim_dev->udp_ports.__ports; in nsim_udp_tunnels_info_create()
173 ns->udp_ports.sleep = nsim_dev->udp_ports.sleep; in nsim_udp_tunnels_info_create()
175 if (nsim_dev->udp_ports.sync_all) { in nsim_udp_tunnels_info_create()
184 if (nsim_dev->udp_ports.open_only) in nsim_udp_tunnels_info_create()
186 if (nsim_dev->udp_ports.ipv4_only) in nsim_udp_tunnels_info_create()
188 if (nsim_dev->udp_ports.shared) in nsim_udp_tunnels_info_create()
189 info->shared = &nsim_dev->udp_ports.utn_shared; in nsim_udp_tunnels_info_create()
190 if (nsim_dev->udp_ports.static_iana_vxlan) in nsim_udp_tunnels_info_create()
203 void nsim_udp_tunnels_debugfs_create(struct nsim_dev *nsim_dev) in nsim_udp_tunnels_debugfs_create() argument
205 debugfs_create_bool("udp_ports_sync_all", 0600, nsim_dev->ddir, in nsim_udp_tunnels_debugfs_create()
206 &nsim_dev->udp_ports.sync_all); in nsim_udp_tunnels_debugfs_create()
207 debugfs_create_bool("udp_ports_open_only", 0600, nsim_dev->ddir, in nsim_udp_tunnels_debugfs_create()
208 &nsim_dev->udp_ports.open_only); in nsim_udp_tunnels_debugfs_create()
209 debugfs_create_bool("udp_ports_ipv4_only", 0600, nsim_dev->ddir, in nsim_udp_tunnels_debugfs_create()
210 &nsim_dev->udp_ports.ipv4_only); in nsim_udp_tunnels_debugfs_create()
211 debugfs_create_bool("udp_ports_shared", 0600, nsim_dev->ddir, in nsim_udp_tunnels_debugfs_create()
212 &nsim_dev->udp_ports.shared); in nsim_udp_tunnels_debugfs_create()
213 debugfs_create_bool("udp_ports_static_iana_vxlan", 0600, nsim_dev->ddir, in nsim_udp_tunnels_debugfs_create()
214 &nsim_dev->udp_ports.static_iana_vxlan); in nsim_udp_tunnels_debugfs_create()
215 debugfs_create_u32("udp_ports_sleep", 0600, nsim_dev->ddir, in nsim_udp_tunnels_debugfs_create()
216 &nsim_dev->udp_ports.sleep); in nsim_udp_tunnels_debugfs_create()