Home
last modified time | relevance | path

Searched refs:min (Results 1 – 18 of 18) sorted by relevance

/smoltcp-0.9.1/
Dgen_config.py10 def feature(name, default, min, max, pow2=None): argument
12 val = min
30 feature("iface_max_addr_count", default=2, min=1, max=8)
31 feature("iface_max_multicast_group_count", default=4, min=1, max=1024, pow2=8)
32 feature("iface_max_sixlowpan_address_context_count", default=4, min=1, max=1024, pow2=8)
33 feature("iface_neighbor_cache_count", default=4, min=1, max=1024, pow2=8)
34 feature("iface_max_route_count", default=2, min=1, max=1024, pow2=8)
35 feature("fragmentation_buffer_size", default=1500, min=256, max=65536, pow2=True)
36 feature("assembler_max_segment_count", default=4, min=1, max=32, pow2=4)
37 feature("reassembly_buffer_size", default=1500, min=256, max=65536, pow2=True)
[all …]
/smoltcp-0.9.1/src/storage/
Dring_buffer.rs83 cmp::min(self.window(), self.capacity() - self.get_idx(self.length)) in contiguous_window()
207 let size = cmp::min(size, buf.len()); in enqueue_many()
221 let size = cmp::min(buf.len(), data.len()); in enqueue_slice()
226 let size = cmp::min(buf.len(), data.len()); in enqueue_slice()
244 let max_size = cmp::min(self.len(), capacity - self.read_at); in dequeue_many_with()
264 let size = cmp::min(size, buf.len()); in dequeue_many()
278 let size = cmp::min(buf.len(), data.len()); in dequeue_slice()
283 let size = cmp::min(buf.len(), data.len()); in dequeue_slice()
/smoltcp-0.9.1/examples/
Dbenchmark.rs37 let length = cmp::min(buffer.len(), AMOUNT - processed); in client()
125 let length = cmp::min(buffer.len(), AMOUNT - processed); in main()
143 let length = cmp::min(buffer.len(), AMOUNT - processed); in main()
Dsixlowpan_benchmark.rs101 let length = cmp::min(buffer.len(), AMOUNT - processed); in client()
196 let length = cmp::min(buffer.len(), AMOUNT - processed); in main()
212 let length = cmp::min(buffer.len(), AMOUNT - processed); in main()
Dping.rs255 let resume_at = cmp::min(poll_at, send_at); in main()
/smoltcp-0.9.1/fuzz/fuzz_targets/
Dtcp_headers.rs50 let copy_len = cmp::min( in new()
102 let copy_len = cmp::min(replacement_data.len(), tcp_header_len); in fuzz_packet()
/smoltcp-0.9.1/src/socket/
Dudp.rs1 use core::cmp::min;
335 let length = min(data.len(), buffer.len()); in recv_slice()
368 let length = min(data.len(), buffer.len()); in peek_slice()
Draw.rs1 use core::cmp::min;
245 let length = min(data.len(), buffer.len()); in recv_slice()
275 let length = min(data.len(), buffer.len()); in peek_slice()
Ddns.rs607 pq.delay = MAX_RETRANSMIT_DELAY.min(pq.delay * 2); in dispatch()
626 .min() in poll_at()
Ddhcpv4.rs271 ClientState::Renewing(state) => state.renew_at.min(state.expires_at), in poll_at()
442 lease_duration = lease_duration.min(max_lease_duration); in parse_ack()
479 .map(|d| Duration::from_secs(d as u64).min(lease_duration / 2)) in parse_ack()
Dtcp.rs191 self.rtt = RTTE_MAX_RTO.min(self.rtt * 2); in on_retransmit()
548 cmp::min( in scaled_window()
1881 let effective_mss = local_mss.min(self.remote_mss); in seq_to_transmit()
1893 self.local_seq_no + core::cmp::min(self.remote_win_len, self.tx_buffer.len()); in seq_to_transmit()
2074 repr.window_len = self.rx_buffer.window().min((1 << 16) - 1) as u16; in dispatch()
2115 .min(self.remote_mss) in dispatch()
2116 .min(cx.ip_mtu() - ip_repr.header_len() - TCP_HEADER_LEN); in dispatch()
2275 .min() in poll_at()
2794 window_len: cmp::min(*buffer_size, 65535) as u16, in test_listen_syn_win_scale_buffers()
3469 window_len: cmp::min(*buffer_size, 65535) as u16, in test_syn_sent_win_scale_buffers()
Dicmp.rs365 let length = cmp::min(data.len(), buffer.len()); in recv_slice()
/smoltcp-0.9.1/src/wire/
Dicmpv4.rs500 let data_len = cmp::min(packet.data_mut().len(), data.len()); in emit()
513 let data_len = cmp::min(packet.data_mut().len(), data.len()); in emit()
Dicmpv6.rs716 let data_len = cmp::min(packet.payload_mut().len(), data.len()); in emit()
729 let data_len = cmp::min(packet.payload_mut().len(), data.len()); in emit()
Dndiscoption.rs221 let len = MAX_HARDWARE_ADDRESS_LEN.min(self.data_len() as usize * 8 - 2); in link_layer_addr()
/smoltcp-0.9.1/src/iface/interface/
Dipv4.rs337 let ip_len = (frag.packet_len - frag.sent_bytes + frag.ipv4.repr.buffer_len()).min(mtu_max); in dispatch_ipv4_frag()
Dsixlowpan.rs572 let frag_size = (frag.packet_len - frag.sent_bytes).min(frag.sixlowpan.fragn_size); in dispatch_ieee802154_frag()
Dmod.rs440 cmp::min(len, mtu - header_len * 2 - 8) in icmp_reply_payload_len()
813 .min() in poll_at()