Lines Matching refs:io
465 static void ioctl_init(struct dm_ioctl *io, size_t dataSize, const char *name, unsigned flags) in ioctl_init() argument
467 memset(io, 0, dataSize); in ioctl_init()
468 io->data_size = dataSize; in ioctl_init()
469 io->data_start = sizeof(struct dm_ioctl); in ioctl_init()
470 io->version[0] = 4; in ioctl_init()
471 io->version[1] = 0; in ioctl_init()
472 io->version[2] = 0; in ioctl_init()
473 io->flags = flags; in ioctl_init()
475 strlcpy(io->name, name, sizeof(io->name)); in ioctl_init()
1067 struct dm_ioctl *io; in load_crypto_mapping_table() local
1073 io = (struct dm_ioctl *) buffer; in load_crypto_mapping_table()
1078 ioctl_init(io, DM_CRYPT_BUF_SIZE, name, 0); in load_crypto_mapping_table()
1079 io->target_count = 1; in load_crypto_mapping_table()
1103 if (! ioctl(fd, DM_TABLE_LOAD, io)) { in load_crypto_mapping_table()
1121 struct dm_ioctl *io; local
1124 io = (struct dm_ioctl *) buffer;
1126 ioctl_init(io, DM_CRYPT_BUF_SIZE, name, 0);
1128 if (ioctl(fd, DM_LIST_VERSIONS, io)) {
1158 struct dm_ioctl *io; local
1172 io = (struct dm_ioctl *) buffer;
1174 ioctl_init(io, DM_CRYPT_BUF_SIZE, name, 0);
1175 err = ioctl(fd, DM_DEV_CREATE, io);
1182 ioctl_init(io, DM_CRYPT_BUF_SIZE, name, 0);
1183 if (ioctl(fd, DM_DEV_STATUS, io)) {
1187 minor = (io->dev & 0xff) | ((io->dev >> 12) & 0xfff00);
1210 ioctl_init(io, DM_CRYPT_BUF_SIZE, name, 0);
1212 if (ioctl(fd, DM_DEV_SUSPEND, io)) {
1230 struct dm_ioctl *io; local
1238 io = (struct dm_ioctl *) buffer;
1240 ioctl_init(io, DM_CRYPT_BUF_SIZE, name, 0);
1241 if (ioctl(fd, DM_DEV_REMOVE, io)) {