Searched refs:UINT_TO_PTR (Results 1 - 13 of 13) sorted by relevance

/systemd/src/network/
H A Dnetworkd-fdb.c41 fdb_entry = hashmap_get(network->fdb_entries_by_section, UINT_TO_PTR(section));
73 UINT_TO_PTR(fdb_entry->section), fdb_entry);
153 UINT_TO_PTR(fdb_entry->section));
H A Dnetworkd-address.c57 address = hashmap_get(network->addresses_by_section, UINT_TO_PTR(section));
77 UINT_TO_PTR(address->section), address);
95 UINT_TO_PTR(address->section));
H A Dnetworkd-route.c56 UINT_TO_PTR(section));
77 UINT_TO_PTR(route->section), route);
95 UINT_TO_PTR(route->section));
/systemd/src/libsystemd/sd-netlink/
H A Dnetlink-socket.c96 r = hashmap_put(nl->broadcast_group_refs, UINT_TO_PTR(group), UINT_TO_PTR(1));
134 return PTR_TO_UINT(hashmap_get(nl->broadcast_group_refs, UINT_TO_PTR(group)));
142 r = hashmap_replace(nl->broadcast_group_refs, UINT_TO_PTR(group), UINT_TO_PTR(n_ref));
/systemd/src/test/
H A Dtest-hashmap-plain.c386 void *key1 = UINT_TO_PTR(1);
387 void *key2 = UINT_TO_PTR(2);
388 void *key3 = UINT_TO_PTR(3);
426 hashmap_put(m, UINT_TO_PTR(10*i + j), UINT_TO_PTR(10*i + j));
427 valid = hashmap_remove_and_replace(m, UINT_TO_PTR(10*i + 1),
428 UINT_TO_PTR(10*i + 2),
429 UINT_TO_PTR(10*i + 2));
431 assert_se(!hashmap_get(m, UINT_TO_PTR(10*i + 1)));
433 r = hashmap_get(m, UINT_TO_PTR(1
[all...]
H A Dtest-prioq.c56 assert_se(prioq_put(q, UINT_TO_PTR(u), NULL) >= 0);
/systemd/src/libsystemd/sd-bus/
H A Dbus-match.c104 hashmap_remove(node->parent->compare.children, UINT_TO_PTR(node->value.u8));
411 found = hashmap_get(node->compare.children, UINT_TO_PTR(test_u8));
465 n = hashmap_get(c->compare.children, UINT_TO_PTR(value_u8));
529 r = hashmap_put(c->compare.children, UINT_TO_PTR(value_u8), n);
578 n = hashmap_get(c->compare.children, UINT_TO_PTR(value_u8));
H A Dtest-bus-objects.c256 assert_se(sd_bus_add_fallback_vtable(bus, NULL, "/value", "org.freedesktop.systemd.ValueTest", vtable2, NULL, UINT_TO_PTR(20)) >= 0);
/systemd/src/core/
H A Dautomount.c853 r = set_put(a->tokens, UINT_TO_PTR(token));
869 r = set_put(a->expire_tokens, UINT_TO_PTR(token));
949 r = set_put(a->tokens, UINT_TO_PTR(packet.v5_packet.wait_queue_token));
969 r = set_put(a->expire_tokens, UINT_TO_PTR(packet.v5_packet.wait_queue_token));
/systemd/src/resolve/
H A Dresolved-dns-transaction.c96 hashmap_remove(t->scope->manager->dns_transactions, UINT_TO_PTR(t->id));
151 hashmap_get(m->dns_transactions, UINT_TO_PTR(new_id)));
198 r = hashmap_put(s->manager->dns_transactions, UINT_TO_PTR(t->id), t);
206 hashmap_remove(s->manager->dns_transactions, UINT_TO_PTR(t->id));
230 assert_se(hashmap_remove_and_put(t->scope->manager->dns_transactions, UINT_TO_PTR(t->id), UINT_TO_PTR(new_id), t) >= 0);
H A Dresolved-llmnr.c109 t = hashmap_get(m->dns_transactions, UINT_TO_PTR(DNS_PACKET_ID(p)));
/systemd/src/shared/
H A Dlogs-show.c720 r = hashmap_put(h, n, UINT_TO_PTR(1));
727 r = hashmap_update(h, n, UINT_TO_PTR(u + 1));
/systemd/src/basic/
H A Dmacro.h275 #define UINT_TO_PTR(u) ((void *) ((uintptr_t) (u))) macro

Completed in 4934 milliseconds