Searched refs:event_nr (Results 1 – 5 of 5) sorted by relevance
/drivers/scsi/libsas/ |
D | sas_init.c | 599 atomic_inc(&phy->event_nr); in __sas_alloc_event() 601 if (atomic_read(&phy->event_nr) > phy->ha->event_thres) { in __sas_alloc_event() 613 atomic_dec(&phy->event_nr); in __sas_alloc_event() 637 atomic_dec(&phy->event_nr); in sas_free_event()
|
D | sas_phy.c | 125 atomic_set(&phy->event_nr, 0); in sas_register_phys()
|
/drivers/md/ |
D | dm-ioctl.c | 446 if (!dm_kobject_uevent(hc->md, KOBJ_CHANGE, param->event_nr)) in dm_hash_rename() 514 uint32_t *event_nr; in list_devices() local 555 event_nr = align_ptr(nl->name + strlen(hc->name) + 1); in list_devices() 556 *event_nr = dm_get_event_nr(hc->md); in list_devices() 557 nl = align_ptr(event_nr + 1); in list_devices() 745 param->event_nr = dm_get_event_nr(md); in __dev_status() 908 if (!dm_kobject_uevent(md, KOBJ_REMOVE, param->event_nr)) in dev_remove() 1086 if (!r && !dm_kobject_uevent(md, KOBJ_CHANGE, param->event_nr)) in do_resume() 1225 if (dm_wait_event(md, param->event_nr)) { in dev_wait()
|
D | dm-core.h | 83 atomic_t event_nr; member
|
D | dm.c | 1874 atomic_set(&md->event_nr, 0); in alloc_dev() 2028 atomic_inc(&md->event_nr); in event_callback() 2844 return atomic_read(&md->event_nr); in dm_get_event_nr() 2847 int dm_wait_event(struct mapped_device *md, int event_nr) in dm_wait_event() argument 2850 (event_nr != atomic_read(&md->event_nr))); in dm_wait_event()
|