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

/net/ipv4/
H A Dtcp_cong.c149 void tcp_get_available_congestion_control(char *buf, size_t maxlen) argument
156 offs += snprintf(buf + offs, maxlen - offs,
178 void tcp_get_allowed_congestion_control(char *buf, size_t maxlen) argument
188 offs += snprintf(buf + offs, maxlen - offs,
/net/ceph/
H A Dauth_x.c277 int maxlen; local
288 maxlen = sizeof(*msg_a) + sizeof(msg_b) +
290 dout(" need len %d\n", maxlen);
291 if (au->buf && au->buf->alloc_len < maxlen) {
296 au->buf = ceph_buffer_new(maxlen, GFP_NOFS);
332 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.c181 int maxlen; local
193 maxlen = 0;
198 if (len > maxlen)
199 maxlen = len;
202 return maxlen > elasticity ? -EINVAL : 0;
/net/sunrpc/
H A Dsvc_xprt.c103 int svc_print_xprts(char *buf, int maxlen) argument
116 if (len + slen > maxlen)
H A Dxdr.c101 unsigned int *lenp, unsigned int maxlen)
106 if (len > maxlen)
558 unsigned int maxlen; local
563 maxlen = xdr->buf->page_len;
564 if (base >= maxlen)
566 maxlen -= base;
567 if (len > maxlen)
568 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.c1011 __u8 **data, unsigned int maxlen,
1014 if (plen > maxlen) {
1015 IP_VS_DBG(2, "BACKUP, bogus par.data len > %d\n", maxlen);
1010 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.c717 static int hex32_arg(const char __user *user_buffer, unsigned long maxlen, argument
723 for (; i < maxlen; i++) {
739 unsigned int maxlen)
743 for (i = 0; i < maxlen; i++) {
763 static long num_arg(const char __user *user_buffer, unsigned long maxlen, argument
769 for (i = 0; i < maxlen; i++) {
782 static int strn_len(const char __user * user_buffer, unsigned int maxlen) argument
786 for (i = 0; i < maxlen; i++) {
738 count_trail_chars(const char __user * user_buffer, unsigned int maxlen) argument
/net/netlink/
H A Daf_netlink.c565 unsigned int maxlen; local
581 maxlen = ring->frame_size - NL_MMAP_HDRLEN;
591 if (hdr->nm_len > maxlen) {
1594 unsigned int maxlen; local
1614 maxlen = ring->frame_size - NL_MMAP_HDRLEN;
1615 if (maxlen < size)

Completed in 229 milliseconds