Searched refs:DISK_EVENT_MEDIA_CHANGE (Results 1 – 18 of 18) sorted by relevance
/Linux-v6.1/block/ |
D | disk-events.c | 25 [ilog2(DISK_EVENT_MEDIA_CHANGE)] = "media_change", 30 [ilog2(DISK_EVENT_MEDIA_CHANGE)] = "DISK_MEDIA_CHANGE=1", 209 if (events & DISK_EVENT_MEDIA_CHANGE) in disk_check_events() 279 events = disk_clear_events(bdev->bd_disk, DISK_EVENT_MEDIA_CHANGE | in bdev_check_media_change() 281 if (!(events & DISK_EVENT_MEDIA_CHANGE)) in bdev_check_media_change() 307 if (!(events & DISK_EVENT_MEDIA_CHANGE)) in disk_force_media_change()
|
D | bdev.c | 948 disk_flush_events(disk, DISK_EVENT_MEDIA_CHANGE); in blkdev_put()
|
/Linux-v6.1/drivers/scsi/ |
D | sr.c | 178 return DISK_EVENT_MEDIA_CHANGE; in sr_get_events() 189 return DISK_EVENT_MEDIA_CHANGE; in sr_get_events() 191 return DISK_EVENT_MEDIA_CHANGE; in sr_get_events() 216 cd->get_event_changed |= events & DISK_EVENT_MEDIA_CHANGE; in sr_check_events() 225 events &= ~DISK_EVENT_MEDIA_CHANGE; in sr_check_events() 235 events |= DISK_EVENT_MEDIA_CHANGE; in sr_check_events() 240 if (!(clearing & DISK_EVENT_MEDIA_CHANGE)) in sr_check_events() 259 events |= DISK_EVENT_MEDIA_CHANGE; in sr_check_events() 649 disk->events = DISK_EVENT_MEDIA_CHANGE | DISK_EVENT_EJECT_REQUEST; in sr_probe()
|
D | sd.c | 1571 return disk_changed ? DISK_EVENT_MEDIA_CHANGE : 0; in sd_check_events() 3518 gd->events |= DISK_EVENT_MEDIA_CHANGE; in sd_probe()
|
/Linux-v6.1/drivers/cdrom/ |
D | gdrom.c | 383 DISK_EVENT_MEDIA_CHANGE : 0; in gdrom_check_events() 793 gd.disk->events = DISK_EVENT_MEDIA_CHANGE; in probe_gdrom()
|
D | cdrom.c | 1520 cdrom_update_events(cdi, DISK_EVENT_MEDIA_CHANGE); in media_changed() 1521 changed = cdi->ioctl_events & DISK_EVENT_MEDIA_CHANGE; in media_changed()
|
/Linux-v6.1/drivers/block/ |
D | ataflop.c | 1442 return DISK_EVENT_MEDIA_CHANGE; in floppy_check_events() 1446 return DISK_EVENT_MEDIA_CHANGE; in floppy_check_events() 1452 return DISK_EVENT_MEDIA_CHANGE; in floppy_check_events() 2006 disk->events = DISK_EVENT_MEDIA_CHANGE; in ataflop_alloc_disk()
|
D | swim.c | 738 return fs->ejected ? DISK_EVENT_MEDIA_CHANGE : 0; in floppy_check_events() 844 swd->unit[drive].disk->events = DISK_EVENT_MEDIA_CHANGE; in swim_floppy_init()
|
D | loop.c | 606 disk_force_media_change(lo->lo_disk, DISK_EVENT_MEDIA_CHANGE); in loop_change_fd() 1070 disk_force_media_change(lo->lo_disk, DISK_EVENT_MEDIA_CHANGE); in loop_configure() 1174 disk_force_media_change(lo->lo_disk, DISK_EVENT_MEDIA_CHANGE); in __loop_clr_fd() 2032 disk->events = DISK_EVENT_MEDIA_CHANGE; in loop_add()
|
D | swim3.c | 1029 return fs->ejected ? DISK_EVENT_MEDIA_CHANGE : 0; in floppy_check_events() 1229 disk->events = DISK_EVENT_MEDIA_CHANGE; in swim3_attach()
|
D | amiflop.c | 1762 return DISK_EVENT_MEDIA_CHANGE; in amiga_check_events() 1794 disk->events = DISK_EVENT_MEDIA_CHANGE; in fd_alloc_disk()
|
D | floppy.c | 4093 return DISK_EVENT_MEDIA_CHANGE; in floppy_check_events() 4106 return DISK_EVENT_MEDIA_CHANGE; in floppy_check_events() 4524 disk->events = DISK_EVENT_MEDIA_CHANGE; in floppy_alloc_disk()
|
/Linux-v6.1/drivers/block/paride/ |
D | pd.c | 861 return r ? DISK_EVENT_MEDIA_CHANGE : 0; in pd_check_events() 926 p->events = DISK_EVENT_MEDIA_CHANGE; in pd_probe_drive()
|
D | pcd.c | 491 return res ? DISK_EVENT_MEDIA_CHANGE : 0; in pcd_check_events() 932 disk->events = DISK_EVENT_MEDIA_CHANGE; in pcd_init_unit()
|
D | pf.c | 367 return DISK_EVENT_MEDIA_CHANGE; in pf_check_events() 946 disk->events = DISK_EVENT_MEDIA_CHANGE; in pf_init_unit()
|
/Linux-v6.1/drivers/md/ |
D | dm-zoned-target.c | 614 disk->fops->check_events(disk, 0) & DISK_EVENT_MEDIA_CHANGE) { in dmz_check_bdev()
|
D | md.c | 5677 disk->events |= DISK_EVENT_MEDIA_CHANGE; in md_alloc() 7825 ret = DISK_EVENT_MEDIA_CHANGE; in md_check_events()
|
/Linux-v6.1/include/linux/ |
D | blkdev.h | 98 DISK_EVENT_MEDIA_CHANGE = 1 << 0, /* media changed */ enumerator
|