Home
last modified time | relevance | path

Searched refs:bufsize (Results 1 – 11 of 11) sorted by relevance

/net/ipv4/
Dtcp_probe.c45 static unsigned int bufsize __read_mostly = 4096;
46 MODULE_PARM_DESC(bufsize, "Log buffer size in packets (4096)");
47 module_param(bufsize, uint, 0);
88 return (tcp_probe.head - tcp_probe.tail) & (bufsize - 1); in tcp_probe_used()
93 return bufsize - tcp_probe_used() - 1; in tcp_probe_avail()
157 tcp_probe.head = (tcp_probe.head + 1) & (bufsize - 1); in jtcp_rcv_established()
230 tcp_probe.tail = (tcp_probe.tail + 1) & (bufsize - 1); in tcpprobe_read()
268 if (bufsize == 0) in tcpprobe_init()
271 bufsize = roundup_pow_of_two(bufsize); in tcpprobe_init()
272 tcp_probe.log = kcalloc(bufsize, sizeof(struct tcp_log), GFP_KERNEL); in tcpprobe_init()
[all …]
/net/sunrpc/auth_gss/
Dgss_generic_token.c118 der_read_length(unsigned char **buf, int *bufsize) in der_read_length() argument
123 if (*bufsize < 1) in der_read_length()
126 (*bufsize)--; in der_read_length()
128 if ((sf &= 0x7f) > ((*bufsize)-1)) in der_read_length()
135 (*bufsize)--; in der_read_length()
Dgss_mech_switch.c399 gss_import_sec_context(const void *input_token, size_t bufsize, in gss_import_sec_context() argument
409 return mech->gm_ops->gss_import_sec_context(input_token, bufsize, in gss_import_sec_context()
/net/sctp/
Dprobe.c54 static int bufsize __read_mostly = 64 * 1024;
55 MODULE_PARM_DESC(bufsize, "Log buffer size (default 64k)");
56 module_param(bufsize, int, 0);
213 if (kfifo_alloc(&sctpw.fifo, bufsize, GFP_KERNEL)) in sctpprobe_init()
225 port, fwmark, bufsize); in sctpprobe_init()
/net/dccp/
Dprobe.c43 static int bufsize = 64 * 1024; variable
161 if (kfifo_alloc(&dccpw.fifo, bufsize, GFP_KERNEL)) in dccpprobe_init()
198 MODULE_PARM_DESC(bufsize, "Log buffer size (default 64k)");
199 module_param(bufsize, int, 0);
/net/sunrpc/
Dsvc.c423 __svc_create(struct svc_program *prog, unsigned int bufsize, int npools, in __svc_create() argument
437 if (bufsize > RPCSVC_MAXPAYLOAD) in __svc_create()
438 bufsize = RPCSVC_MAXPAYLOAD; in __svc_create()
439 serv->sv_max_payload = bufsize? bufsize : 4096; in __svc_create()
488 svc_create(struct svc_program *prog, unsigned int bufsize, in svc_create() argument
491 return __svc_create(prog, bufsize, /*npools*/1, ops); in svc_create()
496 svc_create_pooled(struct svc_program *prog, unsigned int bufsize, in svc_create_pooled() argument
502 serv = __svc_create(prog, bufsize, npools, ops); in svc_create_pooled()
Dcache.c1218 int qword_get(char **bpp, char *dest, int bufsize) in qword_get() argument
1229 while (len < bufsize - 1) { in qword_get()
1246 while (*bp != ' ' && *bp != '\n' && *bp && len < bufsize-1) { in qword_get()
Dclnt.c1182 size_t rpc_peeraddr(struct rpc_clnt *clnt, struct sockaddr *buf, size_t bufsize) in rpc_peeraddr() argument
1191 if (bytes > bufsize) in rpc_peeraddr()
1192 bytes = bufsize; in rpc_peeraddr()
/net/mac80211/
Ddebugfs_key.c306 int i, bufsize = 2 * key->conf.keylen + 2; in key_key_read() local
307 char *buf = kmalloc(bufsize, GFP_KERNEL); in key_key_read()
315 p += scnprintf(p, bufsize + buf - p, "%02x", key->conf.key[i]); in key_key_read()
316 p += scnprintf(p, bufsize+buf-p, "\n"); in key_key_read()
/net/wireless/
Dutil.c1275 u8 *buf, unsigned int bufsize) in cfg80211_get_p2p_attr() argument
1314 memcpy(out, iedata, min(bufsize, copy)); in cfg80211_get_p2p_attr()
1315 out += min(bufsize, copy); in cfg80211_get_p2p_attr()
1316 bufsize -= min(bufsize, copy); in cfg80211_get_p2p_attr()
1347 memcpy(out, iedata, min(bufsize, copy)); in cfg80211_get_p2p_attr()
1348 out += min(bufsize, copy); in cfg80211_get_p2p_attr()
1349 bufsize -= min(bufsize, copy); in cfg80211_get_p2p_attr()
Dnl80211.c9801 if (tokens_size > rdev->wiphy.wowlan->tcp->tok->bufsize) in nl80211_parse_wowlan_tcp()