Home
last modified time | relevance | path

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

12

/linux-6.12.1/fs/
Ddirect-io.c116 struct dio { struct
166 static inline int dio_refill_pages(struct dio *dio, struct dio_submit *sdio) in dio_refill_pages() argument
168 struct page **pages = dio->pages; in dio_refill_pages()
169 const enum req_op dio_op = dio->opf & REQ_OP_MASK; in dio_refill_pages()
181 if (dio->page_errors == 0) in dio_refill_pages()
182 dio->page_errors = ret; in dio_refill_pages()
183 dio->pages[0] = ZERO_PAGE(0); in dio_refill_pages()
207 static inline struct page *dio_get_page(struct dio *dio, in dio_get_page() argument
213 ret = dio_refill_pages(dio, sdio); in dio_get_page()
218 return dio->pages[sdio->head]; in dio_get_page()
[all …]
/linux-6.12.1/fs/iomap/
Ddirect-io.c63 struct iomap_dio *dio, unsigned short nr_vecs, blk_opf_t opf) in iomap_dio_alloc_bio() argument
65 if (dio->dops && dio->dops->bio_set) in iomap_dio_alloc_bio()
67 GFP_KERNEL, dio->dops->bio_set); in iomap_dio_alloc_bio()
72 struct iomap_dio *dio, struct bio *bio, loff_t pos) in iomap_dio_submit_bio() argument
74 struct kiocb *iocb = dio->iocb; in iomap_dio_submit_bio()
76 atomic_inc(&dio->ref); in iomap_dio_submit_bio()
84 if (dio->dops && dio->dops->submit_io) in iomap_dio_submit_bio()
85 dio->dops->submit_io(iter, bio, pos); in iomap_dio_submit_bio()
90 ssize_t iomap_dio_complete(struct iomap_dio *dio) in iomap_dio_complete() argument
92 const struct iomap_dio_ops *dops = dio->dops; in iomap_dio_complete()
[all …]
/linux-6.12.1/fs/bcachefs/
Dfs-io-direct.c40 closure_type(dio, struct dio_read, cl); in CLOSURE_CALLBACK()
42 dio->req->ki_complete(dio->req, dio->ret); in CLOSURE_CALLBACK()
43 bio_check_or_release(&dio->rbio.bio, dio->should_dirty); in CLOSURE_CALLBACK()
48 struct dio_read *dio = bio->bi_private; in bch2_direct_IO_read_endio() local
51 dio->ret = blk_status_to_errno(bio->bi_status); in bch2_direct_IO_read_endio()
53 closure_put(&dio->cl); in bch2_direct_IO_read_endio()
58 struct dio_read *dio = bio->bi_private; in bch2_direct_IO_read_split_endio() local
59 bool should_dirty = dio->should_dirty; in bch2_direct_IO_read_split_endio()
71 struct dio_read *dio; in bch2_direct_IO_read() local
103 dio = container_of(bio, struct dio_read, rbio.bio); in bch2_direct_IO_read()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dio/
DMakefile32 AMD_DAL_DIO_DCN10 = $(addprefix $(AMDDALPATH)/dc/dio/dcn10/,$(DIO_DCN10))
41 AMD_DAL_DIO_DCN20 = $(addprefix $(AMDDALPATH)/dc/dio/dcn20/,$(DIO_DCN20))
50 AMD_DAL_DIO_DCN30 = $(addprefix $(AMDDALPATH)/dc/dio/dcn30/,$(DIO_DCN30))
59 AMD_DAL_DIO_DCN301 = $(addprefix $(AMDDALPATH)/dc/dio/dcn301/,$(DIO_DCN301))
68 AMD_DAL_DIO_DCN31 = $(addprefix $(AMDDALPATH)/dc/dio/dcn31/,$(DIO_DCN31))
77 AMD_DAL_DIO_DCN314 = $(addprefix $(AMDDALPATH)/dc/dio/dcn314/,$(DIO_DCN314))
86 AMD_DAL_DIO_DCN32 = $(addprefix $(AMDDALPATH)/dc/dio/dcn32/,$(DIO_DCN32))
95 AMD_DAL_DIO_DCN35 = $(addprefix $(AMDDALPATH)/dc/dio/dcn35/,$(DIO_DCN35))
104 AMD_DAL_DIO_DCN321 = $(addprefix $(AMDDALPATH)/dc/dio/dcn321/,$(DIO_DCN321))
114 AMD_DAL_DIO_DCN401 = $(addprefix $(AMDDALPATH)/dc/dio/dcn401/,$(DIO_DCN401))
/linux-6.12.1/block/
Dfops.c128 struct blkdev_dio *dio = bio->bi_private; in blkdev_bio_end_io() local
129 bool should_dirty = dio->flags & DIO_SHOULD_DIRTY; in blkdev_bio_end_io()
131 if (bio->bi_status && !dio->bio.bi_status) in blkdev_bio_end_io()
132 dio->bio.bi_status = bio->bi_status; in blkdev_bio_end_io()
134 if (atomic_dec_and_test(&dio->ref)) { in blkdev_bio_end_io()
135 if (!(dio->flags & DIO_IS_SYNC)) { in blkdev_bio_end_io()
136 struct kiocb *iocb = dio->iocb; in blkdev_bio_end_io()
141 if (likely(!dio->bio.bi_status)) { in blkdev_bio_end_io()
142 ret = dio->size; in blkdev_bio_end_io()
145 ret = blk_status_to_errno(dio->bio.bi_status); in blkdev_bio_end_io()
[all …]
/linux-6.12.1/drivers/md/
Ddm-integrity.c364 static void dm_integrity_map_continue(struct dm_integrity_io *dio, bool from_map);
365 static int dm_integrity_map_inline(struct dm_integrity_io *dio, bool from_map);
1556 static void submit_flush_bio(struct dm_integrity_c *ic, struct dm_integrity_io *dio) in submit_flush_bio() argument
1562 bio = dm_bio_from_per_bio_data(dio, sizeof(struct dm_integrity_io)); in submit_flush_bio()
1588 static void do_endio_flush(struct dm_integrity_c *ic, struct dm_integrity_io *dio) in do_endio_flush() argument
1590 struct bio *bio = dm_bio_from_per_bio_data(dio, sizeof(struct dm_integrity_io)); in do_endio_flush()
1592 if (unlikely(dio->fua) && likely(!bio->bi_status) && likely(!dm_integrity_failed(ic))) in do_endio_flush()
1593 submit_flush_bio(ic, dio); in do_endio_flush()
1598 static void dec_in_flight(struct dm_integrity_io *dio) in dec_in_flight() argument
1600 if (atomic_dec_and_test(&dio->in_flight)) { in dec_in_flight()
[all …]
/linux-6.12.1/drivers/dio/
DMakefile6 obj-y := dio.o dio-driver.o dio-sysfs.o
/linux-6.12.1/drivers/scsi/bfa/
Dbfa_fcpim.h193 struct bfad_ioim_s *dio; /* driver IO handle */ member
419 struct bfad_ioim_s *dio,
440 void bfa_cb_ioim_done(void *bfad, struct bfad_ioim_s *dio,
448 void bfa_cb_ioim_good_comp(void *bfad, struct bfad_ioim_s *dio);
453 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.c396 idx = bfa_ioim_get_index(scsi_bufflen((struct scsi_cmnd *)ioim->dio)); in bfa_ioim_profile_comp()
2076 bfa_cb_ioim_good_comp(ioim->bfa->bfad, ioim->dio); in __bfa_cb_ioim_good_comp()
2119 bfa_cb_ioim_done(ioim->bfa->bfad, ioim->dio, m->io_status, in __bfa_cb_ioim_comp()
2345 bfa_cb_ioim_done(ioim->bfa->bfad, ioim->dio, BFI_IOIM_STS_ABORTED, in __bfa_cb_ioim_failed()
2360 bfa_cb_ioim_done(ioim->bfa->bfad, ioim->dio, BFI_IOIM_STS_PATHTOV, in __bfa_cb_ioim_pathtov()
2374 bfa_cb_ioim_abort(ioim->bfa->bfad, ioim->dio); in __bfa_cb_ioim_abort()
2403 struct scsi_cmnd *cmnd = (struct scsi_cmnd *) ioim->dio; in bfa_ioim_send_ioreq()
2879 bfa_ioim_alloc(struct bfa_s *bfa, struct bfad_ioim_s *dio, in bfa_ioim_alloc() argument
2897 ioim->dio = dio; in bfa_ioim_alloc()
3267 cmnd = (struct scsi_cmnd *) ioim->dio; in bfa_tskim_gather_ios()
[all …]
/linux-6.12.1/fs/ocfs2/
Dnamei.h25 bool dio);
Dnamei.c69 bool dio);
78 bool dio);
2149 bool dio) in __ocfs2_prepare_orphan_dir() argument
2153 int namelen = dio ? in __ocfs2_prepare_orphan_dir()
2157 if (dio) { in __ocfs2_prepare_orphan_dir()
2207 bool dio) in ocfs2_prepare_orphan_dir() argument
2221 blkno, name, lookup, dio); in ocfs2_prepare_orphan_dir()
2250 bool dio) in ocfs2_orphan_add() argument
2256 int namelen = dio ? in ocfs2_orphan_add()
2310 if (dio) { in ocfs2_orphan_add()
[all …]
/linux-6.12.1/fs/btrfs/
Ddirect-io.c805 struct iomap_dio *dio; in btrfs_direct_write() local
880 dio = btrfs_dio_write(iocb, from, written); in btrfs_direct_write()
883 if (IS_ERR_OR_NULL(dio)) { in btrfs_direct_write()
884 ret = PTR_ERR_OR_ZERO(dio); in btrfs_direct_write()
896 ret = iomap_dio_complete(dio); in btrfs_direct_write()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/
DMakefile25 …_mgr dce gpio hwss irq link virtual dsc resource optc dpp hubbub dccg hubp dio dwb hpo mmhubbub mp…
Ddc.h716 bool dio : 1; /* Display output */ member
/linux-6.12.1/drivers/gpu/drm/amd/display/
DMakefile40 subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/dio
/linux-6.12.1/fs/f2fs/
Dfile.c4566 struct iomap_dio *dio; in f2fs_dio_read_iter() local
4596 dio = __iomap_dio_rw(iocb, to, &f2fs_iomap_ops, in f2fs_dio_read_iter()
4598 if (IS_ERR_OR_NULL(dio)) { in f2fs_dio_read_iter()
4599 ret = PTR_ERR_OR_ZERO(dio); in f2fs_dio_read_iter()
4603 ret = iomap_dio_complete(dio); in f2fs_dio_read_iter()
4722 bool dio) in f2fs_preallocate_blocks() argument
4733 if (dio && f2fs_lfs_mode(sbi)) in f2fs_preallocate_blocks()
4739 if (dio && i_size_read(inode) && in f2fs_preallocate_blocks()
4769 if (dio) { in f2fs_preallocate_blocks()
4860 struct iomap_dio *dio; in f2fs_dio_write_iter() local
[all …]
/linux-6.12.1/Documentation/ABI/testing/
Dsysfs-block-loop44 What: /sys/block/loopX/loop/dio
/linux-6.12.1/drivers/comedi/drivers/
Dni_670x.c68 int dio; member
Dni_pcidio.c286 int dio; member
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dio/dcn35/
Ddcn35_dio_link_encoder.c122 dcn35_link_encoder_set_fgcg(enc, enc->ctx->dc->debug.enable_fine_grain_clock_gating.bits.dio); in dcn35_link_encoder_init()
/linux-6.12.1/drivers/
DMakefile101 obj-$(CONFIG_DIO) += dio/
/linux-6.12.1/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()
733 int dio = (lo->lo_flags & LO_FLAGS_DIRECT_IO); in loop_attr_dio_show() local
735 return sysfs_emit(buf, "%s\n", dio ? "1" : "0"); in loop_attr_dio_show()
743 LOOP_ATTR_RO(dio);
/linux-6.12.1/include/linux/
Diomap.h438 ssize_t iomap_dio_complete(struct iomap_dio *dio);
/linux-6.12.1/drivers/gpio/
DMakefile22 obj-$(CONFIG_GPIO_104_DIO_48E) += gpio-104-dio-48e.o

12