Searched defs:maxlen (Results 1 - 10 of 10) sorted by relevance

/net/ipv4/
H A Dtcp_cong.c156 void tcp_get_available_congestion_control(char *buf, size_t maxlen) argument
163 offs += snprintf(buf + offs, maxlen - offs,
184 void tcp_get_allowed_congestion_control(char *buf, size_t maxlen) argument
194 offs += snprintf(buf + offs, maxlen - offs,
/net/ceph/
H A Dauth_x.c285 int maxlen; local
296 maxlen = sizeof(*msg_a) + sizeof(msg_b) +
298 dout(" need len %d\n", maxlen);
299 if (au->buf && au->buf->alloc_len < maxlen) {
304 au->buf = ceph_buffer_new(maxlen, GFP_NOFS);
340 BUG_ON(au->buf->vec.iov_len > maxlen);
/net/ax25/
H A Daf_ax25.c686 int maxlen, length; local
691 if (get_user(maxlen, optlen))
694 if (maxlen < 1)
698 length = min_t(unsigned int, maxlen, sizeof(int));
/net/bridge/
H A Dbr_multicast.c185 int maxlen; local
197 maxlen = 0;
202 if (len > maxlen)
203 maxlen = len;
206 return maxlen > elasticity ? -EINVAL : 0;
/net/sunrpc/
H A Dsvc_xprt.c104 int svc_print_xprts(char *buf, int maxlen) argument
117 if (len + slen > maxlen)
H A Dxdr.c101 unsigned int *lenp, unsigned int maxlen)
106 if (len > maxlen)
732 unsigned int maxlen; local
737 maxlen = xdr->buf->page_len;
738 if (base >= maxlen)
740 maxlen -= base;
741 if (len > maxlen)
742 len = maxlen;
100 xdr_decode_string_inplace(__be32 *p, char **sp, unsigned int *lenp, unsigned int maxlen) argument
/net/netfilter/ipvs/
H A Dip_vs_sync.c1030 __u8 **data, unsigned int maxlen,
1033 if (plen > maxlen) {
1034 IP_VS_DBG(2, "BACKUP, bogus par.data len > %d\n", maxlen);
1029 ip_vs_proc_str(__u8 *p, unsigned int plen, unsigned int *data_len, __u8 **data, unsigned int maxlen, __u32 *opt_flags, __u32 flag) argument
/net/sched/
H A Dsch_qfq.c236 * index = log_2(maxlen/weight) but we need to apply the scaling.
239 static int qfq_calc_index(u32 inv_w, unsigned int maxlen, u32 min_slot_shift) argument
241 u64 slot_size = (u64)maxlen * inv_w;
256 (unsigned long) ONE_FP/inv_w, maxlen, index);
/net/core/
H A Dpktgen.c735 static int hex32_arg(const char __user *user_buffer, unsigned long maxlen, argument
741 for (; i < maxlen; i++) {
757 unsigned int maxlen)
761 for (i = 0; i < maxlen; i++) {
781 static long num_arg(const char __user *user_buffer, unsigned long maxlen, argument
787 for (i = 0; i < maxlen; i++) {
800 static int strn_len(const char __user * user_buffer, unsigned int maxlen) argument
804 for (i = 0; i < maxlen; i++) {
756 count_trail_chars(const char __user * user_buffer, unsigned int maxlen) argument
/net/netlink/
H A Daf_netlink.c717 unsigned int maxlen; local
733 maxlen = ring->frame_size - NL_MMAP_HDRLEN;
743 if (hdr->nm_len > maxlen) {
1807 unsigned int maxlen; local
1831 maxlen = ring->frame_size - NL_MMAP_HDRLEN;
1832 if (maxlen < size)

Completed in 177 milliseconds