Lines Matching defs:master_image
395 struct vme_master_resource *master_image = NULL;
406 master_image = list_entry(master_pos,
409 if (master_image == NULL) {
415 spin_lock(&master_image->lock);
416 if (((master_image->address_attr & address) == address) &&
417 ((master_image->cycle_attr & cycle) == cycle) &&
418 ((master_image->width_attr & dwidth) == dwidth) &&
419 (master_image->locked == 0)) {
421 master_image->locked = 1;
422 spin_unlock(&master_image->lock);
423 allocated_image = master_image;
426 spin_unlock(&master_image->lock);
447 spin_lock(&master_image->lock);
448 master_image->locked = 0;
449 spin_unlock(&master_image->lock);
616 struct vme_master_resource *master_image;
623 master_image = list_entry(resource->entry, struct vme_master_resource,
625 if (master_image == NULL) {
631 spin_lock(&master_image->lock);
632 if (master_image->locked == 0)
635 master_image->locked = 0;
636 spin_unlock(&master_image->lock);