Searched defs:offset (Results 1 - 25 of 41) sorted by relevance

12

/systemd/src/shared/
H A Dconf-parser.h63 size_t offset; /* Offset where to store data, from the beginning of userdata */ member in struct:ConfigPerfItem
H A Dbus-util.h51 size_t offset; member in struct:bus_properties_map
172 #define BUS_PROPERTY_DUAL_TIMESTAMP(name, offset, flags) \
173 SD_BUS_PROPERTY(name, "t", bus_property_get_usec, (offset) + offsetof(struct dual_timestamp, realtime), (flags)), \
174 SD_BUS_PROPERTY(name "Monotonic", "t", bus_property_get_usec, (offset) + offsetof(struct dual_timestamp, monotonic), (flags))
/systemd/src/udev/mtd_probe/
H A Dprobe_smartmedia.c44 int offset; local
73 for (offset = 0 ; offset < block_size * spare_count ;
74 offset += sector_size) {
75 lseek(mtd_fd, SEEK_SET, offset);
/systemd/src/basic/
H A Dmemfd-util.c76 int memfd_map(int fd, uint64_t offset, size_t size, void **p) { argument
89 q = mmap(NULL, size, PROT_READ, MAP_PRIVATE, fd, offset);
91 q = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, offset);
H A Dsignal-util.c245 int offset = 0; local
254 offset = SIGRTMIN;
257 signo = (int) u + offset;
H A Dbitmap.c47 #define BITMAP_OFFSET_TO_NUM(offset, rem) ((offset) * sizeof(uint64_t) * 8 + (rem))
80 unsigned offset; local
88 offset = BITMAP_NUM_TO_OFFSET(n);
90 if (offset >= b->n_bitmaps) {
91 if (!GREEDY_REALLOC0(b->bitmaps, b->bitmaps_allocated, offset + 1))
94 b->n_bitmaps = offset + 1;
99 b->bitmaps[offset] |= bitmask;
106 unsigned offset; local
111 offset
123 unsigned offset; local
163 unsigned offset, rem; local
[all...]
H A Dhexdecoct.c142 unsigned offset; local
147 offset = '9' - '0' + 1;
150 return c - 'A' + offset;
487 unsigned offset; local
492 offset = 'Z' - 'A' + 1;
495 return c - 'a' + offset;
497 offset += 'z' - 'a' + 1;
500 return c - '0' + offset;
502 offset += '9' - '0' + 1;
505 return offset;
[all...]
H A Dbtrfs-ctree.h16 le64_t offset; member in struct:btrfs_disk_key
/systemd/src/journal-remote/
H A Djournal-remote-parse.h41 size_t offset; /* offset to the beginning of live data in the buffer */ member in struct:RemoteSource
/systemd/src/libsystemd-network/
H A Ddhcp-option.c30 static int option_append(uint8_t options[], size_t size, size_t *offset, argument
33 assert(offset);
43 if (size < *offset + 1)
46 options[*offset] = code;
47 *offset += 1;
51 if (size < *offset + optlen + 2)
54 options[*offset] = code;
55 options[*offset + 1] = optlen;
60 memcpy(&options[*offset + 2], optval, optlen);
63 *offset
71 dhcp_option_append(DHCPMessage *message, size_t size, size_t *offset, uint8_t overload, uint8_t code, size_t optlen, const void *optval) argument
147 size_t offset = 0; local
[all...]
H A Ddhcp-packet.c34 size_t offset = 0; local
46 r = dhcp_option_append(message, optlen, &offset, 0,
51 *optoffset = offset;
H A Dtest-dhcp-option.c288 size_t offset = 0, len, pos; local
299 assert_se(dhcp_option_append(result, 0, &offset, 0, SD_DHCP_OPTION_PAD,
301 assert_se(offset == 0);
303 offset = 4;
304 assert_se(dhcp_option_append(result, 5, &offset, 0, SD_DHCP_OPTION_PAD,
306 assert_se(offset == 4);
307 assert_se(dhcp_option_append(result, 6, &offset, 0, SD_DHCP_OPTION_PAD,
309 assert_se(offset == 5);
311 offset = pos = 4;
314 assert_se(dhcp_option_append(result, len, &offset, DHCP_OVERLOAD_SNAM
[all...]
/systemd/src/systemd/
H A Dsd-bus-vtable.h69 size_t offset; member in struct:sd_bus_vtable::__anon284::__anon286
80 size_t offset; member in struct:sd_bus_vtable::__anon284::__anon288
100 .x.method.offset = _offset, \
120 .x.property.offset = _offset, \
131 .x.property.offset = _offset, \
/systemd/src/timesync/
H A Dtimesyncd-manager.h72 double offset; member in struct:Manager::__anon319
/systemd/src/udev/
H A Dudev-builtin-blkid.c225 int64_t offset = 0; local
238 { "offset", optional_argument, NULL, 'o' },
252 offset = strtoull(optarg, NULL, 0);
279 err = blkid_probe_set_device(pr, fd, offset, 0);
283 log_debug("probe %s %sraid offset=%"PRIi64,
285 noraid ? "no" : "", offset);
/systemd/src/boot/efi/
H A Dsplash.c27 UINT32 offset; member in struct:bmp_file
69 if (file->size < file->offset)
99 if (file->size - file->offset < dib->y * row_size)
106 if (file->offset < sizeof(struct bmp_file) + dib->size)
109 if (file->offset > sizeof(struct bmp_file) + dib->size) {
129 map_size = file->offset - (sizeof(struct bmp_file) + dib->size);
136 *pixmap = bmp + file->offset;
/systemd/src/journal/
H A Dcompress.c452 size_t size, n, total_in = 0, total_out, offset = 0, frame_size; local
475 n = offset = total_out = LZ4F_compressBegin(ctx, buf, size, &preferences);
489 n = LZ4F_compressUpdate(ctx, buf + offset, size - offset,
497 offset += n;
505 if (size - offset < frame_size + 4) {
506 k = loop_write(fdt, buf, offset, false);
511 offset = 0;
515 n = LZ4F_compressEnd(ctx, buf + offset, size - offset,
[all...]
H A Djournal-verify.c115 static int journal_file_object_verify(JournalFile *f, uint64_t offset, Object *o) { argument
119 assert(offset);
128 error(offset, "Found compressed object that isn't of type DATA, which is not allowed.");
139 warning(offset, "Unused data (entry_offset==0)");
142 error(offset, "Bad n_entries: %"PRIu64, o->data.n_entries);
147 error(offset, "Bad object size (<= %zu): %"PRIu64,
165 error(offset, "%s decompression failed: %s",
175 error(offset, "Invalid hash (%08"PRIx64" vs. %08"PRIx64, h1, h2);
183 error(offset, "Invalid offset (next_hash_offse
[all...]
H A Dmmap-cache.c47 uint64_t offset; member in struct:Window
161 _pure_ static bool window_matches(Window *w, int fd, int prot, uint64_t offset, size_t size) { argument
170 offset >= w->offset &&
171 offset + size <= w->offset + w->size;
174 static Window *window_add(MMapCache *m, FileDescriptor *fd, int prot, bool keep_always, uint64_t offset, size_t size, void *ptr) { argument
199 w->offset = offset;
387 uint64_t offset,
381 try_context( MMapCache *m, int fd, int prot, unsigned context, bool keep_always, uint64_t offset, size_t size, void **ret) argument
424 find_mmap( MMapCache *m, int fd, int prot, unsigned context, bool keep_always, uint64_t offset, size_t size, void **ret) argument
470 mmap_try_harder(MMapCache *m, void *addr, int fd, int prot, int flags, uint64_t offset, size_t size, void **res) argument
497 add_mmap( MMapCache *m, int fd, int prot, unsigned context, bool keep_always, uint64_t offset, size_t size, struct stat *st, void **ret) argument
578 mmap_cache_get( MMapCache *m, int fd, int prot, unsigned context, bool keep_always, uint64_t offset, size_t size, struct stat *st, void **ret) argument
[all...]
H A Dcatalog.c66 le64_t offset; member in struct:CatalogItem
465 ssize_t offset; local
514 offset = strbuf_add_string(sb, payload, strlen(payload));
515 if (offset < 0) {
519 i->offset = htole64((uint64_t) offset);
628 le64toh(f->offset);
/systemd/src/libsystemd/sd-netlink/
H A Dnetlink-internal.h96 size_t offset; /* offset from hdr to attribute */ member in struct:netlink_attribute
103 size_t offset; /* offset from hdr to the start of the container */ member in struct:netlink_container
H A Dnetlink-socket.c86 uint32_t offset; local
89 offset = 1U << j;
91 if (!(groups[i] & offset))
H A Dnetlink-message.c36 #define GET_CONTAINER(m, i) ((i) < (m)->n_containers ? (struct rtattr*)((uint8_t*)(m)->hdr + (m)->containers[i].offset) : NULL)
175 int offset; local
183 /* get offset of the new attribute */
184 offset = m->hdr->nlmsg_len;
190 message_length = offset + RTA_ALIGN(rta_length);
199 rta = (struct rtattr *) ((uint8_t *) m->hdr + offset);
203 GET_CONTAINER(m, i)->rta_len += message_length - offset;
226 return offset;
470 m->containers[m->n_containers ++].offset = r;
501 m->containers[m->n_containers ++].offset
[all...]
/systemd/src/core/
H A Ddbus-execute.c1368 int offset; local
1372 offset = **p == '-';
1373 if (!path_is_absolute(*p + offset))
/systemd/src/bootchart/
H A Dsvg.c1286 double offset = 7; local
1316 fprintf(of, "<g transform=\"translate(10,%.03f)\">\n", 400.0 + (arg_scale_y * offset));
1321 offset += 7;
1322 fprintf(of, "<g transform=\"translate(10,%.03f)\">\n", 400.0 + (arg_scale_y * offset));
1326 offset += 7;
1327 fprintf(of, "<g transform=\"translate(10,%.03f)\">\n", 400.0 + (arg_scale_y * offset));
1333 offset += 7;
1334 fprintf(of, "<g transform=\"translate(10,%.03f)\">\n", 400.0 + (arg_scale_y * offset));
1339 offset += 7;
1340 fprintf(of, "<g transform=\"translate(10,%.03f)\">\n", 400.0 + (arg_scale_y * offset)
[all...]

Completed in 153 milliseconds

12