Lines Matching refs:parms

209 static void dn_dev_sysctl_register(struct net_device *dev, struct dn_dev_parms *parms)  in dn_dev_sysctl_register()  argument
222 t->dn_dev_vars[i].data = ((char *)parms) + offset; in dn_dev_sysctl_register()
226 dev? dev->name : parms->name); in dn_dev_sysctl_register()
234 parms->sysctl = t; in dn_dev_sysctl_register()
237 static void dn_dev_sysctl_unregister(struct dn_dev_parms *parms) in dn_dev_sysctl_unregister() argument
239 if (parms->sysctl) { in dn_dev_sysctl_unregister()
240 struct dn_dev_sysctl_table *t = parms->sysctl; in dn_dev_sysctl_unregister()
241 parms->sysctl = NULL; in dn_dev_sysctl_unregister()
260 old = dn_db->parms.forwarding; in dn_forwarding_proc()
265 if (dn_db->parms.forwarding < 0) in dn_forwarding_proc()
266 dn_db->parms.forwarding = 0; in dn_forwarding_proc()
267 if (dn_db->parms.forwarding > 2) in dn_forwarding_proc()
268 dn_db->parms.forwarding = 2; in dn_forwarding_proc()
275 tmp = dn_db->parms.forwarding; in dn_forwarding_proc()
276 dn_db->parms.forwarding = old; in dn_forwarding_proc()
277 if (dn_db->parms.down) in dn_forwarding_proc()
278 dn_db->parms.down(dev); in dn_forwarding_proc()
279 dn_db->parms.forwarding = tmp; in dn_forwarding_proc()
280 if (dn_db->parms.up) in dn_forwarding_proc()
281 dn_db->parms.up(dev); in dn_forwarding_proc()
291 static void dn_dev_sysctl_unregister(struct dn_dev_parms *parms) in dn_dev_sysctl_unregister() argument
294 static void dn_dev_sysctl_register(struct net_device *dev, struct dn_dev_parms *parms) in dn_dev_sysctl_register() argument
861 msg->timer = cpu_to_le16((unsigned short)dn_db->parms.t3); in dn_send_endnode_hello()
888 if (dn->priority < dn_db->parms.priority) in dn_am_i_a_router()
892 if (dn->priority != dn_db->parms.priority) in dn_am_i_a_router()
937 *ptr++ = dn_db->parms.forwarding == 1 ? in dn_send_router_hello()
941 *ptr++ = dn_db->parms.priority; /* Priority */ in dn_send_router_hello()
943 *((__le16 *)ptr) = cpu_to_le16((unsigned short)dn_db->parms.t3); in dn_send_router_hello()
977 if (dn_db->parms.forwarding == 0) in dn_send_brd_hello()
1015 if (dn_db->parms.forwarding == 0) in dn_eth_up()
1029 if (dn_db->parms.forwarding == 0) in dn_eth_down()
1045 if (dn_db->t3 <= dn_db->parms.t2) { in dn_dev_timer_func()
1046 if (dn_db->parms.timer3) { in dn_dev_timer_func()
1051 dn_db->parms.timer3(dev, ifa); in dn_dev_timer_func()
1054 dn_db->t3 = dn_db->parms.t3; in dn_dev_timer_func()
1056 dn_db->t3 -= dn_db->parms.t2; in dn_dev_timer_func()
1066 if (dn_db->parms.t2 > dn_db->parms.t3) in dn_dev_set_timer()
1067 dn_db->parms.t2 = dn_db->parms.t3; in dn_dev_set_timer()
1069 dn_db->timer.expires = jiffies + (dn_db->parms.t2 * HZ); in dn_dev_set_timer()
1093 memcpy(&dn_db->parms, p, sizeof(struct dn_dev_parms)); in dn_dev_create()
1108 if (dn_db->parms.up) { in dn_dev_create()
1109 if (dn_db->parms.up(dev) < 0) { in dn_dev_create()
1117 dn_dev_sysctl_register(dev, &dn_db->parms); in dn_dev_create()
1199 dn_dev_sysctl_unregister(&dn_db->parms); in dn_dev_delete()
1203 if (dn_db->parms.down) in dn_dev_delete()
1204 dn_db->parms.down(dev); in dn_dev_delete()
1362 dn_type2asc(dn_db->parms.mode), in dn_dev_seq_show()
1364 dn_db->t3, dn_db->parms.t3, in dn_dev_seq_show()
1366 dn_db->parms.priority, in dn_dev_seq_show()
1367 dn_db->parms.state, dn_db->parms.name, in dn_dev_seq_show()