Searched refs:disk (Results 126 - 150 of 197) sorted by path

12345678

/linux-master/drivers/md/
H A Ddm.h107 int dm_blk_report_zones(struct gendisk *disk, sector_t sector,
H A Dmd.c1274 * it's at the end of the disk.
1318 /* not spare disk */
1504 * 2/ Add info for each disk, keeping track of highest desc_nr (next_spare);
1831 /* not spare disk */
2407 * This is called when an array is started and after a disk has been kicked
3853 /* Cannot find a valid fresh disk */
3855 pr_warn("md: cannot find a valid disk\n");
4735 md_bitmap_unplug(mddev->bitmap); /* flush the bits to disk */
5822 struct gendisk *disk; local
5866 disk
6317 struct gendisk *disk = mddev->gendisk; local
6545 struct gendisk *disk = mddev->gendisk; local
7952 md_open(struct gendisk *disk, blk_mode_t mode) argument
7984 md_release(struct gendisk *disk) argument
7993 md_check_events(struct gendisk *disk, unsigned int clearing) argument
8004 md_free_disk(struct gendisk *disk) argument
8585 struct gendisk *disk = rdev->bdev->bd_disk; local
[all...]
H A Draid0.c171 * we have only one active disk
183 pr_warn("md/raid0:%s: bad disk number %d - aborting!\n",
279 /* disk_shift is first disk index used in the zone */
440 * Convert disk_index to the disk order in which it is read/written.
442 * write the disks starting at disk 3, then the read/write order would
443 * be disk 3, then 0, then 1, and then disk 2 and we want map_disk_shift()
444 * to map the disks as follows 0,1,2,3 => 1,2,3,0. So disk 0 would map
446 * that 'output' space to understand the read/write disk ordering.
465 unsigned int disk; local
[all...]
H A Draid1.c333 * Update disk head position estimator based on IRQ completion info.
335 static inline void update_head_pos(int disk, struct r1bio *r1_bio) argument
339 conf->mirrors[disk].head_position =
344 * Find the disk number which triggered given bio
579 static void update_read_sectors(struct r1conf *conf, int disk, argument
582 struct raid1_info *info = &conf->mirrors[disk];
595 int disk; local
597 for (disk = 0 ; disk < conf->raid_disks * 2 ; disk
626 int disk; local
664 int disk; local
705 is_sequential(struct r1conf *conf, int disk, struct r1bio *r1_bio) argument
716 should_choose_next(struct r1conf *conf, int disk) argument
762 int disk; local
859 int disk; local
1852 raid1_add_conf(struct r1conf *conf, struct md_rdev *rdev, int disk, bool replacement) argument
1876 raid1_remove_conf(struct r1conf *conf, int disk) argument
2766 int disk = -1; local
3068 struct raid1_info *disk; local
[all...]
H A Draid10.c50 * apart on disk, there are adjacent stripes.
338 * Update disk head position estimator based on IRQ completion info.
349 * Find the disk number which triggered given bio
705 * This routine returns the disk from which the requested read should
707 * number - if this matches on the next IO then we use the last disk.
708 * There is also a per-disk 'last know head position' sector that is
711 * perfect sequential match then we pick the disk whose head is closest.
728 int disk, slot; local
761 disk = r10_bio->devs[slot].devnum;
762 rdev = conf->mirrors[disk]
1170 int disk; local
1587 int disk; local
3996 struct raid10_info *disk; local
[all...]
H A Draid5-ppl.c38 * stripe of a 4 disk array, 16k chunk size):
56 * disk of the corresponding stripe. For each member disk there is one ppl_log
57 * used to handle logging for this disk, independently from others. They are
77 * (for a single member disk). New io_units are added to the end of the list
90 /* array of child logs, one for each raid disk */
118 struct md_rdev *rdev; /* array member disk associated with
148 atomic_t pending_flushes; /* how many disk flushes are in progress */
730 * case 0: single data disk write:
740 * case 1: more than one data disk writ
845 int disk; local
[all...]
H A Draid5.c119 /* Find first data disk in a raid6 stripe */
131 static inline int raid6_next_disk(int disk, int raid_disks) argument
133 disk++;
134 return (disk < raid_disks) ? disk : 0;
138 * We need to map each disk to a 'slot', where the data disks are slot
139 * 0 .. raid_disks-3, the parity disk is raid_disks-2 and the Q disk
1773 /* Q disk is one of the missing disks */
2955 * Output: index of the data and parity disk, an
7404 struct disk_info *disk; local
8204 int disk; local
[all...]
/linux-master/drivers/memstick/core/
H A Dms_block.c1682 * cover whole disk.
1943 static DEFINE_IDR(msb_disk_idr); /*set of used disk numbers */
1964 static void msb_bd_free_disk(struct gendisk *disk) argument
1966 struct msb_data *msb = disk->private_data;
2102 msb->disk = blk_mq_alloc_disk(&msb->tag_set, &lim, card);
2103 if (IS_ERR(msb->disk)) {
2104 rc = PTR_ERR(msb->disk);
2107 msb->queue = msb->disk->queue;
2109 sprintf(msb->disk->disk_name, "msblk%d", msb->disk_id);
2110 msb->disk
[all...]
H A Dms_block.h147 struct gendisk *disk; member in struct:msb_data
H A Dmspro_block.c137 struct gendisk *disk; member in struct:mspro_block_data
180 static void mspro_block_bd_free_disk(struct gendisk *disk) argument
182 struct mspro_block_data *msb = disk->private_data;
183 int disk_id = MINOR(disk_devt(disk)) >> MSPRO_BLOCK_PART_SHIFT;
1147 msb->disk = blk_mq_alloc_disk(&msb->tag_set, &lim, card);
1148 if (IS_ERR(msb->disk)) {
1149 rc = PTR_ERR(msb->disk);
1152 msb->queue = msb->disk->queue;
1154 msb->disk->major = major;
1155 msb->disk
[all...]
/linux-master/drivers/message/fusion/
H A Dmptbase.c5154 int disk; local
5161 disk = pRaidEventData->PhysDiskNum;
5174 ioc->name, disk, volume);
5217 ioc->name, disk);
5263 ioc->name, disk);
5273 ioc->name, disk);
5727 * mpt_raid_phys_disk_pg0 - returns phys disk page zero
5729 * @phys_disk_num: io unit unique phys disk num generated by the ioc
5800 * @phys_disk_num: io unit unique phys disk num generated by the ioc
5863 * mpt_raid_phys_disk_pg1 - returns phys disk pag
[all...]
H A Dmptspi.c1108 int disk; member in struct:work_queue_wrapper
1119 int disk = wqw->disk; local
1139 if(vtarget->id != disk)
1147 "Integrated RAID detects new device %d\n", ioc->name, disk);
1148 scsi_scan_target(&ioc->sh->shost_gendev, 1, disk, 0, SCSI_SCAN_RESCAN);
1152 static void mpt_dv_raid(struct _MPT_SCSI_HOST *hd, int disk) argument
1159 "Failed to act on RAID event for physical disk %d\n",
1160 ioc->name, disk);
1165 wqw->disk
1184 int disk = (le32_to_cpu(pEvReply->Data[0]) & 0xFF000000) >> 24; local
[all...]
/linux-master/drivers/mmc/core/
H A Dblock.c109 struct gendisk *disk; member in struct:mmc_blk_data
184 static struct mmc_blk_data *mmc_blk_get(struct gendisk *disk) argument
189 md = disk->private_data;
197 static inline int mmc_get_devidx(struct gendisk *disk) argument
199 int devidx = disk->first_minor / perdev_minors;
208 devidx = mmc_get_devidx(md->disk);
212 md->disk->private_data = NULL;
215 put_disk(md->disk);
276 md->disk->disk_name);
277 set_disk_ro(md->disk,
363 mmc_blk_open(struct gendisk *disk, blk_mode_t mode) argument
381 mmc_blk_release(struct gendisk *disk) argument
842 mmc_blk_alternative_gpt_sector(struct gendisk *disk, sector_t *sector) argument
[all...]
H A Dqueue.c351 struct gendisk *disk; local
379 disk = blk_mq_alloc_disk(&mq->tag_set, &lim, mq);
380 if (IS_ERR(disk))
381 return disk;
382 mq->queue = disk->queue;
401 return disk;
422 struct gendisk *disk; local
463 disk = mmc_alloc_disk(mq, card);
464 if (IS_ERR(disk))
466 return disk;
[all...]
/linux-master/drivers/mtd/
H A Dmtd_blkdevs.c32 put_disk(dev->disk);
185 static int blktrans_open(struct gendisk *disk, blk_mode_t mode) argument
187 struct mtd_blktrans_dev *dev = disk->private_data;
228 static void blktrans_release(struct gendisk *disk) argument
230 struct mtd_blktrans_dev *dev = disk->private_data;
312 * minor numbers and that the disk naming code below can cope
347 new->disk = gd;
348 new->rq = new->disk->queue;
399 put_disk(new->disk);
416 sysfs_remove_group(&disk_to_dev(old->disk)
[all...]
H A Dmtdswap.c1443 d->dev = disk_to_dev(mbd_dev->disk);
/linux-master/drivers/mtd/ubi/
H A Dblock.c230 static int ubiblock_open(struct gendisk *disk, blk_mode_t mode) argument
232 struct ubiblock *dev = disk->private_data;
/linux-master/drivers/nvdimm/
H A Dbus.c623 void nvdimm_check_and_set_ro(struct gendisk *disk) argument
625 struct device *dev = disk_to_dev(disk)->parent;
627 int disk_ro = get_disk_ro(disk);
629 /* catch the disk up with the region ro state */
635 disk->disk_name, nd_region->ro ? "only" : "write");
636 set_disk_ro(disk, nd_region->ro);
H A Dnd.h20 * support and is an input to the geometry/on-disk-format of a
629 void nvdimm_check_and_set_ro(struct gendisk *disk);
H A Dpmem.c426 dax_remove_host(pmem->disk);
429 del_gendisk(pmem->disk);
431 put_disk(pmem->disk);
467 struct gendisk *disk; local
505 disk = blk_alloc_disk(&lim, nid);
506 if (IS_ERR(disk))
507 return PTR_ERR(disk);
508 q = disk->queue;
510 pmem->disk = disk;
[all...]
H A Dpmem.h28 struct gendisk *disk; member in struct:pmem_device
/linux-master/drivers/nvme/host/
H A Dcore.c326 ns->disk ? ns->disk->disk_name : "?",
357 ns ? ns->disk->disk_name : dev_name(nr->ctrl->device),
670 put_disk(ns->disk);
702 struct nvme_ns *ns = req->q->disk->private_data;
1702 static int nvme_open(struct gendisk *disk, blk_mode_t mode) argument
1704 return nvme_ns_open(disk->private_data);
1707 static void nvme_release(struct gendisk *disk) argument
1709 nvme_ns_release(disk->private_data);
1721 static bool nvme_init_integrity(struct gendisk *disk, struc argument
1995 nvme_first_scan(struct gendisk *disk) argument
2265 nvme_report_zones(struct gendisk *disk, sector_t sector, unsigned int nr_zones, report_zones_cb cb, void *data) argument
3718 struct gendisk *disk; local
[all...]
H A Dfault_inject.c59 struct gendisk *disk = req->q->disk; local
63 if (disk) {
64 struct nvme_ns *ns = disk->private_data;
H A Dioctl.c120 struct block_device *bdev = ns ? ns->disk->part0 : NULL;
H A Dmultipath.c59 if (h->disk)
60 blk_mq_unfreeze_queue(h->disk->queue);
69 if (h->disk)
70 blk_mq_freeze_queue_wait(h->disk->queue);
79 if (h->disk)
80 blk_freeze_queue_start(h->disk->queue);
104 bio_set_dev(bio, ns->head->disk->part0);
128 struct gendisk *disk = ns->head->disk; local
130 if (!blk_queue_io_stat(disk
415 nvme_ns_head_open(struct gendisk *disk, blk_mode_t mode) argument
422 nvme_ns_head_release(struct gendisk *disk) argument
428 nvme_ns_head_report_zones(struct gendisk *disk, sector_t sector, unsigned int nr_zones, report_zones_cb cb, void *data) argument
[all...]

Completed in 325 milliseconds

12345678