Lines Matching refs:channel
22 errcode_t io_channel_set_options(io_channel channel, const char *opts)
27 EXT2_CHECK_MAGIC(channel, EXT2_ET_MAGIC_IO_CHANNEL);
32 if (!channel->manager->set_option)
50 retval = (channel->manager->set_option)(channel, ptr, arg);
59 errcode_t io_channel_write_byte(io_channel channel, unsigned long offset,
62 EXT2_CHECK_MAGIC(channel, EXT2_ET_MAGIC_IO_CHANNEL);
64 if (channel->manager->write_byte)
65 return channel->manager->write_byte(channel, offset,
71 errcode_t io_channel_read_blk64(io_channel channel, unsigned long long block,
74 EXT2_CHECK_MAGIC(channel, EXT2_ET_MAGIC_IO_CHANNEL);
76 if (channel->manager->read_blk64)
77 return (channel->manager->read_blk64)(channel, block,
83 return (channel->manager->read_blk)(channel, (unsigned long) block,
87 errcode_t io_channel_write_blk64(io_channel channel, unsigned long long block,
90 EXT2_CHECK_MAGIC(channel, EXT2_ET_MAGIC_IO_CHANNEL);
92 if (channel->manager->write_blk64)
93 return (channel->manager->write_blk64)(channel, block,
99 return (channel->manager->write_blk)(channel, (unsigned long) block,
103 errcode_t io_channel_discard(io_channel channel, unsigned long long block,
106 EXT2_CHECK_MAGIC(channel, EXT2_ET_MAGIC_IO_CHANNEL);
108 if (channel->manager->discard)
109 return (channel->manager->discard)(channel, block, count);