Lines Matching refs:dev_spec
20 io_block_dev_spec_t *dev_spec; member
38 static int block_dev_open(const uintptr_t dev_spec, io_dev_info_t **dev_info);
69 static int find_first_block_state(const io_block_dev_spec_t *dev_spec, in find_first_block_state() argument
77 if (state_pool[index].dev_spec == dev_spec) { in find_first_block_state()
116 result = find_first_block_state(state->dev_spec, &index); in free_dev_info()
139 assert(((region->offset % cur->dev_spec->block_size) == 0) && in block_open()
140 ((region->length % cur->dev_spec->block_size) == 0)); in block_open()
269 ops = &(cur->dev_spec->ops); in block_read()
270 buf = &(cur->dev_spec->buffer); in block_read()
271 block_size = cur->dev_spec->block_size; in block_read()
381 ops = &(cur->dev_spec->ops); in block_write()
382 buf = &(cur->dev_spec->buffer); in block_write()
383 block_size = cur->dev_spec->block_size; in block_write()
500 static int block_dev_open(const uintptr_t dev_spec, io_dev_info_t **dev_info) in block_dev_open() argument
515 cur->dev_spec = (io_block_dev_spec_t *)dev_spec; in block_dev_open()
516 buffer = &(cur->dev_spec->buffer); in block_dev_open()
517 block_size = cur->dev_spec->block_size; in block_dev_open()