Lines Matching refs:opt
558 unsigned int opt; in ax25_setsockopt() local
567 if (copy_from_sockptr(&opt, optval, sizeof(unsigned int))) in ax25_setsockopt()
576 if (opt < 1 || opt > 7) { in ax25_setsockopt()
581 if (opt < 1 || opt > 63) { in ax25_setsockopt()
586 ax25->window = opt; in ax25_setsockopt()
590 if (opt < 1 || opt > UINT_MAX / HZ) { in ax25_setsockopt()
594 ax25->rtt = (opt * HZ) >> 1; in ax25_setsockopt()
595 ax25->t1 = opt * HZ; in ax25_setsockopt()
599 if (opt < 1 || opt > UINT_MAX / HZ) { in ax25_setsockopt()
603 ax25->t2 = opt * HZ; in ax25_setsockopt()
607 if (opt < 1 || opt > 31) { in ax25_setsockopt()
611 ax25->n2 = opt; in ax25_setsockopt()
615 if (opt < 1 || opt > UINT_MAX / HZ) { in ax25_setsockopt()
619 ax25->t3 = opt * HZ; in ax25_setsockopt()
623 if (opt > UINT_MAX / (60 * HZ)) { in ax25_setsockopt()
627 ax25->idle = opt * 60 * HZ; in ax25_setsockopt()
631 if (opt > 2) { in ax25_setsockopt()
635 ax25->backoff = opt; in ax25_setsockopt()
639 ax25->modulus = opt ? AX25_EMODULUS : AX25_MODULUS; in ax25_setsockopt()
643 ax25->pidincl = opt ? 1 : 0; in ax25_setsockopt()
647 ax25->iamdigi = opt ? 1 : 0; in ax25_setsockopt()
651 if (opt < 16 || opt > 65535) { in ax25_setsockopt()
655 ax25->paclen = opt; in ax25_setsockopt()