• Home
  • Raw
  • Download

Lines Matching refs:real

534   DBusRealHashIter *real;  in _dbus_hash_iter_init()  local
538 real = (DBusRealHashIter*) iter; in _dbus_hash_iter_init()
540 real->table = table; in _dbus_hash_iter_init()
541 real->bucket = NULL; in _dbus_hash_iter_init()
542 real->entry = NULL; in _dbus_hash_iter_init()
543 real->next_entry = NULL; in _dbus_hash_iter_init()
544 real->next_bucket = 0; in _dbus_hash_iter_init()
545 real->n_entries_on_init = table->n_entries; in _dbus_hash_iter_init()
559 DBusRealHashIter *real; in _dbus_hash_iter_next() local
563 real = (DBusRealHashIter*) iter; in _dbus_hash_iter_next()
568 _dbus_assert (real->n_entries_on_init >= real->table->n_entries); in _dbus_hash_iter_next()
572 while (real->next_entry == NULL) in _dbus_hash_iter_next()
574 if (real->next_bucket >= real->table->n_buckets) in _dbus_hash_iter_next()
577 real->entry = NULL; in _dbus_hash_iter_next()
578 real->table = NULL; in _dbus_hash_iter_next()
579 real->bucket = NULL; in _dbus_hash_iter_next()
583 real->bucket = &(real->table->buckets[real->next_bucket]); in _dbus_hash_iter_next()
584 real->next_entry = *(real->bucket); in _dbus_hash_iter_next()
585 real->next_bucket += 1; in _dbus_hash_iter_next()
588 _dbus_assert (real->next_entry != NULL); in _dbus_hash_iter_next()
589 _dbus_assert (real->bucket != NULL); in _dbus_hash_iter_next()
591 real->entry = real->next_entry; in _dbus_hash_iter_next()
592 real->next_entry = real->entry->next; in _dbus_hash_iter_next()
608 DBusRealHashIter *real; in _dbus_hash_iter_remove_entry() local
610 real = (DBusRealHashIter*) iter; in _dbus_hash_iter_remove_entry()
612 _dbus_assert (real->table != NULL); in _dbus_hash_iter_remove_entry()
613 _dbus_assert (real->entry != NULL); in _dbus_hash_iter_remove_entry()
614 _dbus_assert (real->bucket != NULL); in _dbus_hash_iter_remove_entry()
616 remove_entry (real->table, real->bucket, real->entry); in _dbus_hash_iter_remove_entry()
618 real->entry = NULL; /* make it crash if you try to use this entry */ in _dbus_hash_iter_remove_entry()
629 DBusRealHashIter *real; in _dbus_hash_iter_get_value() local
631 real = (DBusRealHashIter*) iter; in _dbus_hash_iter_get_value()
633 _dbus_assert (real->table != NULL); in _dbus_hash_iter_get_value()
634 _dbus_assert (real->entry != NULL); in _dbus_hash_iter_get_value()
636 return real->entry->value; in _dbus_hash_iter_get_value()
653 DBusRealHashIter *real; in _dbus_hash_iter_set_value() local
655 real = (DBusRealHashIter*) iter; in _dbus_hash_iter_set_value()
657 _dbus_assert (real->table != NULL); in _dbus_hash_iter_set_value()
658 _dbus_assert (real->entry != NULL); in _dbus_hash_iter_set_value()
660 if (real->table->free_value_function && value != real->entry->value) in _dbus_hash_iter_set_value()
661 (* real->table->free_value_function) (real->entry->value); in _dbus_hash_iter_set_value()
663 real->entry->value = value; in _dbus_hash_iter_set_value()
675 DBusRealHashIter *real; in _dbus_hash_iter_get_int_key() local
677 real = (DBusRealHashIter*) iter; in _dbus_hash_iter_get_int_key()
679 _dbus_assert (real->table != NULL); in _dbus_hash_iter_get_int_key()
680 _dbus_assert (real->entry != NULL); in _dbus_hash_iter_get_int_key()
682 return _DBUS_POINTER_TO_INT (real->entry->key); in _dbus_hash_iter_get_int_key()
694 DBusRealHashIter *real; in _dbus_hash_iter_get_uintptr_key() local
696 real = (DBusRealHashIter*) iter; in _dbus_hash_iter_get_uintptr_key()
698 _dbus_assert (real->table != NULL); in _dbus_hash_iter_get_uintptr_key()
699 _dbus_assert (real->entry != NULL); in _dbus_hash_iter_get_uintptr_key()
701 return (uintptr_t) real->entry->key; in _dbus_hash_iter_get_uintptr_key()
712 DBusRealHashIter *real; in _dbus_hash_iter_get_string_key() local
714 real = (DBusRealHashIter*) iter; in _dbus_hash_iter_get_string_key()
716 _dbus_assert (real->table != NULL); in _dbus_hash_iter_get_string_key()
717 _dbus_assert (real->entry != NULL); in _dbus_hash_iter_get_string_key()
719 return real->entry->key; in _dbus_hash_iter_get_string_key()
731 DBusRealHashIter *real; in _dbus_hash_iter_get_two_strings_key() local
733 real = (DBusRealHashIter*) iter; in _dbus_hash_iter_get_two_strings_key()
735 _dbus_assert (real->table != NULL); in _dbus_hash_iter_get_two_strings_key()
736 _dbus_assert (real->entry != NULL); in _dbus_hash_iter_get_two_strings_key()
738 return real->entry->key; in _dbus_hash_iter_get_two_strings_key()
779 DBusRealHashIter *real; in _dbus_hash_iter_lookup() local
785 real = (DBusRealHashIter*) iter; in _dbus_hash_iter_lookup()
792 real->table = table; in _dbus_hash_iter_lookup()
793 real->bucket = bucket; in _dbus_hash_iter_lookup()
794 real->entry = entry; in _dbus_hash_iter_lookup()
795 real->next_entry = entry->next; in _dbus_hash_iter_lookup()
796 real->next_bucket = (bucket - table->buckets) + 1; in _dbus_hash_iter_lookup()
797 real->n_entries_on_init = table->n_entries; in _dbus_hash_iter_lookup()
799 _dbus_assert (&(table->buckets[real->next_bucket-1]) == real->bucket); in _dbus_hash_iter_lookup()