Lines Matching refs:opt
542 unsigned long opt; in ax25_setsockopt() local
551 if (get_user(opt, (unsigned int __user *)optval)) in ax25_setsockopt()
560 if (opt < 1 || opt > 7) { in ax25_setsockopt()
565 if (opt < 1 || opt > 63) { in ax25_setsockopt()
570 ax25->window = opt; in ax25_setsockopt()
574 if (opt < 1 || opt > ULONG_MAX / HZ) { in ax25_setsockopt()
578 ax25->rtt = (opt * HZ) >> 1; in ax25_setsockopt()
579 ax25->t1 = opt * HZ; in ax25_setsockopt()
583 if (opt < 1 || opt > ULONG_MAX / HZ) { in ax25_setsockopt()
587 ax25->t2 = opt * HZ; in ax25_setsockopt()
591 if (opt < 1 || opt > 31) { in ax25_setsockopt()
595 ax25->n2 = opt; in ax25_setsockopt()
599 if (opt < 1 || opt > ULONG_MAX / HZ) { in ax25_setsockopt()
603 ax25->t3 = opt * HZ; in ax25_setsockopt()
607 if (opt > ULONG_MAX / (60 * HZ)) { in ax25_setsockopt()
611 ax25->idle = opt * 60 * HZ; in ax25_setsockopt()
615 if (opt > 2) { in ax25_setsockopt()
619 ax25->backoff = opt; in ax25_setsockopt()
623 ax25->modulus = opt ? AX25_EMODULUS : AX25_MODULUS; in ax25_setsockopt()
627 ax25->pidincl = opt ? 1 : 0; in ax25_setsockopt()
631 ax25->iamdigi = opt ? 1 : 0; in ax25_setsockopt()
635 if (opt < 16 || opt > 65535) { in ax25_setsockopt()
639 ax25->paclen = opt; in ax25_setsockopt()