/linux-4.4.14/drivers/block/rsxx/ |
H A D | dev.c | 116 &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 D | rsxx_priv.h | 173 struct gendisk *gendisk; member in struct:rsxx_cardinfo
|
H A D | core.c | 249 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 D | genhd.h | 20 #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 D | amifd.h | 58 struct gendisk *gendisk; member in struct:amiga_floppy_struct
|
H A D | blkdev.h | 152 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 D | blk-mq.h | 179 int blk_mq_register_disk(struct gendisk *); 180 void blk_mq_unregister_disk(struct gendisk *);
|
H A D | lightnvm.h | 115 struct gendisk *disk; 351 typedef void *(nvm_tgt_init_fn)(struct nvm_dev *, struct gendisk *, int, int);
|
H A D | ide.h | 377 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 D | cdrom.h | 41 struct gendisk *disk; /* matching block layer disk */
|
H A D | pktcdvd.h | 192 struct gendisk *disk;
|
H A D | fs.h | 470 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 D | blk-cgroup.h | 211 struct gendisk *disk;
|
H A D | device-mapper.h | 404 struct gendisk *dm_disk(struct mapped_device *md);
|
/linux-4.4.14/drivers/block/ |
H A D | ps3disk.c | 45 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 D | ps3vram.c | 70 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 D | loop.h | 65 struct gendisk *lo_disk;
|
H A D | osdblk.c | 106 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 D | virtio_blk.c | 35 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 D | cciss.c | 168 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 D | swim3.c | 45 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 D | z2ram.c | 67 static struct gendisk *z2ram_gendisk; 312 z2_release(struct gendisk *disk, fmode_t mode) z2_release()
|
H A D | cpqarray.c | 129 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 D | swim.c | 192 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 D | cciss.h | 133 struct gendisk *gendisk[CISS_MAX_LUN]; member in struct:ctlr_info
|
H A D | nbd.c | 56 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 D | amiflop.c | 1359 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 D | sunvdc.c | 52 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 D | null_blk.c | 36 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 D | brd.c | 40 struct gendisk *brd_disk; 480 struct gendisk *disk; brd_alloc()
|
H A D | xen-blkfront.c | 124 * 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 D | xsysace.c | 211 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 D | ataflop.c | 221 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 D | hd.c | 136 static struct gendisk *hd_gendisk[MAX_HD]; 736 struct gendisk *disk = alloc_disk(64); hd_init()
|
H A D | sx8.c | 245 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 D | umem.c | 146 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 D | pktcdvd.c | 2317 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 D | loop.c | 720 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 D | rbd.c | 339 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 D | DAC960.c | 80 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 D | floppy.c | 411 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 D | mg_disk.c | 114 struct gendisk *gd;
|
H A D | skd_main.c | 284 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 D | DAC960.h | 2318 struct gendisk *disks[DAC960_MaxLogicalDrives];
|
/linux-4.4.14/block/ |
H A D | genhd.c | 2 * 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 D | blk-integrity.c | 140 * 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 D | blk-exec.c | 39 * @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 D | partition-generic.c | 34 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 D | blk-timeout.c | 43 struct gendisk *disk = dev_to_disk(dev); part_timeout_show() 52 struct gendisk *disk = dev_to_disk(dev); part_timeout_store()
|
H A D | scsi_ioctl.c | 286 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 D | ioctl.c | 16 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 D | blk-mq-sysfs.c | 383 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 D | blk-sysfs.c | 621 int blk_register_queue(struct gendisk *disk) blk_register_queue() 675 void blk_unregister_queue(struct gendisk *disk) blk_unregister_queue()
|
H A D | blk.h | 250 * a) it's attached to a gendisk, and
|
H A D | compat_ioctl.c | 51 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 D | blk-settings.c | 661 * @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 D | blk-cgroup.c | 789 struct gendisk *disk; __acquires()
|
/linux-4.4.14/drivers/s390/block/ |
H A D | scm_blk.c | 184 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 D | dasd_genhd.c | 9 * 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 D | scm_blk.h | 19 struct gendisk *gendisk; member in struct:scm_blk_dev
|
H A D | scm_blk_cluster.c | 133 struct scm_device *scmdev = bdev->gendisk->private_data; scm_prepare_cluster_request()
|
H A D | xpram.c | 57 static struct gendisk *xpram_disks[XPRAM_MAX_DEVS]; 368 struct gendisk *disk = xpram_disks[i]; xpram_setup_blkdev()
|
H A D | dcssblk.c | 29 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 D | dasd_int.h | 487 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 D | dasd_devmap.c | 675 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 D | dasd.c | 254 /* 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 D | ide-gd.h | 19 struct gendisk *disk;
|
H A D | ide-gd.c | 33 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 D | ide-cd.h | 82 struct gendisk *disk;
|
H A D | ide-floppy.c | 313 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 D | ide-atapi.c | 89 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 D | ide-tape.c | 143 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 D | ide-cd.c | 58 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 D | ide-floppy_ioctl.c | 239 struct gendisk *disk = floppy->disk; ide_floppy_lockdoor()
|
H A D | ide-probe.c | 906 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 D | ide-disk.c | 760 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 D | check.h | 28 check_partition(struct gendisk *, struct block_device *);
|
H A D | check.c | 114 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 D | acorn.c | 247 * 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 D | ldm.c | 1497 * the partitions necessary in the gendisk structure pointed to by @hd.
|
/linux-4.4.14/drivers/scsi/ |
H A D | sr.h | 53 /* We hold gendisk and scsi_device references on probe and use 56 struct gendisk *disk;
|
H A D | sd.h | 66 struct gendisk *disk; 100 static inline struct scsi_disk *scsi_disk(struct gendisk *disk) scsi_disk()
|
H A D | sr.c | 138 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 D | sd_dif.c | 44 struct gendisk *disk = sdkp->disk; sd_dif_config_host()
|
H A D | sd.c | 104 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 D | st.h | 193 struct gendisk *disk;
|
H A D | osst.h | 628 struct gendisk *drive;
|
H A D | sg.c | 185 struct gendisk *disk; 1400 sg_alloc(struct gendisk *disk, struct scsi_device *scsidp) sg_alloc() 1465 struct gendisk *disk; sg_add_device()
|
H A D | st.c | 4169 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 D | osst.c | 5847 struct gendisk * drive; osst_probe()
|
/linux-4.4.14/drivers/block/aoe/ |
H A D | aoeblk.c | 37 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 D | aoe.h | 75 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 D | core.c | 219 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 D | nd.h | 167 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 D | blk.c | 26 struct gendisk *disk; 167 struct gendisk *disk = bdev->bd_disk; nd_blk_make_request() 244 struct gendisk *disk; nd_blk_attach_disk()
|
H A D | btt.h | 154 * @btt_disk: Pointer to the gendisk for BTT device 171 struct gendisk *btt_disk;
|
H A D | pmem.c | 35 struct gendisk *pmem_disk; 170 struct gendisk *disk; pmem_attach_disk()
|
H A D | bus.c | 236 int nvdimm_revalidate_disk(struct gendisk *disk) nvdimm_revalidate_disk()
|
/linux-4.4.14/arch/mips/include/asm/mach-rc32434/ |
H A D | rb.h | 77 struct gendisk *gd;
|
/linux-4.4.14/drivers/md/ |
H A D | linear.c | 116 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 D | md.c | 301 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 D | dm-table.c | 1029 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 D | multipath.c | 259 disk_stack_limits(mddev->gendisk, rdev->bdev, multipath_add_disk() 424 disk_stack_limits(mddev->gendisk, rdev->bdev, rdev_for_each()
|
H A D | faulty.c | 323 disk_stack_limits(mddev->gendisk, rdev->bdev, rdev_for_each()
|
H A D | md.h | 247 struct gendisk *gendisk; member in struct:mddev 563 return mddev->gendisk ? mddev->gendisk->disk_name : "mdX"; mdname()
|
H A D | raid10.c | 1724 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 D | raid1.c | 1611 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 D | raid5.c | 1037 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 D | dm.c | 167 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 D | raid0.c | 388 disk_stack_limits(mddev->gendisk, rdev->bdev, rdev_for_each()
|
H A D | dm-ioctl.c | 506 struct gendisk *disk; list_devices() 682 struct gendisk *disk = dm_disk(md); __dev_status()
|
H A D | md-cluster.c | 424 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 D | ubd_kern.c | 90 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 D | mtd_blkdevs.c | 53 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 D | mtdswap.c | 1320 struct gendisk *gd = d->mbd_dev->disk; mtdswap_add_debugfs()
|
/linux-4.4.14/drivers/block/zram/ |
H A D | zram_drv.h | 98 struct gendisk *disk;
|
H A D | zram_drv.c | 1218 /* 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 D | blktrans.h | 45 struct gendisk *disk;
|
/linux-4.4.14/arch/xtensa/platforms/iss/ |
H A D | simdisk.c | 32 struct gendisk *gd; 137 static void simdisk_release(struct gendisk *disk, fmode_t mode) simdisk_release()
|
/linux-4.4.14/fs/ |
H A D | block_dev.c | 842 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 D | pf.c | 214 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 D | pcd.c | 201 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 D | pd.c | 238 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 D | jsflash.c | 124 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 D | block.c | 90 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 D | ms_block.h | 152 struct gendisk *disk;
|
H A D | mspro_block.c | 142 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 D | ms_block.c | 1945 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 D | nvme.h | 84 struct gendisk *disk;
|
H A D | pci.c | 2002 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 D | nfblock.c | 59 struct gendisk *disk;
|
/linux-4.4.14/drivers/staging/lustre/lustre/llite/ |
H A D | lloop.c | 163 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 D | gdrom.c | 117 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 D | osd_uld.c | 89 struct gendisk *disk; 421 struct gendisk *disk; osd_probe()
|
/linux-4.4.14/drivers/block/mtip32xx/ |
H A D | mtip32xx.h | 465 struct gendisk *disk; /* Pointer to our gendisk structure. */
|
H A D | mtip32xx.c | 3696 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 D | rrpc.h | 87 struct gendisk *disk;
|
H A D | core.c | 384 struct gendisk *tdisk; nvm_create_target() 463 struct gendisk *tdisk = t->disk; nvm_remove_target()
|
H A D | rrpc.c | 1260 static void *rrpc_init(struct nvm_dev *dev, struct gendisk *tdisk, rrpc_init()
|
/linux-4.4.14/arch/powerpc/sysdev/ |
H A D | axonram.c | 63 struct gendisk *disk;
|
/linux-4.4.14/drivers/s390/char/ |
H A D | tape.h | 24 struct gendisk;
|
/linux-4.4.14/mm/ |
H A D | page_io.c | 112 struct gendisk *disk = sis->bdev->bd_disk; end_swap_bio_read()
|
H A D | swapfile.c | 818 struct gendisk *disk = p->bdev->bd_disk; swap_entry_free()
|
/linux-4.4.14/init/ |
H A D | do_mounts.c | 121 struct gendisk *disk; devt_from_partuuid()
|
/linux-4.4.14/drivers/md/bcache/ |
H A D | request.c | 1039 struct gendisk *g = dc->disk.disk; bch_cached_dev_request_init() 1143 struct gendisk *g = d->disk; bch_flash_dev_request_init()
|
H A D | bcache.h | 256 struct gendisk *disk;
|
H A D | super.c | 631 static void release_dev(struct gendisk *b, fmode_t mode) release_dev()
|
/linux-4.4.14/drivers/char/ |
H A D | random.c | 132 * 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 D | block.c | 99 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 D | drbd_main.c | 65 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 D | drbd_worker.c | 1573 struct gendisk *disk = device->ldev->backing_bdev->bd_contains->bd_disk; drbd_rs_controller_reset()
|
H A D | drbd_int.h | 848 struct gendisk *vdisk;
|
H A D | drbd_receiver.c | 2468 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 D | transport.c | 524 struct gendisk *disk; last_sector_hacks()
|
/linux-4.4.14/Documentation/cdrom/ |
H A D | cdrom-standard.tex | 755 of the $struct gendisk$.
|