Searched refs:slave_image (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/drivers/vme/
H A Dvme.c269 struct vme_slave_resource *slave_image = NULL; vme_slave_request() local
280 slave_image = list_entry(slave_pos, vme_slave_request()
283 if (slave_image == NULL) { vme_slave_request()
289 mutex_lock(&slave_image->mtx); vme_slave_request()
290 if (((slave_image->address_attr & address) == address) && vme_slave_request()
291 ((slave_image->cycle_attr & cycle) == cycle) && vme_slave_request()
292 (slave_image->locked == 0)) { vme_slave_request()
294 slave_image->locked = 1; vme_slave_request()
295 mutex_unlock(&slave_image->mtx); vme_slave_request()
296 allocated_image = slave_image; vme_slave_request()
299 mutex_unlock(&slave_image->mtx); vme_slave_request()
318 mutex_lock(&slave_image->mtx); vme_slave_request()
319 slave_image->locked = 0; vme_slave_request()
320 mutex_unlock(&slave_image->mtx); vme_slave_request()
388 struct vme_slave_resource *slave_image; vme_slave_free() local
395 slave_image = list_entry(resource->entry, struct vme_slave_resource, vme_slave_free()
397 if (slave_image == NULL) { vme_slave_free()
403 mutex_lock(&slave_image->mtx); vme_slave_free()
404 if (slave_image->locked == 0) vme_slave_free()
407 slave_image->locked = 0; vme_slave_free()
408 mutex_unlock(&slave_image->mtx); vme_slave_free()
/linux-4.4.14/drivers/vme/bridges/
H A Dvme_ca91cx42.c1615 struct vme_slave_resource *slave_image; ca91cx42_probe() local
1719 slave_image = kmalloc(sizeof(struct vme_slave_resource), ca91cx42_probe()
1721 if (slave_image == NULL) { ca91cx42_probe()
1727 slave_image->parent = ca91cx42_bridge; ca91cx42_probe()
1728 mutex_init(&slave_image->mtx); ca91cx42_probe()
1729 slave_image->locked = 0; ca91cx42_probe()
1730 slave_image->number = i; ca91cx42_probe()
1731 slave_image->address_attr = VME_A24 | VME_A32 | VME_USER1 | ca91cx42_probe()
1736 slave_image->address_attr |= VME_A16; ca91cx42_probe()
1738 slave_image->cycle_attr = VME_SCT | VME_BLT | VME_MBLT | ca91cx42_probe()
1740 list_add_tail(&slave_image->list, ca91cx42_probe()
1844 slave_image = list_entry(pos, struct vme_slave_resource, list); ca91cx42_probe()
1846 kfree(slave_image); ca91cx42_probe()
1878 struct vme_slave_resource *slave_image; ca91cx42_remove() local
1928 slave_image = list_entry(pos, struct vme_slave_resource, list); ca91cx42_remove()
1930 kfree(slave_image); ca91cx42_remove()
H A Dvme_tsi148.c2290 struct vme_slave_resource *slave_image; tsi148_probe() local
2422 slave_image = kmalloc(sizeof(struct vme_slave_resource), tsi148_probe()
2424 if (slave_image == NULL) { tsi148_probe()
2430 slave_image->parent = tsi148_bridge; tsi148_probe()
2431 mutex_init(&slave_image->mtx); tsi148_probe()
2432 slave_image->locked = 0; tsi148_probe()
2433 slave_image->number = i; tsi148_probe()
2434 slave_image->address_attr = VME_A16 | VME_A24 | VME_A32 | tsi148_probe()
2436 slave_image->cycle_attr = VME_SCT | VME_BLT | VME_MBLT | tsi148_probe()
2440 list_add_tail(&slave_image->list, tsi148_probe()
2560 slave_image = list_entry(pos, struct vme_slave_resource, list); tsi148_probe()
2562 kfree(slave_image); tsi148_probe()
2595 struct vme_slave_resource *slave_image; tsi148_remove() local
2660 slave_image = list_entry(pos, struct vme_slave_resource, list); tsi148_remove()
2662 kfree(slave_image); tsi148_remove()

Completed in 304 milliseconds