Lines Matching refs:dd
100 struct blk_desc *dd; in dev_stor_get() local
141 dd = (struct blk_desc *)di->cookie; in dev_stor_get()
142 if (dd->type == DEV_TYPE_UNKNOWN) { in dev_stor_get()
146 di->di_stor.block_count = dd->lba; in dev_stor_get()
147 di->di_stor.block_size = dd->blksz; in dev_stor_get()
159 static int dev_stor_type(struct blk_desc *dd) in dev_stor_type() argument
165 if (dd == blk_get_dev(specs[i].name, j)) in dev_stor_type()
293 static int dev_stor_is_valid(int type, struct blk_desc *dd) in dev_stor_is_valid() argument
298 if (dd == blk_get_dev(specs[type].name, i)) in dev_stor_is_valid()
299 if (dd->type != DEV_TYPE_UNKNOWN) in dev_stor_is_valid()
333 struct blk_desc *dd = (struct blk_desc *)cookie; in dev_read_stor() local
335 if ((type = dev_stor_type(dd)) == ENUM_MAX) in dev_read_stor()
338 if (!dev_stor_is_valid(type, dd)) in dev_read_stor()
342 return blk_dread(dd, start, len, buf); in dev_read_stor()
344 if ((dd->block_read) == NULL) { in dev_read_stor()
349 return dd->block_read(dd, start, len, buf); in dev_read_stor()