Home
last modified time | relevance | path

Searched full:disk (Results 1 – 25 of 1426) sorted by relevance

12345678910>>...58

/Linux-v5.10/drivers/block/paride/
Dpd.c233 int changed; /* Have we seen a disk change ? */
247 enum action (*func)(struct pd_unit *disk);
259 static inline int status_reg(struct pd_unit *disk) in status_reg() argument
261 return pi_read_regr(disk->pi, 1, 6); in status_reg()
264 static inline int read_reg(struct pd_unit *disk, int reg) in read_reg() argument
266 return pi_read_regr(disk->pi, 0, reg); in read_reg()
269 static inline void write_status(struct pd_unit *disk, int val) in write_status() argument
271 pi_write_regr(disk->pi, 1, 6, val); in write_status()
274 static inline void write_reg(struct pd_unit *disk, int reg, int val) in write_reg() argument
276 pi_write_regr(disk->pi, 0, reg, val); in write_reg()
[all …]
Dpf.c5 This is the high-level driver for parallel port ATAPI disk
9 port ATAPI disk drive, but if their individual parameters are
215 static void pf_release(struct gendisk *disk, fmode_t mode);
241 struct gendisk *disk; member
251 static unsigned int pf_check_events(struct gendisk *disk,
295 struct gendisk *disk; in pf_init_units() local
297 disk = alloc_disk(1); in pf_init_units()
298 if (!disk) in pf_init_units()
301 disk->queue = blk_mq_init_sq_queue(&pf->tag_set, &pf_mq_ops, in pf_init_units()
303 if (IS_ERR(disk->queue)) { in pf_init_units()
[all …]
/Linux-v5.10/block/
Dgenhd.c43 static void disk_alloc_events(struct gendisk *disk);
44 static void disk_add_events(struct gendisk *disk);
45 static void disk_del_events(struct gendisk *disk);
46 static void disk_release_events(struct gendisk *disk);
49 * Set disk capacity and notify if the size is not currently
52 bool set_capacity_revalidate_and_notify(struct gendisk *disk, sector_t size, in set_capacity_revalidate_and_notify() argument
55 sector_t capacity = get_capacity(disk); in set_capacity_revalidate_and_notify()
57 set_capacity(disk, size); in set_capacity_revalidate_and_notify()
59 revalidate_disk_size(disk, true); in set_capacity_revalidate_and_notify()
64 kobject_uevent_env(&disk_to_dev(disk)->kobj, KOBJ_CHANGE, envp); in set_capacity_revalidate_and_notify()
[all …]
Dblk-zoned.c121 * @disk: Target gendisk
126 unsigned int blkdev_nr_zones(struct gendisk *disk) in blkdev_nr_zones() argument
128 sector_t zone_sectors = blk_queue_zone_sectors(disk->queue); in blkdev_nr_zones()
130 if (!blk_queue_is_zoned(disk->queue)) in blkdev_nr_zones()
132 return (get_capacity(disk) + zone_sectors - 1) >> ilog2(zone_sectors); in blkdev_nr_zones()
158 struct gendisk *disk = bdev->bd_disk; in blkdev_report_zones() local
159 sector_t capacity = get_capacity(disk); in blkdev_report_zones()
162 WARN_ON_ONCE(!disk->fops->report_zones)) in blkdev_report_zones()
168 return disk->fops->report_zones(disk, sector, nr_zones, cb, data); in blkdev_report_zones()
181 * of the applicable zone range is the entire disk. in blkdev_allow_reset_all_zones()
[all …]
Dblk-integrity.c112 * @gd1: Disk to compare
113 * @gd2: Disk to compare
224 struct gendisk *disk = container_of(kobj, struct gendisk, integrity_kobj); in integrity_attr_show() local
225 struct blk_integrity *bi = &disk->queue->integrity; in integrity_attr_show()
236 struct gendisk *disk = container_of(kobj, struct gendisk, integrity_kobj); in integrity_attr_store() local
237 struct blk_integrity *bi = &disk->queue->integrity; in integrity_attr_store()
388 * @disk: struct gendisk pointer to make integrity-aware
397 void blk_integrity_register(struct gendisk *disk, struct blk_integrity *template) in blk_integrity_register() argument
399 struct blk_integrity *bi = &disk->queue->integrity; in blk_integrity_register()
404 ilog2(queue_logical_block_size(disk->queue)); in blk_integrity_register()
[all …]
/Linux-v5.10/Documentation/admin-guide/
Ddevices.txt20 1 block RAM disk
21 0 = /dev/ram0 First RAM disk
22 1 = /dev/ram1 Second RAM disk
24 250 = /dev/initrd Initial RAM disk
27 /dev/initrd refers to a RAM disk which was preloaded
115 3 block First MFM, RLL and IDE hard disk/CD-ROM interface
116 0 = /dev/hda Master: whole disk (or CD-ROM)
117 64 = /dev/hdb Slave: whole disk (or CD-ROM)
119 For partitions, add to the whole disk device number:
120 0 = /dev/hd? Whole disk
[all …]
/Linux-v5.10/include/linux/
Dgenhd.h7 * Generic hard disk header file by
24 #define disk_to_dev(disk) (&(disk)->part0.__dev) argument
214 #define disk_to_cdi(disk) ((disk)->cdi) argument
216 #define disk_to_cdi(disk) NULL argument
230 static inline int disk_max_parts(struct gendisk *disk) in disk_max_parts() argument
232 if (disk->flags & GENHD_FL_EXT_DEVT) in disk_max_parts()
234 return disk->minors; in disk_max_parts()
237 static inline bool disk_part_scan_enabled(struct gendisk *disk) in disk_part_scan_enabled() argument
239 return disk_max_parts(disk) > 1 && in disk_part_scan_enabled()
240 !(disk->flags & GENHD_FL_NO_PART_SCAN); in disk_part_scan_enabled()
[all …]
/Linux-v5.10/Documentation/ABI/testing/
Dsysfs-fs-f2fs1 What: /sys/fs/f2fs/<disk>/gc_max_sleep_time
7 What: /sys/fs/f2fs/<disk>/gc_min_sleep_time
13 What: /sys/fs/f2fs/<disk>/gc_no_gc_sleep_time
19 What: /sys/fs/f2fs/<disk>/gc_idle
31 What: /sys/fs/f2fs/<disk>/reclaim_segments
41 What: /sys/fs/f2fs/<disk>/main_blkaddr
47 What: /sys/fs/f2fs/<disk>/ipu_policy
65 What: /sys/fs/f2fs/<disk>/min_ipu_util
71 What: /sys/fs/f2fs/<disk>/min_fsync_blocks
77 What: /sys/fs/f2fs/<disk>/min_seq_blocks
[all …]
Dsysfs-block1 What: /sys/block/<disk>/stat
5 The /sys/block/<disk>/stat files displays the I/O
6 statistics of disk <disk>. They contain 11 fields:
31 What: /sys/block/<disk>/<part>/stat
35 The /sys/block/<disk>/<part>/stat files display the
37 same as the above-written /sys/block/<disk>/stat
41 What: /sys/block/<disk>/integrity/format
49 What: /sys/block/<disk>/integrity/read_verify
58 What: /sys/block/<disk>/integrity/tag_size
66 What: /sys/block/<disk>/integrity/device_is_integrity_capable
[all …]
Dsysfs-block-bcache1 What: /sys/block/<disk>/bcache/unregister
11 What: /sys/block/<disk>/bcache/clear_stats
17 What: /sys/block/<disk>/bcache/cache
24 What: /sys/block/<disk>/bcache/cache_hits
31 What: /sys/block/<disk>/bcache/cache_misses
37 What: /sys/block/<disk>/bcache/cache_hit_ratio
43 What: /sys/block/<disk>/bcache/sequential_cutoff
51 What: /sys/block/<disk>/bcache/bypassed
59 What: /sys/block/<disk>/bcache/writeback
68 What: /sys/block/<disk>/bcache/writeback_running
[all …]
Dsysfs-fs-ext41 What: /sys/fs/ext4/<disk>/mb_stats
10 What: /sys/fs/ext4/<disk>/mb_group_prealloc
18 What: /sys/fs/ext4/<disk>/mb_max_to_scan
25 What: /sys/fs/ext4/<disk>/mb_min_to_scan
32 What: /sys/fs/ext4/<disk>/mb_order2_req
40 What: /sys/fs/ext4/<disk>/mb_stream_req
51 What: /sys/fs/ext4/<disk>/inode_readahead_blks
59 What: /sys/fs/ext4/<disk>/delayed_allocation_blocks
67 What: /sys/fs/ext4/<disk>/lifetime_write_kbytes
75 What: /sys/fs/ext4/<disk>/session_write_kbytes
[all …]
/Linux-v5.10/Documentation/admin-guide/blockdev/
Dramdisk.rst2 Using the RAM disk block device with Linux
10 4) An Example of Creating a Compressed RAM Disk
16 The RAM disk driver is a way to use main system memory as a block device. It
22 The RAM disk dynamically grows as more space is required. It does this by using
26 The RAM disk supports up to 16 RAM disks by default, and can be reconfigured
31 To use RAM disk support with your system, run './MAKEDEV ram' from the /dev
35 The new RAM disk also has the ability to load compressed RAM disk images,
37 rescue floppy disk.
48 This parameter tells the RAM disk driver to set up RAM disks of N k size. The
80 If you make a boot disk that has LILO, then for the above, you would use::
[all …]
/Linux-v5.10/block/partitions/
Dcore.c17 * Probe partition formats with tables at disk address 0
32 * disk address 0xdc0. Since these may also have stale
287 struct gendisk *disk = part_to_disk(part); in hd_struct_free_work() local
290 * Release the disk reference acquired in delete_partition here. in hd_struct_free_work()
295 put_device(disk_to_dev(disk)); in hd_struct_free_work()
306 struct gendisk *disk = part_to_disk(part); in hd_struct_free() local
308 rcu_dereference_protected(disk->part_tbl, 1); in hd_struct_free()
324 * Must be called either with bd_mutex held, before a disk can be opened or
325 * after all disk users are gone.
329 struct gendisk *disk = part_to_disk(part); in delete_partition() local
[all …]
DKconfig53 `Y' here, Linux will support disk partitions created under ADFS.
75 Say Y here if you would like to be able to read the hard disk
105 bool "IBM disk label and partition support"
108 Say Y here if you would like to be able to read the hard disk
129 FreeBSD uses its own hard disk partition scheme on your PC. It
130 requires only one entry in the primary partition table of your disk
150 Like most systems, Solaris x86 uses its own hard disk partition
177 bool "Windows Logical Disk Manager (Dynamic Disk) support"
181 were partitioned using Windows 2000's/XP's or Vista's Logical Disk
189 the limitations of the PC's partitioning scheme. The Logical Disk
[all …]
/Linux-v5.10/Documentation/driver-api/md/
Draid5-cache.rst5 Raid 4/5/6 could include an extra disk for data cache besides normal RAID
6 disks. The role of RAID disks isn't changed with the cache disk. The cache disk
19 In both modes, all writes to the array will hit cache disk first. This means
20 the cache disk must be fast and sustainable.
34 The write-through cache will cache all data on cache disk first. After the data
35 is safe on the cache disk, the data will be flushed onto RAID disks. The
40 filesystems) after the data is safe on RAID disks, so cache disk failure
41 doesn't cause data loss. Of course cache disk failure means the array is
44 In write-through mode, the cache disk isn't required to be big. Several
51 cached on cache disk. But the main goal of 'write-back' cache is to speed up
[all …]
/Linux-v5.10/Documentation/power/
Dswsusp.rst11 If you touch anything on disk between suspend and resume...
20 problems. If your disk driver does not support suspend... (IDE does),
45 echo shutdown > /sys/power/disk; echo disk > /sys/power/state
49 echo platform > /sys/power/disk; echo disk > /sys/power/state
54 echo suspend > /sys/power/disk; echo disk > /sys/power/state
57 support. For suspend and resume to work, make sure your disk drivers
59 suspend/resume with modular disk drivers, see FAQ, but you probably
123 echo 4 > /proc/acpi/sleep # for suspend to disk
128 echo 4b > /proc/acpi/sleep # for suspend to disk via s4bios
139 bringing machine down? Suspend to disk, rearrange power cables,
[all …]
/Linux-v5.10/drivers/ide/
Dide-gd.c20 #include "ide-disk.h"
34 static struct ide_disk_obj *ide_disk_get(struct gendisk *disk) in ide_disk_get() argument
39 idkp = ide_drv_g(disk, ide_disk_obj); in ide_disk_get()
70 struct gendisk *g = idkp->disk; in ide_gd_remove()
86 struct gendisk *g = idkp->disk; in ide_disk_release()
97 * reinitialized on resume otherwise the disk
126 spin down the disk in this case, especially since Alpha
132 the disk to expire its write cache. */
186 struct gendisk *disk = bdev->bd_disk; local
191 idkp = ide_disk_get(disk);
[all …]
/Linux-v5.10/drivers/block/
Dnull_blk_trace.h24 static inline void __assign_disk_name(char *name, struct gendisk *disk) in __assign_disk_name() argument
26 if (disk) in __assign_disk_name()
27 memcpy(name, disk->disk_name, DISK_NAME_LEN); in __assign_disk_name()
38 __array(char, disk, DISK_NAME_LEN)
47 __assign_disk_name(__entry->disk, cmd->rq->rq_disk);
50 __print_disk_name(__entry->disk),
60 __array(char, disk, DISK_NAME_LEN)
65 __assign_disk_name(__entry->disk, nullb->disk);
68 __print_disk_name(__entry->disk), __entry->nr_zones)
Dvirtio_blk.c47 /* The disk structure for the kernel. */
48 struct gendisk *disk; member
199 blk_mq_start_stopped_hw_queues(vblk->disk->queue, true); in virtblk_done()
306 /* return id (s/n) string for *disk to *id_str
308 static int virtblk_get_id(struct gendisk *disk, char *id_str) in virtblk_get_id() argument
310 struct virtio_blk *vblk = disk->private_data; in virtblk_get_id()
311 struct request_queue *q = vblk->disk->queue; in virtblk_get_id()
323 blk_execute_rq(vblk->disk->queue, vblk->disk, req, false); in virtblk_get_id()
360 static void virtblk_release(struct gendisk *disk, fmode_t mode) in virtblk_release() argument
362 struct virtio_blk *vblk = disk->private_data; in virtblk_release()
[all …]
/Linux-v5.10/arch/m68k/emu/
Dnfblock.c59 struct gendisk *disk; member
128 dev->disk = alloc_disk(16); in nfhd_init_one()
129 if (!dev->disk) in nfhd_init_one()
132 dev->disk->major = major_num; in nfhd_init_one()
133 dev->disk->first_minor = dev_id * 16; in nfhd_init_one()
134 dev->disk->fops = &nfhd_ops; in nfhd_init_one()
135 dev->disk->private_data = dev; in nfhd_init_one()
136 sprintf(dev->disk->disk_name, "nfhd%u", dev_id); in nfhd_init_one()
137 set_capacity(dev->disk, (sector_t)blocks * (bsize / 512)); in nfhd_init_one()
138 dev->disk->queue = dev->queue; in nfhd_init_one()
[all …]
/Linux-v5.10/drivers/nvme/host/
Dmultipath.c22 if (h->disk) in nvme_mpath_unfreeze()
23 blk_mq_unfreeze_queue(h->disk->queue); in nvme_mpath_unfreeze()
32 if (h->disk) in nvme_mpath_wait_freeze()
33 blk_mq_freeze_queue_wait(h->disk->queue); in nvme_mpath_wait_freeze()
42 if (h->disk) in nvme_mpath_start_freeze()
43 blk_freeze_queue_start(h->disk->queue); in nvme_mpath_start_freeze()
58 } else if (ns->head->disk) { in nvme_set_disk_name()
100 if (ns->head->disk) in nvme_kick_requeue_lists()
298 struct device *dev = disk_to_dev(head->disk); in nvme_ns_head_submit_bio()
313 bio->bi_disk = ns->disk; in nvme_ns_head_submit_bio()
[all …]
/Linux-v5.10/drivers/block/drbd/
Ddrbd_state.c127 device_state_change->disk_state[OLD] = device->state.disk; in remember_old_state()
178 device_state_change->disk_state[NEW] = device->state.disk; in remember_new_state()
303 if (device->state.disk != D_DISKLESS || in conn_all_vols_unconf()
376 disk_state = max_t(enum drbd_disk_state, disk_state, device->state.disk); in conn_highest_disk()
392 disk_state = min_t(enum drbd_disk_state, disk_state, device->state.disk); in conn_lowest_disk()
474 (os.disk != D_FAILED && ns.disk == D_FAILED))) || in cl_wide_st_chg()
661 * We grab drbd_md_get_buffer(), because we don't want to "fail" the disk while
675 return drbd_req_state(device, NS(disk, D_FAILED), in request_detach()
689 device->state.disk != D_FAILED); in drbd_request_detach_interruptible()
722 drbd_disk_str(ns.disk), in print_st()
[all …]
/Linux-v5.10/drivers/md/bcache/
Dwriteback.c32 struct cache_set *c = dc->disk.c; in __calc_target_rate()
84 int64_t dirty = bcache_dev_sectors_dirty(&dc->disk); in __update_writeback_rate()
178 struct cache_set *c = dc->disk.c; in update_writeback_rate()
184 set_bit(BCACHE_DEV_RATE_DW_RUNNING, &dc->disk.flags); in update_writeback_rate()
192 if (!test_bit(BCACHE_DEV_WB_RUNNING, &dc->disk.flags) || in update_writeback_rate()
194 clear_bit(BCACHE_DEV_RATE_DW_RUNNING, &dc->disk.flags); in update_writeback_rate()
220 if (test_bit(BCACHE_DEV_WB_RUNNING, &dc->disk.flags) && in update_writeback_rate()
230 clear_bit(BCACHE_DEV_RATE_DW_RUNNING, &dc->disk.flags); in update_writeback_rate()
238 if (test_bit(BCACHE_DEV_DETACHING, &dc->disk.flags) || in writeback_delay()
295 atomic_inc(&PTR_BUCKET(dc->disk.c, &w->key, i)->pin); in write_dirty_finish()
[all …]
/Linux-v5.10/drivers/nvdimm/
Dblk.c236 static void nd_blk_release_disk(void *disk) in nd_blk_release_disk() argument
238 del_gendisk(disk); in nd_blk_release_disk()
239 put_disk(disk); in nd_blk_release_disk()
247 struct gendisk *disk; in nsblk_attach_disk() local
263 disk = alloc_disk(0); in nsblk_attach_disk()
264 if (!disk) in nsblk_attach_disk()
267 disk->first_minor = 0; in nsblk_attach_disk()
268 disk->fops = &nd_blk_fops; in nsblk_attach_disk()
269 disk->queue = q; in nsblk_attach_disk()
270 disk->flags = GENHD_FL_EXT_DEVT; in nsblk_attach_disk()
[all …]
/Linux-v5.10/fs/
Dblock_dev.c1094 struct gendisk *disk = get_gendisk(bdev->bd_dev, partno); in bdev_get_gendisk() local
1096 if (!disk) in bdev_get_gendisk()
1107 put_disk_and_module(disk); in bdev_get_gendisk()
1110 return disk; in bdev_get_gendisk()
1170 struct gendisk *disk; member
1175 struct gendisk *disk) in bd_find_holder_disk() argument
1180 if (holder->disk == disk) in bd_find_holder_disk()
1196 * bd_link_disk_holder - create symlinks between holding disk and slave bdev
1198 * @disk: the holding disk
1204 * - from "slaves" directory of the holder @disk to the claimed @bdev
[all …]

12345678910>>...58