Lines Matching refs:dev_handle
41 static bool is_valid_dev(const uintptr_t dev_handle) in is_valid_dev() argument
43 const io_dev_info_t *dev = (io_dev_info_t *)dev_handle; in is_valid_dev()
57 (is_valid_dev((uintptr_t)entity->dev_handle)); in is_valid_entity()
171 int io_dev_init(uintptr_t dev_handle, const uintptr_t init_params) in io_dev_init() argument
174 assert(dev_handle != (uintptr_t)NULL); in io_dev_init()
175 assert(is_valid_dev(dev_handle)); in io_dev_init()
177 io_dev_info_t *dev = (io_dev_info_t *)dev_handle; in io_dev_init()
188 int io_dev_close(uintptr_t dev_handle) in io_dev_close() argument
191 assert(dev_handle != (uintptr_t)NULL); in io_dev_close()
192 assert(is_valid_dev(dev_handle)); in io_dev_close()
194 io_dev_info_t *dev = (io_dev_info_t *)dev_handle; in io_dev_close()
209 int io_open(uintptr_t dev_handle, const uintptr_t spec, uintptr_t *handle) in io_open() argument
213 assert(is_valid_dev(dev_handle)); in io_open()
215 io_dev_info_t *dev = (io_dev_info_t *)dev_handle; in io_open()
225 entity->dev_handle = dev; in io_open()
242 io_dev_info_t *dev = entity->dev_handle; in io_seek()
259 io_dev_info_t *dev = entity->dev_handle; in io_size()
279 io_dev_info_t *dev = entity->dev_handle; in io_read()
299 io_dev_info_t *dev = entity->dev_handle; in io_write()
318 io_dev_info_t *dev = entity->dev_handle; in io_close()