slave_image 1604 drivers/vme/bridges/vme_ca91cx42.c struct vme_slave_resource *slave_image; slave_image 1698 drivers/vme/bridges/vme_ca91cx42.c slave_image = kmalloc(sizeof(*slave_image), GFP_KERNEL); slave_image 1699 drivers/vme/bridges/vme_ca91cx42.c if (!slave_image) { slave_image 1703 drivers/vme/bridges/vme_ca91cx42.c slave_image->parent = ca91cx42_bridge; slave_image 1704 drivers/vme/bridges/vme_ca91cx42.c mutex_init(&slave_image->mtx); slave_image 1705 drivers/vme/bridges/vme_ca91cx42.c slave_image->locked = 0; slave_image 1706 drivers/vme/bridges/vme_ca91cx42.c slave_image->number = i; slave_image 1707 drivers/vme/bridges/vme_ca91cx42.c slave_image->address_attr = VME_A24 | VME_A32 | VME_USER1 | slave_image 1712 drivers/vme/bridges/vme_ca91cx42.c slave_image->address_attr |= VME_A16; slave_image 1714 drivers/vme/bridges/vme_ca91cx42.c slave_image->cycle_attr = VME_SCT | VME_BLT | VME_MBLT | slave_image 1716 drivers/vme/bridges/vme_ca91cx42.c list_add_tail(&slave_image->list, slave_image 1813 drivers/vme/bridges/vme_ca91cx42.c slave_image = list_entry(pos, struct vme_slave_resource, list); slave_image 1815 drivers/vme/bridges/vme_ca91cx42.c kfree(slave_image); slave_image 1847 drivers/vme/bridges/vme_ca91cx42.c struct vme_slave_resource *slave_image; slave_image 1897 drivers/vme/bridges/vme_ca91cx42.c slave_image = list_entry(pos, struct vme_slave_resource, list); slave_image 1899 drivers/vme/bridges/vme_ca91cx42.c kfree(slave_image); slave_image 1071 drivers/vme/bridges/vme_fake.c struct vme_slave_resource *slave_image; slave_image 1135 drivers/vme/bridges/vme_fake.c slave_image = kmalloc(sizeof(*slave_image), GFP_KERNEL); slave_image 1136 drivers/vme/bridges/vme_fake.c if (!slave_image) { slave_image 1140 drivers/vme/bridges/vme_fake.c slave_image->parent = fake_bridge; slave_image 1141 drivers/vme/bridges/vme_fake.c mutex_init(&slave_image->mtx); slave_image 1142 drivers/vme/bridges/vme_fake.c slave_image->locked = 0; slave_image 1143 drivers/vme/bridges/vme_fake.c slave_image->number = i; slave_image 1144 drivers/vme/bridges/vme_fake.c slave_image->address_attr = VME_A16 | VME_A24 | VME_A32 | slave_image 1147 drivers/vme/bridges/vme_fake.c slave_image->cycle_attr = VME_SCT | VME_BLT | VME_MBLT | slave_image 1151 drivers/vme/bridges/vme_fake.c list_add_tail(&slave_image->list, slave_image 1220 drivers/vme/bridges/vme_fake.c slave_image = list_entry(pos, struct vme_slave_resource, list); slave_image 1222 drivers/vme/bridges/vme_fake.c kfree(slave_image); slave_image 1247 drivers/vme/bridges/vme_fake.c struct vme_slave_resource *slave_image; slave_image 1277 drivers/vme/bridges/vme_fake.c slave_image = list_entry(pos, struct vme_slave_resource, list); slave_image 1279 drivers/vme/bridges/vme_fake.c kfree(slave_image); slave_image 2283 drivers/vme/bridges/vme_tsi148.c struct vme_slave_resource *slave_image; slave_image 2406 drivers/vme/bridges/vme_tsi148.c slave_image = kmalloc(sizeof(*slave_image), GFP_KERNEL); slave_image 2407 drivers/vme/bridges/vme_tsi148.c if (!slave_image) { slave_image 2411 drivers/vme/bridges/vme_tsi148.c slave_image->parent = tsi148_bridge; slave_image 2412 drivers/vme/bridges/vme_tsi148.c mutex_init(&slave_image->mtx); slave_image 2413 drivers/vme/bridges/vme_tsi148.c slave_image->locked = 0; slave_image 2414 drivers/vme/bridges/vme_tsi148.c slave_image->number = i; slave_image 2415 drivers/vme/bridges/vme_tsi148.c slave_image->address_attr = VME_A16 | VME_A24 | VME_A32 | slave_image 2417 drivers/vme/bridges/vme_tsi148.c slave_image->cycle_attr = VME_SCT | VME_BLT | VME_MBLT | slave_image 2421 drivers/vme/bridges/vme_tsi148.c list_add_tail(&slave_image->list, slave_image 2534 drivers/vme/bridges/vme_tsi148.c slave_image = list_entry(pos, struct vme_slave_resource, list); slave_image 2536 drivers/vme/bridges/vme_tsi148.c kfree(slave_image); slave_image 2569 drivers/vme/bridges/vme_tsi148.c struct vme_slave_resource *slave_image; slave_image 2634 drivers/vme/bridges/vme_tsi148.c slave_image = list_entry(pos, struct vme_slave_resource, list); slave_image 2636 drivers/vme/bridges/vme_tsi148.c kfree(slave_image); slave_image 296 drivers/vme/vme.c struct vme_slave_resource *slave_image = NULL; slave_image 307 drivers/vme/vme.c slave_image = list_entry(slave_pos, slave_image 310 drivers/vme/vme.c if (!slave_image) { slave_image 316 drivers/vme/vme.c mutex_lock(&slave_image->mtx); slave_image 317 drivers/vme/vme.c if (((slave_image->address_attr & address) == address) && slave_image 318 drivers/vme/vme.c ((slave_image->cycle_attr & cycle) == cycle) && slave_image 319 drivers/vme/vme.c (slave_image->locked == 0)) { slave_image 321 drivers/vme/vme.c slave_image->locked = 1; slave_image 322 drivers/vme/vme.c mutex_unlock(&slave_image->mtx); slave_image 323 drivers/vme/vme.c allocated_image = slave_image; slave_image 326 drivers/vme/vme.c mutex_unlock(&slave_image->mtx); slave_image 344 drivers/vme/vme.c mutex_lock(&slave_image->mtx); slave_image 345 drivers/vme/vme.c slave_image->locked = 0; slave_image 346 drivers/vme/vme.c mutex_unlock(&slave_image->mtx); slave_image 452 drivers/vme/vme.c struct vme_slave_resource *slave_image; slave_image 459 drivers/vme/vme.c slave_image = list_entry(resource->entry, struct vme_slave_resource, slave_image 461 drivers/vme/vme.c if (!slave_image) { slave_image 467 drivers/vme/vme.c mutex_lock(&slave_image->mtx); slave_image 468 drivers/vme/vme.c if (slave_image->locked == 0) slave_image 471 drivers/vme/vme.c slave_image->locked = 0; slave_image 472 drivers/vme/vme.c mutex_unlock(&slave_image->mtx);