Home
last modified time | relevance | path

Searched refs:opf (Results 1 – 25 of 29) sorted by relevance

12

/linux/arch/sparc/kernel/
H A Dvisemul.c294 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/md/
H A Ddm-io.c306 static void do_region(const blk_opf_t opf, unsigned int region, in do_region() argument
319 const enum req_op op = opf & REQ_OP_MASK; in do_region()
353 bio = bio_alloc_bioset(where->bdev, num_bvecs, opf, GFP_NOIO, in do_region()
382 WARN_ON_ONCE(opf & REQ_ATOMIC && remaining); in do_region()
386 static void dispatch_io(blk_opf_t opf, unsigned int num_regions, in dispatch_io() argument
401 if (where[i].count || (opf & REQ_PREFLUSH)) in dispatch_io()
402 do_region(opf, i, where + i, dp, io, ioprio); in dispatch_io()
413 struct dm_io_region *where, blk_opf_t opf, in async_io() argument
429 dispatch_io(opf, num_regions, where, dp, io, ioprio); in async_io()
446 struct dm_io_region *where, blk_opf_t opf, struct dpages *dp, in sync_io() argument
[all …]
H A Ddm-snap-persistent.c232 static int chunk_io(struct pstore *ps, void *area, chunk_t chunk, blk_opf_t opf, in chunk_io() argument
241 .bi_opf = opf, in chunk_io()
288 static int area_io(struct pstore *ps, blk_opf_t opf) in area_io() argument
292 return chunk_io(ps, ps->area, chunk, opf, 0); in area_io()
H A Dmd.h930 struct page *page, blk_opf_t opf, bool metadata_op);
/linux/drivers/block/
H A Dbrd.c86 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 Dscsi_dh_hp_sw.c83 blk_opf_t opf = REQ_OP_DRV_IN | REQ_FAILFAST_DEV | in hp_sw_tur() local
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
157 res = scsi_execute_cmd(sdev, cmd, opf, NULL, 0, HP_SW_TIMEOUT, in hp_sw_start_stop()
H A Dscsi_dh_emc.c242 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 Dscsi_dh_rdac.c513 blk_opf_t opf = REQ_OP_DRV_OUT | REQ_FAILFAST_DEV | in send_mode_select() local
573 rc = scsi_execute_cmd(sdev, cdb, opf, &h->ctlr->mode_select, data_size, in send_mode_select()
/linux/include/linux/
H A Dbio.h353 blk_opf_t opf, gfp_t gfp, struct bio_set *bs);
365 unsigned short nr_vecs, blk_opf_t opf, gfp_t gfp_mask) in bio_alloc() argument
367 return bio_alloc_bioset(bdev, nr_vecs, opf, gfp_mask, &fs_bio_set); in bio_alloc()
425 unsigned short max_vecs, blk_opf_t opf);
427 unsigned short max_vecs, blk_opf_t opf) in bio_init_inline() argument
429 bio_init(bio, bdev, bio_inline_vecs(bio), max_vecs, opf); in bio_init_inline()
432 void bio_reset(struct bio *bio, struct block_device *bdev, blk_opf_t opf);
433 void bio_reuse(struct bio *bio, blk_opf_t opf);
743 unsigned int nr_pages, blk_opf_t opf, gfp_t gfp);
/linux/block/
H A Dblk-mq.h90 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()
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 Dbfq-cgroup.c223 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 Dbio.c218 unsigned short max_vecs, blk_opf_t opf) in bio_init() argument
222 bio->bi_opf = opf; in bio_init()
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()
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()
382 unsigned int nr_pages, blk_opf_t opf, gfp_t gfp) in blk_next_bio() argument
384 return bio_chain_and_submit(bio, bio_alloc(bdev, nr_pages, opf, gfp)); in blk_next_bio()
536 blk_opf_t opf, gfp_t gfp, struct bio_set *bs) in bio_alloc_bioset() argument
554 opf |= REQ_ALLOC_CACHE; in bio_alloc_bioset()
[all …]
H A Dfops.c31 blk_opf_t opf = REQ_OP_WRITE | REQ_SYNC | REQ_IDLE; in dio_bio_write_op() local
35 opf |= REQ_FUA; in dio_bio_write_op()
36 return opf; in dio_bio_write_op()
182 blk_opf_t opf = is_read ? REQ_OP_READ : dio_bio_write_op(iocb); in __blkdev_direct_IO() local
186 bio = bio_alloc_bioset(bdev, nr_pages, opf, GFP_KERNEL, in __blkdev_direct_IO()
262 bio = bio_alloc(bdev, nr_pages, opf, GFP_KERNEL); in __blkdev_direct_IO()
327 blk_opf_t opf = is_read ? REQ_OP_READ : dio_bio_write_op(iocb); in __blkdev_direct_IO_async() local
333 bio = bio_alloc_bioset(bdev, nr_pages, opf, GFP_KERNEL, in __blkdev_direct_IO_async()
H A Dbfq-iosched.h1067 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 Dbfq-iosched.c579 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()
/linux/kernel/trace/
H A Dblktrace.c311 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/
H A Dmpage.c167 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()
/linux/drivers/nvme/target/
H A Dzns.c532 const blk_opf_t opf = REQ_OP_ZONE_APPEND | REQ_SYNC | REQ_IDLE; in nvmet_bdev_execute_zone_append() local
571 ARRAY_SIZE(req->inline_bvec), opf); in nvmet_bdev_execute_zone_append()
573 bio = bio_alloc(req->ns->bdev, req->sg_cnt, opf, GFP_KERNEL); in nvmet_bdev_execute_zone_append()
/linux/fs/iomap/
H A Ddirect-io.c55 struct iomap_dio *dio, unsigned short nr_vecs, blk_opf_t opf) in iomap_dio_alloc_bio() argument
58 return bio_alloc_bioset(iter->iomap.bdev, nr_vecs, opf, in iomap_dio_alloc_bio()
60 return bio_alloc(iter->iomap.bdev, nr_vecs, opf, GFP_KERNEL); in iomap_dio_alloc_bio()
/linux/include/scsi/
H A Dscsi_cmnd.h397 struct request *scsi_alloc_request(struct request_queue *q, blk_opf_t opf,
/linux/kernel/power/
H A Dswap.c266 static int hib_submit_io_sync(blk_opf_t opf, pgoff_t page_off, void *addr) in hib_submit_io_sync() argument
269 page_off * (PAGE_SIZE >> 9), addr, PAGE_SIZE, opf); in hib_submit_io_sync()
272 static int hib_submit_io_async(blk_opf_t opf, pgoff_t page_off, void *addr, in hib_submit_io_async() argument
277 bio = bio_alloc(file_bdev(hib_resume_bdev_file), 1, opf, in hib_submit_io_async()
/linux/fs/btrfs/
H A Dextent_io.c104 blk_opf_t opf; member
739 bbio = btrfs_bio_alloc(BIO_MAX_VECS, bio_ctrl->opf, inode, in alloc_new_bio()
1338 .opf = REQ_OP_READ, in btrfs_read_folio()
2612 .opf = REQ_OP_WRITE | wbc_to_write_flags(wbc), in extent_write_locked_range()
2616 bio_ctrl.opf |= REQ_BTRFS_CGROUP_PUNT; in extent_write_locked_range()
2676 .opf = REQ_OP_WRITE | wbc_to_write_flags(wbc), in btrfs_writepages()
2693 .opf = REQ_OP_READ | REQ_RAHEAD, in btrfs_readahead()
/linux/drivers/scsi/
H A Dscsi_transport_spi.c111 blk_opf_t opf = op | REQ_FAILFAST_DEV | REQ_FAILFAST_TRANSPORT | in spi_execute() local
133 return scsi_execute_cmd(sdev, cmd, opf, buffer, bufflen, DV_TIMEOUT, 1, in spi_execute()
/linux/drivers/block/drbd/
H A Ddrbd_int.h322 blk_opf_t opf; member
336 ((peer_req)->opf & REQ_OP_MASK)
H A Ddrbd_receiver.c1500 drbd_err(device, "Invalid bio op received: 0x%x\n", peer_req->opf); in drbd_submit_peer_request()
1504 bio = bio_alloc(device->ldev->backing_bdev, nr_pages, peer_req->opf, GFP_NOIO); in drbd_submit_peer_request()
1888 peer_req->opf = REQ_OP_WRITE; in recv_resync_read()
2417 peer_req->opf = wire_flags_to_bio(connection, dp_flags); in receive_Data()
2686 peer_req->opf = REQ_OP_READ; in receive_DataRequest()
4790 peer_req->opf = REQ_OP_DISCARD; in receive_rs_deallocated()

12