Searched refs:evl (Results 1 – 7 of 7) sorted by relevance
18 struct idxd_evl *evl = idxd->evl; in dump_event_entry() local25 entry = (struct dsa_evl_entry *)evl->log + index; in dump_event_entry()60 struct idxd_evl *evl = idxd->evl; in debugfs_evl_show() local66 if (!evl || !evl->log) in debugfs_evl_show()69 mutex_lock(&evl->lock); in debugfs_evl_show()74 evl_size = evl->size; in debugfs_evl_show()90 mutex_unlock(&evl->lock); in debugfs_evl_show()105 if (idxd->evl) { in idxd_device_init_debugfs()
228 struct idxd_evl *evl = idxd->evl; in idxd_evl_fault_work() local240 evl->batch_fail[entry_head->batch_id] = false; in idxd_evl_fault_work()246 bf = &evl->batch_fail[entry_head->batch_id]; in idxd_evl_fault_work()291 evl->batch_fail[entry_head->batch_id] = true; in idxd_evl_fault_work()315 struct idxd_evl *evl = idxd->evl; in process_evl_entry() local318 if (test_bit(index, evl->bmap)) { in process_evl_entry()319 clear_bit(index, evl->bmap); in process_evl_entry()358 struct idxd_evl *evl = idxd->evl; in process_evl_entries() local366 mutex_lock(&evl->lock); in process_evl_entries()373 size = idxd->evl->size; in process_evl_entries()[all …]
748 struct idxd_evl *evl = idxd->evl; in idxd_device_evl_setup() local752 if (!evl) in idxd_device_evl_setup()773 mutex_lock(&evl->lock); in idxd_device_evl_setup()774 evl->log = addr; in idxd_device_evl_setup()775 evl->dma = dma_addr; in idxd_device_evl_setup()776 evl->log_size = size; in idxd_device_evl_setup()777 evl->bmap = bmap; in idxd_device_evl_setup()781 evlcfg.size = evl->size; in idxd_device_evl_setup()794 mutex_unlock(&evl->lock); in idxd_device_evl_setup()811 struct idxd_evl *evl = idxd->evl; in idxd_device_evl_free() local[all …]
336 struct idxd_evl *evl = idxd->evl; in idxd_cdev_evl_drain_pasid() local342 if (!evl) in idxd_cdev_evl_drain_pasid()345 mutex_lock(&evl->lock); in idxd_cdev_evl_drain_pasid()349 size = evl->size; in idxd_cdev_evl_drain_pasid()352 entry_head = (struct __evl_entry *)(evl->log + (h * ent_size)); in idxd_cdev_evl_drain_pasid()354 set_bit(h, evl->bmap); in idxd_cdev_evl_drain_pasid()358 mutex_unlock(&evl->lock); in idxd_cdev_evl_drain_pasid()
348 struct idxd_evl *evl; in idxd_init_evl() local354 evl = kzalloc_node(sizeof(*evl), GFP_KERNEL, dev_to_node(dev)); in idxd_init_evl()355 if (!evl) in idxd_init_evl()358 mutex_init(&evl->lock); in idxd_init_evl()359 evl->size = IDXD_EVL_SIZE_MIN; in idxd_init_evl()372 kfree(evl); in idxd_init_evl()376 idxd->evl = evl; in idxd_init_evl()
1644 if (!idxd->evl) in event_log_size_show()1647 return sysfs_emit(buf, "%u\n", idxd->evl->size); in event_log_size_show()1658 if (!idxd->evl) in event_log_size_store()1672 (val * evl_ent_size(idxd) > ULONG_MAX - idxd->evl->dma)) in event_log_size_store()1675 idxd->evl->size = val; in event_log_size_store()1783 kfree(idxd->evl); in idxd_conf_device_release()
359 struct idxd_evl *evl; member376 return idxd->evl->size * evl_ent_size(idxd); in evl_size()