Searched refs:hdr (Results 1 - 10 of 10) sorted by relevance

/system/core/fastboot/
H A Dbootimg.c50 boot_img_hdr *hdr; local
60 hdr = calloc(*bootimg_size, 1);
62 if(hdr == 0) {
63 return hdr;
66 memcpy(hdr->magic, BOOT_MAGIC, BOOT_MAGIC_SIZE);
68 hdr->kernel_size = kernel_size;
69 hdr->ramdisk_size = ramdisk_size;
70 hdr->second_size = second_size;
71 hdr->kernel_addr = base + 0x00008000;
72 hdr
[all...]
/system/core/mkbootimg/
H A Dmkbootimg.c97 boot_img_hdr hdr; local
121 memset(&hdr, 0, sizeof(hdr));
163 hdr.page_size = pagesize;
165 hdr.kernel_addr = base + kernel_offset;
166 hdr.ramdisk_addr = base + ramdisk_offset;
167 hdr.second_addr = base + second_offset;
168 hdr.tags_addr = base + tags_offset;
190 strcpy(hdr.name, board);
192 memcpy(hdr
[all...]
/system/extras/sound/
H A Dplaywav.c153 struct wav_header hdr; local
161 if (read(fd, &hdr, sizeof(hdr)) != sizeof(hdr)) {
166 hdr.num_channels, hdr.sample_rate, hdr.bits_per_sample,
167 hdr.audio_format == FORMAT_PCM ? "PCM" : "unknown");
169 if ((hdr.riff_id != ID_RIFF) ||
170 (hdr
193 struct wav_header hdr; local
[all...]
/system/core/sdcard/
H A Dsdcard.c439 struct fuse_out_header hdr; local
440 hdr.len = sizeof(hdr);
441 hdr.error = err;
442 hdr.unique = unique;
443 write(fuse->fd, &hdr, sizeof(hdr));
448 struct fuse_out_header hdr; local
452 hdr.len = len + sizeof(hdr);
512 handle_lookup(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header *hdr, const char* name) argument
534 handle_forget(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header *hdr, const struct fuse_forget_in *req) argument
553 handle_getattr(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header *hdr, const struct fuse_getattr_in *req) argument
571 handle_setattr(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header *hdr, const struct fuse_setattr_in *req) argument
629 handle_mknod(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_mknod_in* req, const char* name) argument
655 handle_mkdir(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_mkdir_in* req, const char* name) argument
681 handle_unlink(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const char* name) argument
705 handle_rmdir(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const char* name) argument
729 handle_rename(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_rename_in* req, const char* old_name, const char* new_name) argument
801 handle_open(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_open_in* req) argument
835 handle_read(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_read_in* req) argument
861 handle_write(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_write_in* req, const void* buffer) argument
880 handle_statfs(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr) argument
911 handle_release(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_release_in* req) argument
922 handle_fsync(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_fsync_in* req) argument
938 handle_flush(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr) argument
945 handle_opendir(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_open_in* req) argument
977 handle_readdir(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_read_in* req) argument
1006 handle_releasedir(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_release_in* req) argument
1017 handle_init(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_init_in* req) argument
1035 handle_fuse_request(struct fuse *fuse, struct fuse_handler* handler, const struct fuse_in_header *hdr, const void *data, size_t data_len) argument
1176 const struct fuse_in_header *hdr = (void*)handler->request_buffer; local
[all...]
/system/extras/ext4_utils/
H A Dextent.c99 struct ext4_extent_header *hdr = local
101 hdr->eh_magic = EXT4_EXT_MAGIC;
102 hdr->eh_entries = allocation_len;
103 hdr->eh_max = 3;
104 hdr->eh_generation = 0;
105 hdr->eh_depth = 0;
109 struct ext4_extent_header *hdr = local
111 hdr->eh_magic = EXT4_EXT_MAGIC;
112 hdr->eh_entries = 1;
113 hdr
[all...]
H A Dcontents.c263 u32 *hdr; local
276 hdr = (u32 *) (inode + 1);
277 *hdr = cpu_to_le32(EXT4_XATTR_MAGIC);
278 entry = (struct ext4_xattr_entry *) (hdr+1);
/system/core/gpttool/
H A Dgpttool.c120 struct efi_header *hdr = &ptbl->header; local
129 if (last > hdr->last_lba) {
256 struct efi_header *hdr = &ptbl.header; local
308 memcpy(hdr->magic, EFI_MAGIC, sizeof(hdr->magic));
309 hdr->version = EFI_VERSION;
310 hdr->header_sz = sizeof(struct efi_header);
311 hdr->header_lba = 1;
312 hdr->backup_lba = sz - 1;
313 hdr
[all...]
/system/core/libcutils/
H A Duevent.c53 struct msghdr hdr = { local
64 ssize_t n = recvmsg(socket, &hdr, 0);
69 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&hdr);
/system/core/libcorkscrew/
H A Dsymbol_table.c77 Elf32_Ehdr *hdr = (Elf32_Ehdr*)base; local
78 if (!is_elf(hdr)) {
81 Elf32_Shdr *shdr = (Elf32_Shdr*)(base + hdr->e_shoff);
86 for (Elf32_Half i = 0; i < hdr->e_shnum; i++) {
/system/core/libnl_2/
H A Dnetlink.c242 int nl_sendmsg(struct nl_sock *sk, struct nl_msg *msg, struct msghdr *hdr) argument
244 return sendmsg(sk->s_fd, (struct msghdr *) msg, (int) hdr);

Completed in 130 milliseconds