Lines Matching refs:opt
541 unsigned long opt; in ax25_setsockopt() local
550 if (get_user(opt, (unsigned int __user *)optval)) in ax25_setsockopt()
559 if (opt < 1 || opt > 7) { in ax25_setsockopt()
564 if (opt < 1 || opt > 63) { in ax25_setsockopt()
569 ax25->window = opt; in ax25_setsockopt()
573 if (opt < 1 || opt > ULONG_MAX / HZ) { in ax25_setsockopt()
577 ax25->rtt = (opt * HZ) >> 1; in ax25_setsockopt()
578 ax25->t1 = opt * HZ; in ax25_setsockopt()
582 if (opt < 1 || opt > ULONG_MAX / HZ) { in ax25_setsockopt()
586 ax25->t2 = opt * HZ; in ax25_setsockopt()
590 if (opt < 1 || opt > 31) { in ax25_setsockopt()
594 ax25->n2 = opt; in ax25_setsockopt()
598 if (opt < 1 || opt > ULONG_MAX / HZ) { in ax25_setsockopt()
602 ax25->t3 = opt * HZ; in ax25_setsockopt()
606 if (opt > ULONG_MAX / (60 * HZ)) { in ax25_setsockopt()
610 ax25->idle = opt * 60 * HZ; in ax25_setsockopt()
614 if (opt > 2) { in ax25_setsockopt()
618 ax25->backoff = opt; in ax25_setsockopt()
622 ax25->modulus = opt ? AX25_EMODULUS : AX25_MODULUS; in ax25_setsockopt()
626 ax25->pidincl = opt ? 1 : 0; in ax25_setsockopt()
630 ax25->iamdigi = opt ? 1 : 0; in ax25_setsockopt()
634 if (opt < 16 || opt > 65535) { in ax25_setsockopt()
638 ax25->paclen = opt; in ax25_setsockopt()