Lines Matching refs:daddr
173 u8 phonet_address_get(struct net_device *dev, u8 daddr) in phonet_address_get() argument
184 if (test_bit(daddr >> 2, pnd->addrs)) in phonet_address_get()
185 saddr = daddr; in phonet_address_get()
199 saddr = phonet_address_get(def_dev, daddr); in phonet_address_get()
356 int phonet_route_add(struct net_device *dev, u8 daddr) in phonet_route_add() argument
362 daddr = daddr >> 2; in phonet_route_add()
364 if (routes->table[daddr] == NULL) { in phonet_route_add()
365 rcu_assign_pointer(routes->table[daddr], dev); in phonet_route_add()
373 int phonet_route_del(struct net_device *dev, u8 daddr) in phonet_route_del() argument
378 daddr = daddr >> 2; in phonet_route_del()
380 if (rcu_access_pointer(routes->table[daddr]) == dev) in phonet_route_del()
381 RCU_INIT_POINTER(routes->table[daddr], NULL); in phonet_route_del()
393 struct net_device *phonet_route_get_rcu(struct net *net, u8 daddr) in phonet_route_get_rcu() argument
399 daddr >>= 2; in phonet_route_get_rcu()
400 dev = rcu_dereference(routes->table[daddr]); in phonet_route_get_rcu()
404 struct net_device *phonet_route_output(struct net *net, u8 daddr) in phonet_route_output() argument
410 daddr >>= 2; in phonet_route_output()
412 dev = rcu_dereference(routes->table[daddr]); in phonet_route_output()