Lines Matching refs:slot

71     uint32_t next_slot;     /* the next slot after last allocation */
115 uint32_t slot)
120 rec->next1 = slot;
122 rec->next2 = slot;
208 uint32_t slot;
216 slot = mcc->hash_table[hash];
217 if (slot == MC_INVALID_VAL) {
224 cur = MC_SLOT_TO_PTR(mcc->data_table, slot, struct sss_mc_rec);
229 slot = sss_mc_next_slot_with_hash(cur, hash);
230 } while (slot != MC_INVALID_VAL);
233 slot = MC_PTR_TO_SLOT(mcc->data_table, rec);
234 sss_mc_chain_slot_to_record_with_hash(cur, hash, slot);
243 uint32_t slot;
253 slot = mcc->hash_table[hash];
254 if (slot == MC_INVALID_VAL) {
260 cur = MC_SLOT_TO_PTR(mcc->data_table, slot, struct sss_mc_rec);
264 slot = sss_mc_next_slot_with_hash(cur, hash);
265 while (slot != MC_INVALID_VAL) {
267 cur = MC_SLOT_TO_PTR(mcc->data_table, slot, struct sss_mc_rec);
269 slot = sss_mc_next_slot_with_hash(cur, hash);
271 sss_mc_chain_slot_to_record_with_hash(prev, hash, slot);
272 slot = MC_INVALID_VAL;
274 slot = sss_mc_next_slot_with_hash(cur, hash);
282 uint32_t slot;
286 slot = MC_PTR_TO_SLOT(mcc->data_table, rec);
289 MC_CLEAR_BIT(mcc->free_table, slot + i);
326 uint32_t slot;
352 slot = mcc->hash_table[rec->hash1];
353 while (slot != MC_INVALID_VAL32 && self != rec) {
354 self = MC_SLOT_TO_PTR(mcc->data_table, slot, struct sss_mc_rec);
355 slot = sss_mc_next_slot_with_hash(self, rec->hash1);
363 slot = mcc->hash_table[rec->hash2];
364 while (slot != MC_INVALID_VAL32 && self != rec) {
365 self = MC_SLOT_TO_PTR(mcc->data_table, slot, struct sss_mc_rec);
366 slot = sss_mc_next_slot_with_hash(self, rec->hash2);
379 * cycled the whole freebits map and found no empty slot */
392 /* Try to find a free slot w/o removing anything first */
447 /* the first used slot should be a record header, however we
512 uint32_t slot;
522 slot = mcc->hash_table[hash];
523 if (!MC_SLOT_WITHIN_BOUNDS(slot, mcc->dt_size)) {
535 while (slot != MC_INVALID_VAL) {
536 if (!MC_SLOT_WITHIN_BOUNDS(slot, mcc->dt_size)) {
544 rec = MC_SLOT_TO_PTR(mcc->data_table, slot, struct sss_mc_rec);
566 slot = sss_mc_next_slot_with_hash(rec, hash);
569 if (slot == MC_INVALID_VAL) {
601 /* slot size changed, invalidate record and fall through to get a
772 uint32_t slot;
788 slot = mcc->hash_table[hash];
789 if (!MC_SLOT_WITHIN_BOUNDS(slot, mcc->dt_size)) {
794 while (slot != MC_INVALID_VAL) {
795 if (!MC_SLOT_WITHIN_BOUNDS(slot, mcc->dt_size)) {
803 rec = MC_SLOT_TO_PTR(mcc->data_table, slot, struct sss_mc_rec);
810 slot = sss_mc_next_slot_with_hash(rec, hash);
813 if (slot == MC_INVALID_VAL) {
911 uint32_t slot;
927 slot = mcc->hash_table[hash];
928 if (!MC_SLOT_WITHIN_BOUNDS(slot, mcc->dt_size)) {
933 while (slot != MC_INVALID_VAL) {
934 if (!MC_SLOT_WITHIN_BOUNDS(slot, mcc->dt_size)) {
942 rec = MC_SLOT_TO_PTR(mcc->data_table, slot, struct sss_mc_rec);
949 slot = sss_mc_next_slot_with_hash(rec, hash);
952 if (slot == MC_INVALID_VAL) {