Lines Matching refs:le16_to_cpu
316 usa_end_ofs = le16_to_cpu(rstr->usa_ofs) + in restart_header_sanity()
317 le16_to_cpu(rstr->usa_count) * sizeof(u16); in restart_header_sanity()
318 if (page_size / NTFS_BLOCK_SIZE + 1 != le16_to_cpu(rstr->usa_count)) in restart_header_sanity()
322 if (le16_to_cpu(rstr->usa_ofs) < offsetof(RESTART_PAGE_HEADER, usn)) in restart_header_sanity()
332 if (usa_end_ofs > le16_to_cpu(rstr->restart_area_offset)) in restart_header_sanity()
338 if (le16_to_cpu(rstr->restart_area_offset) & 7) in restart_header_sanity()
353 ntfs_log_info("usa_ofs = %u (0x%x)\n", le16_to_cpu(rstr->usa_ofs), in dump_restart_areas_header()
354 le16_to_cpu(rstr->usa_ofs)); in dump_restart_areas_header()
355 ntfs_log_info("usa_count = %u (0x%x)\n", le16_to_cpu(rstr->usa_count), in dump_restart_areas_header()
356 le16_to_cpu(rstr->usa_count)); in dump_restart_areas_header()
367 le16_to_cpu(rstr->restart_area_offset), in dump_restart_areas_header()
368 le16_to_cpu(rstr->restart_area_offset)); in dump_restart_areas_header()
381 le16_to_cpu(rstr->restart_area_offset)); in dump_restart_areas_area()
385 ntfs_log_info("log_clients = %u (0x%x)\n", le16_to_cpu(ra->log_clients), in dump_restart_areas_area()
386 le16_to_cpu(ra->log_clients)); in dump_restart_areas_area()
388 (s16)le16_to_cpu(ra->client_free_list), in dump_restart_areas_area()
389 le16_to_cpu(ra->client_free_list)); in dump_restart_areas_area()
391 (s16)le16_to_cpu(ra->client_in_use_list), in dump_restart_areas_area()
392 le16_to_cpu(ra->client_in_use_list)); in dump_restart_areas_area()
393 ntfs_log_info("flags = 0x%.4x\n", le16_to_cpu(ra->flags)); in dump_restart_areas_area()
398 le16_to_cpu(ra->restart_area_length), in dump_restart_areas_area()
399 le16_to_cpu(ra->restart_area_length)); in dump_restart_areas_area()
401 le16_to_cpu(ra->client_array_offset), in dump_restart_areas_area()
402 le16_to_cpu(ra->client_array_offset)); in dump_restart_areas_area()
410 le16_to_cpu(ra->log_record_header_length), in dump_restart_areas_area()
411 le16_to_cpu(ra->log_record_header_length)); in dump_restart_areas_area()
413 le16_to_cpu(ra->log_page_data_offset), in dump_restart_areas_area()
414 le16_to_cpu(ra->log_page_data_offset)); in dump_restart_areas_area()
419 le16_to_cpu(ra->client_array_offset)); in dump_restart_areas_area()
420 for (client = 0; client < le16_to_cpu(ra->log_clients); client++) { in dump_restart_areas_area()
433 (s16)le16_to_cpu(lcr->prev_client), in dump_restart_areas_area()
434 le16_to_cpu(lcr->prev_client)); in dump_restart_areas_area()
436 (s16)le16_to_cpu(lcr->next_client), in dump_restart_areas_area()
437 le16_to_cpu(lcr->next_client)); in dump_restart_areas_area()
438 ntfs_log_info("seq_number = %u (0x%x)\n", le16_to_cpu(lcr->seq_number), in dump_restart_areas_area()
439 le16_to_cpu(lcr->seq_number)); in dump_restart_areas_area()
499 le16_to_cpu(rstr1->restart_area_offset)); in dump_restart_areas()
500 if (!memcmp(rstr1, rstr, le16_to_cpu(rstr1->usa_ofs)) && in dump_restart_areas()
501 !memcmp((u8*)rstr1 + le16_to_cpu( in dump_restart_areas()
503 le16_to_cpu(rstr->restart_area_offset), in dump_restart_areas()
504 le16_to_cpu(ra->restart_area_length))) { in dump_restart_areas()
553 le16_to_cpu(lr->client_id.seq_number)); in dump_log_record()
555 le16_to_cpu(lr->client_id.client_index)); in dump_log_record()
560 ntfs_log_info("flags = 0x%x:", le16_to_cpu(lr->log_record_flags)); in dump_log_record()
577 ntfs_log_info("redo_operation = 0x%x\n", le16_to_cpu(lr->redo_operation)); in dump_log_record()
578 ntfs_log_info("undo_operation = 0x%x\n", le16_to_cpu(lr->undo_operation)); in dump_log_record()
579 ntfs_log_info("redo_offset = 0x%x\n", le16_to_cpu(lr->redo_offset)); in dump_log_record()
580 ntfs_log_info("redo_length = 0x%x\n", le16_to_cpu(lr->redo_length)); in dump_log_record()
581 ntfs_log_info("undo_offset = 0x%x\n", le16_to_cpu(lr->undo_offset)); in dump_log_record()
582 ntfs_log_info("undo_length = 0x%x\n", le16_to_cpu(lr->undo_length)); in dump_log_record()
583 ntfs_log_info("target_attribute = 0x%x\n", le16_to_cpu(lr->target_attribute)); in dump_log_record()
584 ntfs_log_info("lcns_to_follow = 0x%x\n", le16_to_cpu(lr->lcns_to_follow)); in dump_log_record()
585 ntfs_log_info("record_offset = 0x%x\n", le16_to_cpu(lr->record_offset)); in dump_log_record()
586 ntfs_log_info("attribute_offset = 0x%x\n", le16_to_cpu(lr->attribute_offset)); in dump_log_record()
589 if (le16_to_cpu(lr->lcns_to_follow) > 0) in dump_log_record()
591 for (i = 0; i < le16_to_cpu(lr->lcns_to_follow); i++) in dump_log_record()
633 ntfs_log_info("page count = %i\n", le16_to_cpu(rcrd->page_count)); in dump_log_records()
634 ntfs_log_info("page position = %i\n", le16_to_cpu(rcrd->page_position)); in dump_log_records()
636 le16_to_cpu(rcrd->next_record_offset)); in dump_log_records()
651 le16_to_cpu(rcrd->next_record_offset))); in dump_log_records()