Searched refs:slave_image (Results 1 – 4 of 4) sorted by relevance
296 struct vme_slave_resource *slave_image = NULL; in vme_slave_request() local307 slave_image = list_entry(slave_pos, in vme_slave_request()310 if (!slave_image) { in vme_slave_request()316 mutex_lock(&slave_image->mtx); in vme_slave_request()317 if (((slave_image->address_attr & address) == address) && in vme_slave_request()318 ((slave_image->cycle_attr & cycle) == cycle) && in vme_slave_request()319 (slave_image->locked == 0)) { in vme_slave_request()321 slave_image->locked = 1; in vme_slave_request()322 mutex_unlock(&slave_image->mtx); in vme_slave_request()323 allocated_image = slave_image; in vme_slave_request()[all …]
1071 struct vme_slave_resource *slave_image; in fake_init() local1137 slave_image = kmalloc(sizeof(*slave_image), GFP_KERNEL); in fake_init()1138 if (!slave_image) { in fake_init()1142 slave_image->parent = fake_bridge; in fake_init()1143 mutex_init(&slave_image->mtx); in fake_init()1144 slave_image->locked = 0; in fake_init()1145 slave_image->number = i; in fake_init()1146 slave_image->address_attr = VME_A16 | VME_A24 | VME_A32 | in fake_init()1149 slave_image->cycle_attr = VME_SCT | VME_BLT | VME_MBLT | in fake_init()1153 list_add_tail(&slave_image->list, in fake_init()[all …]
1604 struct vme_slave_resource *slave_image; in ca91cx42_probe() local1698 slave_image = kmalloc(sizeof(*slave_image), GFP_KERNEL); in ca91cx42_probe()1699 if (!slave_image) { in ca91cx42_probe()1703 slave_image->parent = ca91cx42_bridge; in ca91cx42_probe()1704 mutex_init(&slave_image->mtx); in ca91cx42_probe()1705 slave_image->locked = 0; in ca91cx42_probe()1706 slave_image->number = i; in ca91cx42_probe()1707 slave_image->address_attr = VME_A24 | VME_A32 | VME_USER1 | in ca91cx42_probe()1712 slave_image->address_attr |= VME_A16; in ca91cx42_probe()1714 slave_image->cycle_attr = VME_SCT | VME_BLT | VME_MBLT | in ca91cx42_probe()[all …]
2284 struct vme_slave_resource *slave_image; in tsi148_probe() local2407 slave_image = kmalloc(sizeof(*slave_image), GFP_KERNEL); in tsi148_probe()2408 if (!slave_image) { in tsi148_probe()2412 slave_image->parent = tsi148_bridge; in tsi148_probe()2413 mutex_init(&slave_image->mtx); in tsi148_probe()2414 slave_image->locked = 0; in tsi148_probe()2415 slave_image->number = i; in tsi148_probe()2416 slave_image->address_attr = VME_A16 | VME_A24 | VME_A32 | in tsi148_probe()2418 slave_image->cycle_attr = VME_SCT | VME_BLT | VME_MBLT | in tsi148_probe()2422 list_add_tail(&slave_image->list, in tsi148_probe()[all …]