Home
last modified time | relevance | path

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

/Linux-v6.1/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(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()
Dbdev.c948 disk_flush_events(disk, DISK_EVENT_MEDIA_CHANGE); in blkdev_put()
/Linux-v6.1/drivers/scsi/
Dsr.c178 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()
Dsd.c1571 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/
Dgdrom.c383 DISK_EVENT_MEDIA_CHANGE : 0; in gdrom_check_events()
793 gd.disk->events = DISK_EVENT_MEDIA_CHANGE; in probe_gdrom()
Dcdrom.c1520 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/
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()
2006 disk->events = DISK_EVENT_MEDIA_CHANGE; in ataflop_alloc_disk()
Dswim.c738 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()
Dloop.c606 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()
Dswim3.c1029 return fs->ejected ? DISK_EVENT_MEDIA_CHANGE : 0; in floppy_check_events()
1229 disk->events = DISK_EVENT_MEDIA_CHANGE; in swim3_attach()
Damiflop.c1762 return DISK_EVENT_MEDIA_CHANGE; in amiga_check_events()
1794 disk->events = DISK_EVENT_MEDIA_CHANGE; in fd_alloc_disk()
Dfloppy.c4093 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/
Dpd.c861 return r ? DISK_EVENT_MEDIA_CHANGE : 0; in pd_check_events()
926 p->events = DISK_EVENT_MEDIA_CHANGE; in pd_probe_drive()
Dpcd.c491 return res ? DISK_EVENT_MEDIA_CHANGE : 0; in pcd_check_events()
932 disk->events = DISK_EVENT_MEDIA_CHANGE; in pcd_init_unit()
Dpf.c367 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/
Ddm-zoned-target.c614 disk->fops->check_events(disk, 0) & DISK_EVENT_MEDIA_CHANGE) { in dmz_check_bdev()
Dmd.c5677 disk->events |= DISK_EVENT_MEDIA_CHANGE; in md_alloc()
7825 ret = DISK_EVENT_MEDIA_CHANGE; in md_check_events()
/Linux-v6.1/include/linux/
Dblkdev.h98 DISK_EVENT_MEDIA_CHANGE = 1 << 0, /* media changed */ enumerator