search for: nouveau_fuse_create

Displaying 3 results from an estimated 3 matches for "nouveau_fuse_create".

2014 Aug 24
8
[PATCH 1/3] subdev: add a pfuse subdev
...__ +#define __NOUVEAU_FUSE_H__ + +#include <core/subdev.h> +#include <core/device.h> + +struct nouveau_fuse { + struct nouveau_subdev base; +}; + +static inline struct nouveau_fuse * +nouveau_fuse(void *obj) +{ + return (void *)nv_device(obj)->subdev[NVDEV_SUBDEV_FUSE]; +} + +#define nouveau_fuse_create(p, e, o, d) \ + nouveau_fuse_create_((p), (e), (o), sizeof(**d), (void **)d) + +int nouveau_fuse_create_(struct nouveau_object *, struct nouveau_object *, + struct nouveau_oclass *, int, void **); +void _nouveau_fuse_dtor(struct nouveau_object *); +int _...
2014 Aug 24
0
[PATCH 1/3] subdev: add a pfuse subdev
...> +#include <core/device.h> > + > +struct nouveau_fuse { > + struct nouveau_subdev base; > +}; > + > +static inline struct nouveau_fuse * > +nouveau_fuse(void *obj) > +{ > + return (void *)nv_device(obj)->subdev[NVDEV_SUBDEV_FUSE]; > +} > + > +#define nouveau_fuse_create(p, e, o, d) \ > + nouveau_fuse_create_((p), (e), (o), sizeof(**d), (void **)d) > + > +int nouveau_fuse_create_(struct nouveau_object *, struct nouveau_object *, > + struct nouveau_oclass *, int, void **); > +void _nouveau_fuse_dtor(struct n...
2014 Aug 24
0
[PATCH 1/3] subdev: add a pfuse subdev
...; + If you want you can drop the check the extra variable. > + return 0; > +} > + > +void > +_nouveau_fuse_dtor(struct nouveau_object *object) > +{ > + struct nouveau_fuse *fuse = (void *)object; > + nouveau_subdev_destroy(&fuse->base); > +} > + > +int > +nouveau_fuse_create_(struct nouveau_object *parent, > + struct nouveau_object *engine, > + struct nouveau_oclass *oclass, int length, void **pobject) > +{ > + struct nouveau_fuse *fuse; > + int ret; > + > + ret = nouveau_subdev_create_(parent, engine, oclass, 0, "FUSE", >...