Lines Matching refs:result

94 	int result = -ENOENT;  in find_first_entity()  local
97 result = 0; in find_first_entity()
102 return result; in find_first_entity()
109 int result = -ENOMEM; in allocate_entity() local
114 result = find_first_entity(NULL, &index); in allocate_entity()
115 assert(result == 0); in allocate_entity()
121 return result; in allocate_entity()
128 int result; in free_entity() local
132 result = find_first_entity(entity, &index); in free_entity()
133 if (result == 0) { in free_entity()
138 return result; in free_entity()
147 int result = -ENOMEM; in io_register_device() local
153 result = 0; in io_register_device()
156 return result; in io_register_device()
173 int result = 0; in io_dev_init() local
181 result = dev->funcs->dev_init(dev, init_params); in io_dev_init()
184 return result; in io_dev_init()
190 int result = 0; in io_dev_close() local
198 result = dev->funcs->dev_close(dev); in io_dev_close()
201 return result; in io_dev_close()
211 int result; in io_open() local
218 result = allocate_entity(&entity); in io_open()
220 if (result == 0) { in io_open()
222 result = dev->funcs->open(dev, spec, entity); in io_open()
224 if (result == 0) { in io_open()
230 return result; in io_open()
237 int result = -ENODEV; in io_seek() local
245 result = dev->funcs->seek(entity, mode, offset); in io_seek()
247 return result; in io_seek()
254 int result = -ENODEV; in io_size() local
262 result = dev->funcs->size(entity, length); in io_size()
264 return result; in io_size()
274 int result = -ENODEV; in io_read() local
282 result = dev->funcs->read(entity, buffer, length, length_read); in io_read()
284 return result; in io_read()
294 int result = -ENODEV; in io_write() local
302 result = dev->funcs->write(entity, buffer, length, in io_write()
306 return result; in io_write()
313 int result = 0; in io_close() local
322 result = dev->funcs->close(entity); in io_close()
327 return result; in io_close()