Lines Matching refs:u16
945 crt_time: u16,
947 crt_date: u16,
949 lst_acc_date: u16,
951 fst_clus_hi: u16,
953 wrt_time: u16,
955 wrt_date: u16,
957 fst_clus_lo: u16,
968 name1: [u16; 5],
977 name2: [u16; 6],
979 first_clus_low: u16,
981 name3: [u16; 2],
995 fn new(ord: u8, name_part: &[u16], check_sum: u8) -> Self { in new() argument
1015 fn insert_name(&mut self, name_part: &[u16]) -> Result<(), SystemError> { in insert_name()
1027 pub fn copy_name_to_slice(&self, dst: &mut [u16]) -> Result<(), SystemError> { in copy_name_to_slice()
1339 self.fst_clus_lo = (cluster.cluster_num & 0x0000ffff) as u16; in set_first_cluster()
1340 self.fst_clus_hi = ((cluster.cluster_num & 0xffff0000) >> 16) as u16; in set_first_cluster()
1816 checksum_bitmask: u16,
1818 checksum: u16,
1820 suffix_bitmask: u16,
1940 fn fletcher_16_checksum(name: &str) -> u16 { in fletcher_16_checksum() argument
1941 let mut sum1: u16 = 0; in fletcher_16_checksum()
1942 let mut sum2: u16 = 0; in fletcher_16_checksum()
1944 sum1 = (sum1 + (c as u16)) % 0xff; in fletcher_16_checksum()
1991 Result<u16, core::num::ParseIntError>,
1994 .map(|s| u16::from_str_radix(s, 16));
2066 fn u16_to_u8_array(x: u16) -> [u8; 4] { in u16_to_u8_array()
2110 name: Vec<u16>,
2190 name: Vec<u16>,
2205 let mut name: Vec<u16> = name.chars().map(|c| c as u16).collect(); in new()