/system/vold/ |
H A D | Devmapper.cpp | 65 struct dm_ioctl *io = (struct dm_ioctl *) buffer; local 66 ioctlInit(io, (1024 * 64), NULL, 0); 68 if (ioctl(fd, DM_LIST_DEVICES, io)) { 76 struct dm_name_list *n = (struct dm_name_list *) (((char *) buffer) + io->data_start); 117 void Devmapper::ioctlInit(struct dm_ioctl *io, size_t dataSize, argument 119 memset(io, 0, dataSize); 120 io->data_size = dataSize; 121 io->data_start = sizeof(struct dm_ioctl); 122 io->version[0] = 4; 123 io 147 struct dm_ioctl *io = (struct dm_ioctl *) buffer; local 181 struct dm_ioctl *io = (struct dm_ioctl *) buffer; local 278 struct dm_ioctl *io = (struct dm_ioctl *) buffer; local [all...] |
H A D | cryptfs.c | 319 static void ioctl_init(struct dm_ioctl *io, size_t dataSize, const char *name, unsigned flags) argument 321 memset(io, 0, dataSize); 322 io->data_size = dataSize; 323 io->data_start = sizeof(struct dm_ioctl); 324 io->version[0] = 4; 325 io->version[1] = 0; 326 io->version[2] = 0; 327 io->flags = flags; 329 strncpy(io->name, name, sizeof(io 977 struct dm_ioctl *io; local 1022 struct dm_ioctl *io; local 1058 struct dm_ioctl *io; local 1130 struct dm_ioctl *io; local [all...] |
/system/core/debuggerd/arm64/ |
H A D | machine.cpp | 32 struct iovec io; local 33 io.iov_base = ®s; 34 io.iov_len = sizeof(regs); 36 if (ptrace(PTRACE_GETREGSET, tid, (void*)NT_PRSTATUS, &io) == -1) { 68 struct iovec io; local 69 io.iov_base = &r; 70 io.iov_len = sizeof(r); 72 if (ptrace(PTRACE_GETREGSET, tid, (void*) NT_PRSTATUS, (void*) &io) == -1) { 93 io.iov_base = &f; 94 io [all...] |
/system/core/fs_mgr/ |
H A D | fs_mgr_verity.c | 237 static void verity_ioctl_init(struct dm_ioctl *io, char *name, unsigned flags) argument 239 memset(io, 0, DM_BUF_SIZE); 240 io->data_size = DM_BUF_SIZE; 241 io->data_start = sizeof(struct dm_ioctl); 242 io->version[0] = 4; 243 io->version[1] = 0; 244 io->version[2] = 0; 245 io->flags = flags | DM_READONLY_FLAG; 247 strlcpy(io->name, name, sizeof(io 251 create_verity_device(struct dm_ioctl *io, char *name, int fd) argument 261 get_verity_device_name(struct dm_ioctl *io, char *name, int fd, char **dev_name) argument 276 load_verity_table(struct dm_ioctl *io, char *name, char *blockdev, int fd, char *table) argument 317 resume_verity_table(struct dm_ioctl *io, char *name, int fd) argument 367 struct dm_ioctl *io = (struct dm_ioctl *) buffer; local [all...] |
/system/core/toolbox/upstream-netbsd/bin/dd/ |
H A D | dd.c | 284 getfdtype(IO *io) argument 289 if (io->ops->op_fstat(io->fd, &sb)) { 290 err(EXIT_FAILURE, "%s", io->name); 294 io->flags |= io->ops->op_ioctl(io->fd, MTIOCGET, &mt) 296 else if (io->ops->op_lseek(io->fd, (off_t)0, SEEK_CUR) == -1 298 io 308 redup_clean_fd(IO *io) argument 586 bwrite(IO *io, const void *buf, size_t len) argument [all...] |
/system/extras/tests/crypto/ |
H A D | get_dm_versions.c | 10 static void ioctl_init(struct dm_ioctl *io, size_t dataSize, const char *name, unsigned flags) argument 12 memset(io, 0, dataSize); 13 io->data_size = dataSize; 14 io->data_start = sizeof(struct dm_ioctl); 15 io->version[0] = 4; 16 io->version[1] = 0; 17 io->version[2] = 0; 18 io->flags = flags; 20 strncpy(io->name, name, sizeof(io 27 struct dm_ioctl *io; local [all...] |