Lines Matching refs:dd
101 struct blk_desc *dd; in dev_stor_get() local
137 dd = (struct blk_desc *)di->cookie; in dev_stor_get()
138 if (dd->type == DEV_TYPE_UNKNOWN) { in dev_stor_get()
142 di->di_stor.block_count = dd->lba; in dev_stor_get()
143 di->di_stor.block_size = dd->blksz; in dev_stor_get()
155 static int dev_stor_type(struct blk_desc *dd) in dev_stor_type() argument
161 if (dd == blk_get_dev(specs[i].name, j)) in dev_stor_type()
289 static int dev_stor_is_valid(int type, struct blk_desc *dd) in dev_stor_is_valid() argument
294 if (dd == blk_get_dev(specs[type].name, i)) in dev_stor_is_valid()
295 if (dd->type != DEV_TYPE_UNKNOWN) in dev_stor_is_valid()
329 struct blk_desc *dd = (struct blk_desc *)cookie; in dev_read_stor() local
331 if ((type = dev_stor_type(dd)) == ENUM_MAX) in dev_read_stor()
334 if (!dev_stor_is_valid(type, dd)) in dev_read_stor()
338 return blk_dread(dd, start, len, buf); in dev_read_stor()
340 if ((dd->block_read) == NULL) { in dev_read_stor()
345 return dd->block_read(dd, start, len, buf); in dev_read_stor()