Lines Matching refs:dev
26 static status_t close_hook(void *dev);
27 static status_t free_hook(void *dev);
28 static status_t read_hook(void *dev, off_t pos, void *buf, size_t *len);
29 static status_t write_hook(void *dev, off_t pos, const void *buf, size_t *len);
30 static status_t control_hook(void *dev, uint32 msg, void *buf, size_t len);
249 read_hook(void *dev, off_t pos, void *buf, size_t *len)
258 write_hook(void *dev, off_t pos, const void *buf, size_t *len)
266 close_hook(void *dev)
273 free_hook(void *dev)
275 device_info *di = (device_info *)dev;
281 mem_freetag( di->memmgr[mt_local], dev );
284 mem_freetag( di->memmgr[mt_PCI], dev );
287 mem_freetag( di->memmgr[mt_AGP], dev );
300 control_hook(void *dev, uint32 msg, void *buf, size_t len)
302 device_info *di = (device_info *)dev;
347 result = mem_alloc( di->memmgr[memory_type], am->size, am->global ? 0 : dev, &am->handle, &am->offset );
362 result = mem_free( di->memmgr[memory_type], fm->handle, fm->global ? 0 : dev );