| /OK3568_Linux_fs/kernel/drivers/block/paride/ |
| H A D | pd.c | 233 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 …]
|
| /OK3568_Linux_fs/kernel/block/ |
| H A D | genhd.c | 43 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 …]
|
| H A D | blk-zoned.c | 121 * @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 …]
|
| H A D | blk-integrity.c | 112 * @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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/admin-guide/ |
| H A D | devices.txt | 20 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 …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | genhd.h | 7 * Generic hard disk header file by 25 #define disk_to_dev(disk) (&(disk)->part0.__dev) argument 229 #define disk_to_cdi(disk) ((disk)->cdi) argument 231 #define disk_to_cdi(disk) NULL argument 245 static inline int disk_max_parts(struct gendisk *disk) in disk_max_parts() argument 247 if (disk->flags & GENHD_FL_EXT_DEVT) in disk_max_parts() 249 return disk->minors; in disk_max_parts() 252 static inline bool disk_part_scan_enabled(struct gendisk *disk) in disk_part_scan_enabled() argument 254 return disk_max_parts(disk) > 1 && in disk_part_scan_enabled() 255 !(disk->flags & GENHD_FL_NO_PART_SCAN); in disk_part_scan_enabled() [all …]
|
| /OK3568_Linux_fs/u-boot/disk/ |
| H A D | part_efi.su | |
| H A D | part.su | |
| /OK3568_Linux_fs/kernel/Documentation/ABI/testing/ |
| H A D | sysfs-fs-f2fs | 1 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 66 What: /sys/fs/f2fs/<disk>/min_ipu_util 72 What: /sys/fs/f2fs/<disk>/min_fsync_blocks 78 What: /sys/fs/f2fs/<disk>/min_seq_blocks [all …]
|
| H A D | sysfs-block | 1 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 …]
|
| H A D | sysfs-block-bcache | 1 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 …]
|
| H A D | sysfs-fs-ext4 | 1 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 …]
|
| /OK3568_Linux_fs/u-boot/spl/disk/ |
| H A D | part_efi.su | |
| H A D | part.su | |
| /OK3568_Linux_fs/kernel/block/partitions/ |
| H A D | core.c | 17 * 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 …]
|
| /OK3568_Linux_fs/u-boot/tpl/disk/ |
| H A D | part.su | |
| /OK3568_Linux_fs/kernel/Documentation/admin-guide/blockdev/ |
| H A D | ramdisk.rst | 2 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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/driver-api/md/ |
| H A D | raid5-cache.rst | 5 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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/power/ |
| H A D | swsusp.rst | 11 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/ide/ |
| H A D | ide-gd.c | 20 #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 …]
|
| /OK3568_Linux_fs/buildroot/boot/grub2/ |
| H A D | 0118-disk-lvm-Don-t-go-beyond-the-end-of-the-data-we-read.patch | 4 Subject: [PATCH] disk/lvm: Don't go beyond the end of the data we read from 5 disk 8 it told us that the PV header/disk locations were way off past the end 9 of the data we read from disk. 19 grub-core/disk/lvm.c | 14 ++++++++++++++ 22 diff --git a/grub-core/disk/lvm.c b/grub-core/disk/lvm.c 24 --- a/grub-core/disk/lvm.c 25 +++ b/grub-core/disk/lvm.c 26 @@ -141,6 +141,20 @@ grub_lvm_detect (grub_disk_t disk, 39 + grub_util_info ("LVM PV header/disk locations are beyond the end of the block");
|
| /OK3568_Linux_fs/kernel/drivers/block/drbd/ |
| H A D | drbd_state.c | 127 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/block/ |
| H A D | virtio_blk.c | 47 /* 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() 308 /* return id (s/n) string for *disk to *id_str 310 static int virtblk_get_id(struct gendisk *disk, char *id_str) in virtblk_get_id() argument 312 struct virtio_blk *vblk = disk->private_data; in virtblk_get_id() 313 struct request_queue *q = vblk->disk->queue; in virtblk_get_id() 325 blk_execute_rq(vblk->disk->queue, vblk->disk, req, false); in virtblk_get_id() 362 static void virtblk_release(struct gendisk *disk, fmode_t mode) in virtblk_release() argument 364 struct virtio_blk *vblk = disk->private_data; in virtblk_release() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/md/bcache/ |
| H A D | writeback.c | 32 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() 209 struct cache_set *c = dc->disk.c; in update_writeback_rate() 215 set_bit(BCACHE_DEV_RATE_DW_RUNNING, &dc->disk.flags); in update_writeback_rate() 223 if (!test_bit(BCACHE_DEV_WB_RUNNING, &dc->disk.flags) || in update_writeback_rate() 225 clear_bit(BCACHE_DEV_RATE_DW_RUNNING, &dc->disk.flags); in update_writeback_rate() 251 if (test_bit(BCACHE_DEV_WB_RUNNING, &dc->disk.flags) && in update_writeback_rate() 261 clear_bit(BCACHE_DEV_RATE_DW_RUNNING, &dc->disk.flags); in update_writeback_rate() 269 if (test_bit(BCACHE_DEV_DETACHING, &dc->disk.flags) || in writeback_delay() 326 atomic_inc(&PTR_BUCKET(dc->disk.c, &w->key, i)->pin); in write_dirty_finish() [all …]
|
| /OK3568_Linux_fs/kernel/fs/ |
| H A D | block_dev.c | 1108 struct gendisk *disk = get_gendisk(bdev->bd_dev, partno); in bdev_get_gendisk() local 1110 if (!disk) in bdev_get_gendisk() 1121 put_disk_and_module(disk); in bdev_get_gendisk() 1124 return disk; in bdev_get_gendisk() 1184 struct gendisk *disk; member 1189 struct gendisk *disk) in bd_find_holder_disk() argument 1194 if (holder->disk == disk) in bd_find_holder_disk() 1210 * bd_link_disk_holder - create symlinks between holding disk and slave bdev 1212 * @disk: the holding disk 1218 * - from "slaves" directory of the holder @disk to the claimed @bdev [all …]
|