Home
last modified time | relevance | path

Searched refs:dio (Results 1 – 21 of 21) sorted by relevance

/linux-6.6.21/fs/
Ddirect-io.c117 struct dio { struct
167 static inline int dio_refill_pages(struct dio *dio, struct dio_submit *sdio) in dio_refill_pages() argument
169 struct page **pages = dio->pages; in dio_refill_pages()
170 const enum req_op dio_op = dio->opf & REQ_OP_MASK; in dio_refill_pages()
182 if (dio->page_errors == 0) in dio_refill_pages()
183 dio->page_errors = ret; in dio_refill_pages()
184 dio->pages[0] = ZERO_PAGE(0); in dio_refill_pages()
208 static inline struct page *dio_get_page(struct dio *dio, in dio_get_page() argument
214 ret = dio_refill_pages(dio, sdio); in dio_get_page()
219 return dio->pages[sdio->head]; in dio_get_page()
[all …]
/linux-6.6.21/fs/iomap/
Ddirect-io.c56 struct iomap_dio *dio, unsigned short nr_vecs, blk_opf_t opf) in iomap_dio_alloc_bio() argument
58 if (dio->dops && dio->dops->bio_set) in iomap_dio_alloc_bio()
60 GFP_KERNEL, dio->dops->bio_set); in iomap_dio_alloc_bio()
65 struct iomap_dio *dio, struct bio *bio, loff_t pos) in iomap_dio_submit_bio() argument
67 struct kiocb *iocb = dio->iocb; in iomap_dio_submit_bio()
69 atomic_inc(&dio->ref); in iomap_dio_submit_bio()
77 if (dio->dops && dio->dops->submit_io) in iomap_dio_submit_bio()
78 dio->dops->submit_io(iter, bio, pos); in iomap_dio_submit_bio()
83 ssize_t iomap_dio_complete(struct iomap_dio *dio) in iomap_dio_complete() argument
85 const struct iomap_dio_ops *dops = dio->dops; in iomap_dio_complete()
[all …]
/linux-6.6.21/block/
Dfops.c124 struct blkdev_dio *dio = bio->bi_private; in blkdev_bio_end_io() local
125 bool should_dirty = dio->flags & DIO_SHOULD_DIRTY; in blkdev_bio_end_io()
127 if (bio->bi_status && !dio->bio.bi_status) in blkdev_bio_end_io()
128 dio->bio.bi_status = bio->bi_status; in blkdev_bio_end_io()
130 if (atomic_dec_and_test(&dio->ref)) { in blkdev_bio_end_io()
131 if (!(dio->flags & DIO_IS_SYNC)) { in blkdev_bio_end_io()
132 struct kiocb *iocb = dio->iocb; in blkdev_bio_end_io()
137 if (likely(!dio->bio.bi_status)) { in blkdev_bio_end_io()
138 ret = dio->size; in blkdev_bio_end_io()
141 ret = blk_status_to_errno(dio->bio.bi_status); in blkdev_bio_end_io()
[all …]
/linux-6.6.21/drivers/md/
Ddm-integrity.c372 static void dm_integrity_map_continue(struct dm_integrity_io *dio, bool from_map);
1570 static void submit_flush_bio(struct dm_integrity_c *ic, struct dm_integrity_io *dio) in submit_flush_bio() argument
1576 bio = dm_bio_from_per_bio_data(dio, sizeof(struct dm_integrity_io)); in submit_flush_bio()
1602 static void do_endio_flush(struct dm_integrity_c *ic, struct dm_integrity_io *dio) in do_endio_flush() argument
1604 struct bio *bio = dm_bio_from_per_bio_data(dio, sizeof(struct dm_integrity_io)); in do_endio_flush()
1606 if (unlikely(dio->fua) && likely(!bio->bi_status) && likely(!dm_integrity_failed(ic))) in do_endio_flush()
1607 submit_flush_bio(ic, dio); in do_endio_flush()
1612 static void dec_in_flight(struct dm_integrity_io *dio) in dec_in_flight() argument
1614 if (atomic_dec_and_test(&dio->in_flight)) { in dec_in_flight()
1615 struct dm_integrity_c *ic = dio->ic; in dec_in_flight()
[all …]
/linux-6.6.21/drivers/dio/
DMakefile6 obj-y := dio.o dio-driver.o dio-sysfs.o
/linux-6.6.21/drivers/scsi/bfa/
Dbfa_fcpim.h166 struct bfad_ioim_s *dio; /* driver IO handle */ member
359 struct bfad_ioim_s *dio,
380 void bfa_cb_ioim_done(void *bfad, struct bfad_ioim_s *dio,
388 void bfa_cb_ioim_good_comp(void *bfad, struct bfad_ioim_s *dio);
393 void bfa_cb_ioim_abort(void *bfad, struct bfad_ioim_s *dio);
Dbfad_im.c33 bfa_cb_ioim_done(void *drv, struct bfad_ioim_s *dio, in bfa_cb_ioim_done() argument
37 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; in bfa_cb_ioim_done()
103 bfa_cb_ioim_good_comp(void *drv, struct bfad_ioim_s *dio) in bfa_cb_ioim_good_comp() argument
105 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; in bfa_cb_ioim_good_comp()
131 bfa_cb_ioim_abort(void *drv, struct bfad_ioim_s *dio) in bfa_cb_ioim_abort() argument
133 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; in bfa_cb_ioim_abort()
208 if (hal_io->dio != (struct bfad_ioim_s *) cmnd) { in bfad_im_abort_handler()
Dbfa_fcpim.c447 idx = bfa_ioim_get_index(scsi_bufflen((struct scsi_cmnd *)ioim->dio)); in bfa_ioim_profile_comp()
2127 bfa_cb_ioim_good_comp(ioim->bfa->bfad, ioim->dio); in __bfa_cb_ioim_good_comp()
2170 bfa_cb_ioim_done(ioim->bfa->bfad, ioim->dio, m->io_status, in __bfa_cb_ioim_comp()
2396 bfa_cb_ioim_done(ioim->bfa->bfad, ioim->dio, BFI_IOIM_STS_ABORTED, in __bfa_cb_ioim_failed()
2411 bfa_cb_ioim_done(ioim->bfa->bfad, ioim->dio, BFI_IOIM_STS_PATHTOV, in __bfa_cb_ioim_pathtov()
2425 bfa_cb_ioim_abort(ioim->bfa->bfad, ioim->dio); in __bfa_cb_ioim_abort()
2454 struct scsi_cmnd *cmnd = (struct scsi_cmnd *) ioim->dio; in bfa_ioim_send_ioreq()
2930 bfa_ioim_alloc(struct bfa_s *bfa, struct bfad_ioim_s *dio, in bfa_ioim_alloc() argument
2948 ioim->dio = dio; in bfa_ioim_alloc()
3318 cmnd = (struct scsi_cmnd *) ioim->dio; in bfa_tskim_gather_ios()
[all …]
/linux-6.6.21/fs/ocfs2/
Dnamei.h25 bool dio);
Dnamei.c69 bool dio);
78 bool dio);
2137 bool dio) in __ocfs2_prepare_orphan_dir() argument
2141 int namelen = dio ? in __ocfs2_prepare_orphan_dir()
2145 if (dio) { in __ocfs2_prepare_orphan_dir()
2193 bool dio) in ocfs2_prepare_orphan_dir() argument
2207 blkno, name, lookup, dio); in ocfs2_prepare_orphan_dir()
2236 bool dio) in ocfs2_orphan_add() argument
2242 int namelen = dio ? in ocfs2_orphan_add()
2296 if (dio) { in ocfs2_orphan_add()
[all …]
/linux-6.6.21/Documentation/ABI/testing/
Dsysfs-block-loop44 What: /sys/block/loopX/loop/dio
/linux-6.6.21/fs/f2fs/
Dfile.c4390 struct iomap_dio *dio; in f2fs_dio_read_iter() local
4413 dio = __iomap_dio_rw(iocb, to, &f2fs_iomap_ops, in f2fs_dio_read_iter()
4415 if (IS_ERR_OR_NULL(dio)) { in f2fs_dio_read_iter()
4416 ret = PTR_ERR_OR_ZERO(dio); in f2fs_dio_read_iter()
4420 ret = iomap_dio_complete(dio); in f2fs_dio_read_iter()
4534 bool dio) in f2fs_preallocate_blocks() argument
4545 if (dio && f2fs_lfs_mode(sbi)) in f2fs_preallocate_blocks()
4551 if (dio && i_size_read(inode) && in f2fs_preallocate_blocks()
4580 if (dio) { in f2fs_preallocate_blocks()
4657 struct iomap_dio *dio; in f2fs_dio_write_iter() local
[all …]
/linux-6.6.21/drivers/comedi/drivers/
Dni_670x.c68 int dio; member
Dni_pcidio.c286 int dio; member
/linux-6.6.21/drivers/
DMakefile104 obj-$(CONFIG_DIO) += dio/
/linux-6.6.21/include/linux/
Diomap.h391 ssize_t iomap_dio_complete(struct iomap_dio *dio);
/linux-6.6.21/drivers/block/
Dloop.c185 static void __loop_update_dio(struct loop_device *lo, bool dio) in __loop_update_dio() argument
197 use_dio = dio && (file->f_mode & FMODE_CAN_ODIRECT) && in __loop_update_dio()
715 int dio = (lo->lo_flags & LO_FLAGS_DIRECT_IO); in loop_attr_dio_show() local
717 return sysfs_emit(buf, "%s\n", dio ? "1" : "0"); in loop_attr_dio_show()
725 LOOP_ATTR_RO(dio);
/linux-6.6.21/drivers/gpio/
DMakefile22 obj-$(CONFIG_GPIO_104_DIO_48E) += gpio-104-dio-48e.o
/linux-6.6.21/fs/btrfs/
Dfile.c1465 struct iomap_dio *dio; in btrfs_direct_write() local
1539 dio = btrfs_dio_write(iocb, from, written); in btrfs_direct_write()
1549 if (IS_ERR_OR_NULL(dio)) in btrfs_direct_write()
1550 err = PTR_ERR_OR_ZERO(dio); in btrfs_direct_write()
1552 err = iomap_dio_complete(dio); in btrfs_direct_write()
/linux-6.6.21/drivers/comedi/
DKconfig1002 tristate "NI 65xx static dio PCI card support"
1004 Enable support for National Instruments 65xx static dio boards.
/linux-6.6.21/
DMAINTAINERS219 F: drivers/gpio/gpio-104-dio-48e.c