Lines Matching defs:need_sync
60 int avail_deks; /* the number of keys available, with need_sync bit 0 */
71 unsigned long *need_sync;
301 bulk->need_sync = bitmap_zalloc(num_deks, GFP_KERNEL);
302 if (!bulk->need_sync) {
328 bitmap_free(bulk->need_sync);
352 bitmap_free(bulk->need_sync);
380 pos = find_next_zero_bit(bulk->need_sync, bulk->num_deks,
384 pos = find_first_zero_bit(bulk->need_sync, bulk->num_deks);
402 bitmap_set(bulk->need_sync, pos, 1);
470 * As the combinations of (need_sync, in_use) of one DEK are
476 * hweight_long(need_sync XOR in_use), and the need_sync bits can be reset
482 unsigned long *need_sync = bulk->need_sync;
490 i++, need_sync++, in_use++) {
491 reused = hweight_long((*need_sync) ^ (*in_use));
497 *need_sync = *in_use;
575 memset(bulk->need_sync, 0, BITS_TO_BYTES(bulk->num_deks));