Home | History | Annotate | Download | only in ext2fs

Lines Matching full:channel

54 static errcode_t dos_open(const char *dev, int flags, io_channel *channel);
55 static errcode_t dos_close(io_channel channel);
56 static errcode_t dos_set_blksize(io_channel channel, int blksize);
57 static errcode_t dos_read_blk(io_channel channel, unsigned long block,
59 static errcode_t dos_write_blk(io_channel channel, unsigned long block,
61 static errcode_t dos_flush(io_channel channel);
179 static errcode_t dos_open(const char *dev, int flags, io_channel *channel)
224 *channel = alloc_io_channel(active);
225 if (!*channel)
349 *channel = alloc_io_channel(active);
350 if (!*channel)
356 static errcode_t dos_close(io_channel channel)
358 free(channel->name);
359 free(channel);
364 static errcode_t dos_set_blksize(io_channel channel, int blksize)
366 channel->block_size = blksize;
371 static errcode_t dos_read_blk(io_channel channel, unsigned long block,
379 EXT2_CHECK_MAGIC(channel, EXT2_ET_MAGIC_IO_CHANNEL);
380 part = (PARTITION*)channel->private_data;
382 size = (size_t)((count < 0) ? -count : count * channel->block_size);
383 loc = (ext2_loff_t) block * channel->block_size;
408 static errcode_t dos_write_blk(io_channel channel, unsigned long block,
416 EXT2_CHECK_MAGIC(channel, EXT2_ET_MAGIC_IO_CHANNEL);
417 part = (PARTITION*)channel->private_data;
420 size = (size_t)channel->block_size;
426 size = (size_t)(count * channel->block_size);
429 loc = (ext2_loff_t)block * channel->block_size;
451 static errcode_t dos_flush(io_channel channel)