/linux-master/block/partitions/ |
H A D | acorn.c | 5 * Scan ADFS partitions on hard disk drives. Unfortunately, there 278 nr_sects = get_capacity(state->disk) - start_sect; 504 * 1. The individual ADFS boot block entries that are placed on the disk. 543 size = get_capacity(state->disk);
|
H A D | aix.c | 70 * read_lba(): Read bytes from disk, starting at given LBA 76 * Description: Reads @count bytes from @state->disk into @buffer. 84 if (!buffer || lba + count / 512 > get_capacity(state->disk) - 1ULL) 110 * Allocates space for pvd and fill it with disk blocks at @lba 135 * Allocates space for lvn and fill it with disk blocks at @lba
|
H A D | amiga.c | 47 unsigned int blksize = 1; /* Multiplier for disk block size */ 56 state->disk->disk_name, blk); 78 state->disk->disk_name, blk); 97 state->disk->disk_name, blk, part); 103 state->disk->disk_name, blk); 127 state->disk->disk_name, cylblk); 134 state->disk->disk_name, cylblk, 144 state->disk->disk_name, part); 165 state->disk->disk_name, part, 171 state->disk [all...] |
H A D | atari.c | 50 if (queue_logical_block_size(state->disk->queue) != 512) 58 hd_size = get_capacity(state->disk);
|
H A D | check.h | 11 struct gendisk *disk; member in struct:parsed_partitions
|
H A D | cmdline.c | 370 parts = cmdline_parts_find(bdev_parts, state->disk->disk_name); 374 disk_size = get_capacity(state->disk) << 9;
|
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 129 state->disk = hd; 285 * Must be called either with open_mutex held, before a disk can be opened or 286 * after all disk users are gone. 288 static struct block_device *add_partition(struct gendisk *disk, int partno, argument 293 struct device *ddev = disk_to_dev(disk); 299 lockdep_assert_held(&disk->open_mutex); 308 if (bdev_is_zoned(disk->part0)) { 310 disk 398 partition_overlaps(struct gendisk *disk, sector_t start, sector_t length, int skip_partno) argument 419 bdev_add_partition(struct gendisk *disk, int partno, sector_t start, sector_t length) argument 449 bdev_del_partition(struct gendisk *disk, int partno) argument 481 bdev_resize_partition(struct gendisk *disk, int partno, sector_t start, sector_t length) argument 508 disk_unlock_native_capacity(struct gendisk *disk) argument 521 blk_add_partition(struct gendisk *disk, struct parsed_partitions *state, int p) argument 571 blk_add_partitions(struct gendisk *disk) argument 632 bdev_disk_changed(struct gendisk *disk, bool invalidate) argument [all...] |
H A D | efi.c | 20 * - check for first/last_usable_lba outside of size of disk 26 * - On-disk structure and copy in memory is *always* LE now - 41 * thing that keeps EFI GUIDs on disk. 61 * sector of an odd-sized disk from user space. No tools have ever 127 * @disk: block device 131 * the part[0] entry for this disk, and is the number of 132 * physical sectors available on the disk. 134 static u64 last_lba(struct gendisk *disk) argument 136 return div_u64(bdev_nr_bytes(disk->part0), 137 queue_logical_block_size(disk 588 struct gendisk *disk = state->disk; local [all...] |
H A D | ibm.c | 120 * - on an ECKD disk it's block 2 121 * - on an FBA disk it's block 1 122 * - on an CMS formatted FBA disk it is sector 1, even if the block size 186 * get start of VTOC from the disk label and then search for format1 253 * the disk, otherwise we need additional information 289 * VM style CMS1 labeled disk 296 /* disk is reserved minidisk */ 327 int (*fn)(struct gendisk *disk, dasd_information2_t *info); 328 struct gendisk *disk = state->disk; local [all...] |
H A D | ldm.c | 101 ldm_error("PRIVHEAD disk size doesn't match real disk size"); 256 * Read and compare all three privheads from disk. 258 * The privheads on disk show the size and location of the main disk area and 260 * @hd, which contains the real size of the disk. 307 num_sects = get_capacity(state->disk); 311 ldm_crit ("Database extends beyond the end of the disk."); 342 * @base: Offset, into @state->disk, of the database 346 * @state->disk an 575 struct vblk *disk; local 852 struct vblk_disk *disk; local 891 struct vblk_disk *disk; local [all...] |
H A D | ldm.h | 60 #define COMP_BASIC 0x02 /* Basic disk */ 174 struct vblk_disk disk; member in union:vblk::__anon45
|
H A D | mac.c | 66 return 0; /* not a MacOS disk */ 138 note_bootable_part(state->disk->part0->bd_dev, found_root,
|
H A D | msdos.c | 143 sector_size = queue_logical_block_size(state->disk->queue) / 512; 303 #define BSD_DISKMAGIC (0x82564557UL) /* The disk magic number */ 434 #define UNIXWARE_DISKMAGIC (0xCA5E600DUL) /* The disk magic number */ 506 /* I omit the 0th slice as it is the same as whole disk. */ 591 sector_size = queue_logical_block_size(state->disk->queue) / 512; 645 /* If this is an EFI GPT disk, msdos should ignore it. */
|
H A D | sgi.c | 54 state->disk->disk_name, be32_to_cpu(magic));*/ 65 state->disk->disk_name); 69 /* All SGI disk labels have 16 partitions, disks under Linux only
|
H A D | sun.c | 78 state->disk->disk_name, be16_to_cpu(label->magic)); */ 88 state->disk->disk_name);
|
/linux-master/drivers/block/ |
H A D | amiflop.c | 34 * needed for the disk mechanic. 36 * february 1996 fixed error recovery and multiple disk access 92 #define DSKRDY (0x1<<5) /* disk ready when low */ 94 #define DSKPROT (0x1<<3) /* disk protected when low */ 95 #define DSKCHANGE (0x1<<2) /* low when disk removed */ 115 #define DMAON (1<<14) /* disk DMA enabled */ 116 #define DISKWRITE (1<<13) /* disk write bit in DSKLEN enabled */ 196 int blocks; /* total # blocks on disk */ 199 int disk; /* disk i member in struct:amiga_floppy_struct 931 putsec(int disk, unsigned long *raw, int cnt) argument 965 amiga_write(int disk) argument 1322 dos_write(int disk) argument 1656 floppy_open(struct gendisk *disk, blk_mode_t mode) argument 1709 floppy_release(struct gendisk *disk) argument 1736 amiga_check_events(struct gendisk *disk, unsigned int clearing) argument 1779 struct gendisk *disk; local [all...] |
H A D | ataflop.c | 14 * - Autodetection of disk format (DD/HD); untested yet, because I 33 * the FDC will otherwise wait forever when no disk is inserted... 37 * - more/other disk formats 42 * - Make disk format numbering independent from minors 48 * - disk formatting 61 * - Maybe a better strategy for disk change detection (does anyone 179 { "D820", 10,1640, 0, 0}, /* 3: DD disk with 82 tracks/10 sectors */ 227 /* Array for translating minors into disk formats */ 269 * Maximum disk size (in kilobytes). This default is used whenever the 270 * current disk siz 301 struct gendisk *disk[NUM_DISK_MINORS]; member in struct:atari_floppy_struct 1435 floppy_check_events(struct gendisk *disk, unsigned int clearing) argument 1458 floppy_revalidate(struct gendisk *disk) argument 1587 struct gendisk *disk = bdev->bd_disk; local 1920 floppy_open(struct gendisk *disk, blk_mode_t mode) argument 1957 floppy_unlocked_open(struct gendisk *disk, blk_mode_t mode) argument 1968 floppy_release(struct gendisk *disk) argument 1995 struct gendisk *disk; local [all...] |
H A D | brd.c | 270 MODULE_PARM_DESC(rd_size, "Size of each RAM disk in kbytes."); 300 struct gendisk *disk; local 330 disk = brd->brd_disk = blk_alloc_disk(&lim, NUMA_NO_NODE); 331 if (IS_ERR(disk)) { 332 err = PTR_ERR(disk); 335 disk->major = RAMDISK_MAJOR; 336 disk->first_minor = i * max_part; 337 disk->minors = max_part; 338 disk->fops = &brd_fops; 339 disk [all...] |
/linux-master/drivers/block/aoe/ |
H A D | aoeblk.c | 36 struct gendisk *disk = dev_to_disk(dev); local 37 struct aoedev *d = disk->private_data; 48 struct gendisk *disk = dev_to_disk(dev); local 49 struct aoedev *d = disk->private_data; 59 struct gendisk *disk = dev_to_disk(dev); local 60 struct aoedev *d = disk->private_data; 97 struct gendisk *disk = dev_to_disk(dev); local 98 struct aoedev *d = disk->private_data; 105 struct gendisk *disk = dev_to_disk(dev); local 106 struct aoedev *d = disk 207 aoeblk_open(struct gendisk *disk, blk_mode_t mode) argument 235 aoeblk_release(struct gendisk *disk) argument [all...] |
/linux-master/drivers/block/drbd/ |
H A D | drbd_actlog.c | 31 * in the on disk ring buffer */ 88 device->state.disk <= D_FAILED); 151 if (op != REQ_OP_WRITE && device->state.disk == D_DISKLESS && device->ldev == NULL) 303 /* transaction number, modulo on-disk ring buffer wrap around */ 306 /* ... to aligned 4k on disk block */ 312 /* ... plus offset to the on disk position */ 408 drbd_err(device, "disk is %s, cannot start al transaction\n", 409 drbd_disk_str(device->state.disk)); 414 if (device->state.disk < D_INCONSISTENT) { 416 "disk i [all...] |
H A D | drbd_int.h | 236 * transactions, local disk or peer. 32 bit "jiffies" are good enough, 243 /* local disk */ 416 MD_DIRTY, /* current uuids and flags not yet on disk */ 430 WAS_IO_ERROR, /* Local disk failed, returned IO error */ 431 WAS_READ_ERROR, /* Local disk READ failed (set additionally to the above) */ 432 FORCE_DETACH, /* Force-detach from local disk, aborting any pending local IO */ 768 /* things that are stored as / read from meta data on disk */ 774 sector_t p_size; /* partner's disk size */ 786 /* Used after attach while negotiating new disk state. */ 861 struct list_head active_ee; /* IO in progress (P_DATA gets written to disk) */ [all...] |
H A D | drbd_main.c | 52 static int drbd_open(struct gendisk *disk, blk_mode_t mode); 149 io_allowed = (device->state.disk >= mins); 290 * tl_abort_disk_io() - Abort disk I/O for all requests for a certain device in the TL 849 uuid_flags |= device->new_state_tmp.disk == D_INCONSISTENT ? 4 : 0; 891 D_ASSERT(device, device->state.disk == D_UP_TO_DATE); 1280 drbd_err(device, "Failed to write bitmap to disk!\n"); 1889 static int drbd_open(struct gendisk *disk, blk_mode_t mode) argument 1891 struct drbd_device *device = disk->private_data; 1945 .disk = D_DISKLESS, 2689 struct gendisk *disk; local [all...] |
H A D | drbd_nl.c | 539 ex_to_string = "peer unreachable, doing nothing since disk != UpToDate"; 547 mask.disk = D_MASK; 548 val.disk = D_OUTDATED; 654 (device->state.disk < D_UP_TO_DATE && 655 device->state.disk >= D_INCONSISTENT)) { 656 mask.disk = D_MASK; 657 val.disk = D_UP_TO_DATE; 663 device->state.disk == D_CONSISTENT && mask.pdsk == 0) { 667 val.disk = D_UP_TO_DATE; 668 mask.disk [all...] |
H A D | drbd_proc.c | 236 ds .. disk state (local/remote) 241 dw .. disk write 242 dr .. disk read 263 state.disk == D_DISKLESS && 278 drbd_disk_str(state.disk),
|
H A D | drbd_receiver.c | 1269 drbd_info(device, "local disk FLUSH FAILED with status %d\n", bio->bi_status); 1339 * if disk-timeout is set? */ 1898 drbd_err(device, "request from peer beyond end of local disk: " 2165 /* data is submitted to disk within recv_resync_read. 2171 drbd_err(device, "Can not write resync data to local disk.\n"); 2692 /* In case we have the only disk of the cluster, */ 2758 struct gendisk *disk = device->ldev->backing_bdev->bd_disk; local 2771 curr_events = (int)part_stat_read_accum(disk->part0, sectors) - 3271 device->state.disk >= D_NEGOTIATING ? drbd_bm_total_weight(device) : 0, 0); 3412 device->state.disk > [all...] |