Lines Matching refs:mutex
88 mutex_init(&chip->mutex); in lpddr_cmdset()
152 mutex_unlock(&chip->mutex); in wait_for_ready()
167 mutex_lock(&chip->mutex); in wait_for_ready()
174 mutex_unlock(&chip->mutex); in wait_for_ready()
177 mutex_lock(&chip->mutex); in wait_for_ready()
238 ret = mutex_trylock(&contender->mutex); in get_chip()
242 mutex_unlock(&chip->mutex); in get_chip()
244 mutex_lock(&chip->mutex); in get_chip()
247 mutex_unlock(&contender->mutex); in get_chip()
251 mutex_unlock(&contender->mutex); in get_chip()
260 mutex_unlock(&contender->mutex); in get_chip()
263 mutex_unlock(&contender->mutex); in get_chip()
273 mutex_unlock(&chip->mutex); in get_chip()
276 mutex_lock(&chip->mutex); in get_chip()
340 mutex_unlock(&chip->mutex); in chip_ready()
343 mutex_lock(&chip->mutex); in chip_ready()
359 mutex_lock(&loaner->mutex); in put_chip()
361 mutex_unlock(&chip->mutex); in put_chip()
363 mutex_lock(&chip->mutex); in put_chip()
364 mutex_unlock(&loaner->mutex); in put_chip()
416 mutex_lock(&chip->mutex); in do_write_buffer()
419 mutex_unlock(&chip->mutex); in do_write_buffer()
477 mutex_unlock(&chip->mutex); in do_write_buffer()
489 mutex_lock(&chip->mutex); in do_erase_oneblock()
492 mutex_unlock(&chip->mutex); in do_erase_oneblock()
504 mutex_unlock(&chip->mutex); in do_erase_oneblock()
517 mutex_lock(&chip->mutex); in lpddr_read()
520 mutex_unlock(&chip->mutex); in lpddr_read()
528 mutex_unlock(&chip->mutex); in lpddr_read()
566 mutex_lock(&chip->mutex); in lpddr_point()
568 mutex_unlock(&chip->mutex); in lpddr_point()
608 mutex_lock(&chip->mutex); in lpddr_unpoint()
620 mutex_unlock(&chip->mutex); in lpddr_unpoint()
721 mutex_lock(&chip->mutex); in do_xxlock()
724 mutex_unlock(&chip->mutex); in do_xxlock()
744 mutex_unlock(&chip->mutex); in do_xxlock()