Searched defs:idx (Results 1 - 22 of 22) sorted by relevance

/systemd/src/test/
H A Dtest-prioq.c76 unsigned idx; member in struct:test
123 r = prioq_put(q, t, &t->idx);
139 r = prioq_remove(q, t, &t->idx);
/systemd/src/basic/
H A Dprioq.c39 unsigned *idx; member in struct:prioq_item
91 assert(!q->items[j].idx || *(q->items[j].idx) == j);
92 assert(!q->items[k].idx || *(q->items[k].idx) == k);
95 saved_idx = q->items[j].idx;
97 q->items[j].idx = q->items[k].idx;
99 q->items[k].idx = saved_idx;
101 if (q->items[j].idx)
108 shuffle_up(Prioq *q, unsigned idx) argument
126 shuffle_down(Prioq *q, unsigned idx) argument
166 prioq_put(Prioq *q, void *data, unsigned *idx) argument
228 find_item(Prioq *q, void *data, unsigned *idx) argument
251 prioq_remove(Prioq *q, void *data, unsigned *idx) argument
265 prioq_reshuffle(Prioq *q, void *data, unsigned *idx) argument
[all...]
H A Dsocket-util.c136 unsigned idx; local
142 idx = if_nametoindex(n);
143 if (idx == 0)
148 a->sockaddr.in6.sin6_scope_id = idx;
H A Dutil.c478 size_t l, u, idx; local
485 idx = (l + u) / 2;
486 p = (void *)(((const char *) base) + (idx * size));
489 u = idx;
491 l = idx + 1;
H A Dhashmap.h59 unsigned idx; /* index of an entry to be iterated next */ member in struct:__anon11
64 unsigned prev_idx; /* idx in previous iteration */
69 #define ITERATOR_FIRST ((Iterator) { .idx = _IDX_ITERATOR_FIRST, .next_key = NULL })
H A Dhashmap.c348 static struct hashmap_base_entry *bucket_at(HashmapBase *h, unsigned idx) { argument
350 (storage_ptr(h) + idx * hashmap_type_info[h->type].entry_size);
353 static struct plain_hashmap_entry *plain_bucket_at(Hashmap *h, unsigned idx) { argument
354 return (struct plain_hashmap_entry*) bucket_at(HASHMAP_BASE(h), idx);
357 static struct ordered_hashmap_entry *ordered_bucket_at(OrderedHashmap *h, unsigned idx) { argument
358 return (struct ordered_hashmap_entry*) bucket_at(HASHMAP_BASE(h), idx);
361 static struct set_entry *set_bucket_at(Set *h, unsigned idx) { argument
362 return (struct set_entry*) bucket_at(HASHMAP_BASE(h), idx);
365 static struct ordered_hashmap_entry *bucket_at_swap(struct swap_entries *swap, unsigned idx) { argument
366 return &swap->e[idx
371 bucket_at_virtual(HashmapBase *h, struct swap_entries *swap, unsigned idx) argument
387 bucket_distance(HashmapBase *h, unsigned idx, unsigned from) argument
392 bucket_calculate_dib(HashmapBase *h, unsigned idx, dib_raw_t raw_dib) argument
415 bucket_set_dib(HashmapBase *h, unsigned idx, unsigned dib) argument
419 skip_free_buckets(HashmapBase *h, unsigned idx) argument
431 bucket_mark_free(HashmapBase *h, unsigned idx) argument
472 next_idx(HashmapBase *h, unsigned idx) argument
476 prev_idx(HashmapBase *h, unsigned idx) argument
495 base_remove_entry(HashmapBase *h, unsigned idx) argument
551 unsigned idx; local
601 unsigned idx; local
684 unsigned idx; local
878 unsigned idx; local
891 unsigned idx; local
917 hashmap_put_robin_hood(HashmapBase *h, unsigned idx, struct swap_entries *swap) argument
975 hashmap_base_put_boldly(HashmapBase *h, unsigned idx, struct swap_entries *swap, bool may_resize) argument
1034 unsigned idx, optimal_idx; local
1167 base_bucket_scan(HashmapBase *h, unsigned idx, const void *key) argument
1196 unsigned hash, idx; local
1218 unsigned hash, idx; local
1235 unsigned hash, idx; local
1266 unsigned hash, idx; local
1282 unsigned hash, idx; local
1298 unsigned hash, idx; local
1327 unsigned hash, idx; local
1347 unsigned hash, idx; local
1377 unsigned old_hash, new_hash, idx; local
1404 unsigned old_hash, new_hash, idx; local
1465 unsigned hash, idx; local
1494 unsigned idx; local
1505 unsigned idx; local
1518 unsigned idx; local
1534 unsigned idx; local
1565 unsigned idx; local
1583 unsigned idx; local
1621 unsigned idx; local
1664 unsigned h_hash, other_hash, idx; local
1732 unsigned idx, n; local
1748 unsigned hash, idx; local
[all...]
/systemd/src/libsystemd-network/
H A Dtest-ndisc-rs.c88 static unsigned idx = 0; local
100 assert_se(flags == flags_array[idx]);
101 idx++;
106 if (idx < ELEMENTSOF(flags_array)) {
107 send_ra(flags_array[idx]);
H A Ddhcp6-option.c342 size_t pos = 0, idx = 0; local
404 idx++;
410 return idx;
/systemd/src/nspawn/
H A Dnspawn-network.c46 uint64_t idx) {
55 if (idx > 0)
56 sz += sizeof(idx);
68 if (idx > 0) {
69 idx = htole64(idx);
70 memcpy(i, &idx, sizeof(idx));
206 uint64_t idx = 0; local
223 r = generate_mac(machine_name, &mac_container, VETH_EXTRA_CONTAINER_HASH_KEY, idx);
42 generate_mac( const char *machine_name, struct ether_addr *mac, sd_id128_t hash_key, uint64_t idx) argument
348 unsigned idx = 0; local
[all...]
/systemd/src/nss-myhostname/
H A Dnss-myhostname.c61 size_t l, idx, ms; local
128 idx = ALIGN(l+1);
132 r_tuple = (struct gaih_addrtuple*) (buffer + idx);
139 idx += ALIGN(sizeof(struct gaih_addrtuple));
143 r_tuple = (struct gaih_addrtuple*) (buffer + idx);
150 idx += ALIGN(sizeof(struct gaih_addrtuple));
156 r_tuple = (struct gaih_addrtuple*) (buffer + idx);
163 idx += ALIGN(sizeof(struct gaih_addrtuple));
168 assert(idx == ms);
198 size_t l_canonical, l_additional, idx, m local
[all...]
/systemd/src/nss-mymachines/
H A Dnss-mymachines.c94 size_t l, ms, idx; local
161 idx = ALIGN(l+1);
164 r_tuple_first = (struct gaih_addrtuple*) (buffer + idx);
192 r_tuple = (struct gaih_addrtuple*) (buffer + idx);
199 idx += ALIGN(sizeof(struct gaih_addrtuple));
209 assert(idx == ms);
246 size_t l, idx, ms, alen; local
316 idx = ALIGN(l+1);
319 r_aliases = buffer + idx;
321 idx
[all...]
/systemd/src/nss-resolve/
H A Dnss-resolve.c132 size_t l, ms, idx; local
205 idx = ALIGN(l+1);
208 r_tuple_first = (struct gaih_addrtuple*) (buffer + idx);
246 r_tuple = (struct gaih_addrtuple*) (buffer + idx);
253 idx += ALIGN(sizeof(struct gaih_addrtuple));
260 assert(idx == ms);
316 size_t l, idx, ms, alen; local
400 idx = ALIGN(l+1);
403 r_aliases = buffer + idx;
405 idx
522 size_t ms = 0, idx; local
[all...]
/systemd/src/journal/
H A Dfsprg.c93 /* deterministically generate from seed/idx a string of buflen pseudorandom bytes */
94 static void det_randomize(void *buf, size_t buflen, const void *seed, size_t seedlen, uint32_t idx) { argument
102 gcry_md_putc(hd, (idx >> 24) & 0xff);
103 gcry_md_putc(hd, (idx >> 16) & 0xff);
104 gcry_md_putc(hd, (idx >> 8) & 0xff);
105 gcry_md_putc(hd, (idx >> 0) & 0xff);
123 /* deterministically generate from seed/idx a prime of length `bits' that is 3 (mod 4) */
124 static gcry_mpi_t genprime3mod4(int bits, const void *seed, size_t seedlen, uint32_t idx) { argument
132 det_randomize(buf, buflen, seed, seedlen, idx);
143 /* deterministically generate from seed/idx
144 gensquare(const gcry_mpi_t n, const void *seed, size_t seedlen, uint32_t idx, unsigned secpar) argument
380 FSPRG_GetKey(const void *state, void *key, size_t keylen, uint32_t idx) argument
[all...]
H A Djournal-file.c1202 le64_t *idx,
1211 assert(idx);
1215 i = hidx = le64toh(*idx);
1225 *idx = htole64(hidx + 1);
1269 *idx = htole64(hidx + 1);
1277 le64_t *idx,
1285 assert(idx);
1288 if (*idx == 0)
1293 i = htole64(le64toh(*idx) - 1);
1299 *idx
1200 link_entry_into_array(JournalFile *f, le64_t *first, le64_t *idx, uint64_t p) argument
1274 link_entry_into_array_plus_one(JournalFile *f, le64_t *extra, le64_t *first, le64_t *idx, uint64_t p) argument
1721 generic_array_bisect( JournalFile *f, uint64_t first, uint64_t n, uint64_t needle, int (*test_object)(JournalFile *f, uint64_t p, uint64_t needle), direction_t direction, Object **ret, uint64_t *offset, uint64_t *idx) argument
1928 generic_array_bisect_plus_one( JournalFile *f, uint64_t extra, uint64_t first, uint64_t n, uint64_t needle, int (*test_object)(JournalFile *f, uint64_t p, uint64_t needle), direction_t direction, Object **ret, uint64_t *offset, uint64_t *idx) argument
[all...]
/systemd/src/libsystemd/sd-bus/
H A Dbus-socket.c47 static void iovec_advance(struct iovec iov[], unsigned *idx, size_t size) { argument
50 struct iovec *i = iov + *idx;
63 (*idx) ++;
769 int bus_socket_write_message(sd_bus *bus, sd_bus_message *m, size_t *idx) { argument
778 assert(idx);
781 if (*idx >= BUS_MESSAGE_SIZE(m))
793 iovec_advance(iov, &j, *idx);
823 *idx += (size_t) k;
H A Dbus-kernel.c448 size_t n_bytes = 0, idx = 0; local
550 if (idx + d->vec.size > begin_body) {
564 if (idx >= begin_body) {
570 part->data = (uint8_t*) k + d->vec.offset + (begin_body - idx);
571 part->size = d->vec.size - (begin_body - idx);
577 idx += d->vec.size;
584 if (idx < BUS_MESSAGE_BODY_BEGIN(m)) {
600 idx += d->memfd.size;
H A Dsd-bus.c1617 static int bus_write_message(sd_bus *bus, sd_bus_message *m, bool hint_sync_call, size_t *idx) { argument
1626 r = bus_socket_write_message(bus, m, idx);
1631 if (bus->is_kernel || *idx >= BUS_MESSAGE_SIZE(m))
1780 size_t idx = 0; local
1782 r = bus_write_message(bus, m, hint_sync_call, &idx);
1792 if (!bus->is_kernel && idx < BUS_MESSAGE_SIZE(m)) {
1800 bus->windex = idx;
/systemd/src/udev/
H A Dudev-builtin-net_id.c141 int idx; local
151 idx = strtoul(attr, NULL, 0);
152 if (idx <= 0)
159 if (idx > ONBOARD_INDEX_MAX)
169 l = strpcpyf(&s, l, "o%d", idx);
H A Dudev-rules.c338 unsigned int idx = (tk_ptr - tks_ptr) / sizeof(struct token); local
342 idx, token->rule.token_count,
/systemd/src/boot/efi/
H A Dboot.c401 Print(L"entry selected idx: %d\n", config->idx_default);
403 Print(L"entry EFI var idx: %d\n", config->idx_default_efivar);
484 INT16 idx; local
800 idx = entry_lookup_key(config, idx_highlight+1, KEYCHAR(key));
801 if (idx < 0)
803 idx_highlight = idx;
1793 INT16 idx; local
1796 idx = entry_lookup_key(&config, config.idx_default, KEYCHAR(key));
1797 if (idx >= 0)
1798 config.idx_default = idx;
[all...]
/systemd/src/resolve/
H A Dresolved-dns-packet.c1129 void dns_packet_rewind(DnsPacket *p, size_t idx) { argument
1131 assert(idx <= p->size);
1132 assert(idx >= DNS_PACKET_HEADER_SIZE);
1134 p->rindex = idx;
/systemd/src/core/
H A Dmanager.c1870 int idx = (int) sfsi.ssi_signo - SIGRTMIN; local
1871 manager_start_target(m, target_table[idx],
1872 (idx == 1 || idx == 2) ? JOB_ISOLATE : JOB_REPLACE);

Completed in 2963 milliseconds