Searched refs:event_nr (Results 1 – 5 of 5) sorted by relevance
/drivers/scsi/libsas/ |
D | sas_init.c | 606 atomic_inc(&phy->event_nr); in sas_alloc_event() 608 if (atomic_read(&phy->event_nr) > phy->ha->event_thres) { in sas_alloc_event() 619 atomic_dec(&phy->event_nr); in sas_alloc_event() 632 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 | 445 if (!dm_kobject_uevent(hc->md, KOBJ_CHANGE, param->event_nr)) in dm_hash_rename() 513 uint32_t *event_nr; in list_devices() local 554 event_nr = align_ptr(nl->name + strlen(hc->name) + 1); in list_devices() 555 *event_nr = dm_get_event_nr(hc->md); in list_devices() 556 nl = align_ptr(event_nr + 1); in list_devices() 744 param->event_nr = dm_get_event_nr(md); in __dev_status() 907 if (!dm_kobject_uevent(md, KOBJ_REMOVE, param->event_nr)) in dev_remove() 1085 if (!r && !dm_kobject_uevent(md, KOBJ_CHANGE, param->event_nr)) in do_resume() 1224 if (dm_wait_event(md, param->event_nr)) { in dev_wait()
|
D | dm-core.h | 77 atomic_t event_nr; member
|
D | dm.c | 1948 atomic_set(&md->event_nr, 0); in alloc_dev() 2091 atomic_inc(&md->event_nr); in event_callback() 2978 return atomic_read(&md->event_nr); in dm_get_event_nr() 2981 int dm_wait_event(struct mapped_device *md, int event_nr) in dm_wait_event() argument 2984 (event_nr != atomic_read(&md->event_nr))); in dm_wait_event()
|