Lines Matching refs:pnn
43 struct phonet_net *pnn = phonet_pernet(net); in phonet_device_list() local
44 return &pnn->pndevs; in phonet_device_list()
254 struct phonet_net *pnn = phonet_pernet(dev_net(dev)); in phonet_route_autodel() local
260 mutex_lock(&pnn->routes.lock); in phonet_route_autodel()
262 if (rcu_access_pointer(pnn->routes.table[i]) == dev) { in phonet_route_autodel()
263 RCU_INIT_POINTER(pnn->routes.table[i], NULL); in phonet_route_autodel()
266 mutex_unlock(&pnn->routes.lock); in phonet_route_autodel()
305 struct phonet_net *pnn = phonet_pernet(net); in phonet_init_net() local
311 INIT_LIST_HEAD(&pnn->pndevs.list); in phonet_init_net()
312 mutex_init(&pnn->pndevs.lock); in phonet_init_net()
313 mutex_init(&pnn->routes.lock); in phonet_init_net()
319 struct phonet_net *pnn = phonet_pernet(net); in phonet_exit_net() local
322 WARN_ON_ONCE(!list_empty(&pnn->pndevs.list)); in phonet_exit_net()
358 struct phonet_net *pnn = phonet_pernet(dev_net(dev)); in phonet_route_add() local
359 struct phonet_routes *routes = &pnn->routes; in phonet_route_add()
375 struct phonet_net *pnn = phonet_pernet(dev_net(dev)); in phonet_route_del() local
376 struct phonet_routes *routes = &pnn->routes; in phonet_route_del()
395 struct phonet_net *pnn = phonet_pernet(net); in phonet_route_get_rcu() local
396 struct phonet_routes *routes = &pnn->routes; in phonet_route_get_rcu()
406 struct phonet_net *pnn = phonet_pernet(net); in phonet_route_output() local
407 struct phonet_routes *routes = &pnn->routes; in phonet_route_output()