Home
last modified time | relevance | path

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

12

/openbmc/linux/include/linux/
H A Dblk_types.h480 static inline bool op_is_write(blk_opf_t op) in op_is_write() function
533 return op_is_write(op); in op_stat_group()
H A Dblk-mq.h208 #define rq_data_dir(rq) (op_is_write(req_op(rq)) ? WRITE : READ)
211 (op_is_write(req_op(rq)) ? DMA_TO_DEVICE : DMA_FROM_DEVICE)
H A Dbio.h49 (op_is_write(bio_op(bio)) ? WRITE : READ)
/openbmc/linux/drivers/block/
H A Dbrd.c217 if (op_is_write(opf)) { in brd_do_bvec()
230 if (!op_is_write(opf)) { in brd_do_bvec()
H A Dloop.c1887 const bool write = op_is_write(req_op(rq)); in loop_handle_cmd()
/openbmc/linux/block/
H A Dblk-cgroup-rwstat.h68 else if (op_is_write(opf)) in blkg_rwstat_add()
H A Dblk-core.c504 if (op_is_write(bio_op(bio)) && bdev_read_only(bio->bi_bdev)) { in bio_check_ro()
979 part_stat_local_inc(bdev, in_flight[op_is_write(op)]); in bdev_start_io_acct()
1010 part_stat_local_dec(bdev, in_flight[op_is_write(op)]); in bdev_end_io_acct()
H A Dblk-merge.c262 if (op_is_write(bio_op(bio)) && lim->zone_write_granularity) in bio_split_alignment()
795 in_flight[op_is_write(req_op(req))]); in blk_account_io_merge_request()
H A Dblk-wbt.c757 else if (op_is_write(op)) in wbt_data_dir()
H A Dblk-map.c362 if (bio->bi_private && !op_is_write(bio_op(bio))) { in bio_invalidate_vmalloc_pages()
H A Dmq-deadline.c647 if (op_is_sync(opf) && !op_is_write(opf)) in dd_limit_depth()
H A Dblk-cgroup.c2142 if (op_is_write(bio->bi_opf)) in blk_cgroup_io_type()
H A Dblk-mq.c999 in_flight[op_is_write(req_op(req))]); in blk_account_io_done()
1023 in_flight[op_is_write(req_op(req))]); in blk_account_io_start()
/openbmc/linux/drivers/md/
H A Ddm-kcopyd.c528 if (op_is_write(job->op)) in complete_io()
540 if (op_is_write(job->op)) in complete_io()
623 if (op_is_write(job->op)) in process_jobs()
H A Ddm-io.c434 if (num_regions > 1 && !op_is_write(opf)) { in sync_io()
468 if (num_regions > 1 && !op_is_write(opf)) { in async_io()
H A Draid5.c1192 if (op_is_write(op)) { in ops_run_io()
1218 while (op_is_write(op) && rdev && in ops_run_io()
1259 bi->bi_end_io = op_is_write(op) in ops_run_io()
1282 if (!op_is_write(op) && in ops_run_io()
1309 if (should_defer && op_is_write(op)) in ops_run_io()
1322 BUG_ON(!op_is_write(op)); in ops_run_io()
1356 if (should_defer && op_is_write(op)) in ops_run_io()
1362 if (op_is_write(op)) in ops_run_io()
/openbmc/linux/drivers/md/bcache/
H A Dio.c144 unsigned int threshold = op_is_write(bio_op(bio)) in bch_bbio_count_io_errors()
H A Drequest.c378 op_is_write(bio_op(bio)))) in check_should_bypass()
732 s->write = op_is_write(bio_op(bio)); in search_alloc()
/openbmc/linux/fs/f2fs/
H A Diostat.c245 if (op_is_write(bio_op(bio))) { in iostat_update_and_unbind_ctx()
/openbmc/linux/drivers/nvdimm/
H A Dbtt.c1429 if (!op_is_write(op)) { in btt_do_bvec()
1472 (op_is_write(bio_op(bio))) ? "WRITE" : in btt_submit_bio()
H A Dpmem.c219 if (op_is_write(bio_op(bio))) in pmem_submit_bio()
/openbmc/linux/drivers/block/null_blk/
H A Dmain.c1304 op_is_write(req_op(rq)), sector, in null_handle_rq()
1331 op_is_write(bio_op(bio)), sector, in null_handle_bio()
/openbmc/linux/drivers/block/drbd/
H A Ddrbd_req.c243 if (op_is_write(bio_op(req->master_bio)) && in drbd_req_complete()
/openbmc/linux/kernel/trace/
H A Dblktrace.c235 what |= ddir_act[op_is_write(op) ? WRITE : READ]; in __blk_add_trace()
/openbmc/linux/drivers/scsi/
H A Dscsi_lib.c1001 !op_is_write(req_op(rq)) && in scsi_cmd_needs_dma_drain()

12