Searched refs:gendisk (Results 1 - 155 of 155) sorted by relevance

/linux-4.4.14/drivers/block/rsxx/
H A Ddev.c116 &card->gendisk->part0); disk_stats_start()
123 generic_end_io_acct(bio_data_dir(bio), &card->gendisk->part0, disk_stats_complete()
137 if (!card->eeh_state && card->gendisk) bio_dma_done_cb()
161 if (bio_end_sector(bio) > get_capacity(card->gendisk)) rsxx_make_request()
230 set_capacity(card->gendisk, card->size8 >> 9); rsxx_attach_dev()
232 set_capacity(card->gendisk, 0); rsxx_attach_dev()
233 add_disk(card->gendisk); rsxx_attach_dev()
248 del_gendisk(card->gendisk); rsxx_detach_dev()
277 card->gendisk = alloc_disk(blkdev_minors); rsxx_setup_dev()
278 if (!card->gendisk) { rsxx_setup_dev()
309 snprintf(card->gendisk->disk_name, sizeof(card->gendisk->disk_name), rsxx_setup_dev()
311 card->gendisk->driverfs_dev = &card->dev->dev; rsxx_setup_dev()
312 card->gendisk->major = card->major; rsxx_setup_dev()
313 card->gendisk->first_minor = 0; rsxx_setup_dev()
314 card->gendisk->fops = &rsxx_fops; rsxx_setup_dev()
315 card->gendisk->private_data = card; rsxx_setup_dev()
316 card->gendisk->queue = card->queue; rsxx_setup_dev()
326 put_disk(card->gendisk); rsxx_destroy_dev()
327 card->gendisk = NULL; rsxx_destroy_dev()
H A Drsxx_priv.h173 struct gendisk *gendisk; member in struct:rsxx_cardinfo
H A Dcore.c249 card->debugfs_dir = debugfs_create_dir(card->gendisk->disk_name, NULL); rsxx_debugfs_dev_new()
453 set_capacity(card->gendisk, card->size8 >> 9); card_state_change()
472 set_capacity(card->gendisk, 0); card_state_change()
/linux-4.4.14/include/linux/
H A Dgenhd.h20 #define dev_to_disk(device) container_of((device), struct gendisk, part0.__dev)
178 struct gendisk { struct
188 char *(*devnode)(struct gendisk *gd, umode_t *mode);
218 static inline struct gendisk *part_to_disk(struct hd_struct *part) part_to_disk()
253 static inline int disk_max_parts(struct gendisk *disk) disk_max_parts()
260 static inline bool disk_part_scan_enabled(struct gendisk *disk) disk_part_scan_enabled()
266 static inline dev_t disk_devt(struct gendisk *disk) disk_devt()
276 extern struct hd_struct *disk_get_part(struct gendisk *disk, int partno);
293 struct gendisk *disk;
300 struct gendisk *disk, unsigned int flags);
304 extern struct hd_struct *disk_map_sector_rcu(struct gendisk *disk,
415 static inline struct partition_meta_info *alloc_part_info(struct gendisk *disk) alloc_part_info()
432 extern void add_disk(struct gendisk *disk);
433 extern void del_gendisk(struct gendisk *gp);
434 extern struct gendisk *get_gendisk(dev_t dev, int *partno);
435 extern struct block_device *bdget_disk(struct gendisk *disk, int partno);
438 extern void set_disk_ro(struct gendisk *disk, int flag);
440 static inline int get_disk_ro(struct gendisk *disk) get_disk_ro()
445 extern void disk_block_events(struct gendisk *disk);
446 extern void disk_unblock_events(struct gendisk *disk);
447 extern void disk_flush_events(struct gendisk *disk, unsigned int mask);
448 extern unsigned int disk_clear_events(struct gendisk *disk, unsigned int mask);
451 extern void add_disk_randomness(struct gendisk *disk);
452 extern void rand_initialize_disk(struct gendisk *disk);
458 static inline sector_t get_capacity(struct gendisk *disk) get_capacity()
462 static inline void set_capacity(struct gendisk *disk, sector_t size) set_capacity()
617 extern char *disk_name (struct gendisk *hd, int partno, char *buf);
619 extern int disk_expand_part_tbl(struct gendisk *disk, int target);
620 extern int rescan_partitions(struct gendisk *disk, struct block_device *bdev);
621 extern int invalidate_partitions(struct gendisk *disk, struct block_device *bdev);
622 extern struct hd_struct * __must_check add_partition(struct gendisk *disk,
628 extern void delete_partition(struct gendisk *, int);
631 extern struct gendisk *alloc_disk_node(int minors, int node_id);
632 extern struct gendisk *alloc_disk(int minors);
633 extern struct kobject *get_disk(struct gendisk *disk);
634 extern void put_disk(struct gendisk *disk);
693 * bd_mutex or gendisk bdev bd_mutex, should be done using this
743 extern void blk_integrity_add(struct gendisk *);
744 extern void blk_integrity_del(struct gendisk *);
745 extern void blk_integrity_revalidate(struct gendisk *);
747 static inline void blk_integrity_add(struct gendisk *disk) { } blk_integrity_del()
748 static inline void blk_integrity_del(struct gendisk *disk) { } blk_integrity_revalidate()
749 static inline void blk_integrity_revalidate(struct gendisk *disk) { } blk_integrity_revalidate()
H A Damifd.h58 struct gendisk *gendisk; member in struct:amiga_floppy_struct
H A Dblkdev.h152 struct gendisk *rq_disk;
764 extern int blk_register_queue(struct gendisk *disk);
765 extern void blk_unregister_queue(struct gendisk *disk);
792 extern int scsi_cmd_ioctl(struct request_queue *, struct gendisk *, fmode_t,
794 extern int sg_scsi_ioctl(struct request_queue *, struct gendisk *, fmode_t,
816 extern int blk_execute_rq(struct request_queue *, struct gendisk *,
818 extern void blk_execute_rq_nowait(struct request_queue *, struct gendisk *,
986 extern void disk_stack_limits(struct gendisk *disk, struct block_device *bdev,
1492 extern void blk_integrity_register(struct gendisk *, struct blk_integrity *);
1493 extern void blk_integrity_unregister(struct gendisk *);
1494 extern int blk_integrity_compare(struct gendisk *, struct gendisk *);
1503 static inline struct blk_integrity *blk_get_integrity(struct gendisk *disk) blk_get_integrity()
1560 struct gendisk;
1582 static inline struct blk_integrity *blk_get_integrity(struct gendisk *disk) blk_get_integrity()
1586 static inline int blk_integrity_compare(struct gendisk *a, struct gendisk *b) blk_integrity_compare()
1590 static inline void blk_integrity_register(struct gendisk *d, blk_integrity_register()
1594 static inline void blk_integrity_unregister(struct gendisk *d) blk_integrity_unregister()
1633 void (*release) (struct gendisk *, fmode_t);
1639 unsigned int (*check_events) (struct gendisk *disk,
1642 int (*media_changed) (struct gendisk *);
1643 void (*unlock_native_capacity) (struct gendisk *);
1644 int (*revalidate_disk) (struct gendisk *);
H A Dblk-mq.h179 int blk_mq_register_disk(struct gendisk *);
180 void blk_mq_unregister_disk(struct gendisk *);
H A Dlightnvm.h115 struct gendisk *disk;
351 typedef void *(nvm_tgt_init_fn)(struct nvm_dev *, struct gendisk *, int, int);
H A Dide.h377 int (*init_media)(struct ide_drive_s *, struct gendisk *);
378 int (*set_doorlock)(struct ide_drive_s *, struct gendisk *,
1138 int ide_queue_pc_tail(ide_drive_t *, struct gendisk *, struct ide_atapi_pc *,
1141 int ide_do_test_unit_ready(ide_drive_t *, struct gendisk *);
1142 int ide_do_start_stop(ide_drive_t *, struct gendisk *, int);
1143 int ide_set_media_lock(ide_drive_t *, struct gendisk *, int);
1183 void ide_init_disk(struct gendisk *, ide_drive_t *);
1449 void ide_register_region(struct gendisk *); ide_acpi_set_state()
1450 void ide_unregister_region(struct gendisk *); ide_acpi_set_state()
H A Dcdrom.h41 struct gendisk *disk; /* matching block layer disk */
H A Dpktcdvd.h192 struct gendisk *disk;
H A Dfs.h470 struct gendisk * bd_disk;
2326 extern int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk);
2328 struct gendisk *disk);
2331 struct gendisk *disk) bd_link_disk_holder()
2336 struct gendisk *disk) bd_unlink_disk_holder()
2397 extern void check_disk_size_change(struct gendisk *disk,
2399 extern int revalidate_disk(struct gendisk *);
2402 extern int invalidate_partition(struct gendisk *, int);
H A Dblk-cgroup.h211 struct gendisk *disk;
H A Ddevice-mapper.h404 struct gendisk *dm_disk(struct mapped_device *md);
/linux-4.4.14/drivers/block/
H A Dps3disk.c45 struct gendisk *gendisk; member in struct:ps3disk_private
410 struct gendisk *gendisk; ps3disk_probe() local
476 gendisk = alloc_disk(PS3DISK_MINORS); ps3disk_probe()
477 if (!gendisk) { ps3disk_probe()
484 priv->gendisk = gendisk; ps3disk_probe()
485 gendisk->major = ps3disk_major; ps3disk_probe()
486 gendisk->first_minor = devidx * PS3DISK_MINORS; ps3disk_probe()
487 gendisk->fops = &ps3disk_fops; ps3disk_probe()
488 gendisk->queue = queue; ps3disk_probe()
489 gendisk->private_data = dev; ps3disk_probe()
490 gendisk->driverfs_dev = &dev->sbd.core; ps3disk_probe()
491 snprintf(gendisk->disk_name, sizeof(gendisk->disk_name), PS3DISK_NAME, ps3disk_probe()
494 set_capacity(gendisk, ps3disk_probe()
499 gendisk->disk_name, priv->model, priv->raw_capacity >> 11, ps3disk_probe()
500 get_capacity(gendisk) >> 11); ps3disk_probe()
502 add_disk(gendisk); ps3disk_probe()
527 __clear_bit(MINOR(disk_devt(priv->gendisk)) / PS3DISK_MINORS, ps3disk_remove()
530 del_gendisk(priv->gendisk); ps3disk_remove()
532 put_disk(priv->gendisk); ps3disk_remove()
H A Dps3vram.c70 struct gendisk *gendisk; member in struct:ps3vram_priv
631 struct gendisk *gendisk; ps3vram_probe() local
763 gendisk = alloc_disk(1); ps3vram_probe()
764 if (!gendisk) { ps3vram_probe()
770 priv->gendisk = gendisk; ps3vram_probe()
771 gendisk->major = ps3vram_major; ps3vram_probe()
772 gendisk->first_minor = 0; ps3vram_probe()
773 gendisk->fops = &ps3vram_fops; ps3vram_probe()
774 gendisk->queue = queue; ps3vram_probe()
775 gendisk->private_data = dev; ps3vram_probe()
776 gendisk->driverfs_dev = &dev->core; ps3vram_probe()
777 strlcpy(gendisk->disk_name, DEVICE_NAME, sizeof(gendisk->disk_name)); ps3vram_probe()
778 set_capacity(gendisk, priv->size >> 9); ps3vram_probe()
781 gendisk->disk_name, get_capacity(gendisk) >> 11); ps3vram_probe()
783 add_disk(gendisk); ps3vram_probe()
817 del_gendisk(priv->gendisk); ps3vram_remove()
818 put_disk(priv->gendisk); ps3vram_remove()
H A Dloop.h65 struct gendisk *lo_disk;
H A Dosdblk.c106 struct gendisk *disk; /* blkdev's gendisk and rq */
383 struct gendisk *disk = osdev->disk; osdblk_free_disk()
397 struct gendisk *disk; osdblk_init_disk()
407 /* create gendisk info */ osdblk_init_disk()
H A Dvirtio_blk.c35 struct gendisk *disk;
236 static int virtblk_get_id(struct gendisk *disk, char *id_str) virtblk_get_id()
264 struct gendisk *disk = bdev->bd_disk; virtblk_ioctl()
318 struct gendisk *disk = dev_to_disk(dev); virtblk_serial_show()
507 struct gendisk *disk = dev_to_disk(dev); virtblk_cache_type_store()
529 struct gendisk *disk = dev_to_disk(dev); virtblk_cache_type_show()
H A Dcciss.c168 static void cciss_release(struct gendisk *disk, fmode_t mode);
173 static int cciss_revalidate(struct gendisk *disk);
1081 static inline ctlr_info_t *get_host(struct gendisk *disk) get_host()
1086 static inline drive_info_struct *get_drv(struct gendisk *disk) get_drv()
1143 static void cciss_release(struct gendisk *disk, fmode_t mode) cciss_release()
1462 struct gendisk *disk, void __user *argp) cciss_getluninfo()
1719 struct gendisk *disk = bdev->bd_disk; cciss_ioctl()
1810 blk_start_queue(h->gendisk[curr_queue]->queue); cciss_check_queues()
1947 static int cciss_add_disk(ctlr_info_t *h, struct gendisk *disk, cciss_add_disk()
2005 struct gendisk *disk; cciss_update_drive_info()
2112 disk = h->gendisk[drv_index]; cciss_update_drive_info()
2201 put_disk(h->gendisk[drv_index]); cciss_free_gendisk()
2202 h->gendisk[drv_index] = NULL; cciss_free_gendisk()
2206 * and allocates a gendisk if needed, and sets the lunid
2223 /*Check if the gendisk needs to be allocated */ cciss_add_gendisk()
2224 if (!h->gendisk[drv_index]) { cciss_add_gendisk()
2225 h->gendisk[drv_index] = cciss_add_gendisk()
2227 if (!h->gendisk[drv_index]) { cciss_add_gendisk()
2259 struct gendisk *disk; cciss_add_controller_node()
2262 if (h->gendisk[0] != NULL) /* already did this? Then bail. */ cciss_add_controller_node()
2275 disk = h->gendisk[drv_index]; cciss_add_controller_node()
2471 struct gendisk *disk; deregister_disk()
2479 disk = h->gendisk[drv_index]; deregister_disk()
2482 if (clear_all || (h->gendisk[0] == disk)) { deregister_disk()
2494 if (h->gendisk[0] != disk) { deregister_disk()
2515 if (h->gendisk[i] == disk) { deregister_disk()
2516 h->gendisk[i] = NULL; deregister_disk()
2959 static int cciss_revalidate(struct gendisk *disk) cciss_revalidate()
4443 if (h->gendisk[i] != NULL) free_hba()
4444 put_disk(h->gendisk[i]); free_hba()
5101 h->gendisk[j] = NULL; cciss_init_one()
5286 struct gendisk *disk = h->gendisk[j]; cciss_remove_one()
H A Dswim3.c45 static struct gendisk *disks[MAX_FLOPPIES];
255 static void floppy_release(struct gendisk *disk, fmode_t mode);
256 static unsigned int floppy_check_events(struct gendisk *disk,
258 static int floppy_revalidate(struct gendisk *disk);
1024 static void floppy_release(struct gendisk *disk, fmode_t mode) floppy_release()
1038 static unsigned int floppy_check_events(struct gendisk *disk, floppy_check_events()
1045 static int floppy_revalidate(struct gendisk *disk) floppy_revalidate()
1206 struct gendisk *disk; swim3_attach()
H A Dz2ram.c67 static struct gendisk *z2ram_gendisk;
312 z2_release(struct gendisk *disk, fmode_t mode) z2_release()
H A Dcpqarray.c129 static struct gendisk *ida_gendisk[MAX_CTLR][NWD];
163 static void ida_release(struct gendisk *disk, fmode_t mode);
177 static int ida_revalidate(struct gendisk *disk);
187 static inline drv_info_t *get_drv(struct gendisk *disk) get_drv()
192 static inline ctlr_info_t *get_host(struct gendisk *disk) get_host()
465 struct gendisk *disk = ida_gendisk[i][j]; cpqarray_register_ctlr()
859 static void ida_release(struct gendisk *disk, fmode_t mode) ida_release()
1540 struct gendisk *disk = ida_gendisk[ctlr][i]; revalidate_allvol()
1556 struct gendisk *disk = ida_gendisk[ctlr][i]; revalidate_allvol()
1572 static int ida_revalidate(struct gendisk *disk) ida_revalidate()
H A Dswim.c192 struct gendisk *disk;
676 static void floppy_release(struct gendisk *disk, fmode_t mode) floppy_release()
741 static unsigned int floppy_check_events(struct gendisk *disk, floppy_check_events()
749 static int floppy_revalidate(struct gendisk *disk) floppy_revalidate()
H A Dcciss.h133 struct gendisk *gendisk[CISS_MAX_LUN]; member in struct:ctlr_info
H A Dnbd.c56 struct gendisk *disk;
394 struct gendisk *disk = dev_to_disk(dev); pid_show()
1031 struct gendisk *disk = alloc_disk(1 << part_shift); nbd_init()
1037 * every gendisk to have its very own request_queue struct. nbd_init()
1067 struct gendisk *disk = nbd_dev[i].disk; nbd_init()
1107 struct gendisk *disk = nbd_dev[i].disk; nbd_cleanup()
H A Damiflop.c1359 q = unit[fdc_queue].gendisk->queue; set_next_request()
1628 set_capacity(unit[drive].gendisk, unit[drive].blocks); floppy_open()
1637 static void floppy_release(struct gendisk *disk, fmode_t mode) floppy_release()
1665 static unsigned amiga_check_events(struct gendisk *disk, unsigned int clearing) amiga_check_events()
1710 struct gendisk *disk; fd_probe_drives()
1719 unit[drive].gendisk = disk; fd_probe_drives()
1759 return get_disk(unit[drive].gendisk); floppy_find()
1847 struct request_queue *q = unit[i].gendisk->queue;
1848 del_gendisk(unit[i].gendisk);
1849 put_disk(unit[i].gendisk);
H A Dsunvdc.c52 struct gendisk *disk;
112 struct gendisk *disk = bdev->bd_disk; vdc_getgeo()
134 struct gendisk *disk; vdc_ioctl()
750 struct gendisk *g; probe_disk()
786 printk(KERN_ERR PFX "%s: Could not allocate gendisk.\n", probe_disk()
H A Dnull_blk.c36 struct gendisk *disk;
577 static void null_release(struct gendisk *disk, fmode_t mode) null_release()
646 struct gendisk *disk; null_add_dev()
H A Dbrd.c40 struct gendisk *brd_disk;
480 struct gendisk *disk; brd_alloc()
H A Dxen-blkfront.c124 * hang in private_data off the gendisk structure. We may end up
132 struct gendisk *gd;
444 struct gendisk *gd = info->gd; blkif_ioctl()
782 static int xlvbd_init_blk_queue(struct gendisk *gd, u16 sector_size, xlvbd_init_blk_queue()
935 struct gendisk *gd; xlvbd_alloc_gendisk()
2129 struct gendisk *disk; blkfront_remove()
2183 struct gendisk *disk = bdev->bd_disk; blkif_open()
2209 static void blkif_release(struct gendisk *disk, fmode_t mode) blkif_release()
H A Dxsysace.c211 struct gendisk *gd;
870 static unsigned int ace_check_events(struct gendisk *gd, unsigned int clearing) ace_check_events()
878 static int ace_revalidate_disk(struct gendisk *gd) ace_revalidate_disk()
918 static void ace_release(struct gendisk *disk, fmode_t mode) ace_release()
H A Dataflop.c221 struct gendisk *disk;
372 static void floppy_release(struct gendisk *disk, fmode_t mode);
1328 static unsigned int floppy_check_events(struct gendisk *disk, floppy_check_events()
1351 static int floppy_revalidate(struct gendisk *disk) floppy_revalidate()
1512 struct gendisk *disk = bdev->bd_disk; fd_locked_ioctl()
1889 static void floppy_release(struct gendisk *disk, fmode_t mode) floppy_release()
H A Dhd.c136 static struct gendisk *hd_gendisk[MAX_HD];
736 struct gendisk *disk = alloc_disk(64); hd_init()
H A Dsx8.c245 struct gendisk *disk;
1334 struct gendisk *disk = port->disk; carm_fsm_task()
1497 struct gendisk *disk; carm_init_disks()
1539 struct gendisk *disk = host->port[i].disk; carm_free_disks()
H A Dumem.c146 static struct gendisk *mm_gendisk[MM_MAXCARDS];
762 static int mm_revalidate(struct gendisk *disk) mm_revalidate()
1092 struct gendisk *disk = mm_gendisk[i]; mm_init()
H A Dpktcdvd.c2317 static void pkt_close(struct gendisk *disk, fmode_t mode) pkt_close()
2690 static unsigned int pkt_check_events(struct gendisk *disk, pkt_check_events()
2694 struct gendisk *attached_disk; pkt_check_events()
2714 static char *pktcdvd_devnode(struct gendisk *gd, umode_t *mode) pktcdvd_devnode()
2727 struct gendisk *disk; pkt_setup_dev()
H A Dloop.c720 struct gendisk *disk = dev_to_disk(dev); loop_attr_show()
1564 static void lo_release(struct gendisk *disk, fmode_t mode) lo_release()
1720 struct gendisk *disk; loop_add()
H A Drbd.c339 struct gendisk *disk; /* blkdev's gendisk and rq */
565 static void rbd_release(struct gendisk *disk, fmode_t mode) rbd_release()
3485 struct gendisk *disk = rbd_dev->disk; rbd_free_disk()
3724 struct gendisk *disk; rbd_init_disk()
3729 /* create gendisk info */ rbd_init_disk()
H A DDAC960.c80 struct gendisk *disk = bdev->bd_disk; DAC960_open()
109 struct gendisk *disk = bdev->bd_disk; DAC960_getgeo()
143 static unsigned int DAC960_check_events(struct gendisk *disk, DAC960_check_events()
154 static int DAC960_revalidate_disk(struct gendisk *disk) DAC960_revalidate_disk()
2532 struct gendisk *disk = Controller->disks[n]; DAC960_RegisterBlockDevice()
2569 /* does order matter when deleting gendisk and cleanup in request queue? */ DAC960_UnregisterBlockDevice()
H A Dfloppy.c411 static struct gendisk *disks[N_DRIVE];
3621 static void floppy_release(struct gendisk *disk, fmode_t mode) floppy_release()
3740 static unsigned int floppy_check_events(struct gendisk *disk, floppy_check_events()
3835 static int floppy_revalidate(struct gendisk *disk) floppy_revalidate()
H A Dmg_disk.c114 struct gendisk *gd;
H A Dskd_main.c284 struct gendisk *disk;
1262 struct gendisk *disk = bdev->bd_disk; skd_bdev_ioctl()
4387 struct gendisk *disk; skd_cons_disk()
4680 struct gendisk *disk = skdev->disk; skd_free_disk()
H A DDAC960.h2318 struct gendisk *disks[DAC960_MaxLogicalDrives];
/linux-4.4.14/block/
H A Dgenhd.c2 * gendisk handling
42 static void disk_alloc_events(struct gendisk *disk);
43 static void disk_add_events(struct gendisk *disk);
44 static void disk_del_events(struct gendisk *disk);
45 static void disk_release_events(struct gendisk *disk);
61 struct hd_struct *disk_get_part(struct gendisk *disk, int partno) disk_get_part()
95 void disk_part_iter_init(struct disk_part_iter *piter, struct gendisk *disk, disk_part_iter_init()
203 * @disk: gendisk of interest
216 struct hd_struct *disk_map_sector_rcu(struct gendisk *disk, sector_t sector) disk_map_sector_rcu()
414 struct gendisk *disk = part_to_disk(part); blk_alloc_devt()
494 struct gendisk *p = data; exact_match()
501 struct gendisk *p = data; exact_lock()
508 static void register_disk(struct gendisk *disk) register_disk()
583 void add_disk(struct gendisk *disk) add_disk()
637 void del_gendisk(struct gendisk *disk) del_gendisk()
683 struct gendisk *get_gendisk(dev_t devt, int *partno) get_gendisk()
685 struct gendisk *disk = NULL; get_gendisk()
710 * bdget_disk - do bdget() by gendisk and partition number
711 * @disk: gendisk of interest
722 struct block_device *bdget_disk(struct gendisk *disk, int partno) bdget_disk()
748 struct gendisk *disk = dev_to_disk(dev); printk_all_partitions()
849 struct gendisk *sgp = v; show_partition()
926 struct gendisk *disk = dev_to_disk(dev); disk_range_show()
934 struct gendisk *disk = dev_to_disk(dev); disk_ext_range_show()
942 struct gendisk *disk = dev_to_disk(dev); disk_removable_show()
951 struct gendisk *disk = dev_to_disk(dev); disk_ro_show()
959 struct gendisk *disk = dev_to_disk(dev); disk_capability_show()
968 struct gendisk *disk = dev_to_disk(dev); disk_alignment_offset_show()
977 struct gendisk *disk = dev_to_disk(dev); disk_discard_alignment_show()
1043 static void disk_replace_part_tbl(struct gendisk *disk, disk_replace_part_tbl()
1070 int disk_expand_part_tbl(struct gendisk *disk, int partno) disk_expand_part_tbl()
1109 struct gendisk *disk = dev_to_disk(dev); disk_release()
1127 struct gendisk *disk = dev_to_disk(dev); block_devnode()
1151 struct gendisk *gp = v; diskstats_show()
1228 struct gendisk *disk = dev_to_disk(dev); blk_lookup_devt()
1255 struct gendisk *alloc_disk(int minors) alloc_disk()
1261 struct gendisk *alloc_disk_node(int minors, int node_id) alloc_disk_node()
1263 struct gendisk *disk; alloc_disk_node()
1265 disk = kzalloc_node(sizeof(struct gendisk), GFP_KERNEL, node_id); alloc_disk_node()
1305 struct kobject *get_disk(struct gendisk *disk) get_disk()
1326 void put_disk(struct gendisk *disk) put_disk()
1334 static void set_disk_ro_uevent(struct gendisk *gd, int ro) set_disk_ro_uevent()
1351 void set_disk_ro(struct gendisk *disk, int flag) set_disk_ro()
1378 int invalidate_partition(struct gendisk *disk, int partno) invalidate_partition()
1397 struct gendisk *disk; /* the associated disk */
1426 static unsigned long disk_events_poll_jiffies(struct gendisk *disk) disk_events_poll_jiffies()
1459 void disk_block_events(struct gendisk *disk) disk_block_events()
1484 static void __disk_unblock_events(struct gendisk *disk, bool check_now) __disk_unblock_events()
1524 void disk_unblock_events(struct gendisk *disk) disk_unblock_events()
1542 void disk_flush_events(struct gendisk *disk, unsigned int mask) disk_flush_events()
1568 unsigned int disk_clear_events(struct gendisk *disk, unsigned int mask) disk_clear_events()
1627 struct gendisk *disk = ev->disk; disk_check_events()
1692 struct gendisk *disk = dev_to_disk(dev); disk_events_show()
1700 struct gendisk *disk = dev_to_disk(dev); disk_events_async_show()
1709 struct gendisk *disk = dev_to_disk(dev); disk_events_poll_msecs_show()
1718 struct gendisk *disk = dev_to_disk(dev); disk_events_poll_msecs_store()
1787 static void disk_alloc_events(struct gendisk *disk) disk_alloc_events()
1811 static void disk_add_events(struct gendisk *disk) disk_add_events()
1832 static void disk_del_events(struct gendisk *disk) disk_del_events()
1846 static void disk_release_events(struct gendisk *disk) disk_release_events()
H A Dblk-integrity.c140 * function can be used to check whether two gendisk devices have
143 int blk_integrity_compare(struct gendisk *gd1, struct gendisk *gd2) blk_integrity_compare()
248 struct gendisk *disk = container_of(kobj, struct gendisk, integrity_kobj); integrity_attr_show()
260 struct gendisk *disk = container_of(kobj, struct gendisk, integrity_kobj); integrity_attr_store()
399 * blk_integrity_register - Register a gendisk as being integrity-capable
400 * @disk: struct gendisk pointer to make integrity-aware
409 void blk_integrity_register(struct gendisk *disk, struct blk_integrity *template) blk_integrity_register()
431 void blk_integrity_unregister(struct gendisk *disk) blk_integrity_unregister()
438 void blk_integrity_revalidate(struct gendisk *disk) blk_integrity_revalidate()
453 void blk_integrity_add(struct gendisk *disk) blk_integrity_add()
462 void blk_integrity_del(struct gendisk *disk) blk_integrity_del()
H A Dblk-exec.c39 * @bd_disk: matching gendisk
51 void blk_execute_rq_nowait(struct request_queue *q, struct gendisk *bd_disk, blk_execute_rq_nowait()
91 * @bd_disk: matching gendisk
99 int blk_execute_rq(struct request_queue *q, struct gendisk *bd_disk, blk_execute_rq()
H A Dpartition-generic.c34 char *disk_name(struct gendisk *hd, int partno, char *buf) disk_name()
241 void delete_partition(struct gendisk *disk, int partno) delete_partition()
269 struct hd_struct *add_partition(struct gendisk *disk, int partno, add_partition()
385 static bool disk_unlock_native_capacity(struct gendisk *disk) disk_unlock_native_capacity()
401 static int drop_partitions(struct gendisk *disk, struct block_device *bdev) drop_partitions()
421 int rescan_partitions(struct gendisk *disk, struct block_device *bdev) rescan_partitions()
540 int invalidate_partitions(struct gendisk *disk, struct block_device *bdev) invalidate_partitions()
H A Dblk-timeout.c43 struct gendisk *disk = dev_to_disk(dev); part_timeout_show()
52 struct gendisk *disk = dev_to_disk(dev); part_timeout_store()
H A Dscsi_ioctl.c286 static int sg_io(struct request_queue *q, struct gendisk *bd_disk, sg_io()
386 * @disk: gendisk to operate on (option)
392 * non-destructive SCSI commands. If the caller has a struct gendisk
416 int sg_scsi_ioctl(struct request_queue *q, struct gendisk *disk, fmode_t mode, sg_scsi_ioctl()
533 static int __blk_send_generic(struct request_queue *q, struct gendisk *bd_disk, __blk_send_generic()
554 struct gendisk *bd_disk, int data) blk_send_start_stop()
559 int scsi_cmd_ioctl(struct request_queue *q, struct gendisk *bd_disk, fmode_t mode, scsi_cmd_ioctl()
H A Dioctl.c16 struct gendisk *disk; blkpg_ioctl()
161 struct gendisk *disk = bdev->bd_disk; __blkdev_reread_part()
285 struct gendisk *disk = bdev->bd_disk; __blkdev_driver_ioctl()
445 struct gendisk *disk = bdev->bd_disk; blkdev_getgeo()
H A Dblk-mq-sysfs.c383 void blk_mq_unregister_disk(struct gendisk *disk) blk_mq_unregister_disk()
426 int blk_mq_register_disk(struct gendisk *disk) blk_mq_register_disk()
H A Dblk-sysfs.c621 int blk_register_queue(struct gendisk *disk) blk_register_queue()
675 void blk_unregister_queue(struct gendisk *disk) blk_unregister_queue()
H A Dblk.h250 * a) it's attached to a gendisk, and
H A Dcompat_ioctl.c51 static int compat_hdio_getgeo(struct gendisk *disk, struct block_device *bdev, compat_hdio_getgeo()
662 struct gendisk *disk = bdev->bd_disk; compat_blkdev_ioctl()
H A Dblk-settings.c661 * @disk: MD/DM gendisk (top)
666 * Merges the limits for a top level gendisk and a bottom level
669 void disk_stack_limits(struct gendisk *disk, struct block_device *bdev, disk_stack_limits()
H A Dblk-cgroup.c789 struct gendisk *disk; __acquires()
/linux-4.4.14/drivers/s390/block/
H A Dscm_blk.c184 struct scm_device *scmdev = bdev->gendisk->private_data; scm_request_prepare()
510 bdev->gendisk = alloc_disk(SCM_NR_PARTS); scm_blk_dev_setup()
511 if (!bdev->gendisk) scm_blk_dev_setup()
515 bdev->gendisk->driverfs_dev = &scmdev->dev; scm_blk_dev_setup()
516 bdev->gendisk->private_data = scmdev; scm_blk_dev_setup()
517 bdev->gendisk->fops = &scm_blk_devops; scm_blk_dev_setup()
518 bdev->gendisk->queue = rq; scm_blk_dev_setup()
519 bdev->gendisk->major = scm_major; scm_blk_dev_setup()
520 bdev->gendisk->first_minor = devindex * SCM_NR_PARTS; scm_blk_dev_setup()
522 len = snprintf(bdev->gendisk->disk_name, DISK_NAME_LEN, "scm"); scm_blk_dev_setup()
524 len += snprintf(bdev->gendisk->disk_name + len, scm_blk_dev_setup()
529 snprintf(bdev->gendisk->disk_name + len, DISK_NAME_LEN - len, "%c", scm_blk_dev_setup()
533 set_capacity(bdev->gendisk, scmdev->size >> 9); scm_blk_dev_setup()
534 add_disk(bdev->gendisk); scm_blk_dev_setup()
547 del_gendisk(bdev->gendisk); scm_blk_dev_cleanup()
548 blk_cleanup_queue(bdev->gendisk->queue); scm_blk_dev_cleanup()
549 put_disk(bdev->gendisk); scm_blk_dev_cleanup()
H A Ddasd_genhd.c9 * gendisk related functions for the dasd driver.
27 * Allocate and register gendisk structure for device.
31 struct gendisk *gdp; dasd_gendisk_alloc()
44 /* Initialize gendisk structure. */ dasd_gendisk_alloc()
84 * Unregister and free gendisk structure for device.
H A Dscm_blk.h19 struct gendisk *gendisk; member in struct:scm_blk_dev
H A Dscm_blk_cluster.c133 struct scm_device *scmdev = bdev->gendisk->private_data; scm_prepare_cluster_request()
H A Dxpram.c57 static struct gendisk *xpram_disks[XPRAM_MAX_DEVS];
368 struct gendisk *disk = xpram_disks[i]; xpram_setup_blkdev()
H A Ddcssblk.c29 static void dcssblk_release(struct gendisk *disk, fmode_t mode);
50 struct gendisk *gd;
792 dcssblk_release(struct gendisk *disk, fmode_t mode) dcssblk_release()
H A Ddasd_int.h487 struct gendisk *gdp;
757 void dasd_add_link_to_gendisk(struct gendisk *, struct dasd_device *);
758 struct dasd_device *dasd_device_from_gendisk(struct gendisk *);
H A Ddasd_devmap.c675 void dasd_add_link_to_gendisk(struct gendisk *gdp, struct dasd_device *device) dasd_add_link_to_gendisk()
687 struct dasd_device *dasd_device_from_gendisk(struct gendisk *gdp) dasd_device_from_gendisk()
H A Ddasd.c254 /* Allocate and register gendisk structure. */ dasd_state_known_to_basic()
420 struct gendisk *disk; dasd_state_ready_to_online()
447 struct gendisk *disk; dasd_state_online_to_ready()
3126 static void dasd_release(struct gendisk *disk, fmode_t mode) dasd_release()
/linux-4.4.14/drivers/ide/
H A Dide-gd.h19 struct gendisk *disk;
H A Dide-gd.c33 static struct ide_disk_obj *ide_disk_get(struct gendisk *disk) ide_disk_get()
69 struct gendisk *g = idkp->disk; ide_gd_remove()
85 struct gendisk *g = idkp->disk; ide_disk_release()
185 struct gendisk *disk = bdev->bd_disk; ide_gd_open()
253 static void ide_gd_release(struct gendisk *disk, fmode_t mode) ide_gd_release()
286 static unsigned int ide_gd_check_events(struct gendisk *disk, ide_gd_check_events()
311 static void ide_gd_unlock_native_capacity(struct gendisk *disk) ide_gd_unlock_native_capacity()
321 static int ide_gd_revalidate_disk(struct gendisk *disk) ide_gd_revalidate_disk()
357 struct gendisk *g; ide_gd_probe()
H A Dide-cd.h82 struct gendisk *disk;
H A Dide-floppy.c313 struct gendisk *disk = floppy->disk; ide_floppy_get_flexible_disk_page()
375 struct gendisk *disk = floppy->disk; ide_floppy_get_capacity()
519 static int ide_floppy_init_media(ide_drive_t *drive, struct gendisk *disk) ide_floppy_init_media()
H A Dide-atapi.c89 int ide_queue_pc_tail(ide_drive_t *drive, struct gendisk *disk, ide_queue_pc_tail()
116 int ide_do_test_unit_ready(ide_drive_t *drive, struct gendisk *disk) ide_do_test_unit_ready()
127 int ide_do_start_stop(ide_drive_t *drive, struct gendisk *disk, int start) ide_do_start_stop()
142 int ide_set_media_lock(ide_drive_t *drive, struct gendisk *disk, int on) ide_set_media_lock()
H A Dide-tape.c143 struct gendisk *disk;
231 static struct ide_tape_obj *ide_tape_get(struct gendisk *disk, bool cdev, ide_tape_get()
684 struct gendisk *disk = tape->disk; idetape_wait_ready()
804 struct gendisk *disk = tape->disk; idetape_position_tape()
1010 struct gendisk *disk = tape->disk; idetape_rewind_tape()
1065 struct gendisk *disk = tape->disk; idetape_space_over_filemarks()
1255 struct gendisk *disk = tape->disk; idetape_mtioctop()
1823 struct gendisk *g = tape->disk; ide_tape_release()
1921 static void idetape_release(struct gendisk *disk, fmode_t mode) idetape_release()
1956 struct gendisk *g; ide_tape_probe()
H A Dide-cd.c58 static struct cdrom_info *ide_cd_get(struct gendisk *disk) ide_cd_get()
1559 struct gendisk *g = info->disk; ide_cd_release()
1609 static void idecd_release(struct gendisk *disk, fmode_t mode) idecd_release()
1694 static unsigned int idecd_check_events(struct gendisk *disk, idecd_check_events()
1701 static int idecd_revalidate_disk(struct gendisk *disk) idecd_revalidate_disk()
1729 struct gendisk *g; ide_cd_probe()
H A Dide-floppy_ioctl.c239 struct gendisk *disk = floppy->disk; ide_floppy_lockdoor()
H A Dide-probe.c906 struct gendisk *p = data; exact_match()
913 struct gendisk *p = data; exact_lock()
920 void ide_register_region(struct gendisk *disk) ide_register_region()
928 void ide_unregister_region(struct gendisk *disk) ide_unregister_region()
936 void ide_init_disk(struct gendisk *disk, ide_drive_t *drive) ide_init_disk()
H A Dide-disk.c760 static int ide_disk_init_media(ide_drive_t *drive, struct gendisk *disk) ide_disk_init_media()
765 static int ide_disk_set_doorlock(ide_drive_t *drive, struct gendisk *disk, ide_disk_set_doorlock()
/linux-4.4.14/block/partitions/
H A Dcheck.h28 check_partition(struct gendisk *, struct block_device *);
H A Dcheck.c114 static struct parsed_partitions *allocate_partitions(struct gendisk *hd) allocate_partitions()
142 check_partition(struct gendisk *hd, struct block_device *bdev) check_partition()
H A Dacorn.c247 * Params : hd - pointer to gendisk structure to store partition info.
348 * Params : hd - pointer to gendisk structure to store partition info.
444 * Params : hd - pointer to gendisk structure to store partition info.
H A Dldm.c1497 * the partitions necessary in the gendisk structure pointed to by @hd.
/linux-4.4.14/drivers/scsi/
H A Dsr.h53 /* We hold gendisk and scsi_device references on probe and use
56 struct gendisk *disk;
H A Dsd.h66 struct gendisk *disk;
100 static inline struct scsi_disk *scsi_disk(struct gendisk *disk) scsi_disk()
H A Dsr.c138 static inline struct scsi_cd *scsi_cd(struct gendisk *disk) scsi_cd()
160 static inline struct scsi_cd *scsi_cd_get(struct gendisk *disk) scsi_cd_get()
536 static void sr_block_release(struct gendisk *disk, fmode_t mode) sr_block_release()
582 static unsigned int sr_block_check_events(struct gendisk *disk, sr_block_check_events()
593 static int sr_block_revalidate_disk(struct gendisk *disk) sr_block_revalidate_disk()
654 struct gendisk *disk; sr_probe()
969 struct gendisk *disk = cd->disk; sr_kref_release()
H A Dsd_dif.c44 struct gendisk *disk = sdkp->disk; sd_dif_config_host()
H A Dsd.c104 static int sd_revalidate_disk(struct gendisk *);
105 static void sd_unlock_native_capacity(struct gendisk *disk);
569 static struct scsi_disk *scsi_disk_get(struct gendisk *disk) scsi_disk_get()
902 struct gendisk *disk = rq->rq_disk; sd_setup_read_write_cmnd()
1253 static void sd_release(struct gendisk *disk, fmode_t mode) sd_release()
1315 struct gendisk *disk = bdev->bd_disk; sd_ioctl()
1399 static unsigned int sd_check_events(struct gendisk *disk, unsigned int clearing) sd_check_events()
2811 * @disk: struct gendisk we care about
2813 static int sd_revalidate_disk(struct gendisk *disk) sd_revalidate_disk()
2901 * @disk: struct gendisk to set capacity for
2911 static void sd_unlock_native_capacity(struct gendisk *disk) sd_unlock_native_capacity()
2972 struct gendisk *gd; sd_probe_async()
3045 struct gendisk *gd; sd_probe()
3180 struct gendisk *disk = sdkp->disk; scsi_disk_release()
H A Dst.h193 struct gendisk *disk;
H A Dosst.h628 struct gendisk *drive;
H A Dsg.c185 struct gendisk *disk;
1400 sg_alloc(struct gendisk *disk, struct scsi_device *scsidp) sg_alloc()
1465 struct gendisk *disk; sg_add_device()
H A Dst.c4169 struct gendisk *disk = NULL; st_probe()
4215 /* SCSI tape doesn't register this gendisk via add_disk(). Manually st_probe()
4368 struct gendisk *disk = tpnt->disk;
H A Dosst.c5847 struct gendisk * drive; osst_probe()
/linux-4.4.14/drivers/block/aoe/
H A Daoeblk.c37 struct gendisk *disk = dev_to_disk(dev); aoedisk_show_state()
50 struct gendisk *disk = dev_to_disk(dev); aoedisk_show_mac()
61 struct gendisk *disk = dev_to_disk(dev); aoedisk_show_netif()
99 struct gendisk *disk = dev_to_disk(dev); aoedisk_show_fwver()
107 struct gendisk *disk = dev_to_disk(dev); aoedisk_show_payload()
262 aoeblk_release(struct gendisk *disk, fmode_t mode) aoeblk_release()
353 struct gendisk *gd; aoeblk_gdalloc()
H A Daoe.h75 DEVFL_GDALLOC = (1<<3), /* need to alloc gendisk */
76 DEVFL_GD_NOW = (1<<4), /* allocating gendisk */
165 struct gendisk *gd;
/linux-4.4.14/drivers/nvdimm/
H A Dcore.c219 struct gendisk *disk = bio->bi_bdev->bd_disk; __nd_iostat_start()
234 struct gendisk *disk = bio->bi_bdev->bd_disk; nd_iostat_end()
395 int nd_integrity_init(struct gendisk *disk, unsigned long meta_size) nd_integrity_init()
414 int nd_integrity_init(struct gendisk *disk, unsigned long meta_size) nd_integrity_init()
H A Dnd.h167 int nd_integrity_init(struct gendisk *disk, unsigned long meta_size);
251 int nvdimm_revalidate_disk(struct gendisk *disk);
269 struct gendisk *disk = bio->bi_bdev->bd_disk; nd_iostat_start()
H A Dblk.c26 struct gendisk *disk;
167 struct gendisk *disk = bdev->bd_disk; nd_blk_make_request()
244 struct gendisk *disk; nd_blk_attach_disk()
H A Dbtt.h154 * @btt_disk: Pointer to the gendisk for BTT device
171 struct gendisk *btt_disk;
H A Dpmem.c35 struct gendisk *pmem_disk;
170 struct gendisk *disk; pmem_attach_disk()
H A Dbus.c236 int nvdimm_revalidate_disk(struct gendisk *disk) nvdimm_revalidate_disk()
/linux-4.4.14/arch/mips/include/asm/mach-rc32434/
H A Drb.h77 struct gendisk *gd;
/linux-4.4.14/drivers/md/
H A Dlinear.c116 disk_stack_limits(mddev->gendisk, rdev->bdev, rdev_for_each()
203 set_capacity(mddev->gendisk, mddev->array_sectors); linear_add()
205 revalidate_disk(mddev->gendisk); linear_add()
H A Dmd.c301 part_stat_inc(cpu, &mddev->gendisk->part0, ios[rw]); md_make_request()
302 part_stat_add(cpu, &mddev->gendisk->part0, sectors[rw], sectors); md_make_request()
475 if (mddev->gendisk) { mddev_put()
1985 if (!mddev->gendisk || blk_get_integrity(mddev->gendisk)) md_integrity_register()
2009 blk_integrity_register(mddev->gendisk,
2032 if (!mddev->gendisk) md_integrity_add_rdev()
2036 bi_mddev = blk_get_integrity(mddev->gendisk); md_integrity_add_rdev()
2041 if (blk_integrity_compare(mddev->gendisk, rdev->bdev->bd_disk) != 0) { md_integrity_add_rdev()
2114 bd_link_disk_holder(rdev->bdev, mddev->gendisk); bind_rdev_to_array()
2138 bd_unlink_disk_holder(rdev->bdev, rdev->mddev->gendisk); unbind_rdev_from_array()
3966 set_disk_ro(mddev->gendisk, 1); array_state_store()
3978 set_disk_ro(mddev->gendisk, 0); array_state_store()
4015 set_disk_ro(mddev->gendisk, 0); array_state_store()
4838 set_capacity(mddev->gendisk, mddev->array_sectors); array_size_store()
4839 revalidate_disk(mddev->gendisk); array_size_store()
4945 if (mddev->gendisk) { md_free()
4946 del_gendisk(mddev->gendisk); md_free()
4947 put_disk(mddev->gendisk); md_free()
4978 struct gendisk *disk; md_alloc()
4998 if (mddev->gendisk) md_alloc()
5008 if (mddev2->gendisk && md_alloc()
5009 strcmp(mddev2->gendisk->disk_name, name) == 0) { md_alloc()
5048 mddev->gendisk = disk; md_alloc()
5356 set_capacity(mddev->gendisk, mddev->array_sectors); do_md_run()
5357 revalidate_disk(mddev->gendisk); do_md_run()
5359 kobject_uevent(&disk_to_dev(mddev->gendisk)->kobj, KOBJ_CHANGE); do_md_run()
5366 struct gendisk *disk = mddev->gendisk; restart_array()
5583 set_disk_ro(mddev->gendisk, 1); md_set_readonly()
5602 struct gendisk *disk = mddev->gendisk; do_md_stop()
5682 kobject_uevent(&disk_to_dev(mddev->gendisk)->kobj, KOBJ_CHANGE); do_md_stop()
5771 if (!mddev || !mddev->gendisk) { autorun_devices()
6462 revalidate_disk(mddev->gendisk);
6913 set_disk_ro(mddev->gendisk, 0); md_ioctl()
7020 if (mddev->gendisk != bdev->bd_disk) { md_open()
7045 static void md_release(struct gendisk *disk, fmode_t mode) md_release()
7054 static int md_media_changed(struct gendisk *disk) md_media_changed()
7061 static int md_revalidate(struct gendisk *disk) md_revalidate()
7610 struct gendisk *disk = rdev->bdev->bd_contains->bd_disk; rdev_for_each_rcu()
H A Ddm-table.c1029 static bool integrity_profile_exists(struct gendisk *disk) integrity_profile_exists()
1038 static struct gendisk * dm_table_get_integrity_disk(struct dm_table *t) dm_table_get_integrity_disk()
1042 struct gendisk *prev_disk = NULL, *template_disk = NULL; dm_table_get_integrity_disk()
1078 struct gendisk *template_disk = NULL; dm_table_register_integrity()
1304 struct gendisk *template_disk = NULL; dm_table_verify_integrity()
H A Dmultipath.c259 disk_stack_limits(mddev->gendisk, rdev->bdev, multipath_add_disk()
424 disk_stack_limits(mddev->gendisk, rdev->bdev, rdev_for_each()
H A Dfaulty.c323 disk_stack_limits(mddev->gendisk, rdev->bdev, rdev_for_each()
H A Dmd.h247 struct gendisk *gendisk; member in struct:mddev
563 return mddev->gendisk ? mddev->gendisk->disk_name : "mdX"; mdname()
H A Draid10.c1724 if (mddev->gendisk) raid10_add_disk()
1725 disk_stack_limits(mddev->gendisk, rdev->bdev, raid10_add_disk()
1732 if (mddev->gendisk) raid10_add_disk()
1733 disk_stack_limits(mddev->gendisk, rdev->bdev, raid10_add_disk()
3596 if (mddev->gendisk) rdev_for_each()
3597 disk_stack_limits(mddev->gendisk, rdev->bdev, rdev_for_each()
3785 set_capacity(mddev->gendisk, mddev->array_sectors); raid10_resize()
3786 revalidate_disk(mddev->gendisk); raid10_resize()
4596 set_capacity(mddev->gendisk, mddev->array_sectors); raid10_finish_reshape()
4597 revalidate_disk(mddev->gendisk); raid10_finish_reshape()
H A Draid1.c1611 if (mddev->gendisk) raid1_add_disk()
1612 disk_stack_limits(mddev->gendisk, rdev->bdev, raid1_add_disk()
2931 if (!mddev->gendisk) rdev_for_each()
2933 disk_stack_limits(mddev->gendisk, rdev->bdev, rdev_for_each()
3014 set_capacity(mddev->gendisk, mddev->array_sectors); raid1_resize()
3015 revalidate_disk(mddev->gendisk); raid1_resize()
H A Draid5.c1037 if (conf->mddev->gendisk) ops_run_io()
1039 bi, disk_devt(conf->mddev->gendisk), ops_run_io()
1083 if (conf->mddev->gendisk) ops_run_io()
1085 rbi, disk_devt(conf->mddev->gendisk), ops_run_io()
2027 if (conf->mddev->gendisk) grow_stripes()
4853 if (mddev->gendisk) raid5_read_one_chunk()
4855 align_bi, disk_devt(mddev->gendisk), raid5_read_one_chunk()
6828 set_disk_ro(mddev->gendisk, 1);
6992 disk_stack_limits(mddev->gendisk, rdev->bdev, rdev_for_each()
6994 disk_stack_limits(mddev->gendisk, rdev->bdev, rdev_for_each()
7298 set_capacity(mddev->gendisk, mddev->array_sectors); raid5_resize()
7299 revalidate_disk(mddev->gendisk); raid5_resize()
7556 set_capacity(mddev->gendisk, mddev->array_sectors); raid5_finish_reshape()
7557 revalidate_disk(mddev->gendisk); raid5_finish_reshape()
H A Ddm.c167 struct gendisk *disk;
469 static void dm_blk_close(struct gendisk *disk, fmode_t mode) dm_blk_close()
3428 * The gendisk is only valid as long as you have a reference
3431 struct gendisk *dm_disk(struct mapped_device *md) dm_disk()
H A Draid0.c388 disk_stack_limits(mddev->gendisk, rdev->bdev, rdev_for_each()
H A Ddm-ioctl.c506 struct gendisk *disk; list_devices()
682 struct gendisk *disk = dm_disk(md); __dev_status()
H A Dmd-cluster.c424 kobject_uevent_env(&disk_to_dev(mddev->gendisk)->kobj, KOBJ_CHANGE, envp); process_add_new_disk()
/linux-4.4.14/arch/um/drivers/
H A Dubd_kern.c90 static void ubd_release(struct gendisk *disk, fmode_t mode);
107 static struct gendisk *ubd_gendisk[MAX_DEV];
108 static struct gendisk *fake_gendisk[MAX_DEV];
806 struct gendisk **disk_out) ubd_disk_register()
808 struct gendisk *disk; ubd_disk_register()
979 struct gendisk *disk = ubd_gendisk[n]; ubd_remove()
1115 struct gendisk *disk = bdev->bd_disk; ubd_open()
1142 static void ubd_release(struct gendisk *disk, fmode_t mode) ubd_release()
1217 struct gendisk *disk = req->rq_disk; prepare_request()
1246 struct gendisk *disk = req->rq_disk; prepare_flush_request()
/linux-4.4.14/drivers/mtd/
H A Dmtd_blkdevs.c53 static struct mtd_blktrans_dev *blktrans_dev_get(struct gendisk *disk) blktrans_dev_get()
237 static void blktrans_release(struct gendisk *disk, fmode_t mode) blktrans_release()
324 struct gendisk *gd; add_mtd_blktrans_dev()
376 /* Create gendisk */ add_mtd_blktrans_dev()
H A Dmtdswap.c1320 struct gendisk *gd = d->mbd_dev->disk; mtdswap_add_debugfs()
/linux-4.4.14/drivers/block/zram/
H A Dzram_drv.h98 struct gendisk *disk;
H A Dzram_drv.c1218 /* gendisk structure */ zram_add()
1359 /* dev_id is gendisk->first_minor, which is `int' */ hot_remove_store()
/linux-4.4.14/include/linux/mtd/
H A Dblktrans.h45 struct gendisk *disk;
/linux-4.4.14/arch/xtensa/platforms/iss/
H A Dsimdisk.c32 struct gendisk *gd;
137 static void simdisk_release(struct gendisk *disk, fmode_t mode) simdisk_release()
/linux-4.4.14/fs/
H A Dblock_dev.c842 struct gendisk *disk; bd_start_claiming()
892 struct gendisk *disk;
897 struct gendisk *disk) bd_find_holder_disk()
945 int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk) bd_link_disk_holder()
1010 void bd_unlink_disk_holder(struct block_device *bdev, struct gendisk *disk) bd_unlink_disk_holder()
1061 * @disk: struct gendisk to check
1067 void check_disk_size_change(struct gendisk *disk, struct block_device *bdev) check_disk_size_change()
1088 * @disk: struct gendisk to be revalidated
1094 int revalidate_disk(struct gendisk *disk) revalidate_disk()
1126 struct gendisk *disk = bdev->bd_disk; check_disk_change()
1171 struct gendisk *disk; __blkdev_get()
1358 struct gendisk *disk = whole->bd_disk; blkdev_get()
1515 struct gendisk *disk = bdev->bd_disk; __blkdev_put()
/linux-4.4.14/drivers/block/paride/
H A Dpf.c214 static void pf_release(struct gendisk *disk, fmode_t mode);
240 struct gendisk *disk;
248 static unsigned int pf_check_events(struct gendisk *disk,
287 struct gendisk *disk = alloc_disk(1); pf_init_units()
364 static void pf_release(struct gendisk *disk, fmode_t mode) pf_release()
383 static unsigned int pf_check_events(struct gendisk *disk, unsigned int clearing) pf_check_events()
986 struct gendisk *disk = pf->disk; pf_init()
H A Dpcd.c201 struct gendisk *disk;
240 static void pcd_block_release(struct gendisk *disk, fmode_t mode) pcd_block_release()
261 static unsigned int pcd_block_check_events(struct gendisk *disk, pcd_block_check_events()
300 struct gendisk *disk = alloc_disk(1); pcd_init_units()
H A Dpd.c238 struct gendisk *gd;
790 static void pd_release(struct gendisk *p, fmode_t mode) pd_release()
800 static unsigned int pd_check_events(struct gendisk *p, unsigned int clearing) pd_check_events()
812 static int pd_revalidate(struct gendisk *p) pd_revalidate()
836 struct gendisk *p = alloc_disk(1 << PD_BITS); pd_probe_drive()
955 struct gendisk *p = disk->gd; pd_exit()
/linux-4.4.14/drivers/sbus/char/
H A Djsflash.c124 static struct gendisk *jsfd_disk[JSF_MAX];
562 struct gendisk *disk = alloc_disk(1); jsfd_init()
581 struct gendisk *disk = jsfd_disk[i]; jsfd_init()
/linux-4.4.14/drivers/mtd/ubi/
H A Dblock.c90 struct gendisk *gd;
268 static void ubiblock_release(struct gendisk *gd, fmode_t mode) ubiblock_release()
362 struct gendisk *gd; ubiblock_create()
386 /* Initialize the gendisk of this ubiblock device */ ubiblock_create()
/linux-4.4.14/drivers/memstick/core/
H A Dms_block.h152 struct gendisk *disk;
H A Dmspro_block.c142 struct gendisk *disk;
187 struct gendisk *disk = bdev->bd_disk; mspro_block_bd_open()
207 static void mspro_block_disk_release(struct gendisk *disk) mspro_block_disk_release()
229 static void mspro_block_bd_release(struct gendisk *disk, fmode_t mode) mspro_block_bd_release()
H A Dms_block.c1945 struct gendisk *disk = bdev->bd_disk; msb_bd_open()
1968 static int msb_disk_release(struct gendisk *disk) msb_disk_release()
1990 static void msb_bd_release(struct gendisk *disk, fmode_t mode) msb_bd_release()
/linux-4.4.14/drivers/nvme/host/
H A Dnvme.h84 struct gendisk *disk;
H A Dpci.c2002 static void nvme_release(struct gendisk *disk, fmode_t mode) nvme_release()
2027 static int nvme_revalidate_disk(struct gendisk *disk) nvme_revalidate_disk()
2249 struct gendisk *disk; nvme_alloc_ns()
/linux-4.4.14/arch/m68k/emu/
H A Dnfblock.c59 struct gendisk *disk;
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
H A Dlloop.c163 static struct gendisk **disks;
599 static void lo_release(struct gendisk *disk, fmode_t mode) lo_release()
817 struct gendisk *disk = disks[i]; lloop_init()
/linux-4.4.14/drivers/cdrom/
H A Dgdrom.c117 struct gendisk *disk;
506 static void gdrom_bdops_release(struct gendisk *disk, fmode_t mode) gdrom_bdops_release()
513 static unsigned int gdrom_bdops_check_events(struct gendisk *disk, gdrom_bdops_check_events()
/linux-4.4.14/drivers/scsi/osd/
H A Dosd_uld.c89 struct gendisk *disk;
421 struct gendisk *disk; osd_probe()
/linux-4.4.14/drivers/block/mtip32xx/
H A Dmtip32xx.h465 struct gendisk *disk; /* Pointer to our gendisk structure. */
H A Dmtip32xx.c3696 void mtip_block_release(struct gendisk *disk, fmode_t mode) mtip_block_release()
3942 "Unable to allocate gendisk structure\n"); mtip_block_initialize()
4098 /* Delete our gendisk. This also removes the device from /dev */ mtip_block_initialize()
4188 * Delete our gendisk structure. This also removes the device mtip_block_remove()
4233 /* Delete our gendisk structure, and cleanup the blk queue. */ mtip_block_shutdown()
/linux-4.4.14/drivers/lightnvm/
H A Drrpc.h87 struct gendisk *disk;
H A Dcore.c384 struct gendisk *tdisk; nvm_create_target()
463 struct gendisk *tdisk = t->disk; nvm_remove_target()
H A Drrpc.c1260 static void *rrpc_init(struct nvm_dev *dev, struct gendisk *tdisk, rrpc_init()
/linux-4.4.14/arch/powerpc/sysdev/
H A Daxonram.c63 struct gendisk *disk;
/linux-4.4.14/drivers/s390/char/
H A Dtape.h24 struct gendisk;
/linux-4.4.14/mm/
H A Dpage_io.c112 struct gendisk *disk = sis->bdev->bd_disk; end_swap_bio_read()
H A Dswapfile.c818 struct gendisk *disk = p->bdev->bd_disk; swap_entry_free()
/linux-4.4.14/init/
H A Ddo_mounts.c121 struct gendisk *disk; devt_from_partuuid()
/linux-4.4.14/drivers/md/bcache/
H A Drequest.c1039 struct gendisk *g = dc->disk.disk; bch_cached_dev_request_init()
1143 struct gendisk *g = d->disk; bch_flash_dev_request_init()
H A Dbcache.h256 struct gendisk *disk;
H A Dsuper.c631 static void release_dev(struct gendisk *b, fmode_t mode) release_dev()
/linux-4.4.14/drivers/char/
H A Drandom.c132 * void add_disk_randomness(struct gendisk *disk);
950 void add_disk_randomness(struct gendisk *disk) add_disk_randomness()
1404 void rand_initialize_disk(struct gendisk *disk) rand_initialize_disk()
/linux-4.4.14/drivers/mmc/card/
H A Dblock.c99 struct gendisk *disk;
157 static struct mmc_blk_data *mmc_blk_get(struct gendisk *disk) mmc_blk_get()
172 static inline int mmc_get_devidx(struct gendisk *disk) mmc_get_devidx()
317 static void mmc_blk_release(struct gendisk *disk, fmode_t mode) mmc_blk_release()
/linux-4.4.14/drivers/block/drbd/
H A Ddrbd_main.c65 static void drbd_release(struct gendisk *gd, fmode_t mode);
116 * as member "struct gendisk *vdisk;"
1883 static void drbd_release(struct gendisk *gd, fmode_t mode) drbd_release()
2721 struct gendisk *disk; drbd_create_device()
H A Ddrbd_worker.c1573 struct gendisk *disk = device->ldev->backing_bdev->bd_contains->bd_disk; drbd_rs_controller_reset()
H A Ddrbd_int.h848 struct gendisk *vdisk;
H A Ddrbd_receiver.c2468 struct gendisk *disk = device->ldev->backing_bdev->bd_contains->bd_disk; drbd_rs_c_min_rate_throttle()
/linux-4.4.14/drivers/usb/storage/
H A Dtransport.c524 struct gendisk *disk; last_sector_hacks()
/linux-4.4.14/Documentation/cdrom/
H A Dcdrom-standard.tex755 of the $struct gendisk$.

Completed in 4753 milliseconds