Lines Matching refs:pndevs
30 struct phonet_device_list pndevs; member
44 return &pnn->pndevs; in phonet_device_list()
50 struct phonet_device_list *pndevs = phonet_device_list(dev_net(dev)); in __phonet_device_alloc() local
57 BUG_ON(!mutex_is_locked(&pndevs->lock)); in __phonet_device_alloc()
58 list_add_rcu(&pnd->list, &pndevs->list); in __phonet_device_alloc()
64 struct phonet_device_list *pndevs = phonet_device_list(dev_net(dev)); in __phonet_get() local
67 BUG_ON(!mutex_is_locked(&pndevs->lock)); in __phonet_get()
68 list_for_each_entry(pnd, &pndevs->list, list) { in __phonet_get()
77 struct phonet_device_list *pndevs = phonet_device_list(dev_net(dev)); in __phonet_get_rcu() local
80 list_for_each_entry_rcu(pnd, &pndevs->list, list) { in __phonet_get_rcu()
89 struct phonet_device_list *pndevs = phonet_device_list(dev_net(dev)); in phonet_device_destroy() local
94 mutex_lock(&pndevs->lock); in phonet_device_destroy()
98 mutex_unlock(&pndevs->lock); in phonet_device_destroy()
111 struct phonet_device_list *pndevs = phonet_device_list(net); in phonet_device_get() local
116 list_for_each_entry_rcu(pnd, &pndevs->list, list) { in phonet_device_get()
132 struct phonet_device_list *pndevs = phonet_device_list(dev_net(dev)); in phonet_address_add() local
136 mutex_lock(&pndevs->lock); in phonet_address_add()
145 mutex_unlock(&pndevs->lock); in phonet_address_add()
151 struct phonet_device_list *pndevs = phonet_device_list(dev_net(dev)); in phonet_address_del() local
155 mutex_lock(&pndevs->lock); in phonet_address_del()
164 mutex_unlock(&pndevs->lock); in phonet_address_del()
208 struct phonet_device_list *pndevs = phonet_device_list(net); in phonet_address_lookup() local
213 list_for_each_entry_rcu(pnd, &pndevs->list, list) { in phonet_address_lookup()
311 INIT_LIST_HEAD(&pnn->pndevs.list); in phonet_init_net()
312 mutex_init(&pnn->pndevs.lock); in phonet_init_net()
322 WARN_ON_ONCE(!list_empty(&pnn->pndevs.list)); in phonet_exit_net()