Searched refs:mbochs_avail_mbytes (Results 1 – 1 of 1) sorted by relevance
140 static atomic_t mbochs_avail_mbytes; variable523 int avail_mbytes = atomic_read(&mbochs_avail_mbytes); in mbochs_init_dev()529 } while (!atomic_try_cmpxchg(&mbochs_avail_mbytes, &avail_mbytes, in mbochs_init_dev()564 atomic_add(type->mbytes, &mbochs_avail_mbytes); in mbochs_init_dev()594 atomic_add(mdev_state->type->mbytes, &mbochs_avail_mbytes); in mbochs_release_dev()1366 return atomic_read(&mbochs_avail_mbytes) / type->mbytes; in mbochs_get_available()1410 atomic_set(&mbochs_avail_mbytes, max_mbytes); in mbochs_dev_init()