• Home
  • Raw
  • Download

Lines Matching refs:section

626 static void access_journal_check(struct dm_integrity_c *ic, unsigned section, unsigned offset,  in access_journal_check()  argument
632 if (unlikely(section >= ic->journal_sections) || in access_journal_check()
635 function, section, offset, ic->journal_sections, limit); in access_journal_check()
641 static void page_list_location(struct dm_integrity_c *ic, unsigned section, unsigned offset, in page_list_location() argument
646 access_journal_check(ic, section, offset, false, "page_list_location"); in page_list_location()
648 sector = section * ic->journal_section_sectors + offset; in page_list_location()
655 unsigned section, unsigned offset, unsigned *n_sectors) in access_page_list() argument
660 page_list_location(ic, section, offset, &pl_index, &pl_offset); in access_page_list()
670 static struct journal_sector *access_journal(struct dm_integrity_c *ic, unsigned section, unsigned … in access_journal() argument
672 return access_page_list(ic, ic->journal, section, offset, NULL); in access_journal()
675 static struct journal_entry *access_journal_entry(struct dm_integrity_c *ic, unsigned section, unsi… in access_journal_entry() argument
680 access_journal_check(ic, section, n, true, "access_journal_entry"); in access_journal_entry()
685 js = access_journal(ic, section, rel_sector); in access_journal_entry()
689 static struct journal_sector *access_journal_data(struct dm_integrity_c *ic, unsigned section, unsi… in access_journal_data() argument
695 access_journal_check(ic, section, n, false, "access_journal_data"); in access_journal_data()
697 return access_journal(ic, section, n); in access_journal_data()
700 static void section_mac(struct dm_integrity_c *ic, unsigned section, __u8 result[JOURNAL_MAC_SIZE]) in section_mac() argument
715 struct journal_entry *je = access_journal_entry(ic, section, j); in section_mac()
752 static void rw_section_mac(struct dm_integrity_c *ic, unsigned section, bool wr) in rw_section_mac() argument
760 section_mac(ic, section, result); in rw_section_mac()
763 struct journal_sector *js = access_journal(ic, section, j); in rw_section_mac()
782 static void xor_journal(struct dm_integrity_c *ic, bool encrypt, unsigned section, in xor_journal() argument
798 page_list_location(ic, section, 0, &pl_index, &pl_offset); in xor_journal()
814 rw_section_mac(ic, section, true); in xor_journal()
815 section++; in xor_journal()
819 page_list_location(ic, section, 0, &section_index, &dummy); in xor_journal()
874 static void crypt_journal(struct dm_integrity_c *ic, bool encrypt, unsigned section, in crypt_journal() argument
896 rw_section_mac(ic, section, true); in crypt_journal()
898 req = ic->sk_requests[section]; in crypt_journal()
904 req->src = source_sg[section]; in crypt_journal()
905 req->dst = target_sg[section]; in crypt_journal()
910 section++; in crypt_journal()
918 static void encrypt_journal(struct dm_integrity_c *ic, bool encrypt, unsigned section, in encrypt_journal() argument
922 return xor_journal(ic, encrypt, section, n_sections, comp); in encrypt_journal()
924 return crypt_journal(ic, encrypt, section, n_sections, comp); in encrypt_journal()
981 static void rw_journal(struct dm_integrity_c *ic, int op, int op_flags, unsigned section, in rw_journal() argument
986 sector = section * ic->journal_section_sectors; in rw_journal()
1053 static void copy_from_journal(struct dm_integrity_c *ic, unsigned section, unsigned offset, in copy_from_journal() argument
1068 sector = section * ic->journal_section_sectors + JOURNAL_BLOCK_SECTORS + offset; in copy_from_journal()