Home
last modified time | relevance | path

Searched refs:DISK_EVENT_MEDIA_CHANGE (Results 1 – 15 of 15) sorted by relevance

/linux-6.6.21/block/
Ddisk-events.c25 [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(disk, DISK_EVENT_MEDIA_CHANGE | in disk_check_media_change()
281 if (!(events & DISK_EVENT_MEDIA_CHANGE)) in disk_check_media_change()
300 disk_event_uevent(disk, DISK_EVENT_MEDIA_CHANGE); in disk_force_media_change()
Dbdev.c895 disk_flush_events(disk, DISK_EVENT_MEDIA_CHANGE); in blkdev_put()
/linux-6.6.21/drivers/scsi/
Dsr.c181 return DISK_EVENT_MEDIA_CHANGE; in sr_get_events()
192 return DISK_EVENT_MEDIA_CHANGE; in sr_get_events()
194 return DISK_EVENT_MEDIA_CHANGE; in sr_get_events()
219 cd->get_event_changed |= events & DISK_EVENT_MEDIA_CHANGE; in sr_check_events()
228 events &= ~DISK_EVENT_MEDIA_CHANGE; in sr_check_events()
238 events |= DISK_EVENT_MEDIA_CHANGE; in sr_check_events()
243 if (!(clearing & DISK_EVENT_MEDIA_CHANGE)) in sr_check_events()
262 events |= DISK_EVENT_MEDIA_CHANGE; in sr_check_events()
647 disk->events = DISK_EVENT_MEDIA_CHANGE | DISK_EVENT_EJECT_REQUEST; in sr_probe()
Dsd.c1642 return disk_changed ? DISK_EVENT_MEDIA_CHANGE : 0; in sd_check_events()
3745 gd->events |= DISK_EVENT_MEDIA_CHANGE; in sd_probe()
/linux-6.6.21/drivers/cdrom/
Dgdrom.c383 DISK_EVENT_MEDIA_CHANGE : 0; in gdrom_check_events()
793 gd.disk->events = DISK_EVENT_MEDIA_CHANGE; in probe_gdrom()
Dcdrom.c1503 cdrom_update_events(cdi, DISK_EVENT_MEDIA_CHANGE); in media_changed()
1504 changed = cdi->ioctl_events & DISK_EVENT_MEDIA_CHANGE; in media_changed()
/linux-6.6.21/drivers/block/
Dataflop.c1442 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()
2005 disk->events = DISK_EVENT_MEDIA_CHANGE; in ataflop_alloc_disk()
Dswim.c736 return fs->ejected ? DISK_EVENT_MEDIA_CHANGE : 0; in floppy_check_events()
842 swd->unit[drive].disk->events = DISK_EVENT_MEDIA_CHANGE; in swim_floppy_init()
Dswim3.c1028 return fs->ejected ? DISK_EVENT_MEDIA_CHANGE : 0; in floppy_check_events()
1228 disk->events = DISK_EVENT_MEDIA_CHANGE; in swim3_attach()
Damiflop.c1759 return DISK_EVENT_MEDIA_CHANGE; in amiga_check_events()
1791 disk->events = DISK_EVENT_MEDIA_CHANGE; in fd_alloc_disk()
Dfloppy.c4094 return DISK_EVENT_MEDIA_CHANGE; in floppy_check_events()
4107 return DISK_EVENT_MEDIA_CHANGE; in floppy_check_events()
4526 disk->events = DISK_EVENT_MEDIA_CHANGE; in floppy_alloc_disk()
Dloop.c2081 disk->events = DISK_EVENT_MEDIA_CHANGE; in loop_add()
/linux-6.6.21/drivers/md/
Ddm-zoned-target.c614 disk->fops->check_events(disk, 0) & DISK_EVENT_MEDIA_CHANGE) { in dmz_check_bdev()
Dmd.c5741 disk->events |= DISK_EVENT_MEDIA_CHANGE; in md_alloc()
7931 ret = DISK_EVENT_MEDIA_CHANGE; in md_check_events()
/linux-6.6.21/include/linux/
Dblkdev.h91 DISK_EVENT_MEDIA_CHANGE = 1 << 0, /* media changed */ enumerator