Searched refs:slave_image (Results 1 – 3 of 3) sorted by relevance
256 struct vme_slave_resource *slave_image = NULL; in vme_slave_request() local266 list_for_each_entry(slave_image, &bridge->slave_resources, list) { in vme_slave_request()267 if (!slave_image) { in vme_slave_request()274 mutex_lock(&slave_image->mtx); in vme_slave_request()275 if (((slave_image->address_attr & address) == address) && in vme_slave_request()276 ((slave_image->cycle_attr & cycle) == cycle) && in vme_slave_request()277 (slave_image->locked == 0)) { in vme_slave_request()278 slave_image->locked = 1; in vme_slave_request()279 mutex_unlock(&slave_image->mtx); in vme_slave_request()280 allocated_image = slave_image; in vme_slave_request()[all …]
1059 struct vme_slave_resource *slave_image; in fake_init() local1131 slave_image = kmalloc(sizeof(*slave_image), GFP_KERNEL); in fake_init()1132 if (!slave_image) { in fake_init()1136 slave_image->parent = fake_bridge; in fake_init()1137 mutex_init(&slave_image->mtx); in fake_init()1138 slave_image->locked = 0; in fake_init()1139 slave_image->number = i; in fake_init()1140 slave_image->address_attr = VME_A16 | VME_A24 | VME_A32 | in fake_init()1143 slave_image->cycle_attr = VME_SCT | VME_BLT | VME_MBLT | in fake_init()1147 list_add_tail(&slave_image->list, in fake_init()[all …]
2251 struct vme_slave_resource *slave_image; in tsi148_probe() local2380 slave_image = kmalloc(sizeof(*slave_image), GFP_KERNEL); in tsi148_probe()2381 if (!slave_image) { in tsi148_probe()2385 slave_image->parent = tsi148_bridge; in tsi148_probe()2386 mutex_init(&slave_image->mtx); in tsi148_probe()2387 slave_image->locked = 0; in tsi148_probe()2388 slave_image->number = i; in tsi148_probe()2389 slave_image->address_attr = VME_A16 | VME_A24 | VME_A32 | in tsi148_probe()2391 slave_image->cycle_attr = VME_SCT | VME_BLT | VME_MBLT | in tsi148_probe()2395 list_add_tail(&slave_image->list, in tsi148_probe()[all …]