Lines Matching defs:dio
117 struct dio { struct
125 dio_iodone_t *end_io; /* IO completion function */ argument
127 void *private; /* copy from map_bh.b_private */
130 spinlock_t bio_lock; /* protects BIO fields below */
131 int page_errors; /* errno from get_user_pages() */
155 static struct kmem_cache *dio_cache __read_mostly; argument
168 static inline int dio_refill_pages(struct dio *dio, struct dio_submit *sdio) in dio_refill_pages()
210 static inline struct page *dio_get_page(struct dio *dio, in dio_get_page()
256 static ssize_t dio_complete(struct dio *dio, ssize_t ret, unsigned int flags) in dio_complete()
340 struct dio *dio = container_of(work, struct dio, complete_work); in dio_aio_complete_work() local
352 struct dio *dio = bio->bi_private; in dio_bio_end_aio() local
398 struct dio *dio = bio->bi_private; in dio_bio_end_io() local
419 struct dio *dio = bio->bi_private; in dio_end_io() local
429 dio_bio_alloc(struct dio *dio, struct dio_submit *sdio, in dio_bio_alloc()
466 static inline void dio_bio_submit(struct dio *dio, struct dio_submit *sdio) in dio_bio_submit()
496 static inline void dio_cleanup(struct dio *dio, struct dio_submit *sdio) in dio_cleanup()
508 static struct bio *dio_await_one(struct dio *dio) in dio_await_one()
543 static blk_status_t dio_bio_complete(struct dio *dio, struct bio *bio) in dio_bio_complete()
571 static void dio_await_completion(struct dio *dio) in dio_await_completion()
588 static inline int dio_bio_reap(struct dio *dio, struct dio_submit *sdio) in dio_bio_reap()
635 static int dio_set_defer_completion(struct dio *dio) in dio_set_defer_completion()
670 static int get_more_blocks(struct dio *dio, struct dio_submit *sdio, in get_more_blocks()
729 static inline int dio_new_bio(struct dio *dio, struct dio_submit *sdio, in dio_new_bio()
786 static inline int dio_send_cur_page(struct dio *dio, struct dio_submit *sdio, in dio_send_cur_page()
859 submit_page_section(struct dio *dio, struct dio_submit *sdio, struct page *page, in submit_page_section()
925 static inline void dio_zero_block(struct dio *dio, struct dio_submit *sdio, in dio_zero_block()
976 static int do_direct_IO(struct dio *dio, struct dio_submit *sdio, in do_direct_IO()
1130 static inline int drop_refcount(struct dio *dio) in drop_refcount()
1190 struct dio *dio; in do_blockdev_direct_IO() local