Lines Matching refs:io
174 struct dm_ioctl* io = (struct dm_ioctl*)buffer; in dm_ioctl_init() local
175 io->data_size = buffer_size; in dm_ioctl_init()
176 io->data_start = sizeof(struct dm_ioctl); in dm_ioctl_init()
177 io->version[0] = 4; in dm_ioctl_init()
178 io->version[1] = 0; in dm_ioctl_init()
179 io->version[2] = 0; in dm_ioctl_init()
180 io->flags = 0; in dm_ioctl_init()
181 dm_name.copy(io->name, sizeof(io->name)); in dm_ioctl_init()
182 return io; in dm_ioctl_init()
195 auto io = dm_ioctl_init(buffer, sizeof(buffer), dm_name); in create_crypto_blk_dev() local
196 if (!io || ioctl(dm_fd.get(), DM_DEV_CREATE, io) != 0) { in create_crypto_blk_dev()
202 io = dm_ioctl_init(buffer, sizeof(buffer), dm_name); in create_crypto_blk_dev()
203 if (ioctl(dm_fd.get(), DM_DEV_STATUS, io) != 0) { in create_crypto_blk_dev()
208 std::to_string((io->dev & 0xff) | ((io->dev >> 12) & 0xfff00)); in create_crypto_blk_dev()
210 io = dm_ioctl_init(buffer, sizeof(buffer), dm_name); in create_crypto_blk_dev()
211 size_t paramix = io->data_start + sizeof(struct dm_target_spec); in create_crypto_blk_dev()
220 io->target_count = 1; in create_crypto_blk_dev()
221 auto tgt = (struct dm_target_spec*)(buffer + io->data_start); in create_crypto_blk_dev()
232 if (ioctl(dm_fd.get(), DM_TABLE_LOAD, io) == 0) { in create_crypto_blk_dev()
244 io = dm_ioctl_init(buffer, sizeof(buffer), dm_name); in create_crypto_blk_dev()
245 if (ioctl(dm_fd.get(), DM_DEV_SUSPEND, io)) { in create_crypto_blk_dev()