Lines Matching refs:parms
210 int lapb_getparms(struct net_device *dev, struct lapb_parms_struct *parms) in lapb_getparms() argument
220 parms->t1 = lapb->t1 / HZ; in lapb_getparms()
221 parms->t2 = lapb->t2 / HZ; in lapb_getparms()
222 parms->n2 = lapb->n2; in lapb_getparms()
223 parms->n2count = lapb->n2count; in lapb_getparms()
224 parms->state = lapb->state; in lapb_getparms()
225 parms->window = lapb->window; in lapb_getparms()
226 parms->mode = lapb->mode; in lapb_getparms()
229 parms->t1timer = 0; in lapb_getparms()
231 parms->t1timer = (lapb->t1timer.expires - jiffies) / HZ; in lapb_getparms()
234 parms->t2timer = 0; in lapb_getparms()
236 parms->t2timer = (lapb->t2timer.expires - jiffies) / HZ; in lapb_getparms()
246 int lapb_setparms(struct net_device *dev, struct lapb_parms_struct *parms) in lapb_setparms() argument
257 if (parms->t1 < 1 || parms->t2 < 1 || parms->n2 < 1) in lapb_setparms()
261 if (parms->mode & LAPB_EXTENDED) { in lapb_setparms()
262 if (parms->window < 1 || parms->window > 127) in lapb_setparms()
265 if (parms->window < 1 || parms->window > 7) in lapb_setparms()
268 lapb->mode = parms->mode; in lapb_setparms()
269 lapb->window = parms->window; in lapb_setparms()
272 lapb->t1 = parms->t1 * HZ; in lapb_setparms()
273 lapb->t2 = parms->t2 * HZ; in lapb_setparms()
274 lapb->n2 = parms->n2; in lapb_setparms()