• Home
  • Raw
  • Download

Lines Matching refs:shared

719 		struct flchip_shared *shared;  in cfi_intelext_partition_fixup()  local
783 shared = kmalloc_array(cfi->numchips, in cfi_intelext_partition_fixup()
786 if (!shared) { in cfi_intelext_partition_fixup()
796 shared[i].writing = shared[i].erasing = NULL; in cfi_intelext_partition_fixup()
797 mutex_init(&shared[i].lock); in cfi_intelext_partition_fixup()
801 chip->priv = &shared[i]; in cfi_intelext_partition_fixup()
970 struct flchip_shared *shared = chip->priv; in get_chip() local
972 mutex_lock(&shared->lock); in get_chip()
973 contender = shared->writing; in get_chip()
985 mutex_unlock(&shared->lock); in get_chip()
1000 mutex_lock(&shared->lock); in get_chip()
1014 if (mode == FL_ERASING && shared->erasing in get_chip()
1015 && shared->erasing->oldstate == FL_ERASING) { in get_chip()
1016 mutex_unlock(&shared->lock); in get_chip()
1027 shared->writing = chip; in get_chip()
1029 shared->erasing = chip; in get_chip()
1030 mutex_unlock(&shared->lock); in get_chip()
1044 struct flchip_shared *shared = chip->priv; in put_chip() local
1045 mutex_lock(&shared->lock); in put_chip()
1046 if (shared->writing == chip && chip->oldstate == FL_READY) { in put_chip()
1048 shared->writing = shared->erasing; in put_chip()
1049 if (shared->writing && shared->writing != chip) { in put_chip()
1051 struct flchip *loaner = shared->writing; in put_chip()
1053 mutex_unlock(&shared->lock); in put_chip()
1061 shared->erasing = NULL; in put_chip()
1062 shared->writing = NULL; in put_chip()
1063 } else if (shared->erasing == chip && shared->writing != chip) { in put_chip()
1071 mutex_unlock(&shared->lock); in put_chip()
1075 mutex_unlock(&shared->lock); in put_chip()