Searched refs:holder (Results 1 - 25 of 25) sorted by relevance

/linux-master/block/
H A Dholder.c16 struct bd_holder_disk *holder; local
18 list_for_each_entry(holder, &disk->slave_bdevs, list)
19 if (holder->holder_dir == bdev->bd_holder_dir)
20 return holder;
43 * - from "slaves" directory of the holder @disk to the claimed @bdev
44 * - from "holders" directory of the @bdev to the holder @disk
64 struct bd_holder_disk *holder; local
88 holder = bd_find_holder_disk(bdev, disk);
89 if (holder) {
91 holder
140 struct bd_holder_disk *holder; local
[all...]
H A Dbdev.c464 * @holder: holder trying to claim @bdev
465 * @hops: holder ops
467 * Test whether @bdev can be claimed by @holder.
472 static bool bd_may_claim(struct block_device *bdev, void *holder, argument
481 * The same holder can always re-claim.
483 if (bdev->bd_holder == holder) {
492 * If the whole devices holder is set to bd_may_claim, a partition on
504 * @holder: holder tryin
514 bd_prepare_to_claim(struct block_device *bdev, void *holder, const struct blk_holder_ops *hops) argument
548 bd_clear_claiming(struct block_device *whole, void *holder) argument
566 bd_finish_claiming(struct block_device *bdev, void *holder, const struct blk_holder_ops *hops) argument
597 bd_abort_claiming(struct block_device *bdev, void *holder) argument
600 bd_clear_claiming(bdev_whole(bdev), holder); local
605 bd_end_claim(struct block_device *bdev, void *holder) argument
714 bdev_permission(dev_t dev, blk_mode_t mode, void *holder) argument
858 bdev_open(struct block_device *bdev, blk_mode_t mode, void *holder, const struct blk_holder_ops *hops, struct file *bdev_file) argument
965 bdev_file_open_by_dev(dev_t dev, blk_mode_t mode, void *holder, const struct blk_holder_ops *hops) argument
1001 bdev_file_open_by_path(const char *path, blk_mode_t mode, void *holder, const struct blk_holder_ops *hops) argument
1028 void *holder = bdev_file->private_data; local
1042 void *holder = bdev_file->private_data; local
[all...]
H A DMakefile42 obj-$(CONFIG_BLOCK_HOLDER_DEPRECATED) += holder.o
H A Dblk.h599 int bdev_open(struct block_device *bdev, blk_mode_t mode, void *holder,
601 int bdev_permission(dev_t dev, blk_mode_t mode, void *holder);
/linux-master/fs/bcachefs/
H A Dsuper_types.h11 void *holder; member in struct:bch_sb_handle
H A Dsuper-io.c147 kfree(sb->holder);
698 sb->holder = kmalloc(1, GFP_KERNEL);
699 if (!sb->holder)
720 sb->s_bdev_file = bdev_file_open_by_path(path, sb->mode, sb->holder, &bch2_sb_handle_bdev_ops);
726 sb->s_bdev_file = bdev_file_open_by_path(path, sb->mode, sb->holder, &bch2_sb_handle_bdev_ops);
/linux-master/tools/bpf/bpftool/
H A Dprog.c92 struct bpf_prog_info holder = {}; local
97 holder.jited_prog_len = info->jited_prog_len;
100 holder.xlated_prog_len = info->xlated_prog_len;
104 holder.nr_jited_ksyms = info->nr_jited_ksyms;
107 holder.nr_jited_func_lens = info->nr_jited_func_lens;
110 holder.nr_func_info = info->nr_func_info;
111 holder.func_info_rec_size = info->func_info_rec_size;
114 holder.nr_line_info = info->nr_line_info;
115 holder.line_info_rec_size = info->line_info_rec_size;
118 holder
[all...]
/linux-master/drivers/md/
H A Ddm-bio-prison-v1.h56 struct bio *holder; member in struct:dm_bio_prison_cell
95 * Returns 1 if the cell was already held, 0 if @inmate is the new holder.
122 * want to promote one of them to be the new holder. There is a race here
127 * i) An inmate is promoted to be the holder of the cell (return value of 0).
H A Ddm-bio-prison-v1.c88 struct bio *holder,
92 cell->holder = holder;
220 if (cell->holder)
221 bio_list_add(inmates, cell->holder);
239 * Sometimes we don't want the holder, just the additional bios.
299 cell->holder = bio_list_pop(&cell->bios);
87 __setup_new_cell(struct dm_cell_key *key, struct bio *holder, struct dm_bio_prison_cell *cell) argument
H A Ddm-thin.c883 * This sends the bios in the cell, except the original holder, back
1032 inc_all_io_entry(tc->pool, m->cell->holder);
1033 remap_and_issue(tc, m->cell->holder, m->data_block);
1666 m->bio = virt_cell->holder;
1753 struct bio *bio = virt_cell->holder;
1963 struct bio *bio = cell->holder;
2090 __process_bio_read_only(tc, cell->holder, cell);
2251 BUG_ON(!lhs_cell->holder);
2252 BUG_ON(!rhs_cell->holder);
2254 if (lhs_cell->holder
[all...]
/linux-master/include/linux/
H A Ddax.h48 * notify_failure - notify memory failure into inner holder device
49 * @dax_dev: the dax device which contains the holder
136 void *holder, const struct dax_holder_operations *ops);
137 void fs_put_dax(struct dax_device *dax_dev, void *holder);
147 u64 *start_off, void *holder,
152 static inline void fs_put_dax(struct dax_device *dax_dev, void *holder) argument
146 fs_dax_get_by_bdev(struct block_device *bdev, u64 *start_off, void *holder, const struct dax_holder_operations *ops) argument
H A Dblkdev.h1513 * For filesystems using @fs_holder_ops, the @holder argument passed to
1527 struct file *bdev_file_open_by_dev(dev_t dev, blk_mode_t mode, void *holder,
1530 void *holder, const struct blk_holder_ops *hops);
1531 int bd_prepare_to_claim(struct block_device *bdev, void *holder,
1533 void bd_abort_claiming(struct block_device *bdev, void *holder);
/linux-master/drivers/dax/
H A Dsuper.c26 * @holder_data: holder of a dax_device: could be filesystem or mapped device
27 * @holder_ops: operations for the inner holder
79 * @holder: filesystem or mapped device inside the dax_device
80 * @ops: operations for the inner holder
83 void *holder, const struct dax_holder_operations *ops)
103 else if (holder) {
104 if (!cmpxchg(&dax_dev->holder_data, NULL, holder))
115 void fs_put_dax(struct dax_device *dax_dev, void *holder) argument
117 if (dax_dev && holder &&
118 cmpxchg(&dax_dev->holder_data, holder, NUL
82 fs_dax_get_by_bdev(struct block_device *bdev, u64 *start_off, void *holder, const struct dax_holder_operations *ops) argument
[all...]
/linux-master/drivers/ipack/carriers/
H A Dtpci200.h118 struct ipack_device *holder; member in struct:slot_irq
H A Dtpci200.c229 slot_irq->holder = dev;
/linux-master/drivers/md/dm-vdo/
H A Dphysical-zone.c79 * The lock holder count is cleared and the caller is responsible for setting the new count.
88 "PBN write lock should have one holder but has %u",
92 * If this was a compressed write, the holder has not yet journaled its own inc ref,
615 struct pbn_lock *holder; local
629 holder = vdo_int_map_remove(zone->pbn_operations, locked_pbn);
630 VDO_ASSERT_LOG_ONLY((lock == holder), "physical block lock mismatch for block %llu",
/linux-master/drivers/md/bcache/
H A Dsuper.c2451 void *holder; member in struct:async_reg_args
2462 args->holder) < 0)
2483 args->holder))
2521 void *holder = NULL; local
2565 holder = alloc_holder_object(sb);
2566 if (!holder) {
2572 /* Now reopen in exclusive mode with proper holder */
2574 BLK_OPEN_READ | BLK_OPEN_WRITE, holder, NULL);
2615 args->holder = holder;
[all...]
/linux-master/drivers/net/ethernet/
H A Djme.h382 #define JME_NAPI_HOLDER(holder) struct napi_struct *holder
H A Djme.c1353 jme_poll(JME_NAPI_HOLDER(holder), JME_NAPI_WEIGHT(budget))
1355 struct jme_adapter *jme = jme_napi_priv(holder);
1368 JME_RX_COMPLETE(netdev, holder);
/linux-master/fs/btrfs/
H A Dvolumes.h681 blk_mode_t flags, void *holder);
H A Dvolumes.c468 btrfs_get_bdev_and_sb(const char *device_path, blk_mode_t flags, void *holder, argument
475 *bdev_file = bdev_file_open_by_path(device_path, flags, holder, NULL);
642 void *holder)
654 ret = btrfs_get_bdev_and_sb(device->name->str, flags, holder, 1,
1182 blk_mode_t flags, void *holder)
1193 ret2 = btrfs_open_one_device(fs_devices, device, flags, holder);
1237 blk_mode_t flags, void *holder)
1255 ret = open_fs_devices(fs_devices, flags, holder);
640 btrfs_open_one_device(struct btrfs_fs_devices *fs_devices, struct btrfs_device *device, blk_mode_t flags, void *holder) argument
1181 open_fs_devices(struct btrfs_fs_devices *fs_devices, blk_mode_t flags, void *holder) argument
1236 btrfs_open_devices(struct btrfs_fs_devices *fs_devices, blk_mode_t flags, void *holder) argument
/linux-master/kernel/power/
H A Dswap.c1571 void *holder = exclusive ? &swsusp_holder : NULL; local
1575 BLK_OPEN_READ, holder, NULL);
/linux-master/fs/reiserfs/
H A Djournal.c2602 void *holder = journal; local
2618 holder = NULL;
2620 holder, NULL);
2636 holder, NULL);
/linux-master/arch/parisc/math-emu/
H A Dfpudispatch.c20 * fpudispatch(ir, excp_code, holder, fpregs)
182 fpudispatch(u_int ir, u_int excp_code, u_int holder, u_int fpregs[]) argument
/linux-master/drivers/nvdimm/
H A Dnamespace_devs.c1249 static DEVICE_ATTR_RO(holder);

Completed in 300 milliseconds