| /linux/arch/sparc/kernel/ |
| H A D | visemul.c | 294 static void edge(struct pt_regs *regs, unsigned int insn, unsigned int opf) in edge() argument 307 switch (opf) { in edge() 352 switch (opf) { in edge() 372 static void array(struct pt_regs *regs, unsigned int insn, unsigned int opf) in array() argument 394 switch (opf) { in array() 477 static void pformat(struct pt_regs *regs, unsigned int insn, unsigned int opf) in pformat() argument 483 scale = (gsr >> 3) & (opf == FPACK16_OPF ? 0xf : 0x1f); in pformat() 484 switch (opf) { in pformat() 589 static void pmul(struct pt_regs *regs, unsigned int insn, unsigned int opf) in pmul() argument 594 switch (opf) { in pmul() [all …]
|
| /linux/drivers/block/ |
| H A D | brd.c | 86 blk_opf_t opf) in brd_insert_page() argument 88 gfp_t gfp = (opf & REQ_NOWAIT) ? GFP_NOWAIT : GFP_NOIO; in brd_insert_page() 143 blk_opf_t opf = bio->bi_opf; in brd_rw_bvec() local 150 if (!page && op_is_write(opf)) { in brd_rw_bvec() 151 page = brd_insert_page(brd, sector, opf); in brd_rw_bvec() 157 if (op_is_write(opf)) { in brd_rw_bvec() 173 if (PTR_ERR(page) == -ENOMEM && (opf & REQ_NOWAIT)) in brd_rw_bvec()
|
| /linux/drivers/scsi/device_handler/ |
| H A D | scsi_dh_hp_sw.c | 84 blk_opf_t opf = REQ_OP_DRV_IN | REQ_FAILFAST_DEV | in hp_sw_tur() 103 res = scsi_execute_cmd(sdev, cmd, opf, NULL, 0, HP_SW_TIMEOUT, in hp_sw_tur() 132 blk_opf_t opf = REQ_OP_DRV_IN | REQ_FAILFAST_DEV | in hp_sw_start_stop() local 152 res = scsi_execute_cmd(sdev, cmd, opf, NULL, 0, HP_SW_TIMEOUT, in hp_sw_start_stop() 83 blk_opf_t opf = REQ_OP_DRV_IN | REQ_FAILFAST_DEV | hp_sw_tur() local
|
| H A D | scsi_dh_emc.c | 242 blk_opf_t opf = REQ_OP_DRV_OUT | REQ_FAILFAST_DEV | in send_trespass_cmd() local 269 err = scsi_execute_cmd(sdev, cdb, opf, csdev->buffer, len, in send_trespass_cmd()
|
| H A D | scsi_dh_rdac.c | 514 blk_opf_t opf = REQ_OP_DRV_OUT | REQ_FAILFAST_DEV | in send_mode_select() 568 rc = scsi_execute_cmd(sdev, cdb, opf, &h->ctlr->mode_select, data_size, in send_mode_select() 513 blk_opf_t opf = REQ_OP_DRV_OUT | REQ_FAILFAST_DEV | send_mode_select() local
|
| /linux/include/linux/ |
| H A D | bio.h | 357 blk_opf_t opf, gfp_t gfp, struct bio_set *bs); 369 unsigned short nr_vecs, blk_opf_t opf, gfp_t gfp_mask) 371 return bio_alloc_bioset(bdev, nr_vecs, opf, gfp_mask, &fs_bio_set); 478 unsigned short max_vecs, blk_opf_t opf); in bio_init_inline() 480 unsigned short max_vecs, blk_opf_t opf) 482 bio_init(bio, bdev, bio_inline_vecs(bio), max_vecs, opf); 485 void bio_reset(struct bio *bio, struct block_device *bdev, blk_opf_t opf); 486 void bio_reuse(struct bio *bio, blk_opf_t opf); 778 unsigned int nr_pages, blk_opf_t opf, gfp_t gfp); 364 bio_alloc(struct block_device * bdev,unsigned short nr_vecs,blk_opf_t opf,gfp_t gfp_mask) bio_alloc() argument 475 bio_init_inline(struct bio * bio,struct block_device * bdev,unsigned short max_vecs,blk_opf_t opf) bio_init_inline() argument
|
| /linux/block/ |
| H A D | blk-mq.h | 90 static inline enum hctx_type blk_mq_get_hctx_type(blk_opf_t opf) in blk_mq_get_hctx_type() argument 97 if (opf & REQ_POLLED) in blk_mq_get_hctx_type() 99 else if ((opf & REQ_OP_MASK) == REQ_OP_READ) in blk_mq_get_hctx_type() 106 * @opf: operation type (REQ_OP_*) and flags (e.g. REQ_POLLED). 109 static inline struct blk_mq_hw_ctx *blk_mq_map_queue(blk_opf_t opf, in blk_mq_map_queue() argument 112 return ctx->hctxs[blk_mq_get_hctx_type(opf)]; in blk_mq_map_queue()
|
| H A D | blk-wbt.c | 537 static inline unsigned int get_limit(struct rq_wb *rwb, blk_opf_t opf) in get_limit() argument 541 if ((opf & REQ_OP_MASK) == REQ_OP_DISCARD) in get_limit() 552 if ((opf & REQ_HIPRIO) || wb_recent_wait(rwb)) in get_limit() 554 else if ((opf & REQ_BACKGROUND) || close_io(rwb)) { in get_limit() 569 blk_opf_t opf; member 575 return rq_wait_inc_below(rqw, get_limit(data->rwb, data->opf)); in wbt_inflight_cb() 589 blk_opf_t opf) in __wbt_wait() argument 595 .opf = opf, in __wbt_wait()
|
| H A D | bfq-cgroup.c | 223 blk_opf_t opf) in bfqg_stats_update_io_add() argument 225 blkg_rwstat_add(&bfqg->stats.queued, opf, 1); in bfqg_stats_update_io_add() 231 void bfqg_stats_update_io_remove(struct bfq_group *bfqg, blk_opf_t opf) in bfqg_stats_update_io_remove() argument 233 blkg_rwstat_add(&bfqg->stats.queued, opf, -1); in bfqg_stats_update_io_remove() 236 void bfqg_stats_update_io_merged(struct bfq_group *bfqg, blk_opf_t opf) in bfqg_stats_update_io_merged() argument 238 blkg_rwstat_add(&bfqg->stats.merged, opf, 1); in bfqg_stats_update_io_merged() 242 u64 io_start_time_ns, blk_opf_t opf) in bfqg_stats_update_completion() argument 248 blkg_rwstat_add(&stats->service_time, opf, in bfqg_stats_update_completion() 251 blkg_rwstat_add(&stats->wait_time, opf, in bfqg_stats_update_completion() 257 void bfqg_stats_update_io_remove(struct bfq_group *bfqg, blk_opf_t opf) { } in bfqg_stats_update_io_remove() argument [all …]
|
| H A D | bio.c | 218 unsigned short max_vecs, blk_opf_t opf) in bio_init() argument 222 bio->bi_opf = opf; in bio_init() 266 * @opf: operation and flags for bio 274 void bio_reset(struct bio *bio, struct block_device *bdev, blk_opf_t opf) in bio_reset() argument 285 bio->bi_opf = opf; in bio_reset() 292 * @opf: operation and flags for the next I/O 304 void bio_reuse(struct bio *bio, blk_opf_t opf) in bio_reuse() argument 314 bio_reset(bio, bio->bi_bdev, opf); in bio_reuse() 402 unsigned int nr_pages, blk_opf_t opf, gfp_t gfp) in blk_next_bio() argument 404 return bio_chain_and_submit(bio, bio_alloc(bdev, nr_pages, opf, gf in blk_next_bio() 556 bio_alloc_bioset(struct block_device * bdev,unsigned short nr_vecs,blk_opf_t opf,gfp_t gfp,struct bio_set * bs) bio_alloc_bioset() argument [all...] |
| H A D | fops.c | 46 blk_opf_t opf = REQ_OP_WRITE | REQ_SYNC | REQ_IDLE; in blkdev_iov_iter_get_pages() 50 opf |= REQ_FUA; in blkdev_iov_iter_get_pages() 51 return opf; in blkdev_iov_iter_get_pages() 199 blk_opf_t opf = is_read ? REQ_OP_READ : dio_bio_write_op(iocb, bdev); in __blkdev_direct_IO() 203 bio = bio_alloc_bioset(bdev, nr_pages, opf, GFP_KERNEL, in __blkdev_direct_IO() 280 bio = bio_alloc(bdev, nr_pages, opf, GFP_KERNEL); in __blkdev_direct_IO() 342 blk_opf_t opf = is_read ? REQ_OP_READ : dio_bio_write_op(iocb, bdev); in __blkdev_direct_IO_async() 348 bio = bio_alloc_bioset(bdev, nr_pages, opf, GFP_KERNEL, in __blkdev_direct_IO_async() 31 blk_opf_t opf = REQ_OP_WRITE | REQ_SYNC | REQ_IDLE; dio_bio_write_op() local 183 blk_opf_t opf = is_read ? REQ_OP_READ : dio_bio_write_op(iocb); __blkdev_direct_IO() local 329 blk_opf_t opf = is_read ? REQ_OP_READ : dio_bio_write_op(iocb); __blkdev_direct_IO_async() local
|
| H A D | bfq-iosched.h | 1067 void bfqg_stats_update_io_remove(struct bfq_group *bfqg, blk_opf_t opf); 1068 void bfqg_stats_update_io_merged(struct bfq_group *bfqg, blk_opf_t opf); 1070 u64 io_start_time_ns, blk_opf_t opf); 1078 blk_opf_t opf);
|
| H A D | kyber-iosched.c | 189 static unsigned int kyber_sched_domain(blk_opf_t opf) in kyber_sched_domain() argument 191 switch (opf & REQ_OP_MASK) { in kyber_sched_domain() 547 static void kyber_limit_depth(blk_opf_t opf, struct blk_mq_alloc_data *data) in kyber_limit_depth() argument 549 if (!blk_mq_is_sync_read(opf)) in kyber_limit_depth()
|
| H A D | blk-mq.c | 498 static bool blk_op_bypass_sched(blk_opf_t opf) in blk_mq_limit_depth() 500 return (opf & REQ_OP_MASK) == REQ_OP_FLUSH || in blk_mq_limit_depth() 501 blk_op_is_passthrough(opf); in blk_mq_limit_depth() 623 blk_opf_t opf, in blk_mq_rq_cache_fill() 630 .cmd_flags = opf, in blk_mq_rq_cache_fill() 651 blk_opf_t opf, in blk_mq_alloc_cached_request() 663 rq = blk_mq_rq_cache_fill(q, plug, opf, flags); in blk_mq_alloc_cached_request() 669 if (blk_mq_get_hctx_type(opf) != rq->mq_hctx->type) in blk_mq_alloc_cached_request() 673 rq->cmd_flags = opf; 681 struct request *blk_mq_alloc_request(struct request_queue *q, blk_opf_t opf, in blk_mq_alloc_request() 491 blk_op_bypass_sched(blk_opf_t opf) blk_op_bypass_sched() argument 616 blk_mq_rq_cache_fill(struct request_queue * q,struct blk_plug * plug,blk_opf_t opf,blk_mq_req_flags_t flags) blk_mq_rq_cache_fill() argument 644 blk_mq_alloc_cached_request(struct request_queue * q,blk_opf_t opf,blk_mq_req_flags_t flags) blk_mq_alloc_cached_request() argument 674 blk_mq_alloc_request(struct request_queue * q,blk_opf_t opf,blk_mq_req_flags_t flags) blk_mq_alloc_request() argument 714 blk_mq_alloc_request_hctx(struct request_queue * q,blk_opf_t opf,blk_mq_req_flags_t flags,unsigned int hctx_idx) blk_mq_alloc_request_hctx() argument 3063 blk_mq_get_cached_request(struct blk_plug * plug,struct request_queue * q,blk_opf_t opf) blk_mq_get_cached_request() argument [all...] |
| H A D | bfq-iosched.c | 579 struct bfq_io_cq *bic, blk_opf_t opf, in bfqq_request_over_limit() argument 595 bfqq = bic_to_bfqq(bic, op_is_sync(opf), act_idx); in bfqq_request_over_limit() 671 struct bfq_io_cq *bic, blk_opf_t opf, in bfqq_request_over_limit() argument 693 static void bfq_limit_depth(blk_opf_t opf, struct blk_mq_alloc_data *data) in bfq_limit_depth() argument 700 if (blk_mq_is_sync_read(opf)) in bfq_limit_depth() 703 limit = bfqd->async_depths[!!bfqd->wr_busy_queues][op_is_sync(opf)]; in bfq_limit_depth() 707 if (!bic_to_bfqq(bic, op_is_sync(opf), act_idx)) in bfq_limit_depth() 716 if (bfqq_request_over_limit(bfqd, bic, opf, act_idx, limit)) { in bfq_limit_depth() 723 __func__, bfqd->wr_busy_queues, op_is_sync(opf), limit); in bfq_limit_depth()
|
| H A D | mq-deadline.c | 485 static void dd_limit_depth(blk_opf_t opf, struct blk_mq_alloc_data *data) in dd_limit_depth() argument 487 if (!blk_mq_is_sync_read(opf)) in dd_limit_depth()
|
| /linux/drivers/target/ |
| H A D | target_core_iblock.c | 355 blk_opf_t opf) in iblock_get_bio() argument 364 bio = bio_alloc_bioset(ib_dev->ibd_bd, bio_max_segs(sg_num), opf, in iblock_get_bio() 752 blk_opf_t opf; in iblock_execute_rw() local 765 opf = REQ_OP_WRITE | REQ_SYNC | REQ_IDLE; in iblock_execute_rw() 773 opf |= REQ_FUA; in iblock_execute_rw() 775 opf |= REQ_FUA; in iblock_execute_rw() 779 opf |= REQ_ATOMIC; in iblock_execute_rw() 781 opf = REQ_OP_READ; in iblock_execute_rw() 796 bio = iblock_get_bio(cmd, block_lba, sgl_nents, opf); in iblock_execute_rw() 829 bio = iblock_get_bio(cmd, block_lba, sg_num, opf); in iblock_execute_rw()
|
| /linux/kernel/trace/ |
| H A D | blktrace.c | 311 const blk_opf_t opf, u64 what, int error, in __blk_add_trace() argument 324 const enum req_op op = opf & REQ_OP_MASK; in __blk_add_trace() 331 what |= MASK_TC_BIT(opf, SYNC); in __blk_add_trace() 332 what |= MASK_TC_BIT(opf, RAHEAD); in __blk_add_trace() 333 what |= MASK_TC_BIT(opf, META); in __blk_add_trace() 334 what |= MASK_TC_BIT(opf, PREFLUSH); in __blk_add_trace() 335 what |= MASK_TC_BIT(opf, FUA); in __blk_add_trace() 2151 void blk_fill_rwbs(char *rwbs, blk_opf_t opf) in blk_fill_rwbs() argument 2155 if (opf & REQ_PREFLUSH) in blk_fill_rwbs() 2158 switch (opf & REQ_OP_MASK) { in blk_fill_rwbs() [all …]
|
| /linux/fs/gfs2/ |
| H A D | lops.c | 257 * @opf: REQ_OP | op_flags 265 bio_end_io_t *end_io, blk_opf_t opf) in gfs2_log_alloc_bio() argument 268 struct bio *bio = bio_alloc(sb->s_bdev, BIO_MAX_VECS, opf, GFP_NOIO); in gfs2_log_alloc_bio() 282 * @opf: REQ_OP | op_flags 295 struct bio **biop, blk_opf_t opf, in gfs2_log_get_bio() argument 310 *biop = gfs2_log_alloc_bio(sdp, blkno, end_io, opf); in gfs2_log_get_bio() 322 * @opf: REQ_OP | op_flags 331 u64 blkno, blk_opf_t opf) in gfs2_log_write() argument 336 bio = gfs2_log_get_bio(sdp, blkno, &jd->jd_log_bio, opf, in gfs2_log_write() 341 opf, gfs2_end_log_writ in gfs2_log_write() 484 gfs2_chain_bio(struct bio * prev,unsigned int nr_iovecs,sector_t sector,blk_opf_t opf) gfs2_chain_bio() argument [all...] |
| /linux/fs/ |
| H A D | mpage.c | 167 blk_opf_t opf = REQ_OP_READ; in do_mpage_readpage() local 173 opf |= REQ_RAHEAD; in do_mpage_readpage() 286 args->bio = bio_alloc(bdev, bio_max_segs(args->nr_pages), opf, in do_mpage_readpage()
|
| H A D | buffer.c | 1100 static void __bh_submit(struct buffer_head *bh, blk_opf_t opf, in __bh_submit() 1114 opf |= REQ_META; in __bh_submit() 1116 opf |= REQ_PRIO; in __bh_submit() 1118 bio = bio_alloc(bh->b_bdev, 1, opf, GFP_NOIO); in __bh_submit() 1121 op_is_write(opf)) in __bh_submit() 1154 * @opf: Operation and flags for bio. 1160 void bh_submit(struct buffer_head *bh, blk_opf_t opf, bio_end_io_t end_io) 1162 __bh_submit(bh, opf, WRITE_LIFE_NOT_SET, NULL, end_io); in __bread_slow() 1096 __bh_submit(struct buffer_head * bh,blk_opf_t opf,enum rw_hint write_hint,struct writeback_control * wbc,bio_end_io_t end_bio) __bh_submit() argument 1156 bh_submit(struct buffer_head * bh,blk_opf_t opf,bio_end_io_t end_io) bh_submit() argument
|
| /linux/drivers/nvme/target/ |
| H A D | zns.c | 556 const blk_opf_t opf = REQ_OP_ZONE_APPEND | REQ_SYNC | REQ_IDLE; in nvmet_bdev_execute_zone_append() 595 ARRAY_SIZE(req->inline_bvec), opf); in nvmet_bdev_execute_zone_append() 597 bio = bio_alloc(req->ns->bdev, req->sg_cnt, opf, GFP_KERNEL); in nvmet_bdev_execute_zone_append() 539 const blk_opf_t opf = REQ_OP_ZONE_APPEND | REQ_SYNC | REQ_IDLE; nvmet_bdev_execute_zone_append() local
|
| /linux/fs/iomap/ |
| H A D | direct-io.c | 56 struct iomap_dio *dio, unsigned short nr_vecs, blk_opf_t opf) in iomap_dio_alloc_bio() argument 59 return bio_alloc_bioset(iter->iomap.bdev, nr_vecs, opf, in iomap_dio_alloc_bio() 61 return bio_alloc(iter->iomap.bdev, nr_vecs, opf, GFP_KERNEL); in iomap_dio_alloc_bio()
|
| /linux/include/scsi/ |
| H A D | scsi_cmnd.h | 396 struct request *scsi_alloc_request(struct request_queue *q, blk_opf_t opf,
|
| /linux/drivers/scsi/ |
| H A D | scsi_lib.c | 286 * @opf: block layer request cmd_flags 297 blk_opf_t opf, void *buffer, unsigned int bufflen, in scsi_execute_cmd() argument 313 req = scsi_alloc_request(sdev->request_queue, opf, args->req_flags); in scsi_execute_cmd() 1281 * @opf: the request operation code in scsi_alloc_request() 1286 struct request *scsi_alloc_request(struct request_queue *q, blk_opf_t opf, 1291 rq = blk_mq_alloc_request(q, opf, flags); in scsi_cleanup_rq() 1273 scsi_alloc_request(struct request_queue * q,blk_opf_t opf,blk_mq_req_flags_t flags) scsi_alloc_request() argument
|