Lines Matching defs:dev_spec
19 io_mtd_dev_spec_t *dev_spec;
34 static int mtd_dev_open(const uintptr_t dev_spec, io_dev_info_t **dev_info);
59 static int find_first_mtd_state(const io_mtd_dev_spec_t *dev_spec,
66 /* dev_spec is used as identifier since it's unique */
67 if (state_pool[index].dev_spec == dev_spec) {
103 result = find_first_mtd_state(state->dev_spec, &index);
116 io_mtd_ops_t *ops = &cur->dev_spec->ops;
214 ops = &cur->dev_spec->ops;
219 if ((cur->base + cur->pos + length) > cur->dev_spec->device_size) {
242 static int mtd_dev_open(const uintptr_t dev_spec, io_dev_info_t **dev_info)
255 cur->dev_spec = (io_mtd_dev_spec_t *)dev_spec;
257 ops = &(cur->dev_spec->ops);
259 result = ops->init(&cur->dev_spec->device_size,
260 &cur->dev_spec->erase_size);
264 cur->size = cur->dev_spec->device_size;