Lines Matching refs:blk_dev
159 if (host_dev->blk_dev.priv) {
161 host_dev->blk_dev.priv = NULL;
179 struct blk_desc *blk_dev = &host_dev->blk_dev; local
180 blk_dev->if_type = IF_TYPE_HOST;
181 blk_dev->priv = host_dev;
182 blk_dev->blksz = 512;
183 blk_dev->lba = os_lseek(host_dev->fd, 0, OS_SEEK_END) / blk_dev->blksz;
184 blk_dev->block_read = host_block_read;
185 blk_dev->block_write = host_block_write;
186 blk_dev->devnum = dev;
187 blk_dev->part_type = PART_TYPE_UNKNOWN;
188 part_init(blk_dev);
210 if (!host_dev->blk_dev.priv)
213 *blk_devp = &host_dev->blk_dev;