Lines Matching defs:file
157 /* descriptor for a known SIM File */
192 /* convert a SIM File descriptor into an ASCII string,
196 sim_file_to_hex( SimFile file, bytes_t dst )
198 SimFileType type = file->any.type;
213 /* bytes 3-4 are the file size */
215 file_size = file->dedicated.length;
217 file_size = file->linear.rec_count * file->linear.rec_len;
222 /* bytes 5-6 are the file id */
223 gsm_hex_from_short( dst, file->any.id );
226 /* byte 7 is the file type - always EF, i.e. 0x04 */
238 if (file->any.flags & SIM_FILE_READ_ONLY) {
239 if (file->any.flags & SIM_FILE_NEED_PIN)
244 if (file->any.flags & SIM_FILE_NEED_PIN)
253 /* byte 12 is file status, we don't support invalidation */
277 gsm_hex_from_byte( dst, file->linear.rec_len );
383 const SimFileEFDedicatedRec* file = _const_files_dedicated;
387 for ( ; file->id != 0; file++ ) {
388 if (file->id == id) {
393 count = sim_file_to_hex( (SimFile) file, out );
405 const SimFileEFDedicatedRec* file = _const_files_dedicated;
409 for ( ; file->id != 0; file++ ) {
410 if (file->id == id) {
413 if (p3 > file->length)
418 gsm_hex_from_bytes( out, file->data, p3 );