Searched refs:slave_image (Results 1 – 3 of 3) sorted by relevance
287 struct vme_slave_resource *slave_image = NULL; in vme_slave_request() local298 slave_image = list_entry(slave_pos, in vme_slave_request()301 if (!slave_image) { in vme_slave_request()307 mutex_lock(&slave_image->mtx); in vme_slave_request()308 if (((slave_image->address_attr & address) == address) && in vme_slave_request()309 ((slave_image->cycle_attr & cycle) == cycle) && in vme_slave_request()310 (slave_image->locked == 0)) { in vme_slave_request()312 slave_image->locked = 1; in vme_slave_request()313 mutex_unlock(&slave_image->mtx); in vme_slave_request()314 allocated_image = slave_image; in vme_slave_request()[all …]
1071 struct vme_slave_resource *slave_image; in fake_init() local1135 slave_image = kmalloc(sizeof(*slave_image), GFP_KERNEL); in fake_init()1136 if (!slave_image) { in fake_init()1140 slave_image->parent = fake_bridge; in fake_init()1141 mutex_init(&slave_image->mtx); in fake_init()1142 slave_image->locked = 0; in fake_init()1143 slave_image->number = i; in fake_init()1144 slave_image->address_attr = VME_A16 | VME_A24 | VME_A32 | in fake_init()1147 slave_image->cycle_attr = VME_SCT | VME_BLT | VME_MBLT | in fake_init()1151 list_add_tail(&slave_image->list, in fake_init()[all …]
2259 struct vme_slave_resource *slave_image; in tsi148_probe() local2382 slave_image = kmalloc(sizeof(*slave_image), GFP_KERNEL); in tsi148_probe()2383 if (!slave_image) { in tsi148_probe()2387 slave_image->parent = tsi148_bridge; in tsi148_probe()2388 mutex_init(&slave_image->mtx); in tsi148_probe()2389 slave_image->locked = 0; in tsi148_probe()2390 slave_image->number = i; in tsi148_probe()2391 slave_image->address_attr = VME_A16 | VME_A24 | VME_A32 | in tsi148_probe()2393 slave_image->cycle_attr = VME_SCT | VME_BLT | VME_MBLT | in tsi148_probe()2397 list_add_tail(&slave_image->list, in tsi148_probe()[all …]