Lines Matching refs:master_image
497 struct vme_master_resource *master_image = NULL; in vme_master_request() local
508 master_image = list_entry(master_pos, in vme_master_request()
511 if (!master_image) { in vme_master_request()
517 spin_lock(&master_image->lock); in vme_master_request()
518 if (((master_image->address_attr & address) == address) && in vme_master_request()
519 ((master_image->cycle_attr & cycle) == cycle) && in vme_master_request()
520 ((master_image->width_attr & dwidth) == dwidth) && in vme_master_request()
521 (master_image->locked == 0)) { in vme_master_request()
523 master_image->locked = 1; in vme_master_request()
524 spin_unlock(&master_image->lock); in vme_master_request()
525 allocated_image = master_image; in vme_master_request()
528 spin_unlock(&master_image->lock); in vme_master_request()
548 spin_lock(&master_image->lock); in vme_master_request()
549 master_image->locked = 0; in vme_master_request()
550 spin_unlock(&master_image->lock); in vme_master_request()
832 struct vme_master_resource *master_image; in vme_master_free() local
839 master_image = list_entry(resource->entry, struct vme_master_resource, in vme_master_free()
841 if (!master_image) { in vme_master_free()
847 spin_lock(&master_image->lock); in vme_master_free()
848 if (master_image->locked == 0) in vme_master_free()
851 master_image->locked = 0; in vme_master_free()
852 spin_unlock(&master_image->lock); in vme_master_free()