Lines Matching refs:atm
124 struct tm atm; in smb_time_dos_to_unix() local
131 atm.tm_year = ((date >> 9) & 0x3F) + 80; in smb_time_dos_to_unix()
132 atm.tm_mon = ((date >> 5) & 0x0F) - 1; in smb_time_dos_to_unix()
133 atm.tm_mday = ((date >> 0) & 0x1F); in smb_time_dos_to_unix()
134 atm.tm_hour = ((time >> 11) & 0x1F); in smb_time_dos_to_unix()
135 atm.tm_min = ((time >> 5) & 0x3F); in smb_time_dos_to_unix()
136 atm.tm_sec = ((time >> 0) & 0x1F) << 1; in smb_time_dos_to_unix()
138 return (smb_timegm(&atm)); in smb_time_dos_to_unix()
144 struct tm atm; in smb_time_unix_to_dos() local
155 (void) smb_gmtime_r(&tmp_time, &atm); in smb_time_unix_to_dos()
159 i += atm.tm_year - 80; in smb_time_unix_to_dos()
161 i += atm.tm_mon + 1; in smb_time_unix_to_dos()
163 i += atm.tm_mday; in smb_time_unix_to_dos()
169 i += atm.tm_hour; in smb_time_unix_to_dos()
171 i += atm.tm_min; in smb_time_unix_to_dos()
173 i += atm.tm_sec >> 1; in smb_time_unix_to_dos()