Home
last modified time | relevance | path

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

12345678910>>...103

/kernel/linux/linux-5.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 …]
/kernel/linux/linux-4.19/drivers/block/paride/
Dpd.c233 int changed; /* Have we seen a disk change ? */
252 static inline int status_reg(struct pd_unit *disk) in status_reg() argument
254 return pi_read_regr(disk->pi, 1, 6); in status_reg()
257 static inline int read_reg(struct pd_unit *disk, int reg) in read_reg() argument
259 return pi_read_regr(disk->pi, 0, reg); in read_reg()
262 static inline void write_status(struct pd_unit *disk, int val) in write_status() argument
264 pi_write_regr(disk->pi, 1, 6, val); in write_status()
267 static inline void write_reg(struct pd_unit *disk, int reg, int val) in write_reg() argument
269 pi_write_regr(disk->pi, 0, reg, val); in write_reg()
272 static inline u8 DRIVE(struct pd_unit *disk) in DRIVE() argument
[all …]
/kernel/linux/linux-4.19/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);
97 struct hd_struct *__disk_get_part(struct gendisk *disk, int partno) in __disk_get_part() argument
99 struct disk_part_tbl *ptbl = rcu_dereference(disk->part_tbl); in __disk_get_part()
108 * @disk: disk to look partition from
111 * Look for partition @partno from @disk. If found, increment
120 struct hd_struct *disk_get_part(struct gendisk *disk, int partno) in disk_get_part() argument
125 part = __disk_get_part(disk, partno); in disk_get_part()
[all …]
Dpartition-generic.c30 * It formats the devicename of the indicated disk into
271 * Must be called either with bd_mutex held, before a disk can be opened or
272 * after all disk users are gone.
274 void delete_partition(struct gendisk *disk, int partno) in delete_partition() argument
277 rcu_dereference_protected(disk->part_tbl, 1); in delete_partition()
310 * Must be called either with bd_mutex held, before a disk can be opened or
311 * after all disk users are gone.
313 struct hd_struct *add_partition(struct gendisk *disk, int partno, in add_partition() argument
319 struct device *ddev = disk_to_dev(disk); in add_partition()
325 err = disk_expand_part_tbl(disk, partno); in add_partition()
[all …]
/kernel/linux/linux-5.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 …]
/kernel/liteos_a/drivers/block/disk/src/
Ddisk.c32 #include "disk.h"
105 los_disk *disk = NULL; in los_alloc_diskid_byname() local
122 disk = get_disk(diskID); in los_alloc_diskid_byname()
123 if ((disk != NULL) && (disk->disk_status == STAT_UNUSED)) { in los_alloc_diskid_byname()
124 disk->disk_status = STAT_UNREADY; in los_alloc_diskid_byname()
131 if ((disk == NULL) || (diskID == SYS_MAX_DISK)) { in los_alloc_diskid_byname()
136 if (disk->disk_name != NULL) { in los_alloc_diskid_byname()
137 LOS_MemFree(m_aucSysMem0, disk->disk_name); in los_alloc_diskid_byname()
138 disk->disk_name = NULL; in los_alloc_diskid_byname()
141 disk->disk_name = LOS_MemAlloc(m_aucSysMem0, (nameLen + 1)); in los_alloc_diskid_byname()
[all …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-4.19/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 …]
/kernel/liteos_a/drivers/block/disk/include/
Ddisk.h33 * @defgroup disk Disk
177 UINT32 disk_id : 8; /* physics disk number */
178 UINT32 disk_status : 2; /* status of disk */
183 OsBcache *bcache; /* cache of the disk, shared in all partitions */
185 UINT32 sector_size; /* disk sector size */
186 UINT64 sector_start; /* disk start sector */
187 UINT64 sector_count; /* disk sector number */
198 UINT32 disk_id : 8; /* physics disk number */
200 UINT32 part_no_disk : 8; /* partition number in the disk */
236 * @ingroup disk
[all …]
/kernel/linux/linux-4.19/Documentation/ABI/testing/
Dsysfs-fs-f2fs1 What: /sys/fs/f2fs/<disk>/gc_max_sleep_time
8 What: /sys/fs/f2fs/<disk>/gc_min_sleep_time
15 What: /sys/fs/f2fs/<disk>/gc_no_gc_sleep_time
22 What: /sys/fs/f2fs/<disk>/gc_idle
28 What: /sys/fs/f2fs/<disk>/reclaim_segments
34 What: /sys/fs/f2fs/<disk>/ipu_policy
40 What: /sys/fs/f2fs/<disk>/min_ipu_util
47 What: /sys/fs/f2fs/<disk>/min_fsync_blocks
54 What: /sys/fs/f2fs/<disk>/min_seq_blocks
62 What: /sys/fs/f2fs/<disk>/min_hot_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:
21 What: /sys/block/<disk>/<part>/stat
25 The /sys/block/<disk>/<part>/stat files display the
27 same as the above-written /sys/block/<disk>/stat
31 What: /sys/block/<disk>/integrity/format
39 What: /sys/block/<disk>/integrity/read_verify
48 What: /sys/block/<disk>/integrity/tag_size
56 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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-4.19/Documentation/blockdev/
Dramdisk.txt1 Using the RAM disk block device with Linux
9 4) An Example of Creating a Compressed RAM Disk
15 The RAM disk driver is a way to use main system memory as a block device. It
21 The RAM disk dynamically grows as more space is required. It does this by using
25 The RAM disk supports up to 16 RAM disks by default, and can be reconfigured
30 To use RAM disk support with your system, run './MAKEDEV ram' from the /dev
34 The new RAM disk also has the ability to load compressed RAM disk images,
36 rescue floppy disk.
47 This parameter tells the RAM disk driver to set up RAM disks of N k size. The
69 to 2 MB (2^11) of where to find the RAM disk (this used to be the size). Bit
[all …]
DREADME.DAC96064 of the controller and adding new disk drives, most everything can be handled
68 Each DAC960 parallel SCSI controller can support up to 15 disk drives per
70 channel eXtremeRAID 3000 controller supports up to 125 disk drives per loop for
76 through the normal Linux and PC disk partitioning schemes. Logical Drives are
81 DAC960 RAID disk devices are named in the style of the obsolete Device File
86 disks the device names will not change in the event of a disk drive failure.
191 Please note that not all SCSI disk drives are suitable for use with DAC960
197 verify compatibility. Mylex makes available a hard disk compatibility list at
241 large disk arrays it is advisable to enable the 8GB BIOS Geometry (255/63)
277 configuration and status monitoring is then to avoid system downtime when disk
[all …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-4.19/drivers/ide/
Dide-gd.c19 #include "ide-disk.h"
33 static struct ide_disk_obj *ide_disk_get(struct gendisk *disk) in ide_disk_get() argument
38 idkp = ide_drv_g(disk, ide_disk_obj); in ide_disk_get()
69 struct gendisk *g = idkp->disk; in ide_gd_remove()
85 struct gendisk *g = idkp->disk; in ide_disk_release()
96 * reinitialized on resume otherwise the disk
125 spin down the disk in this case, especially since Alpha
131 the disk to expire its write cache. */
185 struct gendisk *disk = bdev->bd_disk; local
190 idkp = ide_disk_get(disk);
[all …]
/kernel/linux/linux-4.19/include/linux/
Dgenhd.h7 * Generic hard disk header file by
25 #define disk_to_dev(disk) (&(disk)->part0.__dev) argument
227 static inline int disk_max_parts(struct gendisk *disk) in disk_max_parts() argument
229 if (disk->flags & GENHD_FL_EXT_DEVT) in disk_max_parts()
231 return disk->minors; in disk_max_parts()
234 static inline bool disk_part_scan_enabled(struct gendisk *disk) in disk_part_scan_enabled() argument
236 return disk_max_parts(disk) > 1 && in disk_part_scan_enabled()
237 !(disk->flags & GENHD_FL_NO_PART_SCAN); in disk_part_scan_enabled()
240 static inline dev_t disk_devt(struct gendisk *disk) in disk_devt() argument
242 return MKDEV(disk->major, disk->first_minor); in disk_devt()
[all …]
/kernel/linux/linux-4.19/Documentation/md/
Draid5-cache.txt3 Raid 4/5/6 could include an extra disk for data cache besides normal RAID
4 disks. The role of RAID disks isn't changed with the cache disk. The cache disk
17 In both modes, all writes to the array will hit cache disk first. This means
18 the cache disk must be fast and sustainable.
32 The write-through cache will cache all data on cache disk first. After the data
33 is safe on the cache disk, the data will be flushed onto RAID disks. The
38 filesystems) after the data is safe on RAID disks, so cache disk failure
39 doesn't cause data loss. Of course cache disk failure means the array is
42 In write-through mode, the cache disk isn't required to be big. Several
49 cached on cache disk. But the main goal of 'write-back' cache is to speed up
[all …]

12345678910>>...103