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

/linux-4.1.27/drivers/vme/
H A Dvme.c237 struct vme_slave_resource *slave_image = NULL; vme_slave_request() local
248 slave_image = list_entry(slave_pos, vme_slave_request()
251 if (slave_image == NULL) { vme_slave_request()
257 mutex_lock(&slave_image->mtx); vme_slave_request()
258 if (((slave_image->address_attr & address) == address) && vme_slave_request()
259 ((slave_image->cycle_attr & cycle) == cycle) && vme_slave_request()
260 (slave_image->locked == 0)) { vme_slave_request()
262 slave_image->locked = 1; vme_slave_request()
263 mutex_unlock(&slave_image->mtx); vme_slave_request()
264 allocated_image = slave_image; vme_slave_request()
267 mutex_unlock(&slave_image->mtx); vme_slave_request()
286 mutex_lock(&slave_image->mtx); vme_slave_request()
287 slave_image->locked = 0; vme_slave_request()
288 mutex_unlock(&slave_image->mtx); vme_slave_request()
356 struct vme_slave_resource *slave_image; vme_slave_free() local
363 slave_image = list_entry(resource->entry, struct vme_slave_resource, vme_slave_free()
365 if (slave_image == NULL) { vme_slave_free()
371 mutex_lock(&slave_image->mtx); vme_slave_free()
372 if (slave_image->locked == 0) vme_slave_free()
375 slave_image->locked = 0; vme_slave_free()
376 mutex_unlock(&slave_image->mtx); vme_slave_free()
/linux-4.1.27/drivers/vme/bridges/
H A Dvme_ca91cx42.c1604 struct vme_slave_resource *slave_image; ca91cx42_probe() local
1708 slave_image = kmalloc(sizeof(struct vme_slave_resource), ca91cx42_probe()
1710 if (slave_image == NULL) { ca91cx42_probe()
1716 slave_image->parent = ca91cx42_bridge; ca91cx42_probe()
1717 mutex_init(&slave_image->mtx); ca91cx42_probe()
1718 slave_image->locked = 0; ca91cx42_probe()
1719 slave_image->number = i; ca91cx42_probe()
1720 slave_image->address_attr = VME_A24 | VME_A32 | VME_USER1 | ca91cx42_probe()
1725 slave_image->address_attr |= VME_A16; ca91cx42_probe()
1727 slave_image->cycle_attr = VME_SCT | VME_BLT | VME_MBLT | ca91cx42_probe()
1729 list_add_tail(&slave_image->list, ca91cx42_probe()
1833 slave_image = list_entry(pos, struct vme_slave_resource, list); ca91cx42_probe()
1835 kfree(slave_image); ca91cx42_probe()
1867 struct vme_slave_resource *slave_image; ca91cx42_remove() local
1917 slave_image = list_entry(pos, struct vme_slave_resource, list); ca91cx42_remove()
1919 kfree(slave_image); ca91cx42_remove()
H A Dvme_tsi148.c2354 struct vme_slave_resource *slave_image; tsi148_probe() local
2486 slave_image = kmalloc(sizeof(struct vme_slave_resource), tsi148_probe()
2488 if (slave_image == NULL) { tsi148_probe()
2494 slave_image->parent = tsi148_bridge; tsi148_probe()
2495 mutex_init(&slave_image->mtx); tsi148_probe()
2496 slave_image->locked = 0; tsi148_probe()
2497 slave_image->number = i; tsi148_probe()
2498 slave_image->address_attr = VME_A16 | VME_A24 | VME_A32 | tsi148_probe()
2500 slave_image->cycle_attr = VME_SCT | VME_BLT | VME_MBLT | tsi148_probe()
2504 list_add_tail(&slave_image->list, tsi148_probe()
2624 slave_image = list_entry(pos, struct vme_slave_resource, list); tsi148_probe()
2626 kfree(slave_image); tsi148_probe()
2659 struct vme_slave_resource *slave_image; tsi148_remove() local
2724 slave_image = list_entry(pos, struct vme_slave_resource, list); tsi148_remove()
2726 kfree(slave_image); tsi148_remove()

Completed in 169 milliseconds