Lines Matching refs:u16
103 pub fn v6(a0: u16, a1: u16, a2: u16, a3: u16, a4: u16, a5: u16, a6: u16, a7: u16) -> Address { in v6() argument
384 pub port: u16,
389 pub const fn new(addr: Address, port: u16) -> Endpoint { in new()
437 impl<T: Into<Address>> From<(T, u16)> for Endpoint {
438 fn from((addr, port): (T, u16)) -> Endpoint { in from()
455 pub port: u16,
512 impl From<u16> for ListenEndpoint {
513 fn from(port: u16) -> ListenEndpoint { in from()
527 impl<T: Into<Address>> From<(T, u16)> for ListenEndpoint {
528 fn from((addr, port): (T, u16)) -> ListenEndpoint { in from()
706 const fn propagate_carries(word: u32) -> u16 { in propagate_carries() argument
708 ((sum >> 16) as u16) + (sum as u16) in propagate_carries()
712 pub fn data(mut data: &[u8]) -> u16 { in data() argument
744 pub fn combine(checksums: &[u16]) -> u16 { in combine() argument
758 ) -> u16 { in pseudo_header() argument
764 NetworkEndian::write_u16(&mut proto_len[2..4], length as u16); in pseudo_header()