• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/router/e2fsprogs-1.40.8/lib/ext2fs/

Lines Matching defs:channel

49 static errcode_t inode_open(const char *name, int flags, io_channel *channel);
50 static errcode_t inode_close(io_channel channel);
51 static errcode_t inode_set_blksize(io_channel channel, int blksize);
52 static errcode_t inode_read_blk(io_channel channel, unsigned long block,
54 static errcode_t inode_write_blk(io_channel channel, unsigned long block,
56 static errcode_t inode_flush(io_channel channel);
57 static errcode_t inode_write_byte(io_channel channel, unsigned long offset,
107 static errcode_t inode_open(const char *name, int flags, io_channel *channel)
154 *channel = io;
166 static errcode_t inode_close(io_channel channel)
171 EXT2_CHECK_MAGIC(channel, EXT2_ET_MAGIC_IO_CHANNEL);
172 data = (struct inode_private_data *) channel->private_data;
175 if (--channel->refcount > 0)
180 ext2fs_free_mem(&channel->private_data);
181 if (channel->name)
182 ext2fs_free_mem(&channel->name);
183 ext2fs_free_mem(&channel);
187 static errcode_t inode_set_blksize(io_channel channel, int blksize)
191 EXT2_CHECK_MAGIC(channel, EXT2_ET_MAGIC_IO_CHANNEL);
192 data = (struct inode_private_data *) channel->private_data;
195 channel->block_size = blksize;
200 static errcode_t inode_read_blk(io_channel channel, unsigned long block,
206 EXT2_CHECK_MAGIC(channel, EXT2_ET_MAGIC_IO_CHANNEL);
207 data = (struct inode_private_data *) channel->private_data;
211 block * channel->block_size,
215 count = (count < 0) ? -count : (count * channel->block_size);
220 static errcode_t inode_write_blk(io_channel channel, unsigned long block,
226 EXT2_CHECK_MAGIC(channel, EXT2_ET_MAGIC_IO_CHANNEL);
227 data = (struct inode_private_data *) channel->private_data;
231 block * channel->block_size,
235 count = (count < 0) ? -count : (count * channel->block_size);
240 static errcode_t inode_write_byte(io_channel channel, unsigned long offset,
246 EXT2_CHECK_MAGIC(channel, EXT2_ET_MAGIC_IO_CHANNEL);
247 data = (struct inode_private_data *) channel->private_data;
260 static errcode_t inode_flush(io_channel channel)
264 EXT2_CHECK_MAGIC(channel, EXT2_ET_MAGIC_IO_CHANNEL);
265 data = (struct inode_private_data *) channel->private_data;