Lines Matching defs:ic

106 #define journal_entry_tag(ic, je)		((__u8 *)&(je)->last_bytes[(ic)->sectors_per_block])  argument
301 struct dm_integrity_c *ic; member
319 struct dm_integrity_c *ic; member
331 struct dm_integrity_c *ic; member
389 static void dm_integrity_io_error(struct dm_integrity_c *ic, const char *msg, int err) in dm_integrity_io_error()
397 static int dm_integrity_failed(struct dm_integrity_c *ic) in dm_integrity_failed()
402 static bool dm_integrity_disable_recalculate(struct dm_integrity_c *ic) in dm_integrity_disable_recalculate()
413 static commit_id_t dm_integrity_commit_id(struct dm_integrity_c *ic, unsigned i, in dm_integrity_commit_id()
423 static void get_area_and_offset(struct dm_integrity_c *ic, sector_t data_sector, in get_area_and_offset()
436 #define sector_to_block(ic, n) \ argument
442 static __u64 get_metadata_sector_and_offset(struct dm_integrity_c *ic, sector_t area, in get_metadata_sector_and_offset()
468 static sector_t get_data_sector(struct dm_integrity_c *ic, sector_t area, sector_t offset) in get_data_sector()
487 static void wraparound_section(struct dm_integrity_c *ic, unsigned *sec_ptr) in wraparound_section()
493 static void sb_set_version(struct dm_integrity_c *ic) in sb_set_version()
507 static int sb_mac(struct dm_integrity_c *ic, bool wr) in sb_mac()
555 static int sync_rw_sb(struct dm_integrity_c *ic, blk_opf_t opf) in sync_rw_sb()
600 static bool block_bitmap_op(struct dm_integrity_c *ic, struct page_list *bitmap, in block_bitmap_op()
705 static void block_bitmap_copy(struct dm_integrity_c *ic, struct page_list *dst, struct page_list *s… in block_bitmap_copy()
717 static struct bitmap_block_status *sector_to_bitmap_block(struct dm_integrity_c *ic, sector_t secto… in sector_to_bitmap_block()
726 static void access_journal_check(struct dm_integrity_c *ic, unsigned section, unsigned offset, in access_journal_check()
741 static void page_list_location(struct dm_integrity_c *ic, unsigned section, unsigned offset, in page_list_location()
754 static struct journal_sector *access_page_list(struct dm_integrity_c *ic, struct page_list *pl, in access_page_list()
770 static struct journal_sector *access_journal(struct dm_integrity_c *ic, unsigned section, unsigned … in access_journal()
775 static struct journal_entry *access_journal_entry(struct dm_integrity_c *ic, unsigned section, unsi… in access_journal_entry()
789 static struct journal_sector *access_journal_data(struct dm_integrity_c *ic, unsigned section, unsi… in access_journal_data()
800 static void section_mac(struct dm_integrity_c *ic, unsigned section, __u8 result[JOURNAL_MAC_SIZE]) in section_mac()
869 static void rw_section_mac(struct dm_integrity_c *ic, unsigned section, bool wr) in rw_section_mac()
901 static void xor_journal(struct dm_integrity_c *ic, bool encrypt, unsigned section, in xor_journal()
993 static void crypt_journal(struct dm_integrity_c *ic, bool encrypt, unsigned section, in crypt_journal()
1037 static void encrypt_journal(struct dm_integrity_c *ic, bool encrypt, unsigned section, in encrypt_journal()
1054 static void rw_journal_sectors(struct dm_integrity_c *ic, blk_opf_t opf, in rw_journal_sectors()
1101 static void rw_journal(struct dm_integrity_c *ic, blk_opf_t opf, in rw_journal()
1113 static void write_journal(struct dm_integrity_c *ic, unsigned commit_start, unsigned commit_section… in write_journal()
1175 static void copy_from_journal(struct dm_integrity_c *ic, unsigned section, unsigned offset, in copy_from_journal()
1219 static bool add_new_range(struct dm_integrity_c *ic, struct dm_integrity_range *new_range, bool che… in add_new_range()
1255 static void remove_range_unlocked(struct dm_integrity_c *ic, struct dm_integrity_range *range) in remove_range_unlocked()
1274 static void remove_range(struct dm_integrity_c *ic, struct dm_integrity_range *range) in remove_range()
1283 static void wait_and_add_new_range(struct dm_integrity_c *ic, struct dm_integrity_range *new_range) in wait_and_add_new_range()
1296 static void add_new_range_and_wait(struct dm_integrity_c *ic, struct dm_integrity_range *new_range) in add_new_range_and_wait()
1308 static void add_journal_node(struct dm_integrity_c *ic, struct journal_node *node, sector_t sector) in add_journal_node()
1333 static void remove_journal_node(struct dm_integrity_c *ic, struct journal_node *node) in remove_journal_node()
1342 static unsigned find_journal_node(struct dm_integrity_c *ic, sector_t sector, sector_t *next_sector) in find_journal_node()
1363 static bool test_journal_node(struct dm_integrity_c *ic, unsigned pos, sector_t sector) in test_journal_node()
1384 static bool find_newer_committed_node(struct dm_integrity_c *ic, struct journal_node *node) in find_newer_committed_node()
1415 static int dm_integrity_rw_tag(struct dm_integrity_c *ic, unsigned char *tag, sector_t *metadata_bl… in dm_integrity_rw_tag()
1501 struct dm_integrity_c *ic; member
1513 static void dm_integrity_flush_buffers(struct dm_integrity_c *ic, bool flush_data) in dm_integrity_flush_buffers()
1545 static void sleep_on_endio_wait(struct dm_integrity_c *ic) in sleep_on_endio_wait()
1558 struct dm_integrity_c *ic = from_timer(ic, t, autocommit_timer); in autocommit_fn() local
1564 static void schedule_autocommit(struct dm_integrity_c *ic) in schedule_autocommit()
1570 static void submit_flush_bio(struct dm_integrity_c *ic, struct dm_integrity_io *dio) in submit_flush_bio()
1583 static void do_endio(struct dm_integrity_c *ic, struct bio *bio) in do_endio()
1599 static void do_endio_flush(struct dm_integrity_c *ic, struct dm_integrity_io *dio) in do_endio_flush()
1612 struct dm_integrity_c *ic = dio->ic; in dec_in_flight() local
1649 static void integrity_sector_checksum(struct dm_integrity_c *ic, sector_t sector, in integrity_sector_checksum()
1705 struct dm_integrity_c *ic = dio->ic; in integrity_metadata() local
1857 struct dm_integrity_c *ic = ti->private; in dm_integrity_map() local
1954 struct dm_integrity_c *ic = dio->ic; in __journal_read_write() local
2106 struct dm_integrity_c *ic = dio->ic; in dm_integrity_map_continue() local
2333 static void pad_uncommitted(struct dm_integrity_c *ic) in pad_uncommitted()
2356 struct dm_integrity_c *ic = container_of(w, struct dm_integrity_c, commit_work); in integrity_commit() local
2425 struct dm_integrity_c *ic = comp->ic; in complete_copy_from_journal() local
2433 static void restore_last_bytes(struct dm_integrity_c *ic, struct journal_sector *js, in restore_last_bytes()
2443 static void do_journal_write(struct dm_integrity_c *ic, unsigned write_start, in do_journal_write()
2592 struct dm_integrity_c *ic = container_of(w, struct dm_integrity_c, writer_work); in integrity_writer() local
2621 static void recalc_write_super(struct dm_integrity_c *ic) in recalc_write_super()
2636 struct dm_integrity_c *ic = container_of(w, struct dm_integrity_c, recalc_work); in integrity_recalc() local
2770 struct dm_integrity_c *ic = bbs->ic; in bitmap_block_work() local
2822 struct dm_integrity_c *ic = container_of(work, struct dm_integrity_c, bitmap_flush_work.work); in bitmap_flush_work() local
2862 static void init_journal(struct dm_integrity_c *ic, unsigned start_section, in init_journal()
2888 static int find_commit_seq(struct dm_integrity_c *ic, unsigned i, unsigned j, commit_id_t id) in find_commit_seq()
2899 static void replay_journal(struct dm_integrity_c *ic) in replay_journal()
3059 static void dm_integrity_enter_synchronous_mode(struct dm_integrity_c *ic) in dm_integrity_enter_synchronous_mode()
3075 struct dm_integrity_c *ic = container_of(n, struct dm_integrity_c, reboot_notifier); in dm_integrity_reboot() local
3086 struct dm_integrity_c *ic = (struct dm_integrity_c *)ti->private; in dm_integrity_postsuspend() local
3135 struct dm_integrity_c *ic = (struct dm_integrity_c *)ti->private; in dm_integrity_resume() local
3257 struct dm_integrity_c *ic = (struct dm_integrity_c *)ti->private; in dm_integrity_status() local
3365 struct dm_integrity_c *ic = ti->private; in dm_integrity_iterate_devices() local
3375 struct dm_integrity_c *ic = ti->private; in dm_integrity_io_hints() local
3385 static void calculate_journal_section_size(struct dm_integrity_c *ic) in calculate_journal_section_size()
3401 static int calculate_device_limits(struct dm_integrity_c *ic) in calculate_device_limits()
3446 static void get_provided_data_sectors(struct dm_integrity_c *ic) in get_provided_data_sectors()
3464 static int initialize_superblock(struct dm_integrity_c *ic, unsigned journal_sectors, unsigned inte… in initialize_superblock()
3534 static void dm_integrity_set(struct dm_target *ti, struct dm_integrity_c *ic) in dm_integrity_set()
3584 static void dm_integrity_free_journal_scatterlist(struct dm_integrity_c *ic, struct scatterlist **s… in dm_integrity_free_journal_scatterlist()
3592 static struct scatterlist **dm_integrity_alloc_journal_scatterlist(struct dm_integrity_c *ic, in dm_integrity_alloc_journal_scatterlist()
3711 static int create_journal(struct dm_integrity_c *ic, char **error) in create_journal()
3974 struct dm_integrity_c *ic; in dm_integrity_ctr() local
4556 struct dm_integrity_c *ic = ti->private; in dm_integrity_dtr() local