dn_db 176 include/net/dn_dev.h struct dn_dev *dn_db; dn_db 181 include/net/dn_dev.h dn_db = rcu_dereference(dev->dn_ptr); dn_db 182 include/net/dn_dev.h if (dn_db == NULL) { dn_db 187 include/net/dn_dev.h for (ifa = rcu_dereference(dn_db->ifa_list); dn_db 1850 net/decnet/af_decnet.c struct dn_dev *dn_db = rcu_dereference_raw(dev->dn_ptr); dn_db 1852 net/decnet/af_decnet.c if (dn_db->use_long) dn_db 253 net/decnet/dn_dev.c struct dn_dev *dn_db; dn_db 260 net/decnet/dn_dev.c dn_db = rcu_dereference_raw(dev->dn_ptr); dn_db 261 net/decnet/dn_dev.c old = dn_db->parms.forwarding; dn_db 266 net/decnet/dn_dev.c if (dn_db->parms.forwarding < 0) dn_db 267 net/decnet/dn_dev.c dn_db->parms.forwarding = 0; dn_db 268 net/decnet/dn_dev.c if (dn_db->parms.forwarding > 2) dn_db 269 net/decnet/dn_dev.c dn_db->parms.forwarding = 2; dn_db 276 net/decnet/dn_dev.c tmp = dn_db->parms.forwarding; dn_db 277 net/decnet/dn_dev.c dn_db->parms.forwarding = old; dn_db 278 net/decnet/dn_dev.c if (dn_db->parms.down) dn_db 279 net/decnet/dn_dev.c dn_db->parms.down(dev); dn_db 280 net/decnet/dn_dev.c dn_db->parms.forwarding = tmp; dn_db 281 net/decnet/dn_dev.c if (dn_db->parms.up) dn_db 282 net/decnet/dn_dev.c dn_db->parms.up(dev); dn_db 330 net/decnet/dn_dev.c static void dn_dev_del_ifa(struct dn_dev *dn_db, struct dn_ifaddr __rcu **ifap, int destroy) dn_db 334 net/decnet/dn_dev.c struct net_device *dev = dn_db->dev; dn_db 340 net/decnet/dn_dev.c if (dn_db->dev->type == ARPHRD_ETHER) { dn_db 352 net/decnet/dn_dev.c if (dn_db->ifa_list == NULL) dn_db 353 net/decnet/dn_dev.c dn_dev_delete(dn_db->dev); dn_db 357 net/decnet/dn_dev.c static int dn_dev_insert_ifa(struct dn_dev *dn_db, struct dn_ifaddr *ifa) dn_db 359 net/decnet/dn_dev.c struct net_device *dev = dn_db->dev; dn_db 366 net/decnet/dn_dev.c for (ifa1 = rtnl_dereference(dn_db->ifa_list); dn_db 380 net/decnet/dn_dev.c ifa->ifa_next = dn_db->ifa_list; dn_db 381 net/decnet/dn_dev.c rcu_assign_pointer(dn_db->ifa_list, ifa); dn_db 391 net/decnet/dn_dev.c struct dn_dev *dn_db = rtnl_dereference(dev->dn_ptr); dn_db 394 net/decnet/dn_dev.c if (dn_db == NULL) { dn_db 396 net/decnet/dn_dev.c dn_db = dn_dev_create(dev, &err); dn_db 397 net/decnet/dn_dev.c if (dn_db == NULL) dn_db 401 net/decnet/dn_dev.c ifa->ifa_dev = dn_db; dn_db 406 net/decnet/dn_dev.c rv = dn_dev_insert_ifa(dn_db, ifa); dn_db 418 net/decnet/dn_dev.c struct dn_dev *dn_db; dn_db 450 net/decnet/dn_dev.c if ((dn_db = rtnl_dereference(dev->dn_ptr)) != NULL) { dn_db 451 net/decnet/dn_dev.c for (ifap = &dn_db->ifa_list; dn_db 478 net/decnet/dn_dev.c dn_dev_del_ifa(dn_db, ifap, 0); dn_db 574 net/decnet/dn_dev.c struct dn_dev *dn_db; dn_db 593 net/decnet/dn_dev.c if ((dn_db = dn_dev_by_index(ifm->ifa_index)) == NULL) dn_db 597 net/decnet/dn_dev.c for (ifap = &dn_db->ifa_list; dn_db 607 net/decnet/dn_dev.c dn_dev_del_ifa(dn_db, ifap, 1); dn_db 621 net/decnet/dn_dev.c struct dn_dev *dn_db; dn_db 644 net/decnet/dn_dev.c if ((dn_db = rtnl_dereference(dev->dn_ptr)) == NULL) { dn_db 645 net/decnet/dn_dev.c dn_db = dn_dev_create(dev, &err); dn_db 646 net/decnet/dn_dev.c if (!dn_db) dn_db 661 net/decnet/dn_dev.c ifa->ifa_dev = dn_db; dn_db 668 net/decnet/dn_dev.c err = dn_dev_insert_ifa(dn_db, ifa); dn_db 746 net/decnet/dn_dev.c struct dn_dev *dn_db; dn_db 766 net/decnet/dn_dev.c if ((dn_db = rcu_dereference(dev->dn_ptr)) == NULL) dn_db 769 net/decnet/dn_dev.c for (ifa = rcu_dereference(dn_db->ifa_list), dn_idx = 0; ifa; dn_db 792 net/decnet/dn_dev.c struct dn_dev *dn_db; dn_db 797 net/decnet/dn_dev.c dn_db = rcu_dereference(dev->dn_ptr); dn_db 798 net/decnet/dn_dev.c if (dn_db == NULL) dn_db 801 net/decnet/dn_dev.c ifa = rcu_dereference(dn_db->ifa_list); dn_db 843 net/decnet/dn_dev.c struct dn_dev *dn_db = rcu_dereference_raw(dev->dn_ptr); dn_db 861 net/decnet/dn_dev.c if (dn_db->router) { dn_db 862 net/decnet/dn_dev.c struct dn_neigh *dn = (struct dn_neigh *)dn_db->router; dn_db 866 net/decnet/dn_dev.c msg->timer = cpu_to_le16((unsigned short)dn_db->parms.t3); dn_db 882 net/decnet/dn_dev.c static int dn_am_i_a_router(struct dn_neigh *dn, struct dn_dev *dn_db, struct dn_ifaddr *ifa) dn_db 885 net/decnet/dn_dev.c if (time_before(jiffies, dn_db->uptime + DRDELAY)) dn_db 889 net/decnet/dn_dev.c if (!dn_db->router) dn_db 893 net/decnet/dn_dev.c if (dn->priority < dn_db->parms.priority) dn_db 897 net/decnet/dn_dev.c if (dn->priority != dn_db->parms.priority) dn_db 909 net/decnet/dn_dev.c struct dn_dev *dn_db = rcu_dereference_raw(dev->dn_ptr); dn_db 910 net/decnet/dn_dev.c struct dn_neigh *dn = (struct dn_neigh *)dn_db->router; dn_db 942 net/decnet/dn_dev.c *ptr++ = dn_db->parms.forwarding == 1 ? dn_db 946 net/decnet/dn_dev.c *ptr++ = dn_db->parms.priority; /* Priority */ dn_db 948 net/decnet/dn_dev.c *((__le16 *)ptr) = cpu_to_le16((unsigned short)dn_db->parms.t3); dn_db 968 net/decnet/dn_dev.c if (dn_am_i_a_router(dn, dn_db, ifa)) { dn_db 980 net/decnet/dn_dev.c struct dn_dev *dn_db = rcu_dereference_raw(dev->dn_ptr); dn_db 982 net/decnet/dn_dev.c if (dn_db->parms.forwarding == 0) dn_db 1018 net/decnet/dn_dev.c struct dn_dev *dn_db = rcu_dereference_raw(dev->dn_ptr); dn_db 1020 net/decnet/dn_dev.c if (dn_db->parms.forwarding == 0) dn_db 1025 net/decnet/dn_dev.c dn_db->use_long = 1; dn_db 1032 net/decnet/dn_dev.c struct dn_dev *dn_db = rcu_dereference_raw(dev->dn_ptr); dn_db 1034 net/decnet/dn_dev.c if (dn_db->parms.forwarding == 0) dn_db 1044 net/decnet/dn_dev.c struct dn_dev *dn_db = from_timer(dn_db, t, timer); dn_db 1049 net/decnet/dn_dev.c dev = dn_db->dev; dn_db 1050 net/decnet/dn_dev.c if (dn_db->t3 <= dn_db->parms.t2) { dn_db 1051 net/decnet/dn_dev.c if (dn_db->parms.timer3) { dn_db 1052 net/decnet/dn_dev.c for (ifa = rcu_dereference(dn_db->ifa_list); dn_db 1056 net/decnet/dn_dev.c dn_db->parms.timer3(dev, ifa); dn_db 1059 net/decnet/dn_dev.c dn_db->t3 = dn_db->parms.t3; dn_db 1061 net/decnet/dn_dev.c dn_db->t3 -= dn_db->parms.t2; dn_db 1069 net/decnet/dn_dev.c struct dn_dev *dn_db = rcu_dereference_raw(dev->dn_ptr); dn_db 1071 net/decnet/dn_dev.c if (dn_db->parms.t2 > dn_db->parms.t3) dn_db 1072 net/decnet/dn_dev.c dn_db->parms.t2 = dn_db->parms.t3; dn_db 1074 net/decnet/dn_dev.c dn_db->timer.expires = jiffies + (dn_db->parms.t2 * HZ); dn_db 1076 net/decnet/dn_dev.c add_timer(&dn_db->timer); dn_db 1083 net/decnet/dn_dev.c struct dn_dev *dn_db; dn_db 1095 net/decnet/dn_dev.c if ((dn_db = kzalloc(sizeof(struct dn_dev), GFP_ATOMIC)) == NULL) dn_db 1098 net/decnet/dn_dev.c memcpy(&dn_db->parms, p, sizeof(struct dn_dev_parms)); dn_db 1100 net/decnet/dn_dev.c rcu_assign_pointer(dev->dn_ptr, dn_db); dn_db 1101 net/decnet/dn_dev.c dn_db->dev = dev; dn_db 1102 net/decnet/dn_dev.c timer_setup(&dn_db->timer, dn_dev_timer_func, 0); dn_db 1104 net/decnet/dn_dev.c dn_db->uptime = jiffies; dn_db 1106 net/decnet/dn_dev.c dn_db->neigh_parms = neigh_parms_alloc(dev, &dn_neigh_table); dn_db 1107 net/decnet/dn_dev.c if (!dn_db->neigh_parms) { dn_db 1109 net/decnet/dn_dev.c kfree(dn_db); dn_db 1113 net/decnet/dn_dev.c if (dn_db->parms.up) { dn_db 1114 net/decnet/dn_dev.c if (dn_db->parms.up(dev) < 0) { dn_db 1115 net/decnet/dn_dev.c neigh_parms_release(&dn_neigh_table, dn_db->neigh_parms); dn_db 1117 net/decnet/dn_dev.c kfree(dn_db); dn_db 1122 net/decnet/dn_dev.c dn_dev_sysctl_register(dev, &dn_db->parms); dn_db 1127 net/decnet/dn_dev.c return dn_db; dn_db 1147 net/decnet/dn_dev.c struct dn_dev *dn_db = rtnl_dereference(dev->dn_ptr); dn_db 1158 net/decnet/dn_dev.c if (dn_db == NULL) { dn_db 1160 net/decnet/dn_dev.c dn_db = dn_dev_create(dev, &err); dn_db 1161 net/decnet/dn_dev.c if (dn_db == NULL) dn_db 1198 net/decnet/dn_dev.c struct dn_dev *dn_db = rtnl_dereference(dev->dn_ptr); dn_db 1200 net/decnet/dn_dev.c if (dn_db == NULL) dn_db 1203 net/decnet/dn_dev.c del_timer_sync(&dn_db->timer); dn_db 1204 net/decnet/dn_dev.c dn_dev_sysctl_unregister(&dn_db->parms); dn_db 1208 net/decnet/dn_dev.c if (dn_db->parms.down) dn_db 1209 net/decnet/dn_dev.c dn_db->parms.down(dev); dn_db 1213 net/decnet/dn_dev.c neigh_parms_release(&dn_neigh_table, dn_db->neigh_parms); dn_db 1216 net/decnet/dn_dev.c if (dn_db->router) dn_db 1217 net/decnet/dn_dev.c neigh_release(dn_db->router); dn_db 1218 net/decnet/dn_dev.c if (dn_db->peer) dn_db 1219 net/decnet/dn_dev.c neigh_release(dn_db->peer); dn_db 1221 net/decnet/dn_dev.c kfree(dn_db); dn_db 1226 net/decnet/dn_dev.c struct dn_dev *dn_db = rtnl_dereference(dev->dn_ptr); dn_db 1229 net/decnet/dn_dev.c if (dn_db == NULL) dn_db 1232 net/decnet/dn_dev.c while ((ifa = rtnl_dereference(dn_db->ifa_list)) != NULL) { dn_db 1233 net/decnet/dn_dev.c dn_dev_del_ifa(dn_db, &dn_db->ifa_list, 0); dn_db 1362 net/decnet/dn_dev.c struct dn_dev *dn_db = rcu_dereference(dev->dn_ptr); dn_db 1367 net/decnet/dn_dev.c dn_type2asc(dn_db->parms.mode), dn_db 1369 net/decnet/dn_dev.c dn_db->t3, dn_db->parms.t3, dn_db 1371 net/decnet/dn_dev.c dn_db->parms.priority, dn_db 1372 net/decnet/dn_dev.c dn_db->parms.state, dn_db->parms.name, dn_db 1373 net/decnet/dn_dev.c dn_db->router ? dn_addr2asc(le16_to_cpu(*(__le16 *)dn_db->router->primary_key), router_buf) : "", dn_db 1374 net/decnet/dn_dev.c dn_db->peer ? dn_addr2asc(le16_to_cpu(*(__le16 *)dn_db->peer->primary_key), peer_buf) : ""); dn_db 635 net/decnet/dn_fib.c struct dn_dev *dn_db; dn_db 643 net/decnet/dn_fib.c dn_db = rcu_dereference(dev->dn_ptr); dn_db 644 net/decnet/dn_fib.c if (dn_db == NULL) dn_db 646 net/decnet/dn_fib.c for (ifa2 = rcu_dereference(dn_db->ifa_list); dn_db 115 net/decnet/dn_neigh.c struct dn_dev *dn_db; dn_db 119 net/decnet/dn_neigh.c dn_db = rcu_dereference(dev->dn_ptr); dn_db 120 net/decnet/dn_neigh.c if (dn_db == NULL) { dn_db 125 net/decnet/dn_neigh.c parms = dn_db->neigh_parms; dn_db 344 net/decnet/dn_neigh.c struct dn_dev *dn_db; dn_db 348 net/decnet/dn_neigh.c dn_db = rcu_dereference(neigh->dev->dn_ptr); dn_db 349 net/decnet/dn_neigh.c if (dn_db == NULL) { dn_db 353 net/decnet/dn_neigh.c use_long = dn_db->use_long; dn_db 388 net/decnet/dn_neigh.c struct dn_dev *dn_db; dn_db 401 net/decnet/dn_neigh.c dn_db = rcu_dereference(neigh->dev->dn_ptr); dn_db 426 net/decnet/dn_neigh.c if (!dn_db->router) { dn_db 427 net/decnet/dn_neigh.c dn_db->router = neigh_clone(neigh); dn_db 429 net/decnet/dn_neigh.c if (msg->priority > ((struct dn_neigh *)dn_db->router)->priority) dn_db 430 net/decnet/dn_neigh.c neigh_release(xchg(&dn_db->router, neigh_clone(neigh))); dn_db 775 net/decnet/dn_route.c struct dn_dev *dn_db = rcu_dereference(dst->dev->dn_ptr); dn_db 785 net/decnet/dn_route.c header_len = dn_db->use_long ? 21 : 6; dn_db 909 net/decnet/dn_route.c struct dn_dev *dn_db; dn_db 915 net/decnet/dn_route.c dn_db = rcu_dereference(dev->dn_ptr); dn_db 916 net/decnet/dn_route.c for (ifa = rcu_dereference(dn_db->ifa_list); dn_db 1057 net/decnet/dn_route.c struct dn_dev *dn_db; dn_db 1101 net/decnet/dn_route.c dn_db = rcu_dereference_raw(dev_out->dn_ptr); dn_db 1102 net/decnet/dn_route.c if (!dn_db) dn_db 1113 net/decnet/dn_route.c neigh = neigh_clone(dn_db->router); dn_db 1306 net/decnet/dn_route.c struct dn_dev *dn_db; dn_db 1325 net/decnet/dn_route.c if ((dn_db = rcu_dereference(in_dev->dn_ptr)) == NULL) dn_db 1392 net/decnet/dn_route.c if (dn_db->parms.forwarding == 0) dn_db 1428 net/decnet/dn_route.c neigh = neigh_clone(dn_db->router);