Lines Matching refs:max_len

1053 				       size_t max_len,  in zsock_recv_dgram()  argument
1147 tmp_read_len = read_len = MIN(recv_len, max_len); in zsock_recv_dgram()
1183 read_len = MIN(recv_len, max_len); in zsock_recv_dgram()
1242 static size_t zsock_recv_stream_immediate(struct net_context *ctx, uint8_t **buf, size_t *max_len, in zsock_recv_stream_immediate() argument
1251 const bool do_recv = !(buf == NULL || max_len == NULL); in zsock_recv_stream_immediate()
1252 size_t _max_len = (max_len == NULL) ? SIZE_MAX : *max_len; in zsock_recv_stream_immediate()
1309 *max_len = _max_len; in zsock_recv_stream_immediate()
1323 uint8_t *buf, size_t max_len, in zsock_recv_stream_timed() argument
1342 for (end = sys_timepoint_calc(timeout); max_len > 0; timeout = sys_timepoint_timeout(end)) { in zsock_recv_stream_timed()
1370 max_len -= res; in zsock_recv_stream_timed()
1394 res = zsock_recv_stream_immediate(ctx, &buf, &max_len, flags); in zsock_recv_stream_timed()
1413 void *buf, size_t max_len, int flags) in zsock_recv_stream() argument
1435 if (max_len == 0) { in zsock_recv_stream()
1440 res = zsock_recv_stream_timed(ctx, msg, buf, max_len, flags, timeout); in zsock_recv_stream()
1455 ssize_t zsock_recvfrom_ctx(struct net_context *ctx, void *buf, size_t max_len, in zsock_recvfrom_ctx() argument
1461 if (max_len == 0) { in zsock_recvfrom_ctx()
1466 return zsock_recv_dgram(ctx, NULL, buf, max_len, flags, src_addr, addrlen); in zsock_recvfrom_ctx()
1468 return zsock_recv_stream(ctx, NULL, buf, max_len, flags); in zsock_recvfrom_ctx()
1482 size_t i, max_len = 0; in zsock_recvmsg_ctx() local
1495 max_len += msg->msg_iov[i].iov_len; in zsock_recvmsg_ctx()
1499 return zsock_recv_dgram(ctx, msg, NULL, max_len, flags, in zsock_recvmsg_ctx()
1502 return zsock_recv_stream(ctx, msg, NULL, max_len, flags); in zsock_recvmsg_ctx()
2977 static ssize_t sock_recvfrom_vmeth(void *obj, void *buf, size_t max_len, in sock_recvfrom_vmeth() argument
2981 return zsock_recvfrom_ctx(obj, buf, max_len, flags, in sock_recvfrom_vmeth()